Every event the organization recorded in the last 30 days, oldest
first in the order they were recorded, limited to the key’s scope.
Without cursor it starts at the oldest. next_cursor is always
present, even on an empty page, so a poller resumes exactly where
it stopped. cursor also takes an event id, to resume after an
event a receiver got by push. A cursor or event older than 30 days
is invalid_request with details.reason: "cursor_expired":
re-read the current state (for a subscription, its query) and
start again without one. A newer event id the organization never
had, such as a typo or an id from another environment, is
invalid_request without a reason.
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.
Query Parameters
cursor
string
The next_cursor of the previous page.
limit
integer
default:100
Events per page.
Required range: 1 <= x <= 1000
types
string[]
Only these event types; * after a dot matches any, as in subscription.*.
An event type such as job.completed, or a family with * after the dot, such as job.*.
Maximum string length: 64
Pattern: ^[a-z_]+\.([a-z_]+|\*)$
namespace_prefix
string
Only events of namespaces whose name starts with this prefix, such as acme/prod/.
Maximum string length: 256
Response
One page of events.
events
object[]
required
Maximum array length: 1000
An event, as pushed (the request body) and as the feed lists it:
id, type, timestamp and data, discriminated on type. Types
may be added, so ignore the ones you don't know.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Option 8
Option 9
Option 10
Option 11
Option 12
Option 13
Option 14
Option 15
Option 16
Option 17
Option 18
Option 19
Option 20
Option 21
Option 22
Option 23
Show child attributes
next_cursor
string
required
Where the next page starts. Always present, even on an empty page.
{"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":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"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/webhooks/read-the-events-feed","slug":"/api-reference/webhooks/read-the-events-feed","pageMetadata":{"title":"Read the events feed","description":"Every event the organization recorded in the last 30 days, oldest\nfirst in the order they were recorded, limited to the key's scope.\nWithout `cursor` it starts at the oldest. `next_cursor` is always\npresent, even on an empty page, so a poller resumes exactly where\nit stopped. `cursor` also takes an event id, to resume after an\nevent a receiver got by push. A cursor or event older than 30 days\nis `invalid_request` with `details.reason: \"cursor_expired\"`:\nre-read the current state (for a subscription, its `query`) and\nstart again without one. A newer event id the organization never\nhad, such as a typo or an id from another environment, is\n`invalid_request` without a `reason`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /events","href":"/api-reference/webhooks/read-the-events-feed","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Every event the organization recorded in the last 30 days, oldest\\nfirst in the order they were recorded, limited to the key’s scope.\\nWithout \", _jsx(_components.code, {\n children: \"cursor\"\n }), \" it starts at the oldest. \", _jsx(_components.code, {\n children: \"next_cursor\"\n }), \" is always\\npresent, even on an empty page, so a poller resumes exactly where\\nit stopped. \", _jsx(_components.code, {\n children: \"cursor\"\n }), \" also takes an event id, to resume after an\\nevent a receiver got by push. A cursor or event older than 30 days\\nis \", _jsx(_components.code, {\n children: \"invalid_request\"\n }), \" with \", _jsx(_components.code, {\n children: \"details.reason: \\\"cursor_expired\\\"\"\n }), \":\\nre-read the current state (for a subscription, its \", _jsx(_components.code, {\n children: \"query\"\n }), \") and\\nstart again without one. A newer event id the organization never\\nhad, such as a typo or an id from another environment, is\\n\", _jsx(_components.code, {\n children: \"invalid_request\"\n }), \" without a \", _jsx(_components.code, {\n children: \"reason\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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":"Read the events feed","description":"Every event the organization recorded in the last 30 days, oldest\nfirst in the order they were recorded, limited to the key's scope.\nWithout `cursor` it starts at the oldest. `next_cursor` is always\npresent, even on an empty page, so a poller resumes exactly where\nit stopped. `cursor` also takes an event id, to resume after an\nevent a receiver got by push. A cursor or event older than 30 days\nis `invalid_request` with `details.reason: \"cursor_expired\"`:\nre-read the current state (for a subscription, its `query`) and\nstart again without one. A newer event id the organization never\nhad, such as a typo or an id from another environment, is\n`invalid_request` without a `reason`.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /events","href":"/api-reference/webhooks/read-the-events-feed","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"listEvents","tags":["Webhooks"],"summary":"Read the events feed","description":"Every event the organization recorded in the last 30 days, oldest\nfirst in the order they were recorded, limited to the key's scope.\nWithout `cursor` it starts at the oldest. `next_cursor` is always\npresent, even on an empty page, so a poller resumes exactly where\nit stopped. `cursor` also takes an event id, to resume after an\nevent a receiver got by push. A cursor or event older than 30 days\nis `invalid_request` with `details.reason: \"cursor_expired\"`:\nre-read the current state (for a subscription, its `query`) and\nstart again without one. A newer event id the organization never\nhad, such as a typo or an id from another environment, is\n`invalid_request` without a `reason`.\n","parameters":["185bbf9d-060d-4df9-bcee-ae7a9f635715","eac4825d-1b92-4606-9a57-80c6596d288c","04ca7592-c7cf-433f-a491-2b8b3150081d","051fe760-b1d1-4277-8317-11b1ba7ae400"],"responses":{"200":"cce5420a-05d2-4178-8f08-f8fcb8254927","400":"a0e08d38-7167-46da-9abd-70d9be28c669","401":"6906482b-54eb-439d-a98c-0b2fa17550a8","403":"256b83ad-d80a-4732-93cb-e4e09003522d","413":"3bbb7dce-d31c-4bb2-84c7-356fe9d55024","429":"b80f69a5-3d05-4cd9-a23a-0ee15081f9d3","500":"3f0c3224-8b6e-471a-9cb4-23e68f6cb34a"},"method":"get","type":"path","servers":["9c6bc63c-4afb-4d5f-9398-d37c095e94a5"],"security":["9a45876d-f7ff-4272-8441-a152e9393dc5"],"path":"/events","baseUrlOptions":["https://api.brussle.com/v1"],"title":"Read the events feed","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"185bbf9d-060d-4df9-bcee-ae7a9f635715":{"name":"cursor","in":"query","description":"The `next_cursor` of the previous page.","schema":{"type":"string","description":"The `next_cursor` of the previous page.","uniqueKey":"","typeLabel":"string"}},"eac4825d-1b92-4606-9a57-80c6596d288c":{"name":"limit","in":"query","description":"Events per page.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100,"description":"Events per page.","uniqueKey":"","typeLabel":"integer"}},"04ca7592-c7cf-433f-a491-2b8b3150081d":{"name":"types","in":"query","description":"Only these event types; `*` after a dot matches any, as in `subscription.*`.","style":"form","explode":false,"schema":{"type":"array","uniqueItems":true,"items":{"type":"string","description":"An event type such as `job.completed`, or a family with `*` after the dot, such as `job.*`.","pattern":"^[a-z_]+\\.([a-z_]+|\\*)$","maxLength":64,"uniqueKey":"items.[INDEX]","typeLabel":"string"},"description":"Only these event types; `*` after a dot matches any, as in `subscription.*`.","uniqueKey":"","typeLabel":"string[]"}},"051fe760-b1d1-4277-8317-11b1ba7ae400":{"name":"namespace_prefix","in":"query","description":"Only events of namespaces whose name starts with this prefix, such as `acme/prod/`.","schema":{"type":"string","maxLength":256,"description":"Only events of namespaces whose name starts with this prefix, such as `acme/prod/`.","uniqueKey":"","typeLabel":"string"}}},"responses":{"cce5420a-05d2-4178-8f08-f8fcb8254927":{"description":"One page of events.","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":["events","next_cursor"],"properties":{"events":{"type":"array","maxItems":1000,"items":{"oneOf":[{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"subscription.entered","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.type","typeLabel":"any"},"data":{"type":"object","description":"A document that started matching (`subscription.entered`), and the\nbody of `subscription.exited`. It carries the included attributes\nand answers, and those the filter reads, as the get returns them,\nnever `state`. The answers the filter reads have settled: `fresh`,\nor `stale` when nothing is coming to refresh them (as for a\n`periodic` or `manual` judgment), or absent where the filter tests\nabsence. An answer named only in `include` is sent as it stands,\n`pending` included: check its `freshness` to act only on fresh\nanswers. When the whole event, as the request body, would\npass 63 KB they are dropped and `truncated` is true: follow `url`.\nSo no body passes 64 KB.\n","required":["subscription","namespace","document","cause","sequence","url"],"properties":{"subscription":{"type":"object","required":["id","name","defined_on"],"properties":{"id":{"type":"string","pattern":"^sub_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.subscription.id","typeLabel":"string"},"name":{"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":"events.items.[INDEX].oneOf.0.data.subscription.name","typeLabel":"string"},"defined_on":{"type":"string","description":"Where the subscription was created, such as the template prefix `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.subscription.defined_on","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.subscription","typeLabel":"object"},"namespace":{"type":"string","description":"The namespace the document is in, even for a template's subscription.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.namespace","typeLabel":"string"},"document":{"type":"object","required":["id","incarnation"],"properties":{"id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.document.id","typeLabel":"string"},"incarnation":{"type":"integer","format":"int64","minimum":0,"description":"Tells two lives of one id apart, as when a document is deleted and written again.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.document.incarnation","typeLabel":"integer\u003cint64>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"Absent when the document was deleted.","uniqueKey":"events.items.[INDEX].oneOf.0.data.document.revision","typeLabel":"integer\u003cint64>"},"updated_at":{"type":"string","format":"date-time","description":"Absent when the document was deleted.","uniqueKey":"events.items.[INDEX].oneOf.0.data.document.updated_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.document","typeLabel":"object"},"cause":{"type":"string","description":"What changed the document: `change` (a write, or an answer\nafter one), `fanout` or `periodic`. With `bulk: \"deliver\"`,\nalso `backfill` (with `job_id`) and `resync`.\n","enum":["change","fanout","periodic","backfill","resync"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.cause","typeLabel":"enum\u003cstring>"},"sequence":{"type":"integer","format":"int64","minimum":0,"description":"Grows with every change the namespace's subscriptions record. For one subscription and document, a higher `sequence` is newer, so drop anything older than what you have; pushes can arrive out of order.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.sequence","typeLabel":"integer\u003cint64>"},"url":{"type":"string","format":"uri","description":"The document's get, to call with your own key.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.url","typeLabel":"string\u003curi>"},"attributes":{"type":"object","description":"Flat, filterable and sortable. At most 64 keys. Not sent to engines unless a context recipe names them.","maxProperties":64,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"string","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.0","typeLabel":"string"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"number","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.1","typeLabel":"number"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"boolean","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.2","typeLabel":"boolean"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.3","typeLabel":"string[]"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"null","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties.oneOf.4","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes.additionalProperties","typeLabel":"string | number | boolean | string[] | null"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.attributes","typeLabel":"object"},"answers":{"type":"object","description":"Answers keyed by judgment name.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"object","description":"A bool answer has no `value`; booleans come only from named thresholds.","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.thresholds","typeLabel":"object"},"p":{"type":"number","minimum":0,"maximum":1,"description":"The engine's probability; for a composite judgment the\nprobability its combiner gives the parts; for a judgment with\n`features`, the calibration selected for it applied when the\nanswer is read, to `raw.p` and the features (the engine's `p`\nwhile it has none). Thresholds, filters, ranking, subscriptions\nand judgments that read this one use it. Nothing stored is\nrewritten when the calibration changes.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.p","typeLabel":"number"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning.","required":["p"],"properties":{"p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.raw.p","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.fit","typeLabel":"object | null"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["p","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.extrapolated","typeLabel":"boolean"},"p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.p","typeLabel":"number"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.calibrated","typeLabel":"object"},"parts":{"type":"object","description":"Composite judgments only. Each part's raw `p` from the engine.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.parts.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.parts","typeLabel":"object"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.features","typeLabel":"object"},"combiner":{"type":"object","description":"Composite judgments only: the combiner `p` came from, fitted on the\njudgment's outcomes per version and engine epoch. A\ncomposite's answer has no `calibrated` object. Being fitted to\noutcomes makes the combined `p` close to calibrated on data like its\nlabels, not certainly; the calibration report's reliability curve is\nhow to check.\n","required":["outcomes","from_previous_epoch"],"properties":{"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The labelled documents the combiner was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.combiner.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has fewer than 50 outcomes, so the previous epoch's combiner applies.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.combiner.from_previous_epoch","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0.combiner","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","description":"The current answer of one judgment for one document, discriminated on\n`type`. Only `type` and `freshness` are always present: numbers and\nprovenance are absent when no evaluation has succeeded.\n","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.thresholds","typeLabel":"object"},"value":{"type":"string","description":"The most probable option; ties go to the earlier option. For an `options.from` judgment, the matched candidate's document `id`, or `none_of_the_above`.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.value","typeLabel":"string"},"dist":{"type":"object","description":"Probability per option. For an `options.from` judgment, a shortlist, not a ranking, listing only the candidates with any probability, and `none_of_the_above`.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.dist.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.dist","typeLabel":"object"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"The probability of `none_of_the_above`. For an `options.from` judgment, the probability that no candidate matches; 1 when there were no candidates, with no engine call.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.escape_p","typeLabel":"number"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["value","dist","escape_p","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.extrapolated","typeLabel":"boolean"},"value":{"type":"string","description":"The most probable option under the calibrated distribution.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.value","typeLabel":"string"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.dist","typeLabel":"object"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.escape_p","typeLabel":"number"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.calibrated","typeLabel":"object"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning. `dist`, `escape_p` and `value` above are read through the fit; `value` is the most probable option of the fitted `dist`, so a fit can change the pick.","required":["dist","value","escape_p"],"properties":{"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.raw.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.raw.dist","typeLabel":"object"},"value":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.raw.value","typeLabel":"string"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.raw.escape_p","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.fit","typeLabel":"object | null"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.features","typeLabel":"object"},"candidate_features":{"type":"object","description":"A choice among candidates with `\u003cfrom>.each(\u003cpath>)` features\nonly: each candidate the engine read, by document `id`, with its\nvalue of each such feature, null when missing. Recorded as of\nwhat the evaluation read and never recomputed.\n","additionalProperties":{"type":"object","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1.candidate_features","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"The current answer of one judgment for one document, discriminated on\n`type`. Only `type` and `freshness` are always present: numbers and\nprovenance are absent when no evaluation has succeeded.\n","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.thresholds","typeLabel":"object"},"score":{"type":"number","description":"The probability-weighted mean of level values.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.score","typeLabel":"number"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.dist.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.dist","typeLabel":"object"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["score","dist","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.extrapolated","typeLabel":"boolean"},"score":{"type":"number","description":"The probability-weighted mean of level values under the calibrated distribution.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.score","typeLabel":"number"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.dist","typeLabel":"object"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.calibrated","typeLabel":"object"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning. `dist` and `score` above are read through the fit.","required":["dist","score"],"properties":{"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.raw.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.raw.dist","typeLabel":"object"},"score":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.raw.score","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.fit","typeLabel":"object | null"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2.features","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A text column's answer. It carries no probability, threshold or calibration.","required":["type","freshness"],"example":{"type":"text","value":"Customer asks for a refund after two failed deliveries.","truncated":false,"freshness":"fresh","revision":43,"judgment_version":1,"engine":"openai/gpt-5.2","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPQ","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.thresholds","typeLabel":"object"},"value":{"type":"string","description":"The text, at most the definition's `max_chars` characters. A `stale` or `failed` answer keeps its last good value.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.value","typeLabel":"string"},"truncated":{"type":"boolean","description":"Present with `value`. True when the value was cut to `max_chars`, or the engine stopped at its output limit.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3.truncated","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","description":"A json column's answer. It carries no probability, threshold or calibration.","required":["type","freshness"],"example":{"type":"json","value":{"amount":1740.5,"currency":"EUR","invoice":"INV-2043"},"freshness":"fresh","revision":12,"judgment_version":1,"engine":"openai/gpt-5.2","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPR","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.thresholds","typeLabel":"object"},"value":{"description":"The JSON value; an object satisfying the definition's `schema` when it has one. A `stale` or `failed` answer keeps its last good value.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4.value","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"An embedding column's answer. It carries no probability, threshold or calibration, and it cannot be filtered on.","required":["type","freshness"],"example":{"type":"embedding","value":[0.0123,-0.0456,0.0789],"dimensions":3,"freshness":"fresh","revision":7,"judgment_version":1,"engine":"openai/text-embedding-3-small","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPS","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.thresholds","typeLabel":"object"},"value":{"type":"array","description":"Exactly `dimensions` numbers, each the shortest decimal that stands for the stored value. A `stale` or `failed` answer keeps its last good value.","items":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.value.items.[INDEX]","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.value","typeLabel":"number[]"},"dimensions":{"type":"integer","minimum":1,"description":"Present with `value`; its length.","uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5.dimensions","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.0.data.answers","typeLabel":"object"},"job_id":{"type":"string","description":"The backfill job, when `cause` is `backfill`.","uniqueKey":"events.items.[INDEX].oneOf.0.data.job_id","typeLabel":"string"},"truncated":{"type":"boolean","description":"True when `attributes` and `answers` were dropped because the event's whole body would have passed 63 KB, which keeps every body under 64 KB.","uniqueKey":"events.items.[INDEX].oneOf.0.data.truncated","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.0.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.0.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"subscription.exited","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.type","typeLabel":"any"},"data":{"type":"object","description":"A document that stopped matching, with its current values, which show why; or one that was deleted, with no values.","required":["reason","subscription","namespace","document","cause","sequence","url"],"properties":{"subscription":{"type":"object","required":["id","name","defined_on"],"properties":{"id":{"type":"string","pattern":"^sub_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.subscription.id","typeLabel":"string"},"name":{"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":"events.items.[INDEX].oneOf.1.data.subscription.name","typeLabel":"string"},"defined_on":{"type":"string","description":"Where the subscription was created, such as the template prefix `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.subscription.defined_on","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.subscription","typeLabel":"object"},"namespace":{"type":"string","description":"The namespace the document is in, even for a template's subscription.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.namespace","typeLabel":"string"},"document":{"type":"object","required":["id","incarnation"],"properties":{"id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.document.id","typeLabel":"string"},"incarnation":{"type":"integer","format":"int64","minimum":0,"description":"Tells two lives of one id apart, as when a document is deleted and written again.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.document.incarnation","typeLabel":"integer\u003cint64>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"Absent when the document was deleted.","uniqueKey":"events.items.[INDEX].oneOf.1.data.document.revision","typeLabel":"integer\u003cint64>"},"updated_at":{"type":"string","format":"date-time","description":"Absent when the document was deleted.","uniqueKey":"events.items.[INDEX].oneOf.1.data.document.updated_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.document","typeLabel":"object"},"cause":{"type":"string","description":"What changed the document: `change` (a write, or an answer\nafter one), `fanout` or `periodic`. With `bulk: \"deliver\"`,\nalso `backfill` (with `job_id`) and `resync`.\n","enum":["change","fanout","periodic","backfill","resync"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.cause","typeLabel":"enum\u003cstring>"},"sequence":{"type":"integer","format":"int64","minimum":0,"description":"Grows with every change the namespace's subscriptions record. For one subscription and document, a higher `sequence` is newer, so drop anything older than what you have; pushes can arrive out of order.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.sequence","typeLabel":"integer\u003cint64>"},"url":{"type":"string","format":"uri","description":"The document's get, to call with your own key.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.url","typeLabel":"string\u003curi>"},"reason":{"type":"string","enum":["no_longer_matches","deleted"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.reason","typeLabel":"enum\u003cstring>"},"attributes":{"type":"object","description":"Flat, filterable and sortable. At most 64 keys. Not sent to engines unless a context recipe names them.","maxProperties":64,"propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"string","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.0","typeLabel":"string"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"number","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.1","typeLabel":"number"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"boolean","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.2","typeLabel":"boolean"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.3","typeLabel":"string[]"},{"description":"A string, number, boolean, string array or null. A number reads back as written; an integer is exact anywhere in the signed or unsigned 64-bit range, and a number with a fraction or exponent is a 64-bit float. `null` means no value, so the attribute is not stored. An upsert leaves it out, and a patch removes it.","type":"null","items":{"type":"string"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties.oneOf.4","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes.additionalProperties","typeLabel":"string | number | boolean | string[] | null"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.attributes","typeLabel":"object"},"answers":{"type":"object","description":"Answers keyed by judgment name.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"object","description":"A bool answer has no `value`; booleans come only from named thresholds.","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.thresholds","typeLabel":"object"},"p":{"type":"number","minimum":0,"maximum":1,"description":"The engine's probability; for a composite judgment the\nprobability its combiner gives the parts; for a judgment with\n`features`, the calibration selected for it applied when the\nanswer is read, to `raw.p` and the features (the engine's `p`\nwhile it has none). Thresholds, filters, ranking, subscriptions\nand judgments that read this one use it. Nothing stored is\nrewritten when the calibration changes.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.p","typeLabel":"number"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning.","required":["p"],"properties":{"p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.raw.p","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.fit","typeLabel":"object | null"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["p","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.extrapolated","typeLabel":"boolean"},"p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.p","typeLabel":"number"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.calibrated","typeLabel":"object"},"parts":{"type":"object","description":"Composite judgments only. Each part's raw `p` from the engine.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.parts.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.parts","typeLabel":"object"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.features","typeLabel":"object"},"combiner":{"type":"object","description":"Composite judgments only: the combiner `p` came from, fitted on the\njudgment's outcomes per version and engine epoch. A\ncomposite's answer has no `calibrated` object. Being fitted to\noutcomes makes the combined `p` close to calibrated on data like its\nlabels, not certainly; the calibration report's reliability curve is\nhow to check.\n","required":["outcomes","from_previous_epoch"],"properties":{"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The labelled documents the combiner was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.combiner.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has fewer than 50 outcomes, so the previous epoch's combiner applies.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.combiner.from_previous_epoch","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0.combiner","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.0","typeLabel":"object"},{"type":"object","description":"The current answer of one judgment for one document, discriminated on\n`type`. Only `type` and `freshness` are always present: numbers and\nprovenance are absent when no evaluation has succeeded.\n","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.thresholds","typeLabel":"object"},"value":{"type":"string","description":"The most probable option; ties go to the earlier option. For an `options.from` judgment, the matched candidate's document `id`, or `none_of_the_above`.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.value","typeLabel":"string"},"dist":{"type":"object","description":"Probability per option. For an `options.from` judgment, a shortlist, not a ranking, listing only the candidates with any probability, and `none_of_the_above`.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.dist.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.dist","typeLabel":"object"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"The probability of `none_of_the_above`. For an `options.from` judgment, the probability that no candidate matches; 1 when there were no candidates, with no engine call.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.escape_p","typeLabel":"number"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["value","dist","escape_p","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.extrapolated","typeLabel":"boolean"},"value":{"type":"string","description":"The most probable option under the calibrated distribution.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.value","typeLabel":"string"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.dist","typeLabel":"object"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.escape_p","typeLabel":"number"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.calibrated","typeLabel":"object"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning. `dist`, `escape_p` and `value` above are read through the fit; `value` is the most probable option of the fitted `dist`, so a fit can change the pick.","required":["dist","value","escape_p"],"properties":{"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.raw.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.raw.dist","typeLabel":"object"},"value":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.raw.value","typeLabel":"string"},"escape_p":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.raw.escape_p","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.fit","typeLabel":"object | null"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.features","typeLabel":"object"},"candidate_features":{"type":"object","description":"A choice among candidates with `\u003cfrom>.each(\u003cpath>)` features\nonly: each candidate the engine read, by document `id`, with its\nvalue of each such feature, null when missing. Recorded as of\nwhat the evaluation read and never recomputed.\n","additionalProperties":{"type":"object","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.candidate_features.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1.candidate_features","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"The current answer of one judgment for one document, discriminated on\n`type`. Only `type` and `freshness` are always present: numbers and\nprovenance are absent when no evaluation has succeeded.\n","required":["type","freshness"],"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.thresholds","typeLabel":"object"},"score":{"type":"number","description":"The probability-weighted mean of level values.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.score","typeLabel":"number"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.dist.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.dist","typeLabel":"object"},"calibrated":{"type":"object","description":"Never on a judgment with `features`.","required":["score","dist","interval","stage","outcomes","from_previous_epoch","extrapolated"],"properties":{"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the calibrated number this object shows:\n`p` for a bool, `escape_p` for a choice, `score` for a score.\nNull for a calibration made before calibrations recorded it,\nuntil the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.interval","typeLabel":"object | null"},"stage":{"type":"string","description":"How settled a fit is. It summarises the fit; `interval`\nsays how sure each number is, and is what to automate on.\n- `early`: it rests on 50 to 999 outcomes. The correction is deliberately conservative, starts from the engine's own numbers (`prior`), and expect it to move more from one fit to the next.\n- `full`: it rests on many more outcomes and follows the engine's own pattern closely.\n","enum":["early","full"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.stage","typeLabel":"enum\u003cstring>"},"outcomes":{"type":"integer","format":"int64","minimum":50,"description":"The number of outcomes the calibration was fitted on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.outcomes","typeLabel":"integer\u003cint64>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, while the answer's epoch has no fit of\nits own yet: the calibration is the previous epoch's. A replay of\nearlier outcomes usually fits the new epoch within the hour, and\nthe previous epoch's fit is used for at most 30 days from the day\nthe epoch began.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.from_previous_epoch","typeLabel":"boolean"},"extrapolated":{"type":"boolean","description":"True when the answer's raw value (`p`, or the probability of the\nmost probable option or level) lies outside the range of raw values\nthe fit was made on. The calibrated numbers are then a guess; post\noutcomes for documents like this one to cover it.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.extrapolated","typeLabel":"boolean"},"score":{"type":"number","description":"The probability-weighted mean of level values under the calibrated distribution.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.score","typeLabel":"number"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.dist","typeLabel":"object"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.prior","typeLabel":"object"},"fit":{"type":"string","description":"The fit the numbers were read with; `GET .../calibration/fits/{fit}` has its map. On a template's tenant with a fit of its own, the template's fit it is blended with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.fit","typeLabel":"string"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated.pinned","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.calibrated","typeLabel":"object"},"raw":{"type":"object","description":"Judgments with `features` only. The engine's own answer, which never changes meaning. `dist` and `score` above are read through the fit.","required":["dist","score"],"properties":{"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.raw.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.raw.dist","typeLabel":"object"},"score":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.raw.score","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.raw","typeLabel":"object"},"fit":{"oneOf":[{"type":"object","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.id","typeLabel":"string"},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.0","typeLabel":"object"},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.interval","typeLabel":"object | null"},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.fitted_at","typeLabel":"string\u003cdate-time>"},"outcomes":{"type":"integer","format":"int64","minimum":100,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.method","typeLabel":"enum\u003cstring>"},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.from_previous_epoch","typeLabel":"boolean"},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.run","typeLabel":"string"},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment).","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.pinned","typeLabel":"boolean"},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior.kind","typeLabel":"enum\u003cstring>"},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior.weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.prior","typeLabel":"object"},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0.tenant","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.0","typeLabel":"object"},{"type":"null","description":"Judgments with `features` only: the calibration the answer's numbers\nwere read with, chosen at each fit from the judgment's outcomes only\nwhen it does better than the engine on outcomes it was not fitted\non, and null while they are the engine's. On a choice among\ncandidates it is also chosen only when it picks the true match at\nleast as often as the engine on those outcomes. It is shared by\nevery namespace that inherits the judgment, except a template tenant\non Team or Scale with a calibration of its own on a bool (`tenant`).\n","required":["id","interval","fitted_at","outcomes","method","from_previous_epoch"],"properties":{"id":{"type":"string","description":"Stays the same for as long as the same calibration is selected."},"interval":{"oneOf":[{"type":"object","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n","required":["lower","upper"],"properties":{"lower":{"type":"number"},"upper":{"type":"number"}}},{"type":"null","description":"The 95% interval of the number the answer is filtered on, at\nthis answer's features: `p` on a bool, `escape_p` on a choice,\n`score` on a score. Filter and rank on its bounds with\n`answers.\u003cj>.interval.lower` and `.upper`. It can narrow with the same `id` as outcomes arrive.\nA query reads the current bounds; a subscription reads bounds\nthat narrowed under the same `id` at the document's next\nevaluation. Null for a calibration made before calibrations\nrecorded it, until the next nightly fit.\n"}]},"fitted_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC."},"outcomes":{"type":"integer","format":"int64","minimum":100},"method":{"type":"string","enum":["features","early","full"],"description":"`features`: the features and the engine's `p` together. `early` and `full`: the engine's `p` alone, as `calibrated.stage` means them."},"from_previous_epoch":{"type":"boolean","description":"True after an engine drift, until the new epoch has its own."},"run":{"type":"string","description":"The calibration run whose fits the answer was read with, as `GET .../calibration/fits` lists it."},"pinned":{"type":"boolean","description":"True when the fit is pinned (`calibration` on the judgment)."},"prior":{"type":"object","description":"What an early calibration leans on until your outcomes outweigh it,\nand how much of the number is your own. Absent when the\ncalibration rests on your outcomes alone (`stage: full`).\n- `identity`: the engine's own numbers, taken at their word.\n- `pool`: a template's tenant, its template's pooled calibration.\n","required":["kind","weight"],"properties":{"kind":{"type":"string","enum":["identity","pool"]},"weight":{"type":"number","minimum":0,"maximum":1,"description":"The share of the calibration that is your own outcomes'. 0.5 at 50 outcomes, two thirds at 100."}}},"tenant":{"type":"boolean","description":"True when `p` was read with this template tenant's own\ncalibration, its own weights over the features held toward the\ntemplate's until its outcomes clearly say otherwise. `id` is then\nthe tenant's own, and `outcomes` the tenant's. Absent otherwise.\n"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.fit","typeLabel":"object | null"},"features":{"type":"object","description":"Judgments with `features` only. Each feature's raw value, null\nwhen missing (no related documents to take an extreme or a `latest`\nof, or a value that is not a number). A banded `min` or `max` gives\nits raw extreme, and a `latest` over a threshold 1 or 0. Values are\n64-bit: counts and whole numbers are exact up to 2^53, and a decimal\namount is the nearest double. Thresholds and filters compare the\nstored value with yours exactly.\n","propertyNames":{"$ref":"#/components/schemas/FeatureRef"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.features.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.features.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.features.additionalProperties","typeLabel":"number | null"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2.features","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A text column's answer. It carries no probability, threshold or calibration.","required":["type","freshness"],"example":{"type":"text","value":"Customer asks for a refund after two failed deliveries.","truncated":false,"freshness":"fresh","revision":43,"judgment_version":1,"engine":"openai/gpt-5.2","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPQ","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.thresholds","typeLabel":"object"},"value":{"type":"string","description":"The text, at most the definition's `max_chars` characters. A `stale` or `failed` answer keeps its last good value.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.value","typeLabel":"string"},"truncated":{"type":"boolean","description":"Present with `value`. True when the value was cut to `max_chars`, or the engine stopped at its output limit.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3.truncated","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.3","typeLabel":"object"},{"type":"object","description":"A json column's answer. It carries no probability, threshold or calibration.","required":["type","freshness"],"example":{"type":"json","value":{"amount":1740.5,"currency":"EUR","invoice":"INV-2043"},"freshness":"fresh","revision":12,"judgment_version":1,"engine":"openai/gpt-5.2","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPR","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.thresholds","typeLabel":"object"},"value":{"description":"The JSON value; an object satisfying the definition's `schema` when it has one. A `stale` or `failed` answer keeps its last good value.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4.value","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.4","typeLabel":"object"},{"type":"object","description":"An embedding column's answer. It carries no probability, threshold or calibration, and it cannot be filtered on.","required":["type","freshness"],"example":{"type":"embedding","value":[0.0123,-0.0456,0.0789],"dimensions":3,"freshness":"fresh","revision":7,"judgment_version":1,"engine":"openai/text-embedding-3-small","engine_version":"current","evaluation_id":"ev_01JA2B3C4D5E6F7G8H9J0KMNPS","evaluated_at":"2026-10-21T09:00:00Z"},"properties":{"freshness":{"type":"string","description":"Derived at read time. `pending`: an evaluation is on its way,\nincluding for a document never judged whose `on_change` judgment has\nyet to reach its write. `stale` and `failed` still carry the last good\nnumbers and the `revision` they were computed for; a `stale` answer\nsays why in `stale_reason`. A `failed` answer for a document never\njudged successfully has no numbers. `unavailable`: never judged in\nthis incarnation, and nothing is judging it: the policy waits for a\nread or a backfill, or judging is paused, after which an `on_change`\njudgment judges it.\n","enum":["fresh","pending","stale","failed","unavailable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.freshness","typeLabel":"enum\u003cstring>"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.type","typeLabel":"any"},"stale_reason":{"type":"string","description":"Present exactly when `freshness` is `stale`.","enum":["document_changed","judging_paused","referenced_changed","interval_elapsed","answers_changed","limit_reached","block_over_cap","older_version","referenced_missing","budget_reached","credential_unusable","engine_retired"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.stale_reason","typeLabel":"enum\u003cstring>"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The document revision the numbers were computed for.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.revision","typeLabel":"integer\u003cint64>"},"watermark":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: the log position the\ncontext was read at. Every write with a revision at or below it,\nto the document or its related documents, is reflected; a later\none that touched the document makes the answer `pending` or\n`stale`. For a relation that reads a referenced document, it also says which version of that document the\nanswer read. A later write to it that changes what the relation\nrenders makes the answer `pending` when the document is inside the\nre-judge scope, and `stale` (`referenced_changed`) when it is\noutside, so a referenced document with a `revision` above the\nwatermark shows the answer read an earlier version of it.\nAbsent on a `failed` answer: its numbers are the last good ones,\nand the failed attempt's position does not describe them.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.watermark","typeLabel":"integer\u003cint64>"},"answers_generation":{"type":"integer","format":"int64","minimum":0,"description":"Entity judgments only: how far the context\nhad read other judgments' answers and block changes, the second\ncoordinate of the answer's position beside `watermark`. A child's\nanswer or a block change after it makes the answer `pending`\n(`on_change`) or `stale` (`answers_changed`, or\n`document_changed` for a block) until it is judged again. Compare\nit only with other `answers_generation` values in the same\nnamespace. Absent on a `failed` answer, like `watermark`.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.answers_generation","typeLabel":"integer\u003cint64>"},"previous_revision":{"type":"integer","format":"int64","minimum":0,"description":"For a recipe with `previous`, the revision the previous rendering came from. Absent when the context showed nothing under `previous`, as on a document's first evaluation. A `failed` answer keeps the last success's.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.previous_revision","typeLabel":"integer\u003cint64>"},"referenced_changes":{"type":"array","description":"Get only, never in query rows. For a judgment\nwith a relation that reads a referenced document: for each such\nrelation, the newest write to the document the judged document\npoints at now that changed what the relation renders, whether or\nnot the document is inside the re-judge scope for it. A relation\nwhose referenced document has never changed is left out, and so\nis the key when none has. A change at or below `watermark` is\nreflected in the answer. One above it makes the answer `pending`\nor `stale` when the document is inside the scope, and `stale`\n(`referenced_changed`) when it is outside.\n","items":{"type":"object","description":"A referenced change: the newest write to a referenced document that changed what a relation renders.\n","required":["relation","document_id","revision","at","deferred"],"properties":{"relation":{"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":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].relation","typeLabel":"string"},"document_id":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].document_id","typeLabel":"string"},"revision":{"type":"integer","format":"int64","minimum":0,"description":"The referenced document's revision at the write.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].revision","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"The write's `updated_at`, which the re-judge scope counts back from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"deferred":{"type":"boolean","description":"The change's fan-out would pass the judgment's rolling limit, so it waits, and its in-scope answers read `stale` (`limit_reached`) until it runs.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].deferred","typeLabel":"boolean"},"generation":{"type":"integer","format":"int64","minimum":0,"description":"Present when another judgment's answer, which the relation reads, caused the change rather than a write. Compare it with the answer's `answers_generation`, as `revision` with its `watermark`; the change is above the answer when either is.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX].generation","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.referenced_changes","typeLabel":"object[]"},"judgment_version":{"type":"integer","format":"int32","minimum":1,"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.judgment_version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.engine","typeLabel":"string"},"engine_version":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.engine_version","typeLabel":"string"},"model_id":{"oneOf":[{"type":"string","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model the provider's response named, exactly as the provider sent it, such as `gpt-6-luna` or a dated snapshot of it. `engine_version` is Brussle's record of behaviour; `model_id` is the provider's own name for what answered. `null` when the response named no model. Absent until an evaluation succeeds.","examples":["gpt-6-luna"],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.model_id","typeLabel":"string | null"},"evaluation_id":{"type":"string","description":"The evaluation that computed these numbers. When a change leaves\nthe compiled context the same, the answer is reused for the new\nrevision without calling the engine, and this still names the\nearlier evaluation, whose `revision` (and, for an entity\njudgment, `watermark`) is older than the answer's.\n","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.evaluation_id","typeLabel":"string"},"evaluated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.evaluated_at","typeLabel":"string\u003cdate-time>"},"thresholds":{"type":"object","description":"The judgment's current thresholds (its setting, not the answer's version), evaluated at read time against the answer's numbers as shown: raw fields, or `p` for a composite or a bool with features.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.thresholds.additionalProperties","typeLabel":"boolean"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.thresholds","typeLabel":"object"},"value":{"type":"array","description":"Exactly `dimensions` numbers, each the shortest decimal that stands for the stored value. A `stale` or `failed` answer keeps its last good value.","items":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.value.items.[INDEX]","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.value","typeLabel":"number[]"},"dimensions":{"type":"integer","minimum":1,"description":"Present with `value`; its length.","uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5.dimensions","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.1.data.answers","typeLabel":"object"},"job_id":{"type":"string","description":"The backfill job, when `cause` is `backfill`.","uniqueKey":"events.items.[INDEX].oneOf.1.data.job_id","typeLabel":"string"},"truncated":{"type":"boolean","description":"True when `attributes` and `answers` were dropped because the event's whole body would have passed 63 KB, which keeps every body under 64 KB.","uniqueKey":"events.items.[INDEX].oneOf.1.data.truncated","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.1.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.1.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"subscription.synced","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.type","typeLabel":"any"},"data":{"type":"object","description":"Membership changed in bulk without an event per document. Re-read the members with the subscription's `query`.","required":["subscription","namespace","reason","job_ids","entered","exited"],"properties":{"subscription":{"type":"object","required":["id","name","defined_on"],"properties":{"id":{"type":"string","pattern":"^sub_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.subscription.id","typeLabel":"string"},"name":{"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":"events.items.[INDEX].oneOf.2.data.subscription.name","typeLabel":"string"},"defined_on":{"type":"string","description":"Where the subscription was created, such as the template prefix `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.subscription.defined_on","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.subscription","typeLabel":"object"},"namespace":{"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":"events.items.[INDEX].oneOf.2.data.namespace","typeLabel":"string"},"reason":{"type":"string","description":"`backfill`, `created` (the first sync in the namespace), `thresholds_changed` (a threshold edit or an activation, or a judgment the filter reads re-judged after a threshold edit on one it reads), or `weights_changed` (a new composite combiner or a new calibration for a judgment with `features`, or a judgment the filter reads re-judged after one).","enum":["backfill","created","thresholds_changed","weights_changed"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.reason","typeLabel":"enum\u003cstring>"},"job_ids":{"type":"array","description":"The backfill jobs, for `backfill`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.2.data.job_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.job_ids","typeLabel":"string[]"},"entered":{"type":"integer","format":"int64","minimum":0,"description":"Documents that started matching.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.entered","typeLabel":"integer\u003cint64>"},"exited":{"type":"integer","format":"int64","minimum":0,"description":"Documents that stopped matching.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data.exited","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.2.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.2.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"job.awaiting_confirm","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.type","typeLabel":"any"},"data":{"type":"object","required":["job","url"],"properties":{"job":{"type":"object","description":"The job as `GET /jobs/{id}` returns it.","required":["id","type","status","namespace","spend_usd","progress","created_at","updated_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.id","typeLabel":"string"},"type":{"type":"string","enum":["backfill","shadow","periodic","namespace_delete","reference_index","evaluation_export","resync","group_build","discover","simulation","judgment_create","judgment_update","backfill_start"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["estimating","awaiting_confirm","running","paused","done","failed","cancelled"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.status","typeLabel":"enum\u003cstring>"},"namespace":{"type":"string","description":"A namespace name, or a template prefix: a namespace path ending in\n`/*`, such as `acme/prod/*`, which every namespace under `acme/prod/`\ninherits judgments from. Up to 256 bytes. Never exactly\n`.` or `..`, which a URL path can't carry.\n","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.namespace","typeLabel":"string"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed by this job so far, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.spend_usd","typeLabel":"number"},"progress":{"type":"object","required":["documents_done"],"properties":{"documents_done":{"type":"integer","format":"int64","minimum":0,"description":"Documents done so far. A `backfill` counts the documents it\nhas judged, and only those in its scope (the judgment's\n`applies_to` and the backfill's `filters`), so the count\nclimbs to `estimate.documents`. It passes over the rest, and\ndocuments the active version has already answered, without\ncounting them.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.progress.documents_done","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.progress","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.updated_at","typeLabel":"string\u003cdate-time>"},"judgment":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.judgment","typeLabel":"string"},"estimate":{"oneOf":[{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimate","typeLabel":"object | null"},"estimated_completion_at":{"oneOf":[{"type":"string","description":"RFC 3339, UTC.","format":"date-time","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimated_completion_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimated_completion_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.estimated_completion_at","typeLabel":"string\u003cdate-time> | null"},"error":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.error.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.error","typeLabel":"string | null"},"attribute":{"oneOf":[{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.attribute.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.attribute.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.attribute","typeLabel":"string | null"},"resync":{"type":"object","description":"Only on `resync` jobs.","required":["thresholds_before","thresholds_after","readers"],"properties":{"thresholds_before":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_before","typeLabel":"object"},"thresholds_after":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.thresholds_after","typeLabel":"object"},"readers":{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.readers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.readers","typeLabel":"string[]"},"cause":{"type":"string","enum":["thresholds","fit"],"description":"What it follows.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync.cause","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.resync","typeLabel":"object"},"group":{"type":"string","description":"Only on `group_build` jobs, the group whose aggregates it computes.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.group","typeLabel":"string"},"proposal":{"oneOf":[{"type":"object","description":"Only on `discover` jobs; null until done.","required":["options","proposed","sampled","escape_documents","unlabelled"],"properties":{"options":{"type":"array","description":"Every option of the proposed version, current ones first.","items":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","minLength":1,"not":{"const":"none_of_the_above"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.options.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.options.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.options.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.options","typeLabel":"object[]"},"proposed":{"type":"array","items":{"type":"object","required":["value","description","absorbs","sample_ids"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX].description","typeLabel":"string"},"absorbs":{"type":"integer","minimum":0,"description":"Sampled escape documents the proposed version answered with this option.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX].absorbs","typeLabel":"integer"},"sample_ids":{"type":"array","description":"The sampled documents the model said this option covers.","items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids","typeLabel":"string[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.proposed","typeLabel":"object[]"},"sampled":{"type":"integer","minimum":0,"maximum":200,"description":"Escape documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.sampled","typeLabel":"integer"},"escape_documents":{"type":"integer","format":"int64","minimum":0,"description":"Escape documents in the window, sampled or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.escape_documents","typeLabel":"integer\u003cint64>"},"unlabelled":{"type":"integer","minimum":0,"description":"Sampled documents the proposed version still answered `none_of_the_above`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0.unlabelled","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `discover` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.proposal","typeLabel":"object | null"},"simulation":{"oneOf":[{"type":"object","description":"Only on `simulation` jobs; null until done.","required":["population","sampled","thresholds","noise","without_stored_answer","examples","excluded","fanout","larger_sample"],"properties":{"population":{"type":"integer","format":"int64","minimum":0,"description":"In-scope judged documents that point at the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.population","typeLabel":"integer\u003cint64>"},"sampled":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.sampled","typeLabel":"integer"},"thresholds":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to its answer under the proposed document, as a write compares them; from its answer under the current document when it has no stored answer. The interval is the sample's, widened on each side by `noise`'s estimate.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.thresholds","typeLabel":"object"},"noise":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to a new answer under the current document, with nothing changed. The engine's own variation; a write judges again, so about this many of its flips are noise. Measured on the documents with a stored answer; the interval is the sample's.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.noise","typeLabel":"object"},"without_stored_answer":{"type":"integer","minimum":0,"description":"Documents judged both ways with no stored answer from the active version. Their flips compare the two new answers, and `noise` leaves them out.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.without_stored_answer","typeLabel":"integer"},"examples":{"type":"array","description":"Sampled documents that flipped, up to 20.","maxItems":20,"items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.examples.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.examples","typeLabel":"string[]"},"excluded":{"type":"object","description":"Sampled documents left out, by reason.","properties":{"failed":{"type":"integer","minimum":0,"description":"Either evaluation failed.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.excluded.failed","typeLabel":"integer"},"out_of_scope":{"type":"integer","minimum":0,"description":"Gone by the time it was evaluated, such as deleted since it was sampled.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.excluded.out_of_scope","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.excluded","typeLabel":"object"},"fanout":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout.downstream","typeLabel":"object[]"}},"description":"The real fan-out if the document were written so, priced like a backfill of the in-scope documents.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.fanout","typeLabel":"object"},"larger_sample":{"oneOf":[{"type":"integer","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.larger_sample.oneOf.0","typeLabel":"integer"},{"type":"null","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.larger_sample.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0.larger_sample","typeLabel":"integer | null"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `simulation` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.simulation","typeLabel":"object | null"},"version":{"type":"integer","format":"int32","minimum":1,"description":"Shadow jobs only. The version being activated.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.version","typeLabel":"integer\u003cint32>"},"report":{"oneOf":[{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["documents","current","candidate","threshold_flips","recompute"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"description":"Documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"current":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.current","typeLabel":"object"},"candidate":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.candidate","typeLabel":"object"},"threshold_flips":{"type":"object","description":"Per named threshold, the sampled documents whose threshold boolean\nwould change. The candidate side uses the thresholds that apply\nonce the version is active.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","required":["to_true","to_false"],"properties":{"to_true":{"type":"integer","format":"int64","minimum":0,"description":"Documents false under the active version and true under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_true","typeLabel":"integer\u003cint64>"},"to_false":{"type":"integer","format":"int64","minimum":0,"description":"Documents true under the active version and false under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_false","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.threshold_flips.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.threshold_flips","typeLabel":"object"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.recompute","typeLabel":"object"},"downstream":{"type":"array","description":"What activating the version costs the judgments that read its answers, from the sample's band and cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.downstream","typeLabel":"object[]"},"calibration_replay":{"oneOf":[{"type":"object","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","required":["outcomes","tokens","row_units","judgment_units","cost_usd"],"properties":{"outcomes":{"type":"integer","format":"int64","minimum":0,"description":"Outcomes whose answers' contexts would be replayed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"description":"The tokens the new engine would read, each context and the question.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times the new engine's multiple; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times the new engine's weight; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What it would cost you, at the graduated prices of the tiers your organization is in now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0.cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.calibration_replay","typeLabel":"object | null"},"alternative":{"type":"object","description":"When the candidate was created from an alternative (`createVersionFromAlternative`), the outcomes' verdict on it then. Absent otherwise.","required":["id","verdict","change","k","drafted"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.id","typeLabel":"string"},"verdict":{"type":"string","enum":["better","no_worse","worse","untested","unscored"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.verdict","typeLabel":"enum\u003cstring>"},"change":{"oneOf":[{"type":"object","required":["log_loss","auroc","accuracy"],"properties":{"log_loss":{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss","typeLabel":"object"},"auroc":{"oneOf":[{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc","typeLabel":"object | null"},"accuracy":{"type":"number","description":"Accuracy, alternative minus version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0.accuracy","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.change","typeLabel":"object | null"},"k":{"type":"integer","minimum":0,"description":"How many alternatives the verdict was corrected for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.k","typeLabel":"integer"},"drafted":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative.drafted","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0.alternative","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.0","typeLabel":"object"},{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["type","documents","labels","composite","baseline","difference","parts","verdict","recompute"],"properties":{"type":{"const":"composite","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.type","typeLabel":"any"},"documents":{"type":"integer","format":"int64","minimum":0,"description":"Labelled documents judged and scored.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.documents","typeLabel":"integer\u003cint64>"},"labels":{"type":"object","description":"The documents by their outcome.","required":["true","false"],"properties":{"true":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.labels.true","typeLabel":"integer\u003cint64>"},"false":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.labels.false","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.labels","typeLabel":"object"},"composite":{"type":"object","description":"Held-out scores over the report's documents.","required":["accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite.auc","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.composite","typeLabel":"object"},"baseline":{"type":"object","description":"The fair baseline, scored like the composite. The active version (`version`), or for a first version the composite's `question` asked on its own (`version` null).","required":["version","threshold","accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.auc","typeLabel":"number"},"version":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.version.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.version","typeLabel":"integer\u003cint32> | null"},"threshold":{"oneOf":[{"type":"number","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","maximum":1,"minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.threshold.oneOf.0","typeLabel":"number"},{"type":"null","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.threshold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline.threshold","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.baseline","typeLabel":"object"},"difference":{"type":"object","description":"The composite's held-out accuracy minus the baseline's, with its 95% interval over the documents (paired).","required":["accuracy","interval"],"properties":{"accuracy":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.difference.accuracy","typeLabel":"number"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.difference.interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.difference.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.difference.interval","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.difference","typeLabel":"object"},"parts":{"type":"array","description":"Each part's weight in the combiner fitted on all the documents, on a common scale, so sizes compare. A negative weight means a yes points to `false`.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.parts.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.parts.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.parts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.parts","typeLabel":"object[]"},"verdict":{"type":"string","enum":["better","not_better"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.verdict","typeLabel":"enum\u003cstring>"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate, on the new version's engine at its weight. The parts share one request, where the first counts in full and each other a quarter or more.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.recompute","typeLabel":"object"},"features":{"type":"array","description":"Each feature's weight in the same fit, on the same scale as the parts'.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.features.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.features.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.features.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1.features","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.1","typeLabel":"object"},{"type":"null","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report.oneOf.2","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.report","typeLabel":"object · object · null"},"backfill_job_id":{"oneOf":[{"type":"string","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.backfill_job_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.backfill_job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.backfill_job_id","typeLabel":"string | null"},"export":{"type":"object","description":"`evaluation_export` jobs only: the range, the evaluations written, and once done the download links.","required":["since","until","judgments","evaluations","files","expires_at","links_unavailable"],"properties":{"since":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.since","typeLabel":"string\u003cdate-time>"},"until":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.until","typeLabel":"string\u003cdate-time>"},"judgments":{"oneOf":[{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.judgments.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.judgments.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.judgments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.judgments","typeLabel":"string[] | null"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations written so far, the same as `progress.documents_done`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.evaluations","typeLabel":"integer\u003cint64>"},"files":{"type":"array","items":{"type":"object","description":"One gzipped JSON Lines file of an evaluation export.","required":["url","url_expires_at","evaluations","bytes"],"properties":{"url":{"oneOf":[{"type":"string","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","format":"uri","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url","typeLabel":"string\u003curi> | null"},"url_expires_at":{"oneOf":[{"type":"string","description":"When `url` stops working; null with it.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When `url` stops working; null with it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].url_expires_at","typeLabel":"string\u003cdate-time> | null"},"evaluations":{"type":"integer","format":"int64","minimum":1,"description":"Lines in the file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].evaluations","typeLabel":"integer\u003cint64>"},"bytes":{"type":"integer","format":"int64","minimum":1,"description":"The file's size, compressed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX].bytes","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.files","typeLabel":"object[]"},"expires_at":{"oneOf":[{"type":"string","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.expires_at","typeLabel":"string\u003cdate-time> | null"},"links_unavailable":{"oneOf":[{"type":"string","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.links_unavailable.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.links_unavailable.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export.links_unavailable","typeLabel":"string | null"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.export","typeLabel":"object"},"result":{"oneOf":[{"type":"object","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","required":["status","body"],"properties":{"status":{"type":"integer","minimum":200,"maximum":599,"description":"The HTTP status the request would have had.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.status","typeLabel":"integer"},"body":{"oneOf":[{"type":"object","required":["name","version","active","warnings","path","definition"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.name","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.version","typeLabel":"integer\u003cint32>"},"path":{"type":"string","description":"Whose account the version runs on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.path","typeLabel":"enum\u003cstring>"},"active":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.active","typeLabel":"boolean"},"warnings":{"type":"array","description":"Non-fatal problems, such as sending the whole `state`, a recipe suggested for you, no `applies_to` (the judgment judges, and bills, every document written to the namespace), a definition that names image paths (`images.\u003cname>`) on an engine that reads no images (decided from the definition alone, so it comes also before any document is written), a relation that renders a referenced document's `updated_at`, which changes on every write to it and so fans out every time, or a relation with an `order`, which reads up to 1,000 documents per judged document to sort them (the warning names the factor), can re-select on a write to the ordered field, may have judged documents with more matching documents than it sorts, or sorts by a long text field. A relation whose `match` selects documents by another judgment's answer is also warned, since it never reads a document whose answer is wrong, or whose change removes what that answer found, so select by topic (a judgment that asks whether a document is about the subject, including changing or removing it) and calibrate on outcomes so its numbers, and thresholds on them, mean what they say.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.warnings","typeLabel":"string[]"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.definition","typeLabel":"object"},"outcomes":{"type":"object","description":"From a starter with a suggested outcome setting only.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes.message","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.outcomes","typeLabel":"object"},"job_id":{"type":"string","description":"The first of `job_ids`, kept for clients written before `job_ids`. Read `job_ids` to see every job.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.job_id","typeLabel":"string"},"job_ids":{"type":"array","minItems":1,"description":"The `reference_index` jobs that build the indexes this version's relations need, one per attribute with no index yet, or whose index must be rebuilt to cover this version's documents (another `match`, or the attribute used the other way round), so two when it joins on two new attributes. Present exactly when `job_id` is. Until every job is done, the version's answers are `unavailable`, or `pending` for documents written since that an `on_change` judgment judges once the jobs are done.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.job_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0.job_ids","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.0","typeLabel":"object"},{"type":"object","description":"What a create would make, and what it would cost.\nNothing was created, written or billed.\n","required":["dry_run","path","definition","warnings","cost_per_answer","sampled_documents","estimate","replay","outcomes"],"properties":{"dry_run":{"const":true,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.dry_run","typeLabel":"any"},"path":{"type":"string","description":"Whose account the version would run on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.path","typeLabel":"enum\u003cstring>"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.definition","typeLabel":"object"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.warnings","typeLabel":"string[]"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.sampled_documents","typeLabel":"integer"},"estimate":{"oneOf":[{"type":"object","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0","typeLabel":"object"},{"type":"null","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.estimate","typeLabel":"object | null"},"replay":{"oneOf":[{"type":"object","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.replay","typeLabel":"object | null"},"outcomes":{"oneOf":[{"type":"object","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0","typeLabel":"object"},{"type":"null","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1.outcomes","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.1","typeLabel":"object"},{"type":"object","description":"An unconfirmed create of an entity judgment that runs `on_change`. Nothing was created.","required":["replay"],"properties":{"replay":{"type":"object","description":"What an entity judgment would cost a month, from the\nnamespace's last 30 days of writes run through its relations,\ndebounce and ceiling rules. The replay cannot see every edit to a\nrelated document, only its creation, its latest write and the\ndeletes still recorded: exact for documents written once, and for\noften-edited documents the figures are a lower bound\n(`lower_bound`). It does not count the evaluations an unchanged context saves, which only lower the bill.\n","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.replay","typeLabel":"object"},"fanout":{"type":"object","description":"For a judgment with a relation: the rolling limit\n`confirm: true` sets, from `freshness.fanout` in the request or the\ndefault of 300,000, and what it costs if used in full. Work past it is\ndeferred at runtime, never put to you again. Set\n`freshness.fanout.rolling_limit` to `null` to confirm with no limit:\nevery change then re-judges every in-scope document, with no\ndeferral, and only the namespace's budget caps what fan-out\nspends.\n","required":["rolling_limit","cost_usd_at_limit"],"properties":{"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"cost_usd_at_limit":{"oneOf":[{"type":"number","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.fanout","typeLabel":"object"},"warnings":{"type":"array","description":"Non-fatal problems the confirmed create would also return, present only when there are some, such as a relation with an `order` whose judged documents already have more than the 1,000 matching documents it sorts.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.warnings","typeLabel":"string[]"},"graph_ceiling":{"oneOf":[{"type":"object","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","required":["cost_usd","judgments"],"properties":{"cost_usd":{"type":"number","minimum":0,"description":"The sum of `judgments`' costs, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.cost_usd","typeLabel":"number"},"judgments":{"type":"array","description":"This judgment first, then each judgment that reads its answers.","items":{"type":"object","required":["judgment","rolling_limit","cost_usd"],"properties":{"judgment":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].judgment","typeLabel":"string"},"rolling_limit":{"type":"integer","format":"int64","minimum":0,"description":"Its compiles allowed in any 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].rolling_limit","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What that many compiles cost, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0","typeLabel":"object"},{"type":"null","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling","typeLabel":"object | null"},"graph_ceiling_unlimited":{"type":"array","description":"Present when `graph_ceiling` is null. The judgments among them whose `rolling_limit` is null.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.2","typeLabel":"object"},{"type":"object","required":["judgment"],"properties":{"judgment":{"type":"object","required":["name","active_version","path","freshness","thresholds","outcomes","judged_through","versions"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.name","typeLabel":"string"},"path":{"type":"string","description":"Whose account the active version runs on; the latest version's once the judgment is deactivated. Brussle never moves a judgment between the two; a version on the other engine, activated, does.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.path","typeLabel":"enum\u003cstring>"},"active_version":{"type":"any","description":"Null once the judgment is deactivated.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.active_version","typeLabel":"any"},"judged_through":{"type":"any","description":"How far the judgment has judged this namespace's writes, as a\nrevision. Every write whose `revision` is at or below it is done for\nthis judgment: each document whose answer it affects has its answer,\nor its final attempt failed, or is one the judgment does not judge\n(outside `applies_to`, outside the fan-out's scope of a change to a\ndocument it reads, or already there when the judgment was created and\nwaiting for a backfill). Compare it with the `revision` your last write returned:\nonce it is at or above that, the judgment has finished with the write\nand every write before it.\n\nA write the judgment has not finished with keeps it below that write,\nwhatever the reason: being judged, waiting for its debounce or for\nthe engine, judging paused, or no room in the rolling limit. The\nanswers' `freshness` and `stale_reason` say which. For a judgment\nwith a relation, a write to a document it reads keeps it below that\nwrite until the documents that read it are judged again. For a\njudgment whose relations read other judgments' answers (a roll-up,\na judged link), a write keeps it below that write until each\njudgment it reads, down the chain, has finished with the write, and\nthis judgment has judged again the documents whose answers it read\nchanged. It can trail the answers by a moment, and never runs ahead\nof them.\n\nNull when no revision can say this: the judgment has no active\nversion, or its policy is not `on_change` (nothing judges writes as\nthey arrive). It can also be null for a short time after an upgrade\nof Brussle, until the judgment has finished the work it had waiting.\nA strong `query` for a `pending` answer works for every judgment.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.judged_through","typeLabel":"any"},"freshness":{"type":"object","description":"Settings, not part of the definition. Changing them creates no version.","additionalProperties":false,"properties":{"policy":{"type":"string","description":"`on_read` (default) computes on first read, then caches until the\ndocument changes; it cannot be used in a query filter or rank.\n`on_change` recomputes whenever a document changes, the policy for a\njudgment filtered or ranked on. `periodic` recomputes every\n`interval`. `manual` is backfill only. A query can filter and rank on\n`on_change`, `periodic` and `manual` answers, as stored.\n","enum":["on_read","on_change","periodic","manual"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.policy","typeLabel":"enum\u003cstring>"},"debounce_ms":{"type":"integer","minimum":0,"default":0,"description":"A document changed more recently than this is not judged until it settles. Defaults to 0, and to 600000 (10 minutes) for a judgment created with `features`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.debounce_ms","typeLabel":"integer"},"interval":{"type":"string","description":"Recompute interval for `periodic`, such as `1h` or `1d`. At least `1h`, because each run re-judges the whole namespace; a shorter one is `invalid_request`.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{"when":[[{"property":"policy","values":["periodic"]}]]}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.interval","typeLabel":"string"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms","typeLabel":"integer | null"},"wait_for_children":{"type":"boolean","default":false,"description":"For a judgment whose relations read other judgments' answers.\nWhile an answer that a relation reads is `pending`, the document\nwaits and is judged once those answers land, so a load of\nrelated documents costs one evaluation of the document, not one\nbefore and one after their answers. It does not wait for an\nanswer that reads `stale` (`limit_reached` or `judging_paused`),\n`failed` or `unavailable`, since none of these is on its way. The\nwait is at most `max_wait_ms` from the document's oldest unjudged\nchange, or 10 minutes when no ceiling is in effect; then the\ndocument is judged with the answers it has. A judgment that reads\nno answers refuses `true` with `invalid_request`. `GET` returns it\nfor every judgment that reads answers.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.wait_for_children","typeLabel":"boolean"},"fanout":{"type":"object","description":"For a judgment with a relation that reads a referenced document, or a blocking relation: which judged documents a change re-judges, and when. Only a\nchange to what the relation renders counts. Every key is optional in\na request, and `GET` returns every value in effect for a judgment\nthat can fan out. In a `PATCH`, the keys you send replace those keys\nand the others keep their values.\n\n`rolling_limit` applies to every judgment with a relation, roll-ups\nincluded, since another judgment's answer moving re-judges it too:\nfor a judgment with relations that cannot fan out, `GET` returns\n`rolling_limit` alone.\n\nNo re-judge waits for a confirm. You confirm the rolling\nlimit once, when you create the judgment; work that would pass\nit, or a block past `block_cap`, is deferred, its answers read\n`stale` (`limit_reached`) with a `judgment.limit_reached` event, and\nit runs once the window has room or a `PATCH` raises the limit. As\nmuch of a change as the window has room for runs, at most 1,000\nre-judges at a time, and only the rest waits.\n","additionalProperties":false,"minProperties":1,"properties":{"scope":{"type":"object","description":"The re-judge scope: which judged documents a\nchange to a referenced document at log position c re-judges. At the\nfan-out's snapshot, a judged document is in scope when it points at\nthe referenced document, matches `applies_to` and `where`, and was\ncreated no more than `created_within` before the write at c. A judged\ndocument outside the scope is not re-judged: its answer reads `stale`\nwith `stale_reason` `referenced_changed` until the document is judged\nagain, and its `watermark` says which version of the referenced\ndocument it read.\n","additionalProperties":false,"minProperties":1,"properties":{"created_within":{"type":"any","description":"Only judged documents created no more than this long before the change. `null` means all of them. Defaults to `30d`.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.created_within","typeLabel":"any"},"where":{"type":"any","description":"Narrows the scope to judged documents whose attributes match, such as `{\"attributes.status\": \"open\"}`. `null` removes it. None by default.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.where","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope","typeLabel":"object"},"debounce_ms":{"type":"integer","minimum":0,"default":600000,"description":"A referenced document that changed more recently than this is not fanned out until it settles, so a burst of changes to it costs one fan-out. Counts changes to what the relation renders, per referenced document (per block). The judgment's own `debounce_ms` still governs the judged documents' own writes.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.debounce_ms","typeLabel":"integer"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms","typeLabel":"integer | null"},"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"block_cap":{"type":"integer","format":"int64","minimum":1,"default":1000,"description":"For a blocking relation. The most judged documents one key value's block may hold. At create, a key value over it is `invalid_request`; a block that grows past it later is deferred, its answers `stale` (`limit_reached`) with a `judgment.limit_reached` event naming the key value, until the cap is raised.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.block_cap","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout","typeLabel":"object"},"budget":{"type":"any","description":"The most engine calls the judgment may make in a UTC day or in\nthe organization's billing period. A call is one document\nsent to the engine for this judgment, its retries included. A\nwrite that changes nothing the judgment reads, shadow samples\nand repairs are not calls. Past the budget, nothing more is\nsent or billed for the judgment: a changed document keeps its\nlast answer, which reads `stale` (`budget_reached`), a document\nnever judged reads `unavailable`, and one\n`judgment.budget_reached` event is sent. Judging resumes on its\nown when the period ends, oldest change first, or within seconds\nof a `PATCH` that raises the budget. With more than one worker\njudging the namespace at once, up to 16 calls per other worker\nmay go past it. In a `PATCH`, `null` removes the budget. A new\nversion keeps it. On a template, each namespace counts its own\ncalls. `budget_window` on `GET` shows the calls so far.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.budget","typeLabel":"any"}},"conditionallyRequiredProperties":{"interval":[{"when":[[{"property":"policy","values":["periodic"]}]]}]},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness","typeLabel":"object"},"thresholds":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds","typeLabel":"object"},"outcomes":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes","typeLabel":"object"},"versions":{"type":"array","description":"Every version, oldest first. Versions are kept until the namespace is deleted.","items":{"type":"object","required":["version","created_at","path","definition"],"properties":{"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"path":{"type":"string","description":"Whose account this version runs on, from its engine.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].path","typeLabel":"enum\u003cstring>"},"definition":{"type":"any","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].definition","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.versions","typeLabel":"object[]"},"calibration":{"type":"object","description":"The calibration setting. Always present on a judgment read from a current deployment; `mode` is `auto` until a pin is set.","required":["mode","pins"],"properties":{"mode":{"type":"string","enum":["auto","pinned","not_applicable"],"description":"`auto`: answers read the newest run's fit for their version and epoch. `pinned`: at least one version and epoch reads a pinned fit. `not_applicable`: a `text`, `json` or `embedding` judgment, whose answers carry no number to correct; its `pins` are empty and cannot be set.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.mode","typeLabel":"enum\u003cstring>"},"pins":{"type":"array","items":{"type":"object","description":"A pinned fit: answers of `version` in epoch `engine_version` read it\ninstead of the newest run's, whether or not a later fit would have\ndone better, until the pin is lifted. A pin never reaches another\nepoch: after an engine drift the new epoch reads its own fits, and\nthe pinned one only as the previous epoch's while it has none\n(`from_previous_epoch`).\n","required":["run","version","engine","engine_version","fit","pinned_at"],"properties":{"run":{"type":"string","description":"The run the fit was pinned from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].run","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine","typeLabel":"string"},"engine_version":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine_version","typeLabel":"string"},"fit":{"type":"string","description":"The fit's id when it was pinned.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].fit","typeLabel":"string"},"pinned_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].pinned_at","typeLabel":"string\u003cdate-time>"},"suspended":{"type":"string","enum":["older_preprocessing"],"description":"Present when the pin no longer applies and the version and epoch read as `auto`: `older_preprocessing`, the pinned fit reads the features as Brussle stored them before a change to how they are stored, so it cannot be read now. Pin a fit made since, or lift the pin.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].suspended","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration","typeLabel":"object"},"alternatives":{"type":"object","description":"The alternatives setting; absent while it is the default (`automatic` off, no engine skipped).","additionalProperties":false,"properties":{"automatic":{"type":"boolean","description":"Start the alternatives run by itself after a fit, at most monthly, at most 10 alternatives on 500 labelled answers, billed as judging. Off by default.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.automatic","typeLabel":"boolean"},"skip_engines":{"type":"array","description":"Engines not to score as automatic alternatives.","items":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives","typeLabel":"object"},"template":{"type":"string","description":"Present when the judgment is inherited, the template prefix it comes from, such as `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.template","typeLabel":"string"},"overrides":{"type":"array","description":"Present when the judgment is inherited. The settings this namespace overrides; the others follow the template.","uniqueItems":true,"items":{"type":"string","enum":["thresholds","freshness"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides","typeLabel":"enum\u003cstring>[]"},"fanout_sources":{"type":"object","description":"Where each value in `freshness.fanout` comes from, key for key. Present exactly when `freshness.fanout` is, with the same keys: `rolling_limit` alone for a judgment with relations that cannot fan out. A\n`where` removed with `null` is the default, no filter; any other\n`null` the judgment set, such as `created_within: null`, is the\njudgment's.\n","required":["rolling_limit"],"properties":{"rolling_limit":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.rolling_limit","typeLabel":"enum\u003cstring>"},"scope":{"type":"object","required":["created_within","where"],"properties":{"created_within":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.created_within","typeLabel":"enum\u003cstring>"},"where":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.where","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope","typeLabel":"object"},"debounce_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.debounce_ms","typeLabel":"enum\u003cstring>"},"max_wait_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.max_wait_ms","typeLabel":"enum\u003cstring>"},"block_cap":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.block_cap","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources","typeLabel":"object"},"fanout_window":{"type":"object","description":"Response only. How much of\n`freshness.fanout.rolling_limit` the judgment has used: the\nre-judgments counted in the rolling 30-day window, each counted once\nwhen its answer lands. Present exactly when `freshness.fanout` is,\nso on every judgment with a relation. Work that would take `used`\npast the limit waits, deferred.\n","required":["used","rolls_at"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment re-judged in the last 30 days because of changes to referenced documents and blocks and the answers it reads moving.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.used","typeLabel":"integer\u003cint64>"},"rolls_at":{"type":"any","description":"When the window next rolls past a day that counts, freeing its re-judgments; null when nothing counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.rolls_at","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window","typeLabel":"object"},"budget_window":{"type":"object","description":"Response only. The judgment's engine calls in the period its\n`freshness.budget` counts, whether the budget is reached, and the\nlast 7 days with a month projected from them, so a budget can be\nchosen before it is set. Present on every judgment.\n","required":["used","period_start","period_end","reached_at","resumes_at","last_7_days","projected_month"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Engine calls in the period, counted as their answers land. With no budget, the calls of the UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.used","typeLabel":"integer\u003cint64>"},"period_start":{"type":"string","format":"date","description":"The first day of the period counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of the period counted. The next period starts at 00:00 UTC the day after it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_end","typeLabel":"string\u003cdate>"},"reached_at":{"type":"any","description":"When the calls reached the budget in this period; null while they have not, or once a raise made room.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.reached_at","typeLabel":"any"},"resumes_at":{"type":"any","description":"While the budget is reached, when the period ends and judging resumes on its own; otherwise null.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.resumes_at","typeLabel":"any"},"last_7_days":{"type":"object","required":["days","since","calls"],"properties":{"days":{"type":"integer","minimum":1,"maximum":7,"description":"The days counted, today included. Fewer than 7 for a judgment that made its first call less than 7 days ago.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.days","typeLabel":"integer"},"since":{"type":"string","format":"date","description":"The first day counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.since","typeLabel":"string\u003cdate>"},"calls":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.calls","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days","typeLabel":"object"},"projected_month":{"type":"any","description":"A 30-day month at the rate of `last_7_days`. Null until the judgment has made calls for one full UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.projected_month","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window","typeLabel":"object"},"escape_alert":{"type":"any","description":"A setting of a fixed-option `choice`: when the\nshare of its answers over the last 7 days that are\n`none_of_the_above` rises above this, the judgment gains the\n`taxonomy_drift` warning and the events feed one\n`judgment.taxonomy_drift`. Null (the default) turns it off. Nothing\nchanges on its own: run `discover` when you want proposals.\n","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.escape_alert","typeLabel":"any"},"warnings":{"type":"array","description":"Conditions to act on, such as `taxonomy_drift`. Absent when there are none.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings","typeLabel":"object[]"},"readers":{"type":"array","description":"The judgments whose relations read this one's answers. While there are any, a change that would break them is `conflict` naming them in `details.readers`. That is deleting or deactivating it, a policy other than `on_change`, a fan-out scope on a judgment that reads a referenced document or a block, removing a threshold a reader names, or a version that is a composite with parts or chooses among candidates (unless the reader only counts whether the value is `none_of_the_above`), whose answers lack a part a reader reads, that narrows `applies_to` below a reader's `match`, or that would make a reader read more than three deep (`details.chain` is the chain). For a judgment read through judged links, it is also a version that no longer chooses among candidates, or whose candidates share another key attribute. Absent when there are none.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.readers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.readers","typeLabel":"string[]"},"upstream":{"type":"array","description":"Each chain of judgments this one reads the answers of, from the one it reads first down to one that reads none, with their debounces summed. That is roughly how long a change at the end of the chain takes to reach this judgment, before its own debounce. Absent when it reads no answers.","items":{"type":"object","required":["path","debounce_ms"],"properties":{"path":{"type":"array","minItems":1,"maxItems":3,"items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path","typeLabel":"string[]"},"debounce_ms":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].debounce_ms","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream","typeLabel":"object[]"},"stats":{"type":"object","description":"Today's evaluations of the judgment in this namespace, UTC. The dashboard's per-judgment numbers. Before the day's\nfirst evaluation only `day`, `evaluations` (0) and `spend_usd` (0)\nare present.\n","required":["day","evaluations","spend_usd"],"properties":{"day":{"type":"string","format":"date","description":"Today, UTC, as `yyyy-mm-dd`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.day","typeLabel":"string\u003cdate>"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations recorded today, successful or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.evaluations","typeLabel":"integer\u003cint64>"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed today, in US dollars, at your judgment prices.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.spend_usd","typeLabel":"number"},"tokens_per_document":{"oneOf":[{"type":"number","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document","typeLabel":"number | null"},"truncation_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate","typeLabel":"number | null"},"relations_capped_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate","typeLabel":"number | null"},"error_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate","typeLabel":"number | null"},"freshness_lag_p90_ms":{"oneOf":[{"type":"number","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.stats","typeLabel":"object"},"engine_status":{"type":"object","description":"The engine the active version runs on, as its new answers record it:\nwhich key it runs on, the epoch and model id new answers carry, how\nBrussle watches it for a change of behaviour, and a retirement its\nprovider announced. A part Brussle cannot read at the moment is\n`null`.\n","required":["engine","slot","engine_version","model_id","watch","retires_at","successor"],"properties":{"engine":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine","typeLabel":"object"},"slot":{"type":"any","description":"`included` for an engine Brussle provides; `namespace` or `org` for a model on your own key, by which key the namespace uses; `null` when no key reaches it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.slot","typeLabel":"any"},"engine_version":{"oneOf":[{"type":"string","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.0","typeLabel":"string"},{"type":"null","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version","typeLabel":"string | null"},"model_id":{"oneOf":[{"type":"string","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id","typeLabel":"string | null"},"watch":{"type":"any","description":"How changes are seen; `null` when the engine is not watched yet.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.watch","typeLabel":"any"},"retires_at":{"type":"any","description":"The first day, in UTC, on which the engine is not served, as its provider announced; `null` when none is announced.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.retires_at","typeLabel":"any"},"successor":{"type":"any","description":"The replacement the provider names for a retiring engine; `null` when there is none.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.successor","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.judgment","typeLabel":"object"},"job_id":{"type":"string","description":"The backfill started by a confirmed switch to `on_change`, or the `resync` job a confirmed threshold change or pin started.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.job_id","typeLabel":"string"},"downstream":{"type":"array","description":"With a confirmed threshold change that readers' relations name, or a confirmed pin on a judgment with `features`, what it costs each reader.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.3","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.4","typeLabel":"object"},{"type":"object","description":"A change that moves what other judgments read, sent\nwithout `confirm`: a threshold readers' relations name, a\npin or a promote on a judgment with `features` that other judgments\nread, or a tenant summary's groups or bands. Nothing changed. Send it again\nwith `confirm: true`.\n","required":["downstream"],"properties":{"downstream":{"type":"array","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.5","typeLabel":"object"},{"type":"object","description":"Turning `alternatives.automatic` on needs `confirm`; this is the quote of a full run, and nothing changed.","required":["alternatives_quote"],"properties":{"alternatives_quote":{"type":"object","description":"What scoring the unscored engine and named alternatives would bill,\npriced before anything runs, and the smallest gain the labels could\nshow. Each answered call is billed as judging: its size class times\nits engine's weight, at the graduated prices of the tiers your\norganization is in now.\n","required":["status","labels","alternatives","row_units","judgment_units","tokens","cost_usd","detectable","new_providers","upstream"],"properties":{"status":{"type":"string","enum":["ready","quoting"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.status","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"description":"Labelled answers each alternative would be scored on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.labels","typeLabel":"integer"},"alternatives":{"type":"array","items":{"type":"object","required":["id","contexts","labels","tokens","row_units","judgment_units","cost_usd","new_provider"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].id","typeLabel":"string"},"contexts":{"type":"string","enum":["stored","narrowed","live"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].contexts","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].labels","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].tokens","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the alternative's scoring would bill, at its engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].cost_usd","typeLabel":"number"},"new_provider":{"type":"boolean","description":"Its engine is one this namespace has not used; confirming sends the labelled contexts to its provider.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].new_provider","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives","typeLabel":"object[]"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the run would bill, at each alternative's engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.judgment_units","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.tokens","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.cost_usd","typeLabel":"number"},"detectable":{"type":"object","description":"The smallest gain this run could call `better` on these labels with this many alternatives; smaller gains read `no_worse`.","required":["log_loss","auroc","k"],"properties":{"log_loss":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.log_loss","typeLabel":"number"},"auroc":{"oneOf":[{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc","typeLabel":"number | null"},"k":{"type":"integer","minimum":1,"description":"The alternatives it corrects for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.k","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable","typeLabel":"object"},"new_providers":{"type":"array","description":"Engines that would receive this namespace's labelled contexts for the first time, `name version`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers","typeLabel":"string[]"},"upstream":{"type":"array","description":"The backfill a `live` recipe needs first, when it selects by another judgment's answer. Never run by this run.","items":{"type":"object","required":["alternative","judgment","documents","row_units","judgment_units","cost_usd"],"properties":{"alternative":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].alternative","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment","typeLabel":"string"},"documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].documents","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the upstream backfill would bill.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream","typeLabel":"object[]"},"generation":{"type":"integer","minimum":0,"description":"Which quote this is; it moves whenever the alternatives, the outcomes or the engines in use change. Send it as `quote_generation` to confirm exactly this quote.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.generation","typeLabel":"integer"},"computed_at":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.computed_at","typeLabel":"any"},"reason":{"oneOf":[{"type":"string","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.6","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.7","typeLabel":"object"},{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.8.job_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.8","typeLabel":"object"},{"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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body.oneOf.9","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0.body","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.result","typeLabel":"object | null"},"warnings":{"type":"array","description":"Only in the response of the activation that started a shadow job, such as `images_unread`. Absent when there are none, and on `GET /jobs/{id}`.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.3.data.job.warnings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.job","typeLabel":"object"},"url":{"type":"string","format":"uri","description":"That route.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.3.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.3.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"job.completed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.type","typeLabel":"any"},"data":{"type":"object","required":["job","url"],"properties":{"job":{"type":"object","description":"The job as `GET /jobs/{id}` returns it.","required":["id","type","status","namespace","spend_usd","progress","created_at","updated_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.id","typeLabel":"string"},"type":{"type":"string","enum":["backfill","shadow","periodic","namespace_delete","reference_index","evaluation_export","resync","group_build","discover","simulation","judgment_create","judgment_update","backfill_start"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["estimating","awaiting_confirm","running","paused","done","failed","cancelled"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.status","typeLabel":"enum\u003cstring>"},"namespace":{"type":"string","description":"A namespace name, or a template prefix: a namespace path ending in\n`/*`, such as `acme/prod/*`, which every namespace under `acme/prod/`\ninherits judgments from. Up to 256 bytes. Never exactly\n`.` or `..`, which a URL path can't carry.\n","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.namespace","typeLabel":"string"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed by this job so far, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.spend_usd","typeLabel":"number"},"progress":{"type":"object","required":["documents_done"],"properties":{"documents_done":{"type":"integer","format":"int64","minimum":0,"description":"Documents done so far. A `backfill` counts the documents it\nhas judged, and only those in its scope (the judgment's\n`applies_to` and the backfill's `filters`), so the count\nclimbs to `estimate.documents`. It passes over the rest, and\ndocuments the active version has already answered, without\ncounting them.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.progress.documents_done","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.progress","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.updated_at","typeLabel":"string\u003cdate-time>"},"judgment":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.judgment","typeLabel":"string"},"estimate":{"oneOf":[{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimate","typeLabel":"object | null"},"estimated_completion_at":{"oneOf":[{"type":"string","description":"RFC 3339, UTC.","format":"date-time","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimated_completion_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimated_completion_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.estimated_completion_at","typeLabel":"string\u003cdate-time> | null"},"error":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.error.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.error","typeLabel":"string | null"},"attribute":{"oneOf":[{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.attribute.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.attribute.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.attribute","typeLabel":"string | null"},"resync":{"type":"object","description":"Only on `resync` jobs.","required":["thresholds_before","thresholds_after","readers"],"properties":{"thresholds_before":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_before","typeLabel":"object"},"thresholds_after":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.thresholds_after","typeLabel":"object"},"readers":{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.readers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.readers","typeLabel":"string[]"},"cause":{"type":"string","enum":["thresholds","fit"],"description":"What it follows.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync.cause","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.resync","typeLabel":"object"},"group":{"type":"string","description":"Only on `group_build` jobs, the group whose aggregates it computes.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.group","typeLabel":"string"},"proposal":{"oneOf":[{"type":"object","description":"Only on `discover` jobs; null until done.","required":["options","proposed","sampled","escape_documents","unlabelled"],"properties":{"options":{"type":"array","description":"Every option of the proposed version, current ones first.","items":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","minLength":1,"not":{"const":"none_of_the_above"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.options.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.options.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.options.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.options","typeLabel":"object[]"},"proposed":{"type":"array","items":{"type":"object","required":["value","description","absorbs","sample_ids"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX].description","typeLabel":"string"},"absorbs":{"type":"integer","minimum":0,"description":"Sampled escape documents the proposed version answered with this option.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX].absorbs","typeLabel":"integer"},"sample_ids":{"type":"array","description":"The sampled documents the model said this option covers.","items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids","typeLabel":"string[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.proposed","typeLabel":"object[]"},"sampled":{"type":"integer","minimum":0,"maximum":200,"description":"Escape documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.sampled","typeLabel":"integer"},"escape_documents":{"type":"integer","format":"int64","minimum":0,"description":"Escape documents in the window, sampled or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.escape_documents","typeLabel":"integer\u003cint64>"},"unlabelled":{"type":"integer","minimum":0,"description":"Sampled documents the proposed version still answered `none_of_the_above`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0.unlabelled","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `discover` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.proposal","typeLabel":"object | null"},"simulation":{"oneOf":[{"type":"object","description":"Only on `simulation` jobs; null until done.","required":["population","sampled","thresholds","noise","without_stored_answer","examples","excluded","fanout","larger_sample"],"properties":{"population":{"type":"integer","format":"int64","minimum":0,"description":"In-scope judged documents that point at the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.population","typeLabel":"integer\u003cint64>"},"sampled":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.sampled","typeLabel":"integer"},"thresholds":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to its answer under the proposed document, as a write compares them; from its answer under the current document when it has no stored answer. The interval is the sample's, widened on each side by `noise`'s estimate.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.thresholds","typeLabel":"object"},"noise":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to a new answer under the current document, with nothing changed. The engine's own variation; a write judges again, so about this many of its flips are noise. Measured on the documents with a stored answer; the interval is the sample's.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.noise","typeLabel":"object"},"without_stored_answer":{"type":"integer","minimum":0,"description":"Documents judged both ways with no stored answer from the active version. Their flips compare the two new answers, and `noise` leaves them out.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.without_stored_answer","typeLabel":"integer"},"examples":{"type":"array","description":"Sampled documents that flipped, up to 20.","maxItems":20,"items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.examples.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.examples","typeLabel":"string[]"},"excluded":{"type":"object","description":"Sampled documents left out, by reason.","properties":{"failed":{"type":"integer","minimum":0,"description":"Either evaluation failed.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.excluded.failed","typeLabel":"integer"},"out_of_scope":{"type":"integer","minimum":0,"description":"Gone by the time it was evaluated, such as deleted since it was sampled.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.excluded.out_of_scope","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.excluded","typeLabel":"object"},"fanout":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout.downstream","typeLabel":"object[]"}},"description":"The real fan-out if the document were written so, priced like a backfill of the in-scope documents.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.fanout","typeLabel":"object"},"larger_sample":{"oneOf":[{"type":"integer","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.larger_sample.oneOf.0","typeLabel":"integer"},{"type":"null","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.larger_sample.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0.larger_sample","typeLabel":"integer | null"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `simulation` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.simulation","typeLabel":"object | null"},"version":{"type":"integer","format":"int32","minimum":1,"description":"Shadow jobs only. The version being activated.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.version","typeLabel":"integer\u003cint32>"},"report":{"oneOf":[{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["documents","current","candidate","threshold_flips","recompute"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"description":"Documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"current":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.current","typeLabel":"object"},"candidate":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.candidate","typeLabel":"object"},"threshold_flips":{"type":"object","description":"Per named threshold, the sampled documents whose threshold boolean\nwould change. The candidate side uses the thresholds that apply\nonce the version is active.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","required":["to_true","to_false"],"properties":{"to_true":{"type":"integer","format":"int64","minimum":0,"description":"Documents false under the active version and true under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_true","typeLabel":"integer\u003cint64>"},"to_false":{"type":"integer","format":"int64","minimum":0,"description":"Documents true under the active version and false under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_false","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.threshold_flips.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.threshold_flips","typeLabel":"object"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.recompute","typeLabel":"object"},"downstream":{"type":"array","description":"What activating the version costs the judgments that read its answers, from the sample's band and cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.downstream","typeLabel":"object[]"},"calibration_replay":{"oneOf":[{"type":"object","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","required":["outcomes","tokens","row_units","judgment_units","cost_usd"],"properties":{"outcomes":{"type":"integer","format":"int64","minimum":0,"description":"Outcomes whose answers' contexts would be replayed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"description":"The tokens the new engine would read, each context and the question.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times the new engine's multiple; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times the new engine's weight; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What it would cost you, at the graduated prices of the tiers your organization is in now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0.cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.calibration_replay","typeLabel":"object | null"},"alternative":{"type":"object","description":"When the candidate was created from an alternative (`createVersionFromAlternative`), the outcomes' verdict on it then. Absent otherwise.","required":["id","verdict","change","k","drafted"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.id","typeLabel":"string"},"verdict":{"type":"string","enum":["better","no_worse","worse","untested","unscored"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.verdict","typeLabel":"enum\u003cstring>"},"change":{"oneOf":[{"type":"object","required":["log_loss","auroc","accuracy"],"properties":{"log_loss":{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss","typeLabel":"object"},"auroc":{"oneOf":[{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc","typeLabel":"object | null"},"accuracy":{"type":"number","description":"Accuracy, alternative minus version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0.accuracy","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.change","typeLabel":"object | null"},"k":{"type":"integer","minimum":0,"description":"How many alternatives the verdict was corrected for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.k","typeLabel":"integer"},"drafted":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative.drafted","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0.alternative","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.0","typeLabel":"object"},{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["type","documents","labels","composite","baseline","difference","parts","verdict","recompute"],"properties":{"type":{"const":"composite","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.type","typeLabel":"any"},"documents":{"type":"integer","format":"int64","minimum":0,"description":"Labelled documents judged and scored.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.documents","typeLabel":"integer\u003cint64>"},"labels":{"type":"object","description":"The documents by their outcome.","required":["true","false"],"properties":{"true":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.labels.true","typeLabel":"integer\u003cint64>"},"false":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.labels.false","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.labels","typeLabel":"object"},"composite":{"type":"object","description":"Held-out scores over the report's documents.","required":["accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite.auc","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.composite","typeLabel":"object"},"baseline":{"type":"object","description":"The fair baseline, scored like the composite. The active version (`version`), or for a first version the composite's `question` asked on its own (`version` null).","required":["version","threshold","accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.auc","typeLabel":"number"},"version":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.version.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.version","typeLabel":"integer\u003cint32> | null"},"threshold":{"oneOf":[{"type":"number","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","maximum":1,"minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.threshold.oneOf.0","typeLabel":"number"},{"type":"null","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.threshold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline.threshold","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.baseline","typeLabel":"object"},"difference":{"type":"object","description":"The composite's held-out accuracy minus the baseline's, with its 95% interval over the documents (paired).","required":["accuracy","interval"],"properties":{"accuracy":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.difference.accuracy","typeLabel":"number"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.difference.interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.difference.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.difference.interval","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.difference","typeLabel":"object"},"parts":{"type":"array","description":"Each part's weight in the combiner fitted on all the documents, on a common scale, so sizes compare. A negative weight means a yes points to `false`.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.parts.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.parts.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.parts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.parts","typeLabel":"object[]"},"verdict":{"type":"string","enum":["better","not_better"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.verdict","typeLabel":"enum\u003cstring>"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate, on the new version's engine at its weight. The parts share one request, where the first counts in full and each other a quarter or more.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.recompute","typeLabel":"object"},"features":{"type":"array","description":"Each feature's weight in the same fit, on the same scale as the parts'.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.features.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.features.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.features.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1.features","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.1","typeLabel":"object"},{"type":"null","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report.oneOf.2","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.report","typeLabel":"object · object · null"},"backfill_job_id":{"oneOf":[{"type":"string","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.backfill_job_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.backfill_job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.backfill_job_id","typeLabel":"string | null"},"export":{"type":"object","description":"`evaluation_export` jobs only: the range, the evaluations written, and once done the download links.","required":["since","until","judgments","evaluations","files","expires_at","links_unavailable"],"properties":{"since":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.since","typeLabel":"string\u003cdate-time>"},"until":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.until","typeLabel":"string\u003cdate-time>"},"judgments":{"oneOf":[{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.judgments.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.judgments.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.judgments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.judgments","typeLabel":"string[] | null"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations written so far, the same as `progress.documents_done`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.evaluations","typeLabel":"integer\u003cint64>"},"files":{"type":"array","items":{"type":"object","description":"One gzipped JSON Lines file of an evaluation export.","required":["url","url_expires_at","evaluations","bytes"],"properties":{"url":{"oneOf":[{"type":"string","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","format":"uri","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url","typeLabel":"string\u003curi> | null"},"url_expires_at":{"oneOf":[{"type":"string","description":"When `url` stops working; null with it.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When `url` stops working; null with it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].url_expires_at","typeLabel":"string\u003cdate-time> | null"},"evaluations":{"type":"integer","format":"int64","minimum":1,"description":"Lines in the file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].evaluations","typeLabel":"integer\u003cint64>"},"bytes":{"type":"integer","format":"int64","minimum":1,"description":"The file's size, compressed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX].bytes","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.files","typeLabel":"object[]"},"expires_at":{"oneOf":[{"type":"string","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.expires_at","typeLabel":"string\u003cdate-time> | null"},"links_unavailable":{"oneOf":[{"type":"string","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.links_unavailable.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.links_unavailable.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export.links_unavailable","typeLabel":"string | null"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.export","typeLabel":"object"},"result":{"oneOf":[{"type":"object","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","required":["status","body"],"properties":{"status":{"type":"integer","minimum":200,"maximum":599,"description":"The HTTP status the request would have had.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.status","typeLabel":"integer"},"body":{"oneOf":[{"type":"object","required":["name","version","active","warnings","path","definition"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.name","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.version","typeLabel":"integer\u003cint32>"},"path":{"type":"string","description":"Whose account the version runs on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.path","typeLabel":"enum\u003cstring>"},"active":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.active","typeLabel":"boolean"},"warnings":{"type":"array","description":"Non-fatal problems, such as sending the whole `state`, a recipe suggested for you, no `applies_to` (the judgment judges, and bills, every document written to the namespace), a definition that names image paths (`images.\u003cname>`) on an engine that reads no images (decided from the definition alone, so it comes also before any document is written), a relation that renders a referenced document's `updated_at`, which changes on every write to it and so fans out every time, or a relation with an `order`, which reads up to 1,000 documents per judged document to sort them (the warning names the factor), can re-select on a write to the ordered field, may have judged documents with more matching documents than it sorts, or sorts by a long text field. A relation whose `match` selects documents by another judgment's answer is also warned, since it never reads a document whose answer is wrong, or whose change removes what that answer found, so select by topic (a judgment that asks whether a document is about the subject, including changing or removing it) and calibrate on outcomes so its numbers, and thresholds on them, mean what they say.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.warnings","typeLabel":"string[]"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.definition","typeLabel":"object"},"outcomes":{"type":"object","description":"From a starter with a suggested outcome setting only.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes.message","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.outcomes","typeLabel":"object"},"job_id":{"type":"string","description":"The first of `job_ids`, kept for clients written before `job_ids`. Read `job_ids` to see every job.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.job_id","typeLabel":"string"},"job_ids":{"type":"array","minItems":1,"description":"The `reference_index` jobs that build the indexes this version's relations need, one per attribute with no index yet, or whose index must be rebuilt to cover this version's documents (another `match`, or the attribute used the other way round), so two when it joins on two new attributes. Present exactly when `job_id` is. Until every job is done, the version's answers are `unavailable`, or `pending` for documents written since that an `on_change` judgment judges once the jobs are done.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.job_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0.job_ids","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.0","typeLabel":"object"},{"type":"object","description":"What a create would make, and what it would cost.\nNothing was created, written or billed.\n","required":["dry_run","path","definition","warnings","cost_per_answer","sampled_documents","estimate","replay","outcomes"],"properties":{"dry_run":{"const":true,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.dry_run","typeLabel":"any"},"path":{"type":"string","description":"Whose account the version would run on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.path","typeLabel":"enum\u003cstring>"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.definition","typeLabel":"object"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.warnings","typeLabel":"string[]"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.sampled_documents","typeLabel":"integer"},"estimate":{"oneOf":[{"type":"object","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0","typeLabel":"object"},{"type":"null","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.estimate","typeLabel":"object | null"},"replay":{"oneOf":[{"type":"object","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.replay","typeLabel":"object | null"},"outcomes":{"oneOf":[{"type":"object","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0","typeLabel":"object"},{"type":"null","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1.outcomes","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.1","typeLabel":"object"},{"type":"object","description":"An unconfirmed create of an entity judgment that runs `on_change`. Nothing was created.","required":["replay"],"properties":{"replay":{"type":"object","description":"What an entity judgment would cost a month, from the\nnamespace's last 30 days of writes run through its relations,\ndebounce and ceiling rules. The replay cannot see every edit to a\nrelated document, only its creation, its latest write and the\ndeletes still recorded: exact for documents written once, and for\noften-edited documents the figures are a lower bound\n(`lower_bound`). It does not count the evaluations an unchanged context saves, which only lower the bill.\n","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.replay","typeLabel":"object"},"fanout":{"type":"object","description":"For a judgment with a relation: the rolling limit\n`confirm: true` sets, from `freshness.fanout` in the request or the\ndefault of 300,000, and what it costs if used in full. Work past it is\ndeferred at runtime, never put to you again. Set\n`freshness.fanout.rolling_limit` to `null` to confirm with no limit:\nevery change then re-judges every in-scope document, with no\ndeferral, and only the namespace's budget caps what fan-out\nspends.\n","required":["rolling_limit","cost_usd_at_limit"],"properties":{"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"cost_usd_at_limit":{"oneOf":[{"type":"number","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.fanout","typeLabel":"object"},"warnings":{"type":"array","description":"Non-fatal problems the confirmed create would also return, present only when there are some, such as a relation with an `order` whose judged documents already have more than the 1,000 matching documents it sorts.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.warnings","typeLabel":"string[]"},"graph_ceiling":{"oneOf":[{"type":"object","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","required":["cost_usd","judgments"],"properties":{"cost_usd":{"type":"number","minimum":0,"description":"The sum of `judgments`' costs, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.cost_usd","typeLabel":"number"},"judgments":{"type":"array","description":"This judgment first, then each judgment that reads its answers.","items":{"type":"object","required":["judgment","rolling_limit","cost_usd"],"properties":{"judgment":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].judgment","typeLabel":"string"},"rolling_limit":{"type":"integer","format":"int64","minimum":0,"description":"Its compiles allowed in any 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].rolling_limit","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What that many compiles cost, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0","typeLabel":"object"},{"type":"null","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling","typeLabel":"object | null"},"graph_ceiling_unlimited":{"type":"array","description":"Present when `graph_ceiling` is null. The judgments among them whose `rolling_limit` is null.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.2","typeLabel":"object"},{"type":"object","required":["judgment"],"properties":{"judgment":{"type":"object","required":["name","active_version","path","freshness","thresholds","outcomes","judged_through","versions"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.name","typeLabel":"string"},"path":{"type":"string","description":"Whose account the active version runs on; the latest version's once the judgment is deactivated. Brussle never moves a judgment between the two; a version on the other engine, activated, does.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.path","typeLabel":"enum\u003cstring>"},"active_version":{"type":"any","description":"Null once the judgment is deactivated.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.active_version","typeLabel":"any"},"judged_through":{"type":"any","description":"How far the judgment has judged this namespace's writes, as a\nrevision. Every write whose `revision` is at or below it is done for\nthis judgment: each document whose answer it affects has its answer,\nor its final attempt failed, or is one the judgment does not judge\n(outside `applies_to`, outside the fan-out's scope of a change to a\ndocument it reads, or already there when the judgment was created and\nwaiting for a backfill). Compare it with the `revision` your last write returned:\nonce it is at or above that, the judgment has finished with the write\nand every write before it.\n\nA write the judgment has not finished with keeps it below that write,\nwhatever the reason: being judged, waiting for its debounce or for\nthe engine, judging paused, or no room in the rolling limit. The\nanswers' `freshness` and `stale_reason` say which. For a judgment\nwith a relation, a write to a document it reads keeps it below that\nwrite until the documents that read it are judged again. For a\njudgment whose relations read other judgments' answers (a roll-up,\na judged link), a write keeps it below that write until each\njudgment it reads, down the chain, has finished with the write, and\nthis judgment has judged again the documents whose answers it read\nchanged. It can trail the answers by a moment, and never runs ahead\nof them.\n\nNull when no revision can say this: the judgment has no active\nversion, or its policy is not `on_change` (nothing judges writes as\nthey arrive). It can also be null for a short time after an upgrade\nof Brussle, until the judgment has finished the work it had waiting.\nA strong `query` for a `pending` answer works for every judgment.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.judged_through","typeLabel":"any"},"freshness":{"type":"object","description":"Settings, not part of the definition. Changing them creates no version.","additionalProperties":false,"properties":{"policy":{"type":"string","description":"`on_read` (default) computes on first read, then caches until the\ndocument changes; it cannot be used in a query filter or rank.\n`on_change` recomputes whenever a document changes, the policy for a\njudgment filtered or ranked on. `periodic` recomputes every\n`interval`. `manual` is backfill only. A query can filter and rank on\n`on_change`, `periodic` and `manual` answers, as stored.\n","enum":["on_read","on_change","periodic","manual"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.policy","typeLabel":"enum\u003cstring>"},"debounce_ms":{"type":"integer","minimum":0,"default":0,"description":"A document changed more recently than this is not judged until it settles. Defaults to 0, and to 600000 (10 minutes) for a judgment created with `features`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.debounce_ms","typeLabel":"integer"},"interval":{"type":"string","description":"Recompute interval for `periodic`, such as `1h` or `1d`. At least `1h`, because each run re-judges the whole namespace; a shorter one is `invalid_request`.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{"when":[[{"property":"policy","values":["periodic"]}]]}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.interval","typeLabel":"string"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms","typeLabel":"integer | null"},"wait_for_children":{"type":"boolean","default":false,"description":"For a judgment whose relations read other judgments' answers.\nWhile an answer that a relation reads is `pending`, the document\nwaits and is judged once those answers land, so a load of\nrelated documents costs one evaluation of the document, not one\nbefore and one after their answers. It does not wait for an\nanswer that reads `stale` (`limit_reached` or `judging_paused`),\n`failed` or `unavailable`, since none of these is on its way. The\nwait is at most `max_wait_ms` from the document's oldest unjudged\nchange, or 10 minutes when no ceiling is in effect; then the\ndocument is judged with the answers it has. A judgment that reads\nno answers refuses `true` with `invalid_request`. `GET` returns it\nfor every judgment that reads answers.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.wait_for_children","typeLabel":"boolean"},"fanout":{"type":"object","description":"For a judgment with a relation that reads a referenced document, or a blocking relation: which judged documents a change re-judges, and when. Only a\nchange to what the relation renders counts. Every key is optional in\na request, and `GET` returns every value in effect for a judgment\nthat can fan out. In a `PATCH`, the keys you send replace those keys\nand the others keep their values.\n\n`rolling_limit` applies to every judgment with a relation, roll-ups\nincluded, since another judgment's answer moving re-judges it too:\nfor a judgment with relations that cannot fan out, `GET` returns\n`rolling_limit` alone.\n\nNo re-judge waits for a confirm. You confirm the rolling\nlimit once, when you create the judgment; work that would pass\nit, or a block past `block_cap`, is deferred, its answers read\n`stale` (`limit_reached`) with a `judgment.limit_reached` event, and\nit runs once the window has room or a `PATCH` raises the limit. As\nmuch of a change as the window has room for runs, at most 1,000\nre-judges at a time, and only the rest waits.\n","additionalProperties":false,"minProperties":1,"properties":{"scope":{"type":"object","description":"The re-judge scope: which judged documents a\nchange to a referenced document at log position c re-judges. At the\nfan-out's snapshot, a judged document is in scope when it points at\nthe referenced document, matches `applies_to` and `where`, and was\ncreated no more than `created_within` before the write at c. A judged\ndocument outside the scope is not re-judged: its answer reads `stale`\nwith `stale_reason` `referenced_changed` until the document is judged\nagain, and its `watermark` says which version of the referenced\ndocument it read.\n","additionalProperties":false,"minProperties":1,"properties":{"created_within":{"type":"any","description":"Only judged documents created no more than this long before the change. `null` means all of them. Defaults to `30d`.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.created_within","typeLabel":"any"},"where":{"type":"any","description":"Narrows the scope to judged documents whose attributes match, such as `{\"attributes.status\": \"open\"}`. `null` removes it. None by default.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.where","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope","typeLabel":"object"},"debounce_ms":{"type":"integer","minimum":0,"default":600000,"description":"A referenced document that changed more recently than this is not fanned out until it settles, so a burst of changes to it costs one fan-out. Counts changes to what the relation renders, per referenced document (per block). The judgment's own `debounce_ms` still governs the judged documents' own writes.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.debounce_ms","typeLabel":"integer"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms","typeLabel":"integer | null"},"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"block_cap":{"type":"integer","format":"int64","minimum":1,"default":1000,"description":"For a blocking relation. The most judged documents one key value's block may hold. At create, a key value over it is `invalid_request`; a block that grows past it later is deferred, its answers `stale` (`limit_reached`) with a `judgment.limit_reached` event naming the key value, until the cap is raised.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.block_cap","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout","typeLabel":"object"},"budget":{"type":"any","description":"The most engine calls the judgment may make in a UTC day or in\nthe organization's billing period. A call is one document\nsent to the engine for this judgment, its retries included. A\nwrite that changes nothing the judgment reads, shadow samples\nand repairs are not calls. Past the budget, nothing more is\nsent or billed for the judgment: a changed document keeps its\nlast answer, which reads `stale` (`budget_reached`), a document\nnever judged reads `unavailable`, and one\n`judgment.budget_reached` event is sent. Judging resumes on its\nown when the period ends, oldest change first, or within seconds\nof a `PATCH` that raises the budget. With more than one worker\njudging the namespace at once, up to 16 calls per other worker\nmay go past it. In a `PATCH`, `null` removes the budget. A new\nversion keeps it. On a template, each namespace counts its own\ncalls. `budget_window` on `GET` shows the calls so far.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.budget","typeLabel":"any"}},"conditionallyRequiredProperties":{"interval":[{"when":[[{"property":"policy","values":["periodic"]}]]}]},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness","typeLabel":"object"},"thresholds":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds","typeLabel":"object"},"outcomes":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes","typeLabel":"object"},"versions":{"type":"array","description":"Every version, oldest first. Versions are kept until the namespace is deleted.","items":{"type":"object","required":["version","created_at","path","definition"],"properties":{"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"path":{"type":"string","description":"Whose account this version runs on, from its engine.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].path","typeLabel":"enum\u003cstring>"},"definition":{"type":"any","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].definition","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.versions","typeLabel":"object[]"},"calibration":{"type":"object","description":"The calibration setting. Always present on a judgment read from a current deployment; `mode` is `auto` until a pin is set.","required":["mode","pins"],"properties":{"mode":{"type":"string","enum":["auto","pinned","not_applicable"],"description":"`auto`: answers read the newest run's fit for their version and epoch. `pinned`: at least one version and epoch reads a pinned fit. `not_applicable`: a `text`, `json` or `embedding` judgment, whose answers carry no number to correct; its `pins` are empty and cannot be set.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.mode","typeLabel":"enum\u003cstring>"},"pins":{"type":"array","items":{"type":"object","description":"A pinned fit: answers of `version` in epoch `engine_version` read it\ninstead of the newest run's, whether or not a later fit would have\ndone better, until the pin is lifted. A pin never reaches another\nepoch: after an engine drift the new epoch reads its own fits, and\nthe pinned one only as the previous epoch's while it has none\n(`from_previous_epoch`).\n","required":["run","version","engine","engine_version","fit","pinned_at"],"properties":{"run":{"type":"string","description":"The run the fit was pinned from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].run","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine","typeLabel":"string"},"engine_version":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine_version","typeLabel":"string"},"fit":{"type":"string","description":"The fit's id when it was pinned.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].fit","typeLabel":"string"},"pinned_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].pinned_at","typeLabel":"string\u003cdate-time>"},"suspended":{"type":"string","enum":["older_preprocessing"],"description":"Present when the pin no longer applies and the version and epoch read as `auto`: `older_preprocessing`, the pinned fit reads the features as Brussle stored them before a change to how they are stored, so it cannot be read now. Pin a fit made since, or lift the pin.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].suspended","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration","typeLabel":"object"},"alternatives":{"type":"object","description":"The alternatives setting; absent while it is the default (`automatic` off, no engine skipped).","additionalProperties":false,"properties":{"automatic":{"type":"boolean","description":"Start the alternatives run by itself after a fit, at most monthly, at most 10 alternatives on 500 labelled answers, billed as judging. Off by default.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.automatic","typeLabel":"boolean"},"skip_engines":{"type":"array","description":"Engines not to score as automatic alternatives.","items":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives","typeLabel":"object"},"template":{"type":"string","description":"Present when the judgment is inherited, the template prefix it comes from, such as `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.template","typeLabel":"string"},"overrides":{"type":"array","description":"Present when the judgment is inherited. The settings this namespace overrides; the others follow the template.","uniqueItems":true,"items":{"type":"string","enum":["thresholds","freshness"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides","typeLabel":"enum\u003cstring>[]"},"fanout_sources":{"type":"object","description":"Where each value in `freshness.fanout` comes from, key for key. Present exactly when `freshness.fanout` is, with the same keys: `rolling_limit` alone for a judgment with relations that cannot fan out. A\n`where` removed with `null` is the default, no filter; any other\n`null` the judgment set, such as `created_within: null`, is the\njudgment's.\n","required":["rolling_limit"],"properties":{"rolling_limit":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.rolling_limit","typeLabel":"enum\u003cstring>"},"scope":{"type":"object","required":["created_within","where"],"properties":{"created_within":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.created_within","typeLabel":"enum\u003cstring>"},"where":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.where","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope","typeLabel":"object"},"debounce_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.debounce_ms","typeLabel":"enum\u003cstring>"},"max_wait_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.max_wait_ms","typeLabel":"enum\u003cstring>"},"block_cap":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.block_cap","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources","typeLabel":"object"},"fanout_window":{"type":"object","description":"Response only. How much of\n`freshness.fanout.rolling_limit` the judgment has used: the\nre-judgments counted in the rolling 30-day window, each counted once\nwhen its answer lands. Present exactly when `freshness.fanout` is,\nso on every judgment with a relation. Work that would take `used`\npast the limit waits, deferred.\n","required":["used","rolls_at"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment re-judged in the last 30 days because of changes to referenced documents and blocks and the answers it reads moving.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.used","typeLabel":"integer\u003cint64>"},"rolls_at":{"type":"any","description":"When the window next rolls past a day that counts, freeing its re-judgments; null when nothing counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.rolls_at","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window","typeLabel":"object"},"budget_window":{"type":"object","description":"Response only. The judgment's engine calls in the period its\n`freshness.budget` counts, whether the budget is reached, and the\nlast 7 days with a month projected from them, so a budget can be\nchosen before it is set. Present on every judgment.\n","required":["used","period_start","period_end","reached_at","resumes_at","last_7_days","projected_month"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Engine calls in the period, counted as their answers land. With no budget, the calls of the UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.used","typeLabel":"integer\u003cint64>"},"period_start":{"type":"string","format":"date","description":"The first day of the period counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of the period counted. The next period starts at 00:00 UTC the day after it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_end","typeLabel":"string\u003cdate>"},"reached_at":{"type":"any","description":"When the calls reached the budget in this period; null while they have not, or once a raise made room.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.reached_at","typeLabel":"any"},"resumes_at":{"type":"any","description":"While the budget is reached, when the period ends and judging resumes on its own; otherwise null.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.resumes_at","typeLabel":"any"},"last_7_days":{"type":"object","required":["days","since","calls"],"properties":{"days":{"type":"integer","minimum":1,"maximum":7,"description":"The days counted, today included. Fewer than 7 for a judgment that made its first call less than 7 days ago.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.days","typeLabel":"integer"},"since":{"type":"string","format":"date","description":"The first day counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.since","typeLabel":"string\u003cdate>"},"calls":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.calls","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days","typeLabel":"object"},"projected_month":{"type":"any","description":"A 30-day month at the rate of `last_7_days`. Null until the judgment has made calls for one full UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.projected_month","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window","typeLabel":"object"},"escape_alert":{"type":"any","description":"A setting of a fixed-option `choice`: when the\nshare of its answers over the last 7 days that are\n`none_of_the_above` rises above this, the judgment gains the\n`taxonomy_drift` warning and the events feed one\n`judgment.taxonomy_drift`. Null (the default) turns it off. Nothing\nchanges on its own: run `discover` when you want proposals.\n","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.escape_alert","typeLabel":"any"},"warnings":{"type":"array","description":"Conditions to act on, such as `taxonomy_drift`. Absent when there are none.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings","typeLabel":"object[]"},"readers":{"type":"array","description":"The judgments whose relations read this one's answers. While there are any, a change that would break them is `conflict` naming them in `details.readers`. That is deleting or deactivating it, a policy other than `on_change`, a fan-out scope on a judgment that reads a referenced document or a block, removing a threshold a reader names, or a version that is a composite with parts or chooses among candidates (unless the reader only counts whether the value is `none_of_the_above`), whose answers lack a part a reader reads, that narrows `applies_to` below a reader's `match`, or that would make a reader read more than three deep (`details.chain` is the chain). For a judgment read through judged links, it is also a version that no longer chooses among candidates, or whose candidates share another key attribute. Absent when there are none.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.readers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.readers","typeLabel":"string[]"},"upstream":{"type":"array","description":"Each chain of judgments this one reads the answers of, from the one it reads first down to one that reads none, with their debounces summed. That is roughly how long a change at the end of the chain takes to reach this judgment, before its own debounce. Absent when it reads no answers.","items":{"type":"object","required":["path","debounce_ms"],"properties":{"path":{"type":"array","minItems":1,"maxItems":3,"items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path","typeLabel":"string[]"},"debounce_ms":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].debounce_ms","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream","typeLabel":"object[]"},"stats":{"type":"object","description":"Today's evaluations of the judgment in this namespace, UTC. The dashboard's per-judgment numbers. Before the day's\nfirst evaluation only `day`, `evaluations` (0) and `spend_usd` (0)\nare present.\n","required":["day","evaluations","spend_usd"],"properties":{"day":{"type":"string","format":"date","description":"Today, UTC, as `yyyy-mm-dd`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.day","typeLabel":"string\u003cdate>"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations recorded today, successful or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.evaluations","typeLabel":"integer\u003cint64>"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed today, in US dollars, at your judgment prices.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.spend_usd","typeLabel":"number"},"tokens_per_document":{"oneOf":[{"type":"number","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document","typeLabel":"number | null"},"truncation_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate","typeLabel":"number | null"},"relations_capped_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate","typeLabel":"number | null"},"error_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate","typeLabel":"number | null"},"freshness_lag_p90_ms":{"oneOf":[{"type":"number","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.stats","typeLabel":"object"},"engine_status":{"type":"object","description":"The engine the active version runs on, as its new answers record it:\nwhich key it runs on, the epoch and model id new answers carry, how\nBrussle watches it for a change of behaviour, and a retirement its\nprovider announced. A part Brussle cannot read at the moment is\n`null`.\n","required":["engine","slot","engine_version","model_id","watch","retires_at","successor"],"properties":{"engine":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine","typeLabel":"object"},"slot":{"type":"any","description":"`included` for an engine Brussle provides; `namespace` or `org` for a model on your own key, by which key the namespace uses; `null` when no key reaches it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.slot","typeLabel":"any"},"engine_version":{"oneOf":[{"type":"string","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.0","typeLabel":"string"},{"type":"null","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version","typeLabel":"string | null"},"model_id":{"oneOf":[{"type":"string","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id","typeLabel":"string | null"},"watch":{"type":"any","description":"How changes are seen; `null` when the engine is not watched yet.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.watch","typeLabel":"any"},"retires_at":{"type":"any","description":"The first day, in UTC, on which the engine is not served, as its provider announced; `null` when none is announced.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.retires_at","typeLabel":"any"},"successor":{"type":"any","description":"The replacement the provider names for a retiring engine; `null` when there is none.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.successor","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.judgment","typeLabel":"object"},"job_id":{"type":"string","description":"The backfill started by a confirmed switch to `on_change`, or the `resync` job a confirmed threshold change or pin started.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.job_id","typeLabel":"string"},"downstream":{"type":"array","description":"With a confirmed threshold change that readers' relations name, or a confirmed pin on a judgment with `features`, what it costs each reader.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.3","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.4","typeLabel":"object"},{"type":"object","description":"A change that moves what other judgments read, sent\nwithout `confirm`: a threshold readers' relations name, a\npin or a promote on a judgment with `features` that other judgments\nread, or a tenant summary's groups or bands. Nothing changed. Send it again\nwith `confirm: true`.\n","required":["downstream"],"properties":{"downstream":{"type":"array","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.5","typeLabel":"object"},{"type":"object","description":"Turning `alternatives.automatic` on needs `confirm`; this is the quote of a full run, and nothing changed.","required":["alternatives_quote"],"properties":{"alternatives_quote":{"type":"object","description":"What scoring the unscored engine and named alternatives would bill,\npriced before anything runs, and the smallest gain the labels could\nshow. Each answered call is billed as judging: its size class times\nits engine's weight, at the graduated prices of the tiers your\norganization is in now.\n","required":["status","labels","alternatives","row_units","judgment_units","tokens","cost_usd","detectable","new_providers","upstream"],"properties":{"status":{"type":"string","enum":["ready","quoting"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.status","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"description":"Labelled answers each alternative would be scored on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.labels","typeLabel":"integer"},"alternatives":{"type":"array","items":{"type":"object","required":["id","contexts","labels","tokens","row_units","judgment_units","cost_usd","new_provider"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].id","typeLabel":"string"},"contexts":{"type":"string","enum":["stored","narrowed","live"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].contexts","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].labels","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].tokens","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the alternative's scoring would bill, at its engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].cost_usd","typeLabel":"number"},"new_provider":{"type":"boolean","description":"Its engine is one this namespace has not used; confirming sends the labelled contexts to its provider.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].new_provider","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives","typeLabel":"object[]"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the run would bill, at each alternative's engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.judgment_units","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.tokens","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.cost_usd","typeLabel":"number"},"detectable":{"type":"object","description":"The smallest gain this run could call `better` on these labels with this many alternatives; smaller gains read `no_worse`.","required":["log_loss","auroc","k"],"properties":{"log_loss":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.log_loss","typeLabel":"number"},"auroc":{"oneOf":[{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc","typeLabel":"number | null"},"k":{"type":"integer","minimum":1,"description":"The alternatives it corrects for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.k","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable","typeLabel":"object"},"new_providers":{"type":"array","description":"Engines that would receive this namespace's labelled contexts for the first time, `name version`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers","typeLabel":"string[]"},"upstream":{"type":"array","description":"The backfill a `live` recipe needs first, when it selects by another judgment's answer. Never run by this run.","items":{"type":"object","required":["alternative","judgment","documents","row_units","judgment_units","cost_usd"],"properties":{"alternative":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].alternative","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment","typeLabel":"string"},"documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].documents","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the upstream backfill would bill.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream","typeLabel":"object[]"},"generation":{"type":"integer","minimum":0,"description":"Which quote this is; it moves whenever the alternatives, the outcomes or the engines in use change. Send it as `quote_generation` to confirm exactly this quote.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.generation","typeLabel":"integer"},"computed_at":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.computed_at","typeLabel":"any"},"reason":{"oneOf":[{"type":"string","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.6","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.7","typeLabel":"object"},{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.8.job_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.8","typeLabel":"object"},{"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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body.oneOf.9","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0.body","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.result","typeLabel":"object | null"},"warnings":{"type":"array","description":"Only in the response of the activation that started a shadow job, such as `images_unread`. Absent when there are none, and on `GET /jobs/{id}`.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.4.data.job.warnings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.job","typeLabel":"object"},"url":{"type":"string","format":"uri","description":"That route.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.4.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.4.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"job.failed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.type","typeLabel":"any"},"data":{"type":"object","required":["job","url"],"properties":{"job":{"type":"object","description":"The job as `GET /jobs/{id}` returns it.","required":["id","type","status","namespace","spend_usd","progress","created_at","updated_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.id","typeLabel":"string"},"type":{"type":"string","enum":["backfill","shadow","periodic","namespace_delete","reference_index","evaluation_export","resync","group_build","discover","simulation","judgment_create","judgment_update","backfill_start"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["estimating","awaiting_confirm","running","paused","done","failed","cancelled"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.status","typeLabel":"enum\u003cstring>"},"namespace":{"type":"string","description":"A namespace name, or a template prefix: a namespace path ending in\n`/*`, such as `acme/prod/*`, which every namespace under `acme/prod/`\ninherits judgments from. Up to 256 bytes. Never exactly\n`.` or `..`, which a URL path can't carry.\n","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.namespace","typeLabel":"string"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed by this job so far, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.spend_usd","typeLabel":"number"},"progress":{"type":"object","required":["documents_done"],"properties":{"documents_done":{"type":"integer","format":"int64","minimum":0,"description":"Documents done so far. A `backfill` counts the documents it\nhas judged, and only those in its scope (the judgment's\n`applies_to` and the backfill's `filters`), so the count\nclimbs to `estimate.documents`. It passes over the rest, and\ndocuments the active version has already answered, without\ncounting them.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.progress.documents_done","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.progress","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.updated_at","typeLabel":"string\u003cdate-time>"},"judgment":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.judgment","typeLabel":"string"},"estimate":{"oneOf":[{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimate","typeLabel":"object | null"},"estimated_completion_at":{"oneOf":[{"type":"string","description":"RFC 3339, UTC.","format":"date-time","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimated_completion_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimated_completion_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.estimated_completion_at","typeLabel":"string\u003cdate-time> | null"},"error":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.error.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.error","typeLabel":"string | null"},"attribute":{"oneOf":[{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.attribute.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^attributes\\.[A-Za-z0-9_-]+$","description":"Only on `reference_index` jobs, as `attributes.\u003cname>`. The attribute whose reference index the job builds. Null for other jobs.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.attribute.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.attribute","typeLabel":"string | null"},"resync":{"type":"object","description":"Only on `resync` jobs.","required":["thresholds_before","thresholds_after","readers"],"properties":{"thresholds_before":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_before","typeLabel":"object"},"thresholds_after":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.0","typeLabel":"number"},{"type":"object","required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.1.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.1.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.1","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","gte"],"properties":{"gte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.2.gte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.2.feature","typeLabel":"string"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.2.lte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.2","typeLabel":"object"},{"type":"object","description":"A bool judgment's threshold on one of its features: true when the\nfeature is at least `gte`, or at most `lte`, compared exactly with\nthe stored value. No engine and no labels decide it. A missing\nfeature reads `false`, and so does one a later version no longer\ndeclares, which the judgment's `threshold_unresolved` warning names.\nIt is as fresh as the answer, so it can trail the related documents\nby the judgment's debounce.\n","required":["feature","lte"],"properties":{"lte":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.3.lte","typeLabel":"number"},"feature":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.3.feature","typeLabel":"string"},"gte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.3.gte","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties.oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after.additionalProperties","typeLabel":"number · object · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.thresholds_after","typeLabel":"object"},"readers":{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.readers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.readers","typeLabel":"string[]"},"cause":{"type":"string","enum":["thresholds","fit"],"description":"What it follows.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync.cause","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.resync","typeLabel":"object"},"group":{"type":"string","description":"Only on `group_build` jobs, the group whose aggregates it computes.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.group","typeLabel":"string"},"proposal":{"oneOf":[{"type":"object","description":"Only on `discover` jobs; null until done.","required":["options","proposed","sampled","escape_documents","unlabelled"],"properties":{"options":{"type":"array","description":"Every option of the proposed version, current ones first.","items":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","minLength":1,"not":{"const":"none_of_the_above"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.options.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.options.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.options.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.options","typeLabel":"object[]"},"proposed":{"type":"array","items":{"type":"object","required":["value","description","absorbs","sample_ids"],"properties":{"value":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX].value","typeLabel":"string"},"description":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX].description","typeLabel":"string"},"absorbs":{"type":"integer","minimum":0,"description":"Sampled escape documents the proposed version answered with this option.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX].absorbs","typeLabel":"integer"},"sample_ids":{"type":"array","description":"The sampled documents the model said this option covers.","items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX].sample_ids","typeLabel":"string[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.proposed","typeLabel":"object[]"},"sampled":{"type":"integer","minimum":0,"maximum":200,"description":"Escape documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.sampled","typeLabel":"integer"},"escape_documents":{"type":"integer","format":"int64","minimum":0,"description":"Escape documents in the window, sampled or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.escape_documents","typeLabel":"integer\u003cint64>"},"unlabelled":{"type":"integer","minimum":0,"description":"Sampled documents the proposed version still answered `none_of_the_above`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0.unlabelled","typeLabel":"integer"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `discover` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.proposal","typeLabel":"object | null"},"simulation":{"oneOf":[{"type":"object","description":"Only on `simulation` jobs; null until done.","required":["population","sampled","thresholds","noise","without_stored_answer","examples","excluded","fanout","larger_sample"],"properties":{"population":{"type":"integer","format":"int64","minimum":0,"description":"In-scope judged documents that point at the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.population","typeLabel":"integer\u003cint64>"},"sampled":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.sampled","typeLabel":"integer"},"thresholds":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to its answer under the proposed document, as a write compares them; from its answer under the current document when it has no stored answer. The interval is the sample's, widened on each side by `noise`'s estimate.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.thresholds","typeLabel":"object"},"noise":{"type":"object","description":"Per named threshold, flips from each sampled document's stored answer to a new answer under the current document, with nothing changed. The engine's own variation; a write judges again, so about this many of its flips are noise. Measured on the documents with a stored answer; the interval is the sample's.","additionalProperties":{"type":"object","required":["sampled_on","sampled_off","estimated","interval"],"properties":{"sampled_on":{"type":"integer","minimum":0,"description":"Sampled documents the threshold would newly hold for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_on","typeLabel":"integer"},"sampled_off":{"type":"integer","minimum":0,"description":"Sampled documents it would stop holding for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.sampled_off","typeLabel":"integer"},"estimated":{"type":"integer","format":"int64","minimum":0,"description":"Estimated flips in the population, either way.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.estimated","typeLabel":"integer\u003cint64>"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties.interval","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.noise","typeLabel":"object"},"without_stored_answer":{"type":"integer","minimum":0,"description":"Documents judged both ways with no stored answer from the active version. Their flips compare the two new answers, and `noise` leaves them out.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.without_stored_answer","typeLabel":"integer"},"examples":{"type":"array","description":"Sampled documents that flipped, up to 20.","maxItems":20,"items":{"type":"string","description":"Up to 128 bytes. Never exactly `.` or `..`, which a URL path can't carry.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.examples.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.examples","typeLabel":"string[]"},"excluded":{"type":"object","description":"Sampled documents left out, by reason.","properties":{"failed":{"type":"integer","minimum":0,"description":"Either evaluation failed.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.excluded.failed","typeLabel":"integer"},"out_of_scope":{"type":"integer","minimum":0,"description":"Gone by the time it was evaluated, such as deleted since it was sampled.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.excluded.out_of_scope","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.excluded","typeLabel":"object"},"fanout":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout.downstream","typeLabel":"object[]"}},"description":"The real fan-out if the document were written so, priced like a backfill of the in-scope documents.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.fanout","typeLabel":"object"},"larger_sample":{"oneOf":[{"type":"integer","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.larger_sample.oneOf.0","typeLabel":"integer"},{"type":"null","description":"A sample size that would narrow the sample's intervals, before noise, enough to decide, when this one cannot; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.larger_sample.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0.larger_sample","typeLabel":"integer | null"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `simulation` jobs; null until done.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.simulation","typeLabel":"object | null"},"version":{"type":"integer","format":"int32","minimum":1,"description":"Shadow jobs only. The version being activated.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.version","typeLabel":"integer\u003cint32>"},"report":{"oneOf":[{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["documents","current","candidate","threshold_flips","recompute"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"description":"Documents in the sample.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"current":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.current","typeLabel":"object"},"candidate":{"oneOf":[{"type":"object","description":"The mean and histogram of `p` (bool) or `score` (score).","required":["type","mean","histogram"],"properties":{"type":{"type":"string","enum":["bool","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.type","typeLabel":"enum\u003cstring>"},"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.mean","typeLabel":"number"},"histogram":{"type":"array","description":"Ten equal-width bins, from 0 to 1 for `p` and from the lowest to the highest level for `score`, lowest first.","minItems":10,"maxItems":10,"items":{"type":"object","description":"Values in `[lower, upper)`; the last bin includes `upper`.","required":["lower","upper","count"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].upper","typeLabel":"number"},"count":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX].count","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.histogram.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0.histogram","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.0","typeLabel":"object"},{"type":"object","description":"The mean probability per option, so the per-option shift is `candidate.dist` minus `current.dist`.","required":["type","dist"],"properties":{"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.1.type","typeLabel":"any"},"dist":{"type":"object","description":"Probability per option or level value. Sums to 1.","additionalProperties":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.1.dist.additionalProperties","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.1.dist","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.1","typeLabel":"object"},{"type":"object","description":"A `text`, `json` or `embedding` judgment's side, which has no number to bin, so the count of answers that have a value.","required":["type","count"],"properties":{"type":{"type":"string","enum":["text","json","embedding"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.2.type","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.2.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.candidate","typeLabel":"object"},"threshold_flips":{"type":"object","description":"Per named threshold, the sampled documents whose threshold boolean\nwould change. The candidate side uses the thresholds that apply\nonce the version is active.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","required":["to_true","to_false"],"properties":{"to_true":{"type":"integer","format":"int64","minimum":0,"description":"Documents false under the active version and true under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_true","typeLabel":"integer\u003cint64>"},"to_false":{"type":"integer","format":"int64","minimum":0,"description":"Documents true under the active version and false under the new one.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.threshold_flips.additionalProperties.to_false","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.threshold_flips.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.threshold_flips","typeLabel":"object"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.recompute","typeLabel":"object"},"downstream":{"type":"array","description":"What activating the version costs the judgments that read its answers, from the sample's band and cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.downstream","typeLabel":"object[]"},"calibration_replay":{"oneOf":[{"type":"object","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","required":["outcomes","tokens","row_units","judgment_units","cost_usd"],"properties":{"outcomes":{"type":"integer","format":"int64","minimum":0,"description":"Outcomes whose answers' contexts would be replayed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0.outcomes","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"description":"The tokens the new engine would read, each context and the question.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times the new engine's multiple; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times the new engine's weight; a whole number, rounded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What it would cost you, at the graduated prices of the tiers your organization is in now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0.cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"What confirming would bill to calibrate the new version, when it is on another engine than the active version and the judgment has outcomes. Null otherwise.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.calibration_replay","typeLabel":"object | null"},"alternative":{"type":"object","description":"When the candidate was created from an alternative (`createVersionFromAlternative`), the outcomes' verdict on it then. Absent otherwise.","required":["id","verdict","change","k","drafted"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.id","typeLabel":"string"},"verdict":{"type":"string","enum":["better","no_worse","worse","untested","unscored"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.verdict","typeLabel":"enum\u003cstring>"},"change":{"oneOf":[{"type":"object","required":["log_loss","auroc","accuracy"],"properties":{"log_loss":{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.log_loss","typeLabel":"object"},"auroc":{"oneOf":[{"type":"object","description":"A paired difference, alternative minus version, on the same labelled answers.","required":["mean","interval"],"properties":{"mean":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.mean","typeLabel":"number"},"interval":{"type":"object","description":"The 95% interval of the difference.","required":["lower","upper"],"properties":{"lower":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.lower","typeLabel":"number"},"upper":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.interval","typeLabel":"object"},"standard_error":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.standard_error","typeLabel":"number | null"},"p":{"oneOf":[{"type":"number","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.0","typeLabel":"number"},{"type":"null","description":"The chance of a difference at least this good if the two were equal, before the correction.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0.p","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.auroc","typeLabel":"object | null"},"accuracy":{"type":"number","description":"Accuracy, alternative minus version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0.accuracy","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.change","typeLabel":"object | null"},"k":{"type":"integer","minimum":0,"description":"How many alternatives the verdict was corrected for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.k","typeLabel":"integer"},"drafted":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative.drafted","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0.alternative","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.0","typeLabel":"object"},{"type":"object","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","required":["type","documents","labels","composite","baseline","difference","parts","verdict","recompute"],"properties":{"type":{"const":"composite","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.type","typeLabel":"any"},"documents":{"type":"integer","format":"int64","minimum":0,"description":"Labelled documents judged and scored.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.documents","typeLabel":"integer\u003cint64>"},"labels":{"type":"object","description":"The documents by their outcome.","required":["true","false"],"properties":{"true":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.labels.true","typeLabel":"integer\u003cint64>"},"false":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.labels.false","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.labels","typeLabel":"object"},"composite":{"type":"object","description":"Held-out scores over the report's documents.","required":["accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite.auc","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.composite","typeLabel":"object"},"baseline":{"type":"object","description":"The fair baseline, scored like the composite. The active version (`version`), or for a first version the composite's `question` asked on its own (`version` null).","required":["version","threshold","accuracy","accuracy_interval","auc"],"properties":{"accuracy":{"type":"number","minimum":0,"maximum":1,"description":"Share of documents whose held-out probability is on the right side of 0.5.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.accuracy","typeLabel":"number"},"accuracy_interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.accuracy_interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.accuracy_interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.accuracy_interval","typeLabel":"object"},"auc":{"type":"number","minimum":0,"maximum":1,"description":"ROC AUC of the held-out probabilities.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.auc","typeLabel":"number"},"version":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.version.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.version","typeLabel":"integer\u003cint32> | null"},"threshold":{"oneOf":[{"type":"number","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","maximum":1,"minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.threshold.oneOf.0","typeLabel":"number"},{"type":"null","description":"The baseline's fitted cut-off on its `p`, fitted on all the documents. Null when a higher `p` does not mean `true` more often.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.threshold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline.threshold","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.baseline","typeLabel":"object"},"difference":{"type":"object","description":"The composite's held-out accuracy minus the baseline's, with its 95% interval over the documents (paired).","required":["accuracy","interval"],"properties":{"accuracy":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.difference.accuracy","typeLabel":"number"},"interval":{"type":"object","required":["lower","upper"],"properties":{"lower":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.difference.interval.lower","typeLabel":"number"},"upper":{"type":"number","minimum":-1,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.difference.interval.upper","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.difference.interval","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.difference","typeLabel":"object"},"parts":{"type":"array","description":"Each part's weight in the combiner fitted on all the documents, on a common scale, so sizes compare. A negative weight means a yes points to `false`.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.parts.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.parts.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.parts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.parts","typeLabel":"object[]"},"verdict":{"type":"string","enum":["better","not_better"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.verdict","typeLabel":"enum\u003cstring>"},"recompute":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute.downstream","typeLabel":"object[]"}},"description":"What a backfill of every document under the new version would cost, as a backfill estimate, on the new version's engine at its weight. The parts share one request, where the first counts in full and each other a quarter or more.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.recompute","typeLabel":"object"},"features":{"type":"array","description":"Each feature's weight in the same fit, on the same scale as the parts'.","items":{"type":"object","required":["name","weight"],"properties":{"name":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.features.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.features.items.[INDEX].weight","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.features.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1.features","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.1","typeLabel":"object"},{"type":"null","description":"Shadow jobs only. Null while the sample runs; `progress` counts the\nsampled documents. A composite version's job has a\n`CompositeShadowReport`, and when it has too few labels it\nfails with an `error` that starts with `insufficient_labels`.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report.oneOf.2","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.report","typeLabel":"object · object · null"},"backfill_job_id":{"oneOf":[{"type":"string","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.backfill_job_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Shadow jobs only. The `backfill` job that confirming started once\nthe version was active, which judges again each document whose\nanswer is from a version that asks differently. Its `estimate` is\nthe report's `recompute`, which the confirm agreed to. Null until\nthe job is `done`, and also then when there was nothing to judge\nagain (the judgment has no other version that asks differently,\nsuch as a composite's first version, or the `recompute` counts no\ndocuments), or when the `recompute` did not fit what is left\nof the namespace's budget this billing period or the\norganization's balance. Then the switch still happened: start a backfill yourself,\nwhich shows its estimate first.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.backfill_job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.backfill_job_id","typeLabel":"string | null"},"export":{"type":"object","description":"`evaluation_export` jobs only: the range, the evaluations written, and once done the download links.","required":["since","until","judgments","evaluations","files","expires_at","links_unavailable"],"properties":{"since":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.since","typeLabel":"string\u003cdate-time>"},"until":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.until","typeLabel":"string\u003cdate-time>"},"judgments":{"oneOf":[{"type":"array","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.judgments.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.judgments.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"The judgments exported; null for every judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.judgments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.judgments","typeLabel":"string[] | null"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations written so far, the same as `progress.documents_done`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.evaluations","typeLabel":"integer\u003cint64>"},"files":{"type":"array","items":{"type":"object","description":"One gzipped JSON Lines file of an evaluation export.","required":["url","url_expires_at","evaluations","bytes"],"properties":{"url":{"oneOf":[{"type":"string","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","format":"uri","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"A signed download link on the API's host. It needs no API key and works until `url_expires_at`. Null when the link can't be made right now (`links_unavailable` says why).","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url","typeLabel":"string\u003curi> | null"},"url_expires_at":{"oneOf":[{"type":"string","description":"When `url` stops working; null with it.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When `url` stops working; null with it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url_expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].url_expires_at","typeLabel":"string\u003cdate-time> | null"},"evaluations":{"type":"integer","format":"int64","minimum":1,"description":"Lines in the file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].evaluations","typeLabel":"integer\u003cint64>"},"bytes":{"type":"integer","format":"int64","minimum":1,"description":"The file's size, compressed.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX].bytes","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.files","typeLabel":"object[]"},"expires_at":{"oneOf":[{"type":"string","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","format":"date-time","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the files are deleted, 7 days after the first was written. Null until the job is done, and when it wrote no file.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.expires_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.expires_at","typeLabel":"string\u003cdate-time> | null"},"links_unavailable":{"oneOf":[{"type":"string","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.links_unavailable.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why some or all of `files` have no `url` right now, with a request id for support. Null when every file has its link. The job and its files are unaffected; read the job again later for new links.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.links_unavailable.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export.links_unavailable","typeLabel":"string | null"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.export","typeLabel":"object"},"result":{"oneOf":[{"type":"object","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","required":["status","body"],"properties":{"status":{"type":"integer","minimum":200,"maximum":599,"description":"The HTTP status the request would have had.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.status","typeLabel":"integer"},"body":{"oneOf":[{"type":"object","required":["name","version","active","warnings","path","definition"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.name","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.version","typeLabel":"integer\u003cint32>"},"path":{"type":"string","description":"Whose account the version runs on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.path","typeLabel":"enum\u003cstring>"},"active":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.active","typeLabel":"boolean"},"warnings":{"type":"array","description":"Non-fatal problems, such as sending the whole `state`, a recipe suggested for you, no `applies_to` (the judgment judges, and bills, every document written to the namespace), a definition that names image paths (`images.\u003cname>`) on an engine that reads no images (decided from the definition alone, so it comes also before any document is written), a relation that renders a referenced document's `updated_at`, which changes on every write to it and so fans out every time, or a relation with an `order`, which reads up to 1,000 documents per judged document to sort them (the warning names the factor), can re-select on a write to the ordered field, may have judged documents with more matching documents than it sorts, or sorts by a long text field. A relation whose `match` selects documents by another judgment's answer is also warned, since it never reads a document whose answer is wrong, or whose change removes what that answer found, so select by topic (a judgment that asks whether a document is about the subject, including changing or removing it) and calibrate on outcomes so its numbers, and thresholds on them, mean what they say.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.warnings","typeLabel":"string[]"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.definition","typeLabel":"object"},"outcomes":{"type":"object","description":"From a starter with a suggested outcome setting only.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes.message","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.outcomes","typeLabel":"object"},"job_id":{"type":"string","description":"The first of `job_ids`, kept for clients written before `job_ids`. Read `job_ids` to see every job.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.job_id","typeLabel":"string"},"job_ids":{"type":"array","minItems":1,"description":"The `reference_index` jobs that build the indexes this version's relations need, one per attribute with no index yet, or whose index must be rebuilt to cover this version's documents (another `match`, or the attribute used the other way round), so two when it joins on two new attributes. Present exactly when `job_id` is. Until every job is done, the version's answers are `unavailable`, or `pending` for documents written since that an `on_change` judgment judges once the jobs are done.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.job_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0.job_ids","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.0","typeLabel":"object"},{"type":"object","description":"What a create would make, and what it would cost.\nNothing was created, written or billed.\n","required":["dry_run","path","definition","warnings","cost_per_answer","sampled_documents","estimate","replay","outcomes"],"properties":{"dry_run":{"const":true,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.dry_run","typeLabel":"any"},"path":{"type":"string","description":"Whose account the version would run on, from the engine in `definition`.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.path","typeLabel":"enum\u003cstring>"},"definition":{"oneOf":[{"type":"object","description":"The answer has `p`. With `parts` it is a composite judgment:\nthe engine is asked each part instead of `question`, and `p` combines\nthe parts' answers with weights fitted on the judgment's outcomes.\n","required":["type","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.question","typeLabel":"string"},"type":{"const":"bool","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `p` is at least the value, or, written `{feature, gte}` or `{feature, lte}`, when one of the judgment's features is at least or at most the number.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.thresholds","typeLabel":"object"},"parts":{"type":"array","description":"Composite judgments only: 2 to 8 narrow yes/no questions with\nnames unique within the judgment. They share the judgment's\ncontext recipe and engine, so they go in one engine request with\nits other questions, and each counts toward the 32 questions per\nrequest. `question` then documents what the combination means and\nis not sent to the engine. Parts are part of the version. They\ncannot reference other judgments. Each part is billed as a\njudgment. With `features`, one part is enough.\n","minItems":1,"maxItems":8,"items":{"type":"object","description":"One part of a composite judgment.","additionalProperties":false,"required":["name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].name","typeLabel":"string"},"question":{"type":"string","minLength":1,"description":"A narrow yes/no question about the document.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX].question","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.parts","typeLabel":"object[]"},"features":{"type":"array","description":"Up to 12 numbers, on any bool judgment: aggregates over related\ndocuments the recipe's `related` declares, the judged document's\nown values, ages, and the engine's previous answer (see\n`FeatureRef`). Each is recorded as a raw number beside every\nanswer under `features`, and on its evaluation, as of what that\nevaluation read, and never recomputed later. A threshold can\nname one, a query or subscription can filter on one, and the\nfit on your outcomes reads them beside the engine's answer. A\ncomposite judgment's combiner also takes them as numeric inputs\nbeside the parts, scaled automatically, a missing value counting\nas typical. Features add no questions, so they are never billed:\na change that moves only a feature records a new answer with no\nengine call. A judgment with relations created with features\ndebounces for 10 minutes unless its `freshness` sets\n`debounce_ms`. Changing the list makes a new version.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"The answer has `value`, `dist` and `escape_p`. The API appends\n`none_of_the_above` as a final option on every choice judgment.\n","required":["type","options","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.question","typeLabel":"string"},"type":{"const":"choice","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.type","typeLabel":"any"},"options":{"type":"any","description":"The options, whose values must be distinct; or `{from, label}`, one option per document a blocking relation of the recipe selects.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.options","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `dist[value]` is at least `gte`.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"object","additionalProperties":false,"required":["value","gte"],"properties":{"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.value","typeLabel":"string"},"gte":{"type":"number","minimum":0,"maximum":1,"description":"Answers keep probabilities to about seven significant digits and\nreturn them as the shortest decimal that stands for the stored value, so an engine's\n0.01 reads 0.01. Thresholds, query filters and threshold\nrecommendations compare that decimal.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties.gte","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`), and on a choice among candidates `\u003cfrom>.each(\u003cpath>)`, a number per candidate.\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist`, `escape_p` and `value`, so the fit can change which option or candidate is picked. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"The answer has `score`, the probability-weighted mean of level values, and `dist`.","required":["type","levels","name","question"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.question","typeLabel":"string"},"type":{"const":"score","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.type","typeLabel":"any"},"levels":{"type":"array","description":"Ordered; level values must be distinct.","minItems":2,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].value","typeLabel":"integer"},"label":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].label","typeLabel":"string"},"description":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.levels","typeLabel":"object[]"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.applies_to","typeLabel":"object"},"thresholds":{"type":"object","description":"Each threshold is true when `score` is at least the value.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds.additionalProperties","typeLabel":"number"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.thresholds","typeLabel":"object"},"features":{"type":"array","description":"Up to 12 numbers the fit on your outcomes weighs beside the\nengine's distribution, with a bool's sources (see `FeatureRef`).\nEach is recorded as a raw number beside every answer and its\nevaluation, as of what that evaluation read. Once a fit on them\nbeats the engine on outcomes it was not fitted on, every reader\nreads the fitted numbers: `dist` and `score`. Features add no questions and are\nnever billed. Changing the list makes a new version. Needs the\nfeatures release on the namespace's deployment.\n","minItems":1,"maxItems":12,"uniqueItems":true,"items":{"type":"string","description":"One number the judgment records beside every answer and its fit can\nread. It is one of:\n\n- An aggregate the recipe declares, as `\u003crelation>.count`,\n `\u003crelation>.count_where`, `\u003crelation>.labelled` or\n `\u003crelation>.\u003csum|avg|min|max|latest>(\u003cpath>)`, such as\n `tickets.count` or `invoices.sum(state.amount)`. A `min` or `max`\n over an answer's `p` or `score` gives the raw extreme, whatever\n band the context shows; a `latest` over an answer's threshold\n reads 1 or 0. A `latest` over an answer's `value` is not a number\n and is `invalid_request`. A `sum` or `avg` over an answer's number\n is a feature only. A `latest` over a `bool` outcome reads 1 or 0,\n over a `score` outcome its level; over a `choice` outcome it is\n `invalid_request`.\n- The judged document's own value, `state.\u003cpath>` or\n `attributes.\u003cname>`: a number as itself, a boolean as 1 or 0,\n anything else missing. It needs no relation.\n- An age in fractional days, `age(created_at)`,\n `age(\u003cstate or attributes path>)` or\n `age(\u003crelation>.\u003clatest|min|max>(\u003cpath>))` over an aggregate the\n recipe declares. It is measured as of the judged document's own\n `updated_at` at the revision judged, so a write to a related\n document never moves it, and a new revision of the judged\n document does. The value must be an RFC 3339 string; a number\n or any other value reads missing, and a later time reads\n negative. `age(updated_at)` is `invalid_request`: as of the\n judged revision it is always 0.\n- `previous.p`: the engine's own `p` the last time it judged the\n document with the same engine version, in the same life of the\n document; on a choice, its `1 - escape_p`. Missing on the first\n judgment, after the document is created again, after the engine\n version changes, and on a composite, which has none. On a score\n it is `invalid_request`.\n- On a choice among candidates (`options.from`) only, a number per\n candidate, `\u003cfrom>.each(\u003cpath>)` over the `options.from`\n relation: each candidate's `state.\u003cpath>` or `attributes.\u003cname>`,\n or `age(created_at)`, `age(updated_at)` or `age(\u003cstate or\n attributes path>)` of the candidate, as of the judged document's\n revision. It is recorded for each candidate the engine read,\n under the answer's `candidate_features`. A candidate's answers\n are `invalid_request`: keep the number on the candidate's state.\n\nA name the recipe declares as an aggregate always reads that\naggregate. A feature that reads a path an outcome rule reads, one\ninside the other, is `invalid_request`.\n","pattern":"^([A-Za-z0-9_-]+\\.(count|count_where|labelled|(sum|avg|min|max|latest)\\((state|attributes)(\\.[^.()]+)+\\)|(min|max|latest)\\((created_at|updated_at)\\)|(sum|avg|min|max)\\(answers\\.[A-Za-z0-9_-]+\\.(p|score|dist\\.[^()]+)\\)|latest\\(answers\\.[A-Za-z0-9_-]+\\.thresholds\\.[A-Za-z0-9_-]+\\)|latest\\(outcomes\\.[A-Za-z0-9_-]+\\.value\\))|(state|attributes)(\\.[^.()]+)+|age\\((created_at|(state|attributes)(\\.[^.()]+)+|[A-Za-z0-9_-]+\\.(latest|min|max)\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\)|previous\\.p|[A-Za-z0-9_-]+\\.each\\(((state|attributes)(\\.[^.()]+)+|age\\((created_at|updated_at|(state|attributes)(\\.[^.()]+)+)\\))\\))$","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2.features","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a text of at most `max_chars` characters,\nmarked `truncated` when it was cut. A text column takes no\n`thresholds`, `features`, `parts`, `options`, `levels` or outcomes,\nand its answers carry no probability. The engine must list `text` in\nits `outputs`.\n","required":["type","name","question"],"example":{"name":"summary","type":"text","question":"Summarise the customer's request in one sentence.","max_chars":400,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.question","typeLabel":"string"},"type":{"const":"text","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.applies_to","typeLabel":"object"},"max_chars":{"type":"integer","minimum":1,"maximum":16000,"default":2000,"description":"The most Unicode characters a value keeps; a longer one is cut and marked `truncated`, never failed. Part of the definition, so changing it creates a version.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3.max_chars","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"The answer's `value` is a JSON value; with `schema`, an object that\nsatisfies it. A value that does not satisfy the schema fails the\nevaluation, whose error names the first rule it breaks, and the\nanswer keeps its last good value. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list `json`\nin its `outputs`.\n","required":["type","name","question"],"example":{"name":"extract","type":"json","question":"Extract the invoice fields.","schema":{"type":"object","properties":{"amount":{"type":"number"},"currency":{"type":"string"},"invoice":{"type":"string"}},"required":["amount","currency"],"additionalProperties":false},"context":{"fields":["state.body"]},"engine":{"name":"openai/gpt-5.2","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.question","typeLabel":"string"},"type":{"const":"json","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.type","typeLabel":"any"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.applies_to","typeLabel":"object"},"schema":{"type":"object","description":"A JSON Schema whose root is `type: object`, at most 16 KiB, using\nonly `type`, `properties`, `required`, `additionalProperties` (true\nor false), `items`, `enum`, `const`, `anyOf`, `description`,\n`$defs`, `$ref` (to `#/$defs/\u003cname>`), `minimum`, `maximum`,\n`minLength`, `maxLength`, `minItems` and `maxItems`. Any other\nkeyword is refused, naming it in `details.keyword`. Part of the\ndefinition, so changing it creates a version.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4.schema","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.4","typeLabel":"object"},{"type":"object","description":"The answer's `value` is an array of `dimensions` numbers computed\nfrom the context. `question` describes the column and is not sent to\nthe engine; `criteria` is refused. No `thresholds`, `features`,\n`parts`, `options`, `levels` or outcomes. The engine must list\n`embedding` in its `outputs`.\n","required":["type","dimensions","name","question"],"example":{"name":"ticket_vector","type":"embedding","question":"The ticket's subject and body, for similarity search in our own index.","dimensions":1536,"context":{"fields":["state.subject","state.body"]},"engine":{"name":"openai/text-embedding-3-small","version":"current"}},"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.name","typeLabel":"string"},"question":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.question","typeLabel":"string"},"type":{"const":"embedding","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.type","typeLabel":"any"},"dimensions":{"type":"integer","minimum":1,"maximum":4096,"description":"How many numbers each value has. Part of the definition, so changing it creates a version.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.dimensions","typeLabel":"integer"},"criteria":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.criteria","typeLabel":"string"},"context":{"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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields.items.[INDEX]","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.related.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.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":{"type":"any","description":"A `state` or `attributes` path of the judged document, or an image path `images.\u003cname>`, rendered verbatim; or a `ClippedPath`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.fields","typeLabel":"any[]"},"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context.previous","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.context","typeLabel":"object"},"engine":{"type":"object","description":"Must be `active` in the registry. When omitted, Brussle fills it in: the namespace's `default_engine`, else the default model of your key for a provider Brussle serves when the namespace or your organization has one, else the included engine for the type. The created version records the result, and `path` says whether it runs on your key or on an included engine. Only an engine with `limits.images` reads the images the recipe selects.","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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine.version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.engine","typeLabel":"object"},"horizon":{"type":"string","description":"How long after an answer an outcome still labels it, such as\n`30d` for \"the invoice was paid within 30 days\". Part of the definition, so\nchanging it creates a version. Defaults to `0s`, which joins\nlabelled examples to current answers.\n","pattern":"^(0|[1-9][0-9]*)[smhd]$","default":"0s","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.horizon","typeLabel":"string"},"applies_to":{"type":"object","description":"The judgment judges, answers and bills only documents whose attributes match. A document that does not match\nhas no answer for it: `answers` omits it. Without it, the judgment\njudges, answers and bills every document in the namespace, and the\ncreate response warns. Part of the definition, so changing it\ncreates a version.\n","minProperties":1,"maxProperties":8,"propertyNames":{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_-]+$"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to.additionalProperties","typeLabel":"any"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5.applies_to","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.definition","typeLabel":"object"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.warnings.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.warnings","typeLabel":"string[]"},"cost_per_answer":{"oneOf":[{"type":"number","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean judgments per answer over `sampled_documents` of the\ndocuments the definition applies to, each counted by its size\nclass as a backfill estimate counts them: 1 when every answer is\nstandard, 4 when every one is large, 2 for a standard composite of\nfive parts with short questions (the first in full, each other a\nquarter). Null when\nthere is nothing to sample, and on a template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.sampled_documents","typeLabel":"integer"},"estimate":{"oneOf":[{"type":"object","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.0","typeLabel":"object"},{"type":"null","description":"What backfilling every document the definition applies to would\ncost once it exists. Creating never backfills by itself. Null on\na template's prefix path.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.estimate","typeLabel":"object | null"},"replay":{"oneOf":[{"type":"object","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.0","typeLabel":"object"},{"type":"null","description":"An entity judgment's monthly replay estimate, whatever its policy; null for others.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.replay","typeLabel":"object | null"},"outcomes":{"oneOf":[{"type":"object","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","required":["suggested","applied","plan_required","message"],"properties":{"suggested":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"oneOf":[{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","value"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.value","typeLabel":"boolean | string | integer"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","value"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value.oneOf.2","typeLabel":"integer"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.value","typeLabel":"boolean | string | integer"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1.from","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["when","from"],"properties":{"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.when","typeLabel":"object"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.from","typeLabel":"string"},"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.on","typeLabel":"string"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One outcome rule: when a write changes the value at\n`when.path` to the target, the write is an outcome with `value`, or\nthe value at `from` after the write. A write that leaves the value\nwhere it was, a retry included, derives nothing, and a delete never\ndoes. A write that creates the document compares with nothing.\nChecked against the judgment's type when set: a `bool` takes `value`\n`true` or `false`, a `choice` an option and a `score` a level. A\n`from` value that does not fit (or a missing `from` path) is kept but\nadds no sample; the report counts it in\n`unmatched_outcomes.does_not_fit`.\n\n`on` instead of `when` fires when the value at the path\ngoes from absent or null to present, such as a payment's\n`state.settles` recorded when it is matched. A rule is checked on a write when the document matched the judgment's\n`applies_to` before it, so the write that takes a matched document\nout of `applies_to` still produces its outcome.\n","required":["on","from"],"properties":{"on":{"type":"string","description":"Fires when this path goes from absent or null to present.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.on","typeLabel":"string"},"from":{"type":"string","description":"For `choice` and `score` judgments, the path whose value after the write is the outcome, such as a ticket's final `state.team`. A number with no fraction reads as a level.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.from","typeLabel":"string"},"when":{"oneOf":[{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","becomes"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.path","typeLabel":"string"},"becomes":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.becomes","typeLabel":"string | number | boolean"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in.items.[INDEX]","typeLabel":"string | number | boolean"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0.in","typeLabel":"(string | number | boolean)[]"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.0","typeLabel":"object"},{"type":"object","description":"The value at `path` becomes `becomes`, or one of `in`, in this write.\nIt fires only when the value was not already the target (for `in`,\nnot already in the list); numbers compare by value.\n","required":["path","in"],"properties":{"path":{"type":"string","description":"One attribute, `attributes.\u003cname>`, or a key path inside state, `state.\u003ckey>[.\u003ckey>...]`.","pattern":"^(attributes\\.[A-Za-z0-9_-]+|state(\\.[^.]+)+)$","examples":["attributes.status","state.team"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.path","typeLabel":"string"},"in":{"type":"array","minItems":1,"maxItems":16,"items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in.items.[INDEX]","typeLabel":"string | number | boolean"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.in","typeLabel":"(string | number | boolean)[]"},"becomes":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1.becomes","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when.oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.when","typeLabel":"object"},"value":{"oneOf":[{"description":"The outcome, a constant matching the judgment type.","type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.0","typeLabel":"boolean"},{"description":"The outcome, a constant matching the judgment type.","type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.1","typeLabel":"string"},{"description":"The outcome, a constant matching the judgment type.","type":"integer","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value.oneOf.2","typeLabel":"integer"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3.value","typeLabel":"boolean | string | integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules.items.[INDEX]","typeLabel":"object"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.rules","typeLabel":"object[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.suggested","typeLabel":"object"},"applied":{"oneOf":[{"type":"object","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0.implicit_negatives","typeLabel":"boolean"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.0","typeLabel":"object"},{"type":"null","description":"The setting now on the judgment, or in a dry run the one the create would apply; null when nothing is applied.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.applied","typeLabel":"object | null"},"plan_required":{"oneOf":[{"type":"object","description":"Why the rules were not applied, when the plan lacks outcome rules.","required":["message","capability","required_plan","plan"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.message","typeLabel":"string"},"capability":{"type":"string","enum":["outcome_rules"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.capability","typeLabel":"enum\u003cstring>"},"required_plan":{"type":"string","enum":["team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.required_plan","typeLabel":"enum\u003cstring>"},"plan":{"type":"string","enum":["developer","team","scale"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0.plan","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the rules were not applied, when the plan lacks outcome rules.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.plan_required","typeLabel":"object | null"},"message":{"type":"string","description":"What happened (in a dry run, what would happen), and what to do, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.0","typeLabel":"object"},{"type":"null","description":"For a starter with a suggested outcome setting, what the create would apply; null otherwise.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1.outcomes","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.1","typeLabel":"object"},{"type":"object","description":"An unconfirmed create of an entity judgment that runs `on_change`. Nothing was created.","required":["replay"],"properties":{"replay":{"type":"object","description":"What an entity judgment would cost a month, from the\nnamespace's last 30 days of writes run through its relations,\ndebounce and ceiling rules. The replay cannot see every edit to a\nrelated document, only its creation, its latest write and the\ndeletes still recorded: exact for documents written once, and for\noften-edited documents the figures are a lower bound\n(`lower_bound`). It does not count the evaluations an unchanged context saves, which only lower the bill.\n","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.replay","typeLabel":"object"},"fanout":{"type":"object","description":"For a judgment with a relation: the rolling limit\n`confirm: true` sets, from `freshness.fanout` in the request or the\ndefault of 300,000, and what it costs if used in full. Work past it is\ndeferred at runtime, never put to you again. Set\n`freshness.fanout.rolling_limit` to `null` to confirm with no limit:\nevery change then re-judges every in-scope document, with no\ndeferral, and only the namespace's budget caps what fan-out\nspends.\n","required":["rolling_limit","cost_usd_at_limit"],"properties":{"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"description":"Re-judgments by referenced and block changes and by the answers it reads moving, allowed in any 30 days; null for no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"cost_usd_at_limit":{"oneOf":[{"type":"number","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"What `rolling_limit` re-judgments cost in 30 days at the sample's judgments per answer and your organization's tiers; null with no limit.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout.cost_usd_at_limit","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.fanout","typeLabel":"object"},"warnings":{"type":"array","description":"Non-fatal problems the confirmed create would also return, present only when there are some, such as a relation with an `order` whose judged documents already have more than the 1,000 matching documents it sorts.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.warnings","typeLabel":"string[]"},"graph_ceiling":{"oneOf":[{"type":"object","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","required":["cost_usd","judgments"],"properties":{"cost_usd":{"type":"number","minimum":0,"description":"The sum of `judgments`' costs, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.cost_usd","typeLabel":"number"},"judgments":{"type":"array","description":"This judgment first, then each judgment that reads its answers.","items":{"type":"object","required":["judgment","rolling_limit","cost_usd"],"properties":{"judgment":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].judgment","typeLabel":"string"},"rolling_limit":{"type":"integer","format":"int64","minimum":0,"description":"Its compiles allowed in any 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].rolling_limit","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What that many compiles cost, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0.judgments","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.0","typeLabel":"object"},{"type":"null","description":"What this judgment and every judgment that reads its answers,\ndirectly or through others, would cost in 30 days if each spent\nits whole rolling limit, at its size class and your\norganization's tiers, with every compile billed: an upper bound,\nunlike the replay. Null when one of them has no rolling limit,\nwhich `graph_ceiling_unlimited` names.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling","typeLabel":"object | null"},"graph_ceiling_unlimited":{"type":"array","description":"Present when `graph_ceiling` is null. The judgments among them whose `rolling_limit` is null.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2.graph_ceiling_unlimited","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.2","typeLabel":"object"},{"type":"object","required":["judgment"],"properties":{"judgment":{"type":"object","required":["name","active_version","path","freshness","thresholds","outcomes","judged_through","versions"],"properties":{"name":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.name","typeLabel":"string"},"path":{"type":"string","description":"Whose account the active version runs on; the latest version's once the judgment is deactivated. Brussle never moves a judgment between the two; a version on the other engine, activated, does.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.path","typeLabel":"enum\u003cstring>"},"active_version":{"type":"any","description":"Null once the judgment is deactivated.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.active_version","typeLabel":"any"},"judged_through":{"type":"any","description":"How far the judgment has judged this namespace's writes, as a\nrevision. Every write whose `revision` is at or below it is done for\nthis judgment: each document whose answer it affects has its answer,\nor its final attempt failed, or is one the judgment does not judge\n(outside `applies_to`, outside the fan-out's scope of a change to a\ndocument it reads, or already there when the judgment was created and\nwaiting for a backfill). Compare it with the `revision` your last write returned:\nonce it is at or above that, the judgment has finished with the write\nand every write before it.\n\nA write the judgment has not finished with keeps it below that write,\nwhatever the reason: being judged, waiting for its debounce or for\nthe engine, judging paused, or no room in the rolling limit. The\nanswers' `freshness` and `stale_reason` say which. For a judgment\nwith a relation, a write to a document it reads keeps it below that\nwrite until the documents that read it are judged again. For a\njudgment whose relations read other judgments' answers (a roll-up,\na judged link), a write keeps it below that write until each\njudgment it reads, down the chain, has finished with the write, and\nthis judgment has judged again the documents whose answers it read\nchanged. It can trail the answers by a moment, and never runs ahead\nof them.\n\nNull when no revision can say this: the judgment has no active\nversion, or its policy is not `on_change` (nothing judges writes as\nthey arrive). It can also be null for a short time after an upgrade\nof Brussle, until the judgment has finished the work it had waiting.\nA strong `query` for a `pending` answer works for every judgment.\n","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.judged_through","typeLabel":"any"},"freshness":{"type":"object","description":"Settings, not part of the definition. Changing them creates no version.","additionalProperties":false,"properties":{"policy":{"type":"string","description":"`on_read` (default) computes on first read, then caches until the\ndocument changes; it cannot be used in a query filter or rank.\n`on_change` recomputes whenever a document changes, the policy for a\njudgment filtered or ranked on. `periodic` recomputes every\n`interval`. `manual` is backfill only. A query can filter and rank on\n`on_change`, `periodic` and `manual` answers, as stored.\n","enum":["on_read","on_change","periodic","manual"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.policy","typeLabel":"enum\u003cstring>"},"debounce_ms":{"type":"integer","minimum":0,"default":0,"description":"A document changed more recently than this is not judged until it settles. Defaults to 0, and to 600000 (10 minutes) for a judgment created with `features`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.debounce_ms","typeLabel":"integer"},"interval":{"type":"string","description":"Recompute interval for `periodic`, such as `1h` or `1d`. At least `1h`, because each run re-judges the whole namespace; a shorter one is `invalid_request`.","pattern":"^[1-9][0-9]*[smhd]$","conditionalRequirements":[{"when":[[{"property":"policy","values":["periodic"]}]]}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.interval","typeLabel":"string"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The debounce ceiling: a document that keeps\nchanging is still judged once this long has passed since its\noldest unjudged change. At least `debounce_ms`; `null` means no\nceiling. Defaults to 12 × `debounce_ms` for an entity judgment with\na `debounce_ms` above 0, and to no ceiling otherwise: with no\ndebounce a document is judged at once. `GET` returns the value in\neffect.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.max_wait_ms","typeLabel":"integer | null"},"wait_for_children":{"type":"boolean","default":false,"description":"For a judgment whose relations read other judgments' answers.\nWhile an answer that a relation reads is `pending`, the document\nwaits and is judged once those answers land, so a load of\nrelated documents costs one evaluation of the document, not one\nbefore and one after their answers. It does not wait for an\nanswer that reads `stale` (`limit_reached` or `judging_paused`),\n`failed` or `unavailable`, since none of these is on its way. The\nwait is at most `max_wait_ms` from the document's oldest unjudged\nchange, or 10 minutes when no ceiling is in effect; then the\ndocument is judged with the answers it has. A judgment that reads\nno answers refuses `true` with `invalid_request`. `GET` returns it\nfor every judgment that reads answers.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.wait_for_children","typeLabel":"boolean"},"fanout":{"type":"object","description":"For a judgment with a relation that reads a referenced document, or a blocking relation: which judged documents a change re-judges, and when. Only a\nchange to what the relation renders counts. Every key is optional in\na request, and `GET` returns every value in effect for a judgment\nthat can fan out. In a `PATCH`, the keys you send replace those keys\nand the others keep their values.\n\n`rolling_limit` applies to every judgment with a relation, roll-ups\nincluded, since another judgment's answer moving re-judges it too:\nfor a judgment with relations that cannot fan out, `GET` returns\n`rolling_limit` alone.\n\nNo re-judge waits for a confirm. You confirm the rolling\nlimit once, when you create the judgment; work that would pass\nit, or a block past `block_cap`, is deferred, its answers read\n`stale` (`limit_reached`) with a `judgment.limit_reached` event, and\nit runs once the window has room or a `PATCH` raises the limit. As\nmuch of a change as the window has room for runs, at most 1,000\nre-judges at a time, and only the rest waits.\n","additionalProperties":false,"minProperties":1,"properties":{"scope":{"type":"object","description":"The re-judge scope: which judged documents a\nchange to a referenced document at log position c re-judges. At the\nfan-out's snapshot, a judged document is in scope when it points at\nthe referenced document, matches `applies_to` and `where`, and was\ncreated no more than `created_within` before the write at c. A judged\ndocument outside the scope is not re-judged: its answer reads `stale`\nwith `stale_reason` `referenced_changed` until the document is judged\nagain, and its `watermark` says which version of the referenced\ndocument it read.\n","additionalProperties":false,"minProperties":1,"properties":{"created_within":{"type":"any","description":"Only judged documents created no more than this long before the change. `null` means all of them. Defaults to `30d`.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.created_within","typeLabel":"any"},"where":{"type":"any","description":"Narrows the scope to judged documents whose attributes match, such as `{\"attributes.status\": \"open\"}`. `null` removes it. None by default.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope.where","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.scope","typeLabel":"object"},"debounce_ms":{"type":"integer","minimum":0,"default":600000,"description":"A referenced document that changed more recently than this is not fanned out until it settles, so a burst of changes to it costs one fan-out. Counts changes to what the relation renders, per referenced document (per block). The judgment's own `debounce_ms` still governs the judged documents' own writes.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.debounce_ms","typeLabel":"integer"},"max_wait_ms":{"oneOf":[{"type":"integer","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The ceiling. A referenced document that keeps changing still fans out once this long has passed since its oldest change not yet fanned out. At least `debounce_ms`; `null` means no ceiling. Defaults to 6 × `debounce_ms`, one hour at the default debounce.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.max_wait_ms","typeLabel":"integer | null"},"rolling_limit":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"default":300000,"description":"The most documents this judgment re-judges in any 30 days because of changes to referenced documents and blocks and the answers it reads moving, whether or not a re-judge needs an engine call, confirmed when you create the judgment. Work that would take the window past it runs as far as the room allows, and the rest is deferred until the window has room. Each re-judge counts once, when its answer lands. `null` removes the limit, so every change re-judges every in-scope document, with no deferral, and the namespace budget alone bounds it.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.rolling_limit","typeLabel":"integer\u003cint64> | null"},"block_cap":{"type":"integer","format":"int64","minimum":1,"default":1000,"description":"For a blocking relation. The most judged documents one key value's block may hold. At create, a key value over it is `invalid_request`; a block that grows past it later is deferred, its answers `stale` (`limit_reached`) with a `judgment.limit_reached` event naming the key value, until the cap is raised.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout.block_cap","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.fanout","typeLabel":"object"},"budget":{"type":"any","description":"The most engine calls the judgment may make in a UTC day or in\nthe organization's billing period. A call is one document\nsent to the engine for this judgment, its retries included. A\nwrite that changes nothing the judgment reads, shadow samples\nand repairs are not calls. Past the budget, nothing more is\nsent or billed for the judgment: a changed document keeps its\nlast answer, which reads `stale` (`budget_reached`), a document\nnever judged reads `unavailable`, and one\n`judgment.budget_reached` event is sent. Judging resumes on its\nown when the period ends, oldest change first, or within seconds\nof a `PATCH` that raises the budget. With more than one worker\njudging the namespace at once, up to 16 calls per other worker\nmay go past it. In a `PATCH`, `null` removes the budget. A new\nversion keeps it. On a template, each namespace counts its own\ncalls. `budget_window` on `GET` shows the calls so far.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness.budget","typeLabel":"any"}},"conditionallyRequiredProperties":{"interval":[{"when":[[{"property":"policy","values":["periodic"]}]]}]},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.freshness","typeLabel":"object"},"thresholds":{"type":"object","description":"The judgment's named thresholds, a setting rather than part of a\nversion. Each is a number for a bool judgment (true when `p` is\nat least it) or a score judgment (true when `score` is at least it),\n`{value, gte}` for a choice judgment (true when `dist[value]` is at\nleast `gte`), or `{feature, gte}` or `{feature, lte}` for a bool\njudgment with features. They are evaluated at read time against the\nraw fields, never the `calibrated` ones. A threshold that does not\nfit the judgment's type, or names a feature or option its version\ndoes not have, is `invalid_request`.\n","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.thresholds","typeLabel":"object"},"outcomes":{"type":"object","description":"How the judgment's outcomes are read and derived, a setting\nrather than part of a version. See [calibration](/concepts/calibration).\n","additionalProperties":false,"properties":{"rules":{"type":"array","maxItems":4,"items":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules.items.[INDEX]","typeLabel":"any"},"description":"Derive outcomes from the judged document's own writes, so labels\narrive without posting them. Each rule is checked on every write\nto a document from when it is set; earlier writes are never\nreplayed. Derived outcomes are stored with the write, join like\nposted ones, and a posted outcome beats a derived one in the same\nprediction window. With a `0s` horizon, a derived outcome labels\nthe answer to the document as it was just before the write that\nrevealed it. Omitted when there are none. Not accepted on a\ntemplate's prefix path. Setting rules needs the Team plan or above\n(`plan_required`); clearing them never does. Outcomes derived\nwhile the plan does not include rules are kept but left out of\ncalibration (`rule_outcomes_paused` in the report).\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.rules","typeLabel":"any[]"},"implicit_negatives":{"type":"boolean","default":false,"description":"For a `bool` judgment with a non-zero `horizon` only. When true, a\nprediction window that has closed with no outcome counts as a\n`false` outcome, so you only need to post what happened. A window\nstill open counts nothing yet, one whose document was deleted\nbefore it closed is left out unless an outcome labels it, and one\nopened at or after a `true` for the document is left out; the\nreport counts them in `censored_predictions`. Leave it off when a\nmissing outcome does not\nmean \"no\", for example when you only record some of what happens.\nOn a namespace that inherits the judgment, set it on the\ntemplate's prefix path: its calibration is shared.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes.implicit_negatives","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.outcomes","typeLabel":"object"},"versions":{"type":"array","description":"Every version, oldest first. Versions are kept until the namespace is deleted.","items":{"type":"object","required":["version","created_at","path","definition"],"properties":{"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"path":{"type":"string","description":"Whose account this version runs on, from its engine.","enum":["included","customer_key"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].path","typeLabel":"enum\u003cstring>"},"definition":{"type":"any","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX].definition","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.versions","typeLabel":"object[]"},"calibration":{"type":"object","description":"The calibration setting. Always present on a judgment read from a current deployment; `mode` is `auto` until a pin is set.","required":["mode","pins"],"properties":{"mode":{"type":"string","enum":["auto","pinned","not_applicable"],"description":"`auto`: answers read the newest run's fit for their version and epoch. `pinned`: at least one version and epoch reads a pinned fit. `not_applicable`: a `text`, `json` or `embedding` judgment, whose answers carry no number to correct; its `pins` are empty and cannot be set.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.mode","typeLabel":"enum\u003cstring>"},"pins":{"type":"array","items":{"type":"object","description":"A pinned fit: answers of `version` in epoch `engine_version` read it\ninstead of the newest run's, whether or not a later fit would have\ndone better, until the pin is lifted. A pin never reaches another\nepoch: after an engine drift the new epoch reads its own fits, and\nthe pinned one only as the previous epoch's while it has none\n(`from_previous_epoch`).\n","required":["run","version","engine","engine_version","fit","pinned_at"],"properties":{"run":{"type":"string","description":"The run the fit was pinned from.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].run","typeLabel":"string"},"version":{"type":"integer","format":"int32","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].version","typeLabel":"integer\u003cint32>"},"engine":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine","typeLabel":"string"},"engine_version":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].engine_version","typeLabel":"string"},"fit":{"type":"string","description":"The fit's id when it was pinned.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].fit","typeLabel":"string"},"pinned_at":{"type":"string","format":"date-time","description":"RFC 3339, UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].pinned_at","typeLabel":"string\u003cdate-time>"},"suspended":{"type":"string","enum":["older_preprocessing"],"description":"Present when the pin no longer applies and the version and epoch read as `auto`: `older_preprocessing`, the pinned fit reads the features as Brussle stored them before a change to how they are stored, so it cannot be read now. Pin a fit made since, or lift the pin.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX].suspended","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration.pins","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.calibration","typeLabel":"object"},"alternatives":{"type":"object","description":"The alternatives setting; absent while it is the default (`automatic` off, no engine skipped).","additionalProperties":false,"properties":{"automatic":{"type":"boolean","description":"Start the alternatives run by itself after a fit, at most monthly, at most 10 alternatives on 500 labelled answers, billed as judging. Off by default.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.automatic","typeLabel":"boolean"},"skip_engines":{"type":"array","description":"Engines not to score as automatic alternatives.","items":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX].version","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives.skip_engines","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.alternatives","typeLabel":"object"},"template":{"type":"string","description":"Present when the judgment is inherited, the template prefix it comes from, such as `acme/prod/*`.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.template","typeLabel":"string"},"overrides":{"type":"array","description":"Present when the judgment is inherited. The settings this namespace overrides; the others follow the template.","uniqueItems":true,"items":{"type":"string","enum":["thresholds","freshness"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.overrides","typeLabel":"enum\u003cstring>[]"},"fanout_sources":{"type":"object","description":"Where each value in `freshness.fanout` comes from, key for key. Present exactly when `freshness.fanout` is, with the same keys: `rolling_limit` alone for a judgment with relations that cannot fan out. A\n`where` removed with `null` is the default, no filter; any other\n`null` the judgment set, such as `created_within: null`, is the\njudgment's.\n","required":["rolling_limit"],"properties":{"rolling_limit":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.rolling_limit","typeLabel":"enum\u003cstring>"},"scope":{"type":"object","required":["created_within","where"],"properties":{"created_within":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.created_within","typeLabel":"enum\u003cstring>"},"where":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope.where","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.scope","typeLabel":"object"},"debounce_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.debounce_ms","typeLabel":"enum\u003cstring>"},"max_wait_ms":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.max_wait_ms","typeLabel":"enum\u003cstring>"},"block_cap":{"type":"string","description":"Where a fan-out value in effect comes from:\n`judgment` when the judgment set it (on an inherited judgment, its\ntemplate or this namespace's override), and `default` for the\nbuilt-in default.\n","enum":["judgment","default"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources.block_cap","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_sources","typeLabel":"object"},"fanout_window":{"type":"object","description":"Response only. How much of\n`freshness.fanout.rolling_limit` the judgment has used: the\nre-judgments counted in the rolling 30-day window, each counted once\nwhen its answer lands. Present exactly when `freshness.fanout` is,\nso on every judgment with a relation. Work that would take `used`\npast the limit waits, deferred.\n","required":["used","rolls_at"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment re-judged in the last 30 days because of changes to referenced documents and blocks and the answers it reads moving.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.used","typeLabel":"integer\u003cint64>"},"rolls_at":{"type":"any","description":"When the window next rolls past a day that counts, freeing its re-judgments; null when nothing counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window.rolls_at","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.fanout_window","typeLabel":"object"},"budget_window":{"type":"object","description":"Response only. The judgment's engine calls in the period its\n`freshness.budget` counts, whether the budget is reached, and the\nlast 7 days with a month projected from them, so a budget can be\nchosen before it is set. Present on every judgment.\n","required":["used","period_start","period_end","reached_at","resumes_at","last_7_days","projected_month"],"properties":{"used":{"type":"integer","format":"int64","minimum":0,"description":"Engine calls in the period, counted as their answers land. With no budget, the calls of the UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.used","typeLabel":"integer\u003cint64>"},"period_start":{"type":"string","format":"date","description":"The first day of the period counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of the period counted. The next period starts at 00:00 UTC the day after it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.period_end","typeLabel":"string\u003cdate>"},"reached_at":{"type":"any","description":"When the calls reached the budget in this period; null while they have not, or once a raise made room.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.reached_at","typeLabel":"any"},"resumes_at":{"type":"any","description":"While the budget is reached, when the period ends and judging resumes on its own; otherwise null.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.resumes_at","typeLabel":"any"},"last_7_days":{"type":"object","required":["days","since","calls"],"properties":{"days":{"type":"integer","minimum":1,"maximum":7,"description":"The days counted, today included. Fewer than 7 for a judgment that made its first call less than 7 days ago.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.days","typeLabel":"integer"},"since":{"type":"string","format":"date","description":"The first day counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.since","typeLabel":"string\u003cdate>"},"calls":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days.calls","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.last_7_days","typeLabel":"object"},"projected_month":{"type":"any","description":"A 30-day month at the rate of `last_7_days`. Null until the judgment has made calls for one full UTC day.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window.projected_month","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.budget_window","typeLabel":"object"},"escape_alert":{"type":"any","description":"A setting of a fixed-option `choice`: when the\nshare of its answers over the last 7 days that are\n`none_of_the_above` rises above this, the judgment gains the\n`taxonomy_drift` warning and the events feed one\n`judgment.taxonomy_drift`. Null (the default) turns it off. Nothing\nchanges on its own: run `discover` when you want proposals.\n","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.escape_alert","typeLabel":"any"},"warnings":{"type":"array","description":"Conditions to act on, such as `taxonomy_drift`. Absent when there are none.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.warnings","typeLabel":"object[]"},"readers":{"type":"array","description":"The judgments whose relations read this one's answers. While there are any, a change that would break them is `conflict` naming them in `details.readers`. That is deleting or deactivating it, a policy other than `on_change`, a fan-out scope on a judgment that reads a referenced document or a block, removing a threshold a reader names, or a version that is a composite with parts or chooses among candidates (unless the reader only counts whether the value is `none_of_the_above`), whose answers lack a part a reader reads, that narrows `applies_to` below a reader's `match`, or that would make a reader read more than three deep (`details.chain` is the chain). For a judgment read through judged links, it is also a version that no longer chooses among candidates, or whose candidates share another key attribute. Absent when there are none.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.readers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.readers","typeLabel":"string[]"},"upstream":{"type":"array","description":"Each chain of judgments this one reads the answers of, from the one it reads first down to one that reads none, with their debounces summed. That is roughly how long a change at the end of the chain takes to reach this judgment, before its own debounce. Absent when it reads no answers.","items":{"type":"object","required":["path","debounce_ms"],"properties":{"path":{"type":"array","minItems":1,"maxItems":3,"items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].path","typeLabel":"string[]"},"debounce_ms":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX].debounce_ms","typeLabel":"integer\u003cint64>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.upstream","typeLabel":"object[]"},"stats":{"type":"object","description":"Today's evaluations of the judgment in this namespace, UTC. The dashboard's per-judgment numbers. Before the day's\nfirst evaluation only `day`, `evaluations` (0) and `spend_usd` (0)\nare present.\n","required":["day","evaluations","spend_usd"],"properties":{"day":{"type":"string","format":"date","description":"Today, UTC, as `yyyy-mm-dd`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.day","typeLabel":"string\u003cdate>"},"evaluations":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations recorded today, successful or not.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.evaluations","typeLabel":"integer\u003cint64>"},"spend_usd":{"type":"number","minimum":0,"description":"Judging billed today, in US dollars, at your judgment prices.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.spend_usd","typeLabel":"number"},"tokens_per_document":{"oneOf":[{"type":"number","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Mean compiled context tokens per evaluation.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.tokens_per_document","typeLabel":"number | null"},"truncation_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations whose context was truncated to fit.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.truncation_rate","typeLabel":"number | null"},"relations_capped_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations with `relations_capped`, a relation that stopped before considering every matching document.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.relations_capped_rate","typeLabel":"number | null"},"error_rate":{"oneOf":[{"type":"number","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"maximum":1,"description":"The share of evaluations that failed.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.error_rate","typeLabel":"number | null"},"freshness_lag_p90_ms":{"oneOf":[{"type":"number","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"Freshness lag p90, from a write to its answer's commit, in milliseconds.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats.freshness_lag_p90_ms","typeLabel":"number | null"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.stats","typeLabel":"object"},"engine_status":{"type":"object","description":"The engine the active version runs on, as its new answers record it:\nwhich key it runs on, the epoch and model id new answers carry, how\nBrussle watches it for a change of behaviour, and a retirement its\nprovider announced. A part Brussle cannot read at the moment is\n`null`.\n","required":["engine","slot","engine_version","model_id","watch","retires_at","successor"],"properties":{"engine":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine","typeLabel":"object"},"slot":{"type":"any","description":"`included` for an engine Brussle provides; `namespace` or `org` for a model on your own key, by which key the namespace uses; `null` when no key reaches it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.slot","typeLabel":"any"},"engine_version":{"oneOf":[{"type":"string","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.0","typeLabel":"string"},{"type":"null","description":"What new answers record in `engine_version`. For `current`, the epoch, such as `current+2026-10-20.1` (a model on your own key carries its key's level, `current+2026-10-20.1.ns`); `null` before the first epoch is recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.engine_version","typeLabel":"string | null"},"model_id":{"oneOf":[{"type":"string","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model id the current epoch's probes reported, as the provider sent it; `null` when none was reported.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.model_id","typeLabel":"string | null"},"watch":{"type":"any","description":"How changes are seen; `null` when the engine is not watched yet.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.watch","typeLabel":"any"},"retires_at":{"type":"any","description":"The first day, in UTC, on which the engine is not served, as its provider announced; `null` when none is announced.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.retires_at","typeLabel":"any"},"successor":{"type":"any","description":"The replacement the provider names for a retiring engine; `null` when there is none.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status.successor","typeLabel":"any"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment.engine_status","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.judgment","typeLabel":"object"},"job_id":{"type":"string","description":"The backfill started by a confirmed switch to `on_change`, or the `resync` job a confirmed threshold change or pin started.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.job_id","typeLabel":"string"},"downstream":{"type":"array","description":"With a confirmed threshold change that readers' relations name, or a confirmed pin on a judgment with `features`, what it costs each reader.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.3","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.4","typeLabel":"object"},{"type":"object","description":"A change that moves what other judgments read, sent\nwithout `confirm`: a threshold readers' relations name, a\npin or a promote on a judgment with `features` that other judgments\nread, or a tenant summary's groups or bands. Nothing changed. Send it again\nwith `confirm: true`.\n","required":["downstream"],"properties":{"downstream":{"type":"array","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.5","typeLabel":"object"},{"type":"object","description":"Turning `alternatives.automatic` on needs `confirm`; this is the quote of a full run, and nothing changed.","required":["alternatives_quote"],"properties":{"alternatives_quote":{"type":"object","description":"What scoring the unscored engine and named alternatives would bill,\npriced before anything runs, and the smallest gain the labels could\nshow. Each answered call is billed as judging: its size class times\nits engine's weight, at the graduated prices of the tiers your\norganization is in now.\n","required":["status","labels","alternatives","row_units","judgment_units","tokens","cost_usd","detectable","new_providers","upstream"],"properties":{"status":{"type":"string","enum":["ready","quoting"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.status","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"description":"Labelled answers each alternative would be scored on.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.labels","typeLabel":"integer"},"alternatives":{"type":"array","items":{"type":"object","required":["id","contexts","labels","tokens","row_units","judgment_units","cost_usd","new_provider"],"properties":{"id":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].id","typeLabel":"string"},"contexts":{"type":"string","enum":["stored","narrowed","live"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].contexts","typeLabel":"enum\u003cstring>"},"labels":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].labels","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].tokens","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the alternative's scoring would bill, at its engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].cost_usd","typeLabel":"number"},"new_provider":{"type":"boolean","description":"Its engine is one this namespace has not used; confirming sends the labelled contexts to its provider.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX].new_provider","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.alternatives","typeLabel":"object[]"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the run would bill, at each alternative's engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.judgment_units","typeLabel":"integer"},"tokens":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.tokens","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.cost_usd","typeLabel":"number"},"detectable":{"type":"object","description":"The smallest gain this run could call `better` on these labels with this many alternatives; smaller gains read `no_worse`.","required":["log_loss","auroc","k"],"properties":{"log_loss":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.log_loss","typeLabel":"number"},"auroc":{"oneOf":[{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.auroc","typeLabel":"number | null"},"k":{"type":"integer","minimum":1,"description":"The alternatives it corrects for.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable.k","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.detectable","typeLabel":"object"},"new_providers":{"type":"array","description":"Engines that would receive this namespace's labelled contexts for the first time, `name version`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.new_providers","typeLabel":"string[]"},"upstream":{"type":"array","description":"The backfill a `live` recipe needs first, when it selects by another judgment's answer. Never run by this run.","items":{"type":"object","required":["alternative","judgment","documents","row_units","judgment_units","cost_usd"],"properties":{"alternative":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].alternative","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment","typeLabel":"string"},"documents":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].documents","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the upstream backfill would bill.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.upstream","typeLabel":"object[]"},"generation":{"type":"integer","minimum":0,"description":"Which quote this is; it moves whenever the alternatives, the outcomes or the engines in use change. Send it as `quote_generation` to confirm exactly this quote.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.generation","typeLabel":"integer"},"computed_at":{"type":"any","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.computed_at","typeLabel":"any"},"reason":{"oneOf":[{"type":"string","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why nothing could be priced, when nothing was.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote.reason","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6.alternatives_quote","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.6","typeLabel":"object"},{"type":"object","required":["estimate"],"properties":{"estimate":{"type":"object","required":["documents","tokens","row_units","judgment_units","cost_usd","duration_s"],"properties":{"documents":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.documents","typeLabel":"integer\u003cint64>"},"tokens":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.tokens","typeLabel":"integer\u003cint64>"},"row_units":{"type":"integer","format":"int64","minimum":0,"description":"Estimated rows kept, each counted by its size class times its engine's multiple, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.row_units","typeLabel":"integer\u003cint64>"},"judgment_units":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Estimated judgments, each counted by its size class times its engine's weight, from a sample of up to 1,000 documents. A backfill judges one judgment at a time, so each document's question counts in full; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd` prices each quarter.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.judgment_units","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the backfill is expected to cost you, the judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.cost_usd","typeLabel":"number"},"duration_s":{"type":"integer","format":"int64","minimum":0,"description":"Expected wall-clock seconds if nothing else is judged meanwhile. Other judging comes first (new writes, catch-ups, other backfills) and makes it longer, so read it as the least to expect.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.duration_s","typeLabel":"integer\u003cint64>"},"downstream":{"type":"array","description":"A backfill of a judgment whose answers other judgments read also re-judges them where a rendered band or cut flips; one line per reader. Absent when it has none.","items":{"type":"object","description":"One reader's cost of a change to a judgment whose answers its relations read: the re-judgments the change would cause\na month (for a one-off such as a backfill, in the month it runs),\ncounted from the answer history's band and cut flips over the last\n30 days, priced by the reader's size class at your tiers. A reader's\nre-judgments move what its own readers read, so there is a line for\neach reader of a reader too, up to three levels down. Below the\nfirst level the count is an estimate from the reader's own past\nflips, not a bound.\n","required":["judgment","judgments_per_month","cost_usd","level"],"properties":{"judgment":{"type":"string","description":"The reader, a judgment whose relation reads this one's answers.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgment","typeLabel":"string"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations of the reader the change would cause a month. It is exact except for a child that moved between parents in the window, which the history does not record.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].judgments_per_month","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"Those evaluations at the reader's size class and your organization's tiers, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].cost_usd","typeLabel":"number"},"level":{"type":"integer","minimum":1,"maximum":3,"description":"1 for a judgment that reads the changed one; 2 and 3 for one that reads a reader, through `via`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].level","typeLabel":"integer"},"via":{"type":"string","description":"Present from level 2. The reader a level up whose re-judgments cause these.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].via","typeLabel":"string"},"basis":{"type":"string","enum":["history","replay"],"description":"What the count is drawn from. `history` is the answer history of the judgment read. `replay` is used where there is none, either a judgment not judged in the last 30 days (each of its re-judgments counted as one of the reader's) or an activation's sampled replay. Absent on a line that is not a reader's.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].basis","typeLabel":"enum\u003cstring>"},"omitted":{"type":"array","description":"Present with `lower_bound`. The judgments whose answer history the estimate left partly or wholly unread, at this level or above.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].omitted","typeLabel":"string[]"},"lower_bound":{"type":"boolean","const":true,"description":"Present when the estimate stopped reading answer history before the end, so the count is at least this many.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX].lower_bound","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate.downstream","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.estimate","typeLabel":"object"},"replay":{"type":"object","description":"When the `PATCH` switches an entity judgment to `on_change`, what it would cost a month from then on, beside the backfill of the documents with no current answer.","required":["replayed_days","entities","judgments_per_month","row_units_per_month","judgment_units_per_month","cost_usd_per_month","bulk_pool_share","lower_bound"],"properties":{"replayed_days":{"type":"integer","minimum":0,"maximum":30,"description":"Days of writes replayed, fewer than 30 in a younger namespace. The monthly figures are scaled from them to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.replayed_days","typeLabel":"integer"},"entities":{"type":"integer","format":"int64","minimum":0,"description":"Documents the judgment applies to now.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.entities","typeLabel":"integer\u003cint64>"},"judgments_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Evaluations the replay counted, scaled to 30 days.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.judgments_per_month","typeLabel":"integer\u003cint64>"},"row_units_per_month":{"type":"integer","format":"int64","minimum":0,"description":"Rows kept, each counted by its size class times its engine's multiple, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.row_units_per_month","typeLabel":"integer\u003cint64>"},"judgment_units_per_month":{"type":"integer","format":"int64","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`. Judgments, each counted by its size class times its engine's weight, from the compiled context and question of a sample of up to 1,000 entities, as if the judgment were judged alone; a composite's parts share one request, the first in full and each other a quarter, and a quarter more for each further 500 tokens of its question text. A whole number, rounded; `cost_usd_per_month` prices each quarter. Judged in one request with other judgments, it bills less.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.judgment_units_per_month","typeLabel":"integer\u003cint64>"},"cost_usd_per_month":{"type":"number","minimum":0,"description":"The judgments at the graduated prices of the tiers your organization will be in, counting what it has already used this billing period. A confirmed request is refused with `budget_exceeded` when this is more than the namespace's budget.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.cost_usd_per_month","typeLabel":"number"},"bulk_pool_share":{"type":"number","minimum":0,"description":"The share of the background judging rate available to this judgment that these evaluations would use, by requests or tokens, whichever is larger. Above 1, the judgment cannot keep up with the writes. Every engine has a rate limit, so it is always a number.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.bulk_pool_share","typeLabel":"number"},"lower_bound":{"type":"boolean","description":"True when a related document in the replayed window has a `revision` higher than the writes the replay saw, so it was edited more often than the replay counted, and whenever `excludes` is present. The figures are then a lower bound, shown as \"at least\". The namespace budget still caps real spend.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.lower_bound","typeLabel":"boolean"},"excludes":{"type":"array","description":"What the figures leave out, present only when something is. `fanout`: the judgment has a relation that\nreads a referenced document, and the replay cannot tell which past\nwrites to it changed what the relation shows, so it cannot count\nits fan-out; `freshness.fanout.rolling_limit` bounds it. `candidate_edits` and `candidate_deletes`: a blocking\nrelation's candidates edited or deleted in the window, which leave\nnothing a replay can read. `source_deletes`: a judged link's\ndocuments deleted in the window, which leave nothing a replay can\nread; every write to a document the link's `match` reads is\ncounted as one re-judge of the document it links to.\n","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["fanout","candidate_edits","candidate_deletes","source_deletes"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.excludes.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay.excludes","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7.replay","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.7","typeLabel":"object"},{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.8.job_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.8","typeLabel":"object"},{"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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.fields.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.last_n.additionalProperties","typeLabel":"integer"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.window.additionalProperties","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5.exists","typeLabel":"any"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.match.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.theirs","typeLabel":"string"},"mine":{"const":"id","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.0.mine","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.1.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.2.mine","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when.below","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3.when","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.join.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.fields.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX].oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.3.items.[INDEX]","typeLabel":"string | number | boolean"},"minItems":1,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gte","typeLabel":"number"},"gt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.gt","typeLabel":"number"},"lte":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lte","typeLabel":"number"},"lt":{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.4.lt","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not.oneOf.2","typeLabel":"boolean"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5.not","typeLabel":"string | number | boolean"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.count_where.additionalProperties","typeLabel":"string · number · boolean · (string | number | boolean)[] · object · object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.sum.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.avg.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.min.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.bands.items.[INDEX]","typeLabel":"number"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.labels.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.max.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.latest.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.aggregate.render","typeLabel":"boolean"}},"conditionalRequirements":[{}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.order.desc","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties.relative","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.related.additionalProperties","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1.max_chars","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.fields.items.[INDEX]","typeLabel":"string | object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous.anchor","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.recipe.previous","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.whole_state_cost_per_answer","typeLabel":"number | null"},"sampled_documents":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX].reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.0.excluded","typeLabel":"object[]"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.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":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details.suggested_context","typeLabel":"object | null"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error.details","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body.oneOf.9","typeLabel":"object"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0.body","typeLabel":"object"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only on `judgment_create`, `judgment_update` and `backfill_start` jobs. Null until the job is `done` or `failed`; then the response the request would have returned.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.result","typeLabel":"object | null"},"warnings":{"type":"array","description":"Only in the response of the activation that started a shadow job, such as `images_unread`. Absent when there are none, and on `GET /jobs/{id}`.","items":{"type":"object","description":"`taxonomy_drift`: the escape share over the last 7 days\n(`escape_share`) is above `escape_alert`; it clears when the share\nfalls back. `threshold_unresolved`: the `thresholds` it lists name a\nfeature or an option the active version does not have, so they read\n`false` until set again; shown on `GET` and in the activation's\nresponse. `fit_changed`: on a bool or score judgment with `features`,\nthe calibration its cut thresholds read (on `p`, or on `score`)\nchanged after they were set, so a cut may now select different\nanswers; it clears when a threshold is set again with `PATCH`. A\nchoice's thresholds on an option never raise it. `images_unread`: the version names image paths,\nlisted in `paths`, on an engine that reads no images,\nso the engine reads only each image's digest; only in the\nactivation's response (the `Judgment`, or the shadow `Job`).\n`credential_unusable`: the judgment runs on a model on your own key\nand the namespace has no usable key for its provider (`provider`,\n`reason` as in `namespace.credential_unusable`), so its changed\ndocuments read `stale` until a working key is stored; shown on\n`GET`.\n","required":["code","message"],"properties":{"code":{"type":"string","enum":["taxonomy_drift","threshold_unresolved","fit_changed","images_unread","credential_unusable"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].message","typeLabel":"string"},"provider":{"type":"string","description":"For `credential_unusable`, the provider with no usable key.","enum":["typesafe","openai","anthropic","google"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"For `credential_unusable`, why, as `namespace.credential_unusable` says it.","enum":["missing","revoked","rejected","restricted","out_of_credit"],"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"paths":{"type":"array","description":"For `images_unread`, the image paths the definition names, such as `images.photo` or `images.photo of relation claims`.","items":{"type":"string","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].paths.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].paths","typeLabel":"string[]"},"thresholds":{"type":"array","description":"For `threshold_unresolved`, the thresholds it names.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].thresholds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].thresholds","typeLabel":"string[]"},"escape_share":{"type":"number","minimum":0,"maximum":1,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].escape_share","typeLabel":"number"},"since":{"type":"string","format":"date-time","description":"When the share rose above the alert, when what `p` reads changed, or when the key became unusable.","uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX].since","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events.items.[INDEX].oneOf.5.data.job.warnings","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.job","typeLabel":"object"},"url":{"type":"string","format":"uri","description":"That route.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.5.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.5.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"namespace.budget_paused","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.type","typeLabel":"any"},"data":{"type":"object","required":["namespace","reason","month","period_start","period_end","budget_usd","spend_usd"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.6.data.namespace","typeLabel":"string"},"reason":{"type":"string","description":"`budget`: the namespace's budget. `quickstart`: `default/quickstart`'s limit. Both count per billing period.","enum":["budget","quickstart"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.reason","typeLabel":"enum\u003cstring>"},"month":{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$","description":"The month the billing period started in, such as `2026-09`. Kept for compatibility; `period_start` and `period_end` say which days the spend counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.month","typeLabel":"string"},"period_start":{"type":"string","format":"date","description":"The first day of the billing period the spend counts, such as `2026-09-17`. Periods start at 00:00 UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of that billing period, such as `2026-10-16`. The next period starts the day after it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.period_end","typeLabel":"string\u003cdate>"},"budget_usd":{"type":"number","minimum":0,"description":"The budget, or quickstart's limit, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.budget_usd","typeLabel":"number"},"spend_usd":{"type":"number","minimum":0,"description":"Judging in the billing period, in US dollars. On a pause it counts the judgments already under way, which are billed as they finish.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data.spend_usd","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.6.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.6.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"namespace.budget_resumed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.type","typeLabel":"any"},"data":{"type":"object","required":["namespace","reason","month","period_start","period_end","budget_usd","spend_usd"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.7.data.namespace","typeLabel":"string"},"reason":{"type":"string","description":"`budget`: the namespace's budget. `quickstart`: `default/quickstart`'s limit. Both count per billing period.","enum":["budget","quickstart"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.reason","typeLabel":"enum\u003cstring>"},"month":{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$","description":"The month the billing period started in, such as `2026-09`. Kept for compatibility; `period_start` and `period_end` say which days the spend counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.month","typeLabel":"string"},"period_start":{"type":"string","format":"date","description":"The first day of the billing period the spend counts, such as `2026-09-17`. Periods start at 00:00 UTC.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of that billing period, such as `2026-10-16`. The next period starts the day after it.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.period_end","typeLabel":"string\u003cdate>"},"budget_usd":{"type":"number","minimum":0,"description":"The budget, or quickstart's limit, in US dollars.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.budget_usd","typeLabel":"number"},"spend_usd":{"type":"number","minimum":0,"description":"Judging in the billing period, in US dollars. On a pause it counts the judgments already under way, which are billed as they finish.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data.spend_usd","typeLabel":"number"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.7.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.7.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.limit_reached","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.type","typeLabel":"any"},"data":{"type":"object","description":"Work was deferred past a limit: once per\ndeferred change, never per read. The answers it would re-judge read\n`stale` until it runs, which it does on its own when the window has\nroom, or, usually within a minute, when a `PATCH` raises the limit.\n","required":["namespace","judgment","limit","deferred","url"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.8.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.8.data.judgment","typeLabel":"string"},"limit":{"type":"string","description":"`rolling_limit` and `block_cap` are `freshness.fanout` settings.","enum":["rolling_limit","block_cap"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.data.limit","typeLabel":"enum\u003cstring>"},"deferred":{"type":"integer","format":"int64","minimum":0,"description":"Judged documents the deferred work would re-judge.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.data.deferred","typeLabel":"integer\u003cint64>"},"url":{"type":"string","format":"uri","description":"The judgment's get, whose `freshness.fanout` shows the limits.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.data.url","typeLabel":"string\u003curi>"},"relation":{"type":"string","description":"The relation, for a referenced or block change.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.8.data.relation","typeLabel":"string"},"document_id":{"type":"string","description":"The referenced document, for a referenced change.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.8.data.document_id","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The block's key value.","uniqueKey":"events.items.[INDEX].oneOf.8.data.key.oneOf.0","typeLabel":"string"},{"type":"number","description":"The block's key value.","uniqueKey":"events.items.[INDEX].oneOf.8.data.key.oneOf.1","typeLabel":"number"},{"type":"boolean","description":"The block's key value.","uniqueKey":"events.items.[INDEX].oneOf.8.data.key.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"events.items.[INDEX].oneOf.8.data.key","typeLabel":"string | number | boolean"},"outcome_judgment":{"type":"string","description":"The judgment whose posted outcomes the relation reads, for re-judges that posted outcomes cause.","pattern":"^[A-Za-z0-9_-]+$","minLength":1,"maxLength":128,"uniqueKey":"events.items.[INDEX].oneOf.8.data.outcome_judgment","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.8.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.8.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.taxonomy_drift","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.type","typeLabel":"any"},"data":{"type":"object","description":"The escape share over the last 7 days rose above `escape_alert`. Once per rise.","required":["namespace","judgment","escape_share","escape_alert","url"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.9.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.9.data.judgment","typeLabel":"string"},"escape_share":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.data.escape_share","typeLabel":"number"},"escape_alert":{"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.data.escape_alert","typeLabel":"number"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.9.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.9.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.fit_applied","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.type","typeLabel":"any"},"data":{"type":"object","description":"A judgment with `features` (a bool, a choice or a score) now reads a\ndifferent calibration (`judgment.fit_applied`), or went back to the\nengine's numbers (`judgment.fit_withdrawn`). Sent once the judgments that read it\nhave been brought up to date, so the counts are final: by then\ntheir re-judges have started, and they are billed as any re-judge.\nNothing about it needs confirming.\n","required":["namespace","judgment","flips","downstream","url"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.10.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.10.data.judgment","typeLabel":"string"},"flips":{"type":"object","description":"Per named threshold on the judgment, how many documents crossed it.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"integer","format":"int64","minimum":0,"uniqueKey":"events.items.[INDEX].oneOf.10.data.flips.additionalProperties","typeLabel":"integer\u003cint64>"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.flips","typeLabel":"object"},"downstream":{"type":"array","description":"Per judgment that reads this one, the re-judges the change caused. These are the first level of a `downstream` estimate's lines, the readers of this judgment. When their own answers move they re-judge their readers in turn, each under its own rolling limit, billed as they land and not counted here.","items":{"type":"object","required":["judgment","engine_judgments","reuses","cost_usd"],"properties":{"judgment":{"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":"events.items.[INDEX].oneOf.10.data.downstream.items.[INDEX].judgment","typeLabel":"string"},"engine_judgments":{"type":"integer","format":"int64","minimum":0,"description":"Re-judges that ask the engine again, billed as any re-judge.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.downstream.items.[INDEX].engine_judgments","typeLabel":"integer\u003cint64>"},"reuses":{"type":"integer","format":"int64","minimum":0,"description":"Re-judges whose rendering moved only in a feature, which reuse the engine's answer at no charge.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.downstream.items.[INDEX].reuses","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the engine re-judges cost, at the reader's running cost per judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.downstream.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.10.data.downstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.downstream","typeLabel":"object[]"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data.url","typeLabel":"string\u003curi>"},"fit":{"oneOf":[{"type":"string","description":"The fit the judgment's newest changed version and epoch now reads; null when it went back to the engine's numbers.","uniqueKey":"events.items.[INDEX].oneOf.10.data.fit.oneOf.0","typeLabel":"string"},{"type":"null","description":"The fit the judgment's newest changed version and epoch now reads; null when it went back to the engine's numbers.","uniqueKey":"events.items.[INDEX].oneOf.10.data.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.10.data.fit","typeLabel":"string | null"},"run":{"oneOf":[{"type":"string","description":"The calibration run answers now read. Null on events sent before calibration runs were listed.","uniqueKey":"events.items.[INDEX].oneOf.10.data.run.oneOf.0","typeLabel":"string"},{"type":"null","description":"The calibration run answers now read. Null on events sent before calibration runs were listed.","uniqueKey":"events.items.[INDEX].oneOf.10.data.run.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.10.data.run","typeLabel":"string | null"},"pinned":{"type":"boolean","description":"True when that fit is pinned. A pin set with `PATCH .../judgments/{name}` sends this event when its re-judges are done.","uniqueKey":"events.items.[INDEX].oneOf.10.data.pinned","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.10.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.10.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.fit_withdrawn","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.type","typeLabel":"any"},"data":{"type":"object","description":"A judgment with `features` (a bool, a choice or a score) now reads a\ndifferent calibration (`judgment.fit_applied`), or went back to the\nengine's numbers (`judgment.fit_withdrawn`). Sent once the judgments that read it\nhave been brought up to date, so the counts are final: by then\ntheir re-judges have started, and they are billed as any re-judge.\nNothing about it needs confirming.\n","required":["namespace","judgment","flips","downstream","url"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.11.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.11.data.judgment","typeLabel":"string"},"flips":{"type":"object","description":"Per named threshold on the judgment, how many documents crossed it.","propertyNames":{"$ref":"#/components/schemas/Name"},"additionalProperties":{"type":"integer","format":"int64","minimum":0,"uniqueKey":"events.items.[INDEX].oneOf.11.data.flips.additionalProperties","typeLabel":"integer\u003cint64>"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.flips","typeLabel":"object"},"downstream":{"type":"array","description":"Per judgment that reads this one, the re-judges the change caused. These are the first level of a `downstream` estimate's lines, the readers of this judgment. When their own answers move they re-judge their readers in turn, each under its own rolling limit, billed as they land and not counted here.","items":{"type":"object","required":["judgment","engine_judgments","reuses","cost_usd"],"properties":{"judgment":{"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":"events.items.[INDEX].oneOf.11.data.downstream.items.[INDEX].judgment","typeLabel":"string"},"engine_judgments":{"type":"integer","format":"int64","minimum":0,"description":"Re-judges that ask the engine again, billed as any re-judge.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.downstream.items.[INDEX].engine_judgments","typeLabel":"integer\u003cint64>"},"reuses":{"type":"integer","format":"int64","minimum":0,"description":"Re-judges whose rendering moved only in a feature, which reuse the engine's answer at no charge.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.downstream.items.[INDEX].reuses","typeLabel":"integer\u003cint64>"},"cost_usd":{"type":"number","minimum":0,"description":"What the engine re-judges cost, at the reader's running cost per judgment.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.downstream.items.[INDEX].cost_usd","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.11.data.downstream.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.downstream","typeLabel":"object[]"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data.url","typeLabel":"string\u003curi>"},"fit":{"oneOf":[{"type":"string","description":"The fit the judgment's newest changed version and epoch now reads; null when it went back to the engine's numbers.","uniqueKey":"events.items.[INDEX].oneOf.11.data.fit.oneOf.0","typeLabel":"string"},{"type":"null","description":"The fit the judgment's newest changed version and epoch now reads; null when it went back to the engine's numbers.","uniqueKey":"events.items.[INDEX].oneOf.11.data.fit.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.11.data.fit","typeLabel":"string | null"},"run":{"oneOf":[{"type":"string","description":"The calibration run answers now read. Null on events sent before calibration runs were listed.","uniqueKey":"events.items.[INDEX].oneOf.11.data.run.oneOf.0","typeLabel":"string"},{"type":"null","description":"The calibration run answers now read. Null on events sent before calibration runs were listed.","uniqueKey":"events.items.[INDEX].oneOf.11.data.run.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.11.data.run","typeLabel":"string | null"},"pinned":{"type":"boolean","description":"True when that fit is pinned. A pin set with `PATCH .../judgments/{name}` sends this event when its re-judges are done.","uniqueKey":"events.items.[INDEX].oneOf.11.data.pinned","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.11.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.11.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.engine_changed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.type","typeLabel":"any"},"data":{"type":"object","description":"The engine version that the judgment's active version uses, an\nunpinned `current` such as `jev`'s or `gpt-6-luna`'s, changed its\nbehaviour, so a new epoch began. Answers made\nfrom then on record `engine_version`; answers made before keep their\nown, and nothing is re-judged. Sent once per judgment and epoch, to\neach judgment whose active version uses the engine when the event is\nsent. A judgment that a template defines is announced once, on the\ntemplate.\n","required":["namespace","judgment","version","engine","previous_engine_version","engine_version","detected_at","calibrated","url","previous_model_id","model_id"],"properties":{"namespace":{"type":"string","description":"The namespace, or the template that defines the judgment.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.12.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"The active version, which names the engine.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.version","typeLabel":"integer"},"engine":{"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":"events.items.[INDEX].oneOf.12.data.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.engine","typeLabel":"object"},"previous_engine_version":{"type":"string","description":"The epoch before the change, as answers record it in `engine_version`.","examples":["current+2026-09-27.1"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.previous_engine_version","typeLabel":"string"},"engine_version":{"type":"string","description":"The new epoch. Filter a query on `answers.\u003cjudgment>.engine_version` to find the answers of one epoch. Each engine numbers its own epochs, so two engines can have the same label; filter on `judgment_version` too when a judgment has used more than one engine.","examples":["current+2026-10-07.2"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.engine_version","typeLabel":"string"},"detected_at":{"type":"string","format":"date-time","description":"When the change was detected. The new epoch began then.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.detected_at","typeLabel":"string\u003cdate-time>"},"calibrated":{"type":"boolean","description":"Whether the judgment has a calibration. If it has, it is fitted again for the new epoch from a replay of its recent outcomes, usually within the hour. Until then, the new epoch's answers use the previous epoch's calibration, marked `from_previous_epoch`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.calibrated","typeLabel":"boolean"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.url","typeLabel":"string\u003curi>"},"previous_model_id":{"oneOf":[{"type":"string","description":"The model id the provider reported before the change, as answers record it in `model_id`. `null` when the provider reports none.","examples":["gpt-6-luna-2026-09-01"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.previous_model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model id the provider reported before the change, as answers record it in `model_id`. `null` when the provider reports none.","examples":["gpt-6-luna-2026-09-01"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.previous_model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.previous_model_id","typeLabel":"string | null"},"model_id":{"oneOf":[{"type":"string","description":"The model id the provider reports since the change. It differs from `previous_model_id` when the provider moved the name to a new model, and is the same when only the behaviour changed. `null` when the provider reports none.","examples":["gpt-6-luna-2026-10-05"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model id the provider reports since the change. It differs from `previous_model_id` when the provider moved the name to a new model, and is the same when only the behaviour changed. `null` when the provider reports none.","examples":["gpt-6-luna-2026-10-05"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.model_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data.model_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.12.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.12.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.engine_regressed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.type","typeLabel":"any"},"data":{"type":"object","description":"The quality check of a new epoch did worse than the last check that\npassed. Sent once per judgment and epoch, to each judgment whose\nactive version uses the engine when the event is sent. Answers are\nneither blocked nor re-judged, and the engine stays `active`.\n","required":["namespace","judgment","version","engine","previous_engine_version","engine_version","detected_at","checked_at","failures","url"],"properties":{"namespace":{"type":"string","description":"The namespace, or the template that defines the judgment.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.13.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"The active version, which names the engine.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.version","typeLabel":"integer"},"engine":{"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":"events.items.[INDEX].oneOf.13.data.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.engine","typeLabel":"object"},"previous_engine_version":{"type":"string","description":"The epoch before the change.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.previous_engine_version","typeLabel":"string"},"engine_version":{"type":"string","description":"The epoch whose check did worse.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.engine_version","typeLabel":"string"},"detected_at":{"type":"string","format":"date-time","description":"When the change that began the epoch was detected.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.detected_at","typeLabel":"string\u003cdate-time>"},"checked_at":{"type":"string","format":"date-time","description":"When the check's result was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.checked_at","typeLabel":"string\u003cdate-time>"},"failures":{"type":"array","minItems":1,"description":"Each measure that did worse than its limit.","items":{"type":"object","description":"One measure of the quality check that did worse than its limit, on the questions of one type.","required":["metric","question_type","after","limit","message"],"properties":{"metric":{"type":"string","enum":["accuracy","expected_calibration_error","option_order_flips"],"description":"`accuracy`: the share of questions whose most likely answer was correct. `expected_calibration_error`: how far the probabilities are from how often the answers were correct. `option_order_flips`: the share of `choice` answers that changed when the options were listed in a different order.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].metric","typeLabel":"enum\u003cstring>"},"question_type":{"type":"string","enum":["bool","choice","score"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].question_type","typeLabel":"enum\u003cstring>"},"after":{"type":"number","description":"The measure in this check.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].after","typeLabel":"number"},"limit":{"type":"number","description":"The most that `accuracy` may fall, or `expected_calibration_error` may rise, from `before`. For `option_order_flips`, the highest share allowed. This is 0.05, or `before` plus 0.01 when `before` was already above 0.05.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].limit","typeLabel":"number"},"message":{"type":"string","description":"The same, in a sentence.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].message","typeLabel":"string"},"before":{"type":"number","description":"The measure in the last check that passed. Absent for `option_order_flips` when that check did not measure it.","uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX].before","typeLabel":"number"}},"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.failures","typeLabel":"object[]"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.13.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.13.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.alternative_scored","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.type","typeLabel":"any"},"data":{"type":"object","description":"An alternatives run finished with an alternative `better` than the\nactive version on your outcomes, after the correction.\n","required":["namespace","judgment","version","alternative","verdict","moves_ranking","corrected_for","headline"],"properties":{"namespace":{"type":"string","description":"A namespace name, or a template prefix: a namespace path ending in\n`/*`, such as `acme/prod/*`, which every namespace under `acme/prod/`\ninherits judgments from. Up to 256 bytes. Never exactly\n`.` or `..`, which a URL path can't carry.\n","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.14.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.version","typeLabel":"integer"},"alternative":{"type":"string","pattern":"^alt_[0-9a-f]{16}$","description":"An alternative's id, the same for the same definition in every run.","examples":["alt_3f9a2c7e1b04d6a8"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.alternative","typeLabel":"string"},"verdict":{"type":"string","enum":["better"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.verdict","typeLabel":"enum\u003cstring>"},"moves_ranking":{"type":"boolean","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.moves_ranking","typeLabel":"boolean"},"corrected_for":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.corrected_for","typeLabel":"integer"},"headline":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data.headline","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.14.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.14.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.alternatives_awaiting_confirm","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.type","typeLabel":"any"},"data":{"type":"object","description":"A calibration fit landed with engine or named alternatives unscored\nand `automatic` off: confirm the quote to score them. At most once\nper version, engine epoch and month.\n","required":["namespace","judgment","version","engine_version","unscored","row_units","judgment_units","cost_usd","detectable"],"properties":{"namespace":{"type":"string","description":"A namespace name, or a template prefix: a namespace path ending in\n`/*`, such as `acme/prod/*`, which every namespace under `acme/prod/`\ninherits judgments from. Up to 256 bytes. Never exactly\n`.` or `..`, which a URL path can't carry.\n","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.15.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.version","typeLabel":"integer"},"engine_version":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.engine_version","typeLabel":"string"},"unscored":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.unscored","typeLabel":"integer"},"row_units":{"type":"integer","minimum":0,"description":"Rows kept the quote prices, at each alternative's engine's multiple.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.row_units","typeLabel":"integer"},"judgment_units":{"type":"integer","minimum":0,"deprecated":true,"description":"Deprecated: the same count in the unit used before rows kept, in which one unit is two rows; read `row_units`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.judgment_units","typeLabel":"integer"},"cost_usd":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.cost_usd","typeLabel":"number"},"detectable":{"type":"object","required":["log_loss","k"],"properties":{"log_loss":{"type":"number","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable.log_loss","typeLabel":"number"},"k":{"type":"integer","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable.k","typeLabel":"integer"},"auroc":{"oneOf":[{"type":"number","uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable.auroc.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable.auroc.oneOf.1","typeLabel":"null"}],"uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable.auroc","typeLabel":"number | null"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data.detectable","typeLabel":"object"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.15.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.15.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"namespace.tenant_summary_failed","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.type","typeLabel":"any"},"data":{"type":"object","description":"A tenant summary run could not write to the template's namespace. Once per run that fails.","required":["template","namespace","reason","url"],"properties":{"template":{"type":"string","description":"A template prefix, a namespace path ending in `/*`, such as `acme/prod/*`. Up to 256 bytes.","pattern":"^[A-Za-z0-9._:/-]+/\\*$","minLength":3,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.data.template","typeLabel":"string"},"namespace":{"type":"string","description":"The template's namespace, where tenant documents are written.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.data.namespace","typeLabel":"string"},"reason":{"type":"string","description":"`budget_exceeded`: the namespace refuses writes over its budget (`on_exceeded: reject`); `plan_required`: the plan no longer includes templates.","enum":["budget_exceeded","plan_required"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.data.reason","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","description":"The tenant summary's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.16.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.16.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"webhook.test","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.type","typeLabel":"any"},"data":{"type":"object","required":["endpoint","message"],"properties":{"endpoint":{"type":"string","pattern":"^we_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.data.endpoint","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.data.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.17.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.17.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.17","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.budget_reached","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.type","typeLabel":"any"},"data":{"type":"object","description":"A judgment reached its `freshness.budget` for the period: changed\ndocuments read `stale` (`budget_reached`) until `resumes_at`, or\nuntil a `PATCH` raises the budget. Once per judgment and period;\nfor a template's judgment, once per template, judgment and period,\nnaming the namespace that reached it first.\n","required":["namespace","judgment","budget","period_start","period_end","calls","resumes_at","url"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.18.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.18.data.judgment","typeLabel":"string"},"budget":{"type":"object","description":"A judgment's engine calls per period (`freshness.budget`).","additionalProperties":false,"required":["calls","per"],"properties":{"calls":{"type":"integer","format":"int64","minimum":1,"description":"The most engine calls the judgment may make in a period.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.budget.calls","typeLabel":"integer\u003cint64>"},"per":{"type":"string","enum":["day","month"],"description":"`day`: the UTC day. `month`: the organization's billing period, the one a namespace's `budget` counts.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.budget.per","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.budget","typeLabel":"object"},"period_start":{"type":"string","format":"date","description":"The first day of the period counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.period_start","typeLabel":"string\u003cdate>"},"period_end":{"type":"string","format":"date","description":"The last day of the period counted.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.period_end","typeLabel":"string\u003cdate>"},"calls":{"type":"integer","format":"int64","minimum":1,"description":"The engine calls counted in the period when the budget was reached.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.calls","typeLabel":"integer\u003cint64>"},"resumes_at":{"type":"string","format":"date-time","description":"When the period ends and judging resumes on its own.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.resumes_at","typeLabel":"string\u003cdate-time>"},"url":{"type":"string","format":"uri","description":"The judgment's `GET`.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data.url","typeLabel":"string\u003curi>"},"template":{"type":"string","description":"For a judgment a template defines, its prefix, such as `acme/prod/*`. Each namespace under it counts its own calls.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"uniqueKey":"events.items.[INDEX].oneOf.18.data.template","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.18.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.18.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.18","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.engine_retiring","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.type","typeLabel":"any"},"data":{"type":"object","description":"The engine version that the judgment's active version uses retires\non `retires_at`, as its provider announced. Sent to each judgment\nwhose active version uses the engine when the event is sent. A\njudgment that a template defines is announced once, on the template.\n","required":["namespace","judgment","version","engine","retires_at","successor","url"],"properties":{"namespace":{"type":"string","description":"The namespace, or the template that defines the judgment.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.19.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"The active version, which names the engine.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.version","typeLabel":"integer"},"engine":{"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":"events.items.[INDEX].oneOf.19.data.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.engine","typeLabel":"object"},"retires_at":{"type":"string","format":"date","description":"The first day, in UTC, on which the engine is not served.","examples":["2027-01-14"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.retires_at","typeLabel":"string\u003cdate>"},"successor":{"oneOf":[{"type":"object","description":"The replacement the provider names, or `null` when it names none. It is never applied for you. To move, activate a version of the judgment on it; the shadow report shows what would change first.","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":"events.items.[INDEX].oneOf.19.data.successor.oneOf.0.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.successor.oneOf.0.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.successor.oneOf.0","typeLabel":"object"},{"type":"null","description":"The replacement the provider names, or `null` when it names none. It is never applied for you. To move, activate a version of the judgment on it; the shadow report shows what would change first.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.successor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.successor","typeLabel":"object | null"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.19.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.19.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.19","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"judgment.engine_retired","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.type","typeLabel":"any"},"data":{"type":"object","description":"The engine version that the judgment's active version uses retires\non `retires_at`, as its provider announced. Sent to each judgment\nwhose active version uses the engine when the event is sent. A\njudgment that a template defines is announced once, on the template.\n","required":["namespace","judgment","version","engine","retires_at","successor","url"],"properties":{"namespace":{"type":"string","description":"The namespace, or the template that defines the judgment.","pattern":"^(?!\\.\\.?$)[A-Za-z0-9._:/-]+(/\\*)?$","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.namespace","typeLabel":"string"},"judgment":{"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":"events.items.[INDEX].oneOf.20.data.judgment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"The active version, which names the engine.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.version","typeLabel":"integer"},"engine":{"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":"events.items.[INDEX].oneOf.20.data.engine.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.engine.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.engine","typeLabel":"object"},"retires_at":{"type":"string","format":"date","description":"The first day, in UTC, on which the engine is not served.","examples":["2027-01-14"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.retires_at","typeLabel":"string\u003cdate>"},"successor":{"oneOf":[{"type":"object","description":"The replacement the provider names, or `null` when it names none. It is never applied for you. To move, activate a version of the judgment on it; the shadow report shows what would change first.","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":"events.items.[INDEX].oneOf.20.data.successor.oneOf.0.name","typeLabel":"string"},"version":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.successor.oneOf.0.version","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.successor.oneOf.0","typeLabel":"object"},{"type":"null","description":"The replacement the provider names, or `null` when it names none. It is never applied for you. To move, activate a version of the judgment on it; the shadow report shows what would change first.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.successor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.successor","typeLabel":"object | null"},"url":{"type":"string","format":"uri","description":"The judgment's get.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.20.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.20.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.20","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"namespace.credential_unusable","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.type","typeLabel":"any"},"data":{"type":"object","description":"A namespace's judgments on one provider stopped for want of a usable\nkey, or started again. `reason` says why they stopped: `missing`\n(no key reaches the namespace), `revoked`, `rejected` (the provider\nrefused the key), `restricted` (the key may not use the model) or\n`out_of_credit`. On `namespace.credential_restored` it is the reason\nthey had stopped.\n","required":["namespace","provider","reason","credential_id","scope","judgments","since"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.21.data.namespace","typeLabel":"string"},"provider":{"type":"string","description":"A provider whose models a judgment can run on your own key.","enum":["typesafe","openai","anthropic","google"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","enum":["missing","revoked","rejected","restricted","out_of_credit"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.reason","typeLabel":"enum\u003cstring>"},"credential_id":{"oneOf":[{"type":"string","description":"The credential the judgments stopped on; null when none reached the namespace.","pattern":"^cred_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.credential_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The credential the judgments stopped on; null when none reached the namespace.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.credential_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.credential_id","typeLabel":"string | null"},"scope":{"oneOf":[{"type":"object","description":"Whom that credential serves; null when there was none.","required":["kind"],"properties":{"kind":{"type":"string","const":"organization","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope.oneOf.0.kind","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whom that credential serves; null when there was none.","required":["kind","namespace"],"properties":{"kind":{"type":"string","const":"namespace","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope.oneOf.1.kind","typeLabel":"string"},"namespace":{"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":"events.items.[INDEX].oneOf.21.data.scope.oneOf.1.namespace","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope.oneOf.1","typeLabel":"object"},{"type":"null","description":"Whom that credential serves; null when there was none.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.scope","typeLabel":"object · object · null"},"judgments":{"type":"array","description":"The namespace's judgments on the provider's models.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.21.data.judgments.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.judgments","typeLabel":"string[]"},"since":{"type":"string","format":"date-time","description":"When judging on the provider stopped.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data.since","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.21.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.21.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.21","typeLabel":"object"},{"type":"object","description":"An event, as pushed (the request body) and as the feed lists it:\n`id`, `type`, `timestamp` and `data`, discriminated on `type`. Types\nmay be added, so ignore the ones you don't know.\n","required":["type","data","id","timestamp"],"properties":{"id":{"type":"string","description":"Also the `webhook-id` header.","pattern":"^evt_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.id","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"When the event was recorded.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.timestamp","typeLabel":"string\u003cdate-time>"},"type":{"const":"namespace.credential_restored","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.type","typeLabel":"any"},"data":{"type":"object","description":"A namespace's judgments on one provider stopped for want of a usable\nkey, or started again. `reason` says why they stopped: `missing`\n(no key reaches the namespace), `revoked`, `rejected` (the provider\nrefused the key), `restricted` (the key may not use the model) or\n`out_of_credit`. On `namespace.credential_restored` it is the reason\nthey had stopped.\n","required":["namespace","provider","reason","credential_id","scope","judgments","since"],"properties":{"namespace":{"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":"events.items.[INDEX].oneOf.22.data.namespace","typeLabel":"string"},"provider":{"type":"string","description":"A provider whose models a judgment can run on your own key.","enum":["typesafe","openai","anthropic","google"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.provider","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","enum":["missing","revoked","rejected","restricted","out_of_credit"],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.reason","typeLabel":"enum\u003cstring>"},"credential_id":{"oneOf":[{"type":"string","description":"The credential the judgments stopped on; null when none reached the namespace.","pattern":"^cred_[0-9a-z]{26}$","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.credential_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The credential the judgments stopped on; null when none reached the namespace.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.credential_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.credential_id","typeLabel":"string | null"},"scope":{"oneOf":[{"type":"object","description":"Whom that credential serves; null when there was none.","required":["kind"],"properties":{"kind":{"type":"string","const":"organization","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope.oneOf.0.kind","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope.oneOf.0","typeLabel":"object"},{"type":"object","description":"Whom that credential serves; null when there was none.","required":["kind","namespace"],"properties":{"kind":{"type":"string","const":"namespace","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope.oneOf.1.kind","typeLabel":"string"},"namespace":{"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":"events.items.[INDEX].oneOf.22.data.scope.oneOf.1.namespace","typeLabel":"string"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope.oneOf.1","typeLabel":"object"},{"type":"null","description":"Whom that credential serves; null when there was none.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.scope","typeLabel":"object · object · null"},"judgments":{"type":"array","description":"The namespace's judgments on the provider's models.","items":{"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,"uniqueKey":"events.items.[INDEX].oneOf.22.data.judgments.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.judgments","typeLabel":"string[]"},"since":{"type":"string","format":"date-time","description":"When judging on the provider stopped.","isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data.since","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"events.items.[INDEX].oneOf.22.data","typeLabel":"object"},"test":{"type":"boolean","description":"True on every event a test send sends, `webhook.test` or a sample of a named type. Absent otherwise, and never in the feed.","uniqueKey":"events.items.[INDEX].oneOf.22.test","typeLabel":"boolean"}},"uniqueKey":"events.items.[INDEX].oneOf.22","typeLabel":"object"}],"uniqueKey":"events.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"events","typeLabel":"object[]"},"next_cursor":{"type":"string","description":"Where the next page starts. Always present, even on an empty page.","isRequired":true,"uniqueKey":"next_cursor","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"events":[{"id":"\u003cstring>","timestamp":"2023-11-07T05:31:56Z","type":"subscription.entered","data":{"subscription":{"id":"\u003cstring>","name":"\u003cstring>","defined_on":"\u003cstring>"},"namespace":"\u003cstring>","document":{"id":"\u003cstring>","incarnation":1,"revision":1,"updated_at":"2023-11-07T05:31:56Z"},"cause":"change","sequence":1,"url":"\u003cstring>","attributes":{},"answers":{},"job_id":"\u003cstring>","truncated":true},"test":true}],"next_cursor":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"a0e08d38-7167-46da-9abd-70d9be28c669":{"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"},"6906482b-54eb-439d-a98c-0b2fa17550a8":{"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"},"256b83ad-d80a-4732-93cb-e4e09003522d":{"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"},"3bbb7dce-d31c-4bb2-84c7-356fe9d55024":{"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"},"b80f69a5-3d05-4cd9-a23a-0ee15081f9d3":{"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"},"3f0c3224-8b6e-471a-9cb4-23e68f6cb34a":{"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":"Read the events feed - Brussle","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T01:15:15.287Z","originalFileLocation":"api-reference/webhooks/read-the-events-feed.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=\"description\" content=\"Every event the organization recorded in the last 30 days, oldest first in the order they were recorded, limited to the key\u0026#x27;s scope. Without cursor it starts at the oldest. next_cursor is always present, even on an empty page, so a poller resumes exactly where it stopped. cursor also takes an event id, to resume after an event a receiver got by push. A cursor or event older than 30 days is invalid_request with details.reason: \u0026quot;cursor_expired\u0026quot;: re-read the current state (for a subscription, its query) and start again without one. A newer event id the organization never had, such as a typo or an id from another environment, is invalid_request without a reason.\">\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=\"Read the events feed - Brussle\">\u003cmeta data-mint-head property=\"og:description\" content=\"Every event the organization recorded in the last 30 days, oldest first in the order they were recorded, limited to the key\u0026#x27;s scope. Without cursor it starts at the oldest. next_cursor is always present, even on an empty page, so a poller resumes exactly where it stopped. cursor also takes an event id, to resume after an event a receiver got by push. A cursor or event older than 30 days is invalid_request with details.reason: \u0026quot;cursor_expired\u0026quot;: re-read the current state (for a subscription, its query) and start again without one. A newer event id the organization never had, such as a typo or an id from another environment, is invalid_request without a reason.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Brussle\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed\">\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=Webhooks\u0026amp;title=Read+the+events+feed\u0026amp;description=Every+event+the+organization+recorded+in+the+last+30+days%2C+oldest%0Afirst+in+the+order+they+were+recorded%2C+limited+to+the+key%27s+scope.%0AWithout+%60cursor%60+it+starts+\u0026amp;theme=509d0c020f182003776567c8\u0026amp;signature=114595f28da10a2af1e811ba13d14a4c5d22d4fbf0a76cbdc5f220c4ceaa2c91\">\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=\"Read the events feed - Brussle\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Every event the organization recorded in the last 30 days, oldest first in the order they were recorded, limited to the key\u0026#x27;s scope. Without cursor it starts at the oldest. next_cursor is always present, even on an empty page, so a poller resumes exactly where it stopped. cursor also takes an event id, to resume after an event a receiver got by push. A cursor or event older than 30 days is invalid_request with details.reason: \u0026quot;cursor_expired\u0026quot;: re-read the current state (for a subscription, its query) and start again without one. A newer event id the organization never had, such as a typo or an id from another environment, is invalid_request without a reason.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://altquid.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Read+the+events+feed\u0026amp;description=Every+event+the+organization+recorded+in+the+last+30+days%2C+oldest%0Afirst+in+the+order+they+were+recorded%2C+limited+to+the+key%27s+scope.%0AWithout+%60cursor%60+it+starts+\u0026amp;theme=509d0c020f182003776567c8\u0026amp;signature=114595f28da10a2af1e811ba13d14a4c5d22d4fbf0a76cbdc5f220c4ceaa2c91\">\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/webhooks/read-the-events-feed\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/read-the-events-feed.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/webhooks/read-the-events-feed#webpage\",\"url\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed\",\"name\":\"Read the events feed\",\"description\":\"Every event the organization recorded in the last 30 days, oldest first in the order they were recorded, limited to the key's scope. Without cursor it starts at the oldest. next_cursor is always present, even on an empty page, so a poller resumes exactly where it stopped. cursor also takes an event id, to resume after an event a receiver got by push. A cursor or event older than 30 days is invalid_request with details.reason: \\\"cursor_expired\\\": re-read the current state (for a subscription, its query) and start again without one. A newer event id the organization never had, such as a typo or an id from another environment, is invalid_request without a reason.\",\"dateModified\":\"2026-10-22T01:15:15.287Z\",\"isPartOf\":{\"@id\":\"https://docs.brussle.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhooks\",\"item\":\"https://docs.brussle.com/api-reference/webhooks/list-webhook-endpoints\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read the events feed\",\"item\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed#apireference\",\"headline\":\"Read the events feed\",\"name\":\"Read the events feed\",\"description\":\"Every event the organization recorded in the last 30 days, oldest first in the order they were recorded, limited to the key's scope. Without cursor it starts at the oldest. next_cursor is always present, even on an empty page, so a poller resumes exactly where it stopped. cursor also takes an event id, to resume after an event a receiver got by push. A cursor or event older than 30 days is invalid_request with details.reason: \\\"cursor_expired\\\": re-read the current state (for a subscription, its query) and start again without one. A newer event id the organization never had, such as a typo or an id from another environment, is invalid_request without a reason.\",\"url\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed\",\"mainEntityOfPage\":{\"@id\":\"https://docs.brussle.com/api-reference/webhooks/read-the-events-feed#webpage\"},\"dateModified\":\"2026-10-22T01:15:15.287Z\",\"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/webhooks/read-the-events-feed.md","siteName":"Brussle","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Namespaces","pages":[{"title":"List namespaces","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","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","description":"The catch-up after an outage or a disabled endpoint: every `failed`\nor `skipped` delivery to this endpoint created at or after `since`\n(at most 30 days back) is sent again, with its event's\n`webhook-id`. An endpoint that is `disabled` is `conflict`: enable\nit first.\n","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","description":null,"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":"Read the events feed - 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"]}