Skip to main content
A judgment gives you a typed answer for each document in a namespace, kept current as the documents it reads change, and marked with the question version and engine version that made it. It is an AI column that an engine fills in, with three parts:
  • a question with a type: bool (yes or no), choice (one of a list of options) or score (a level on a scale), or text, json or embedding for a value with no probability;
  • a context recipe, which says what the engine reads;
  • a definition that has versions, like a schema.
A judgment judges, and bills, every document written to its namespace unless you set applies_to, so a create without applies_to returns a warning. This judgment asks each unmatched payment which open invoice of the same customer it settles:
The judgment reads the payment and the open invoices that share its key, attributes.block, and the answer’s value is one invoice’s id or none_of_the_above. confirm: true accepts the estimate of the monthly cost, which a judgment needs when it reads other documents and runs on_change. Match one record to another builds it step by step. A judgment on a prefix (such as acme/prod/*) is a template, so each namespace under the prefix gets it.

Pick a type

A bool answer has no value, so set a named threshold to get a yes or no. A bool can also ask 2 to 8 narrow parts, which Brussle combines with weights fitted on your labels and measures on those labels before the judgment answers. With features, 1 part is enough. See composite judgments.

Text, json and embedding columns

A text, json or embedding column holds a value with no probability, so it takes no thresholds, features, parts, options, levels, horizon or outcomes, and a create that gives one is refused with invalid_request, details.path naming the field and details.type the type. Each option is part of the definition, so changing max_chars, schema or dimensions creates a version, and the answers of the old version read stale (older_version) until Brussle judges them again. The engine must list the type in its outputs (GET /v1/engines), and the create says so when it does not.
  • text cuts a longer text at max_chars characters and marks the answer truncated, rather than failing it.
  • json takes a schema of at most 16 KiB that uses only type, properties, required, additionalProperties (true or false), items, enum, const, anyOf, description, $defs, $ref (to #/$defs/<name>), minimum, maximum, minLength, maxLength, minItems and maxItems. Another keyword is refused at the create, with details.keyword naming it. A value that does not satisfy the schema is a failed evaluation, and the answer keeps its last good value. A value is at most 64 KiB.
  • embedding embeds the compiled context, so question describes the column for you and reaches no engine, and criteria is refused.

How far to trust each type

The text, json and embedding types carry no number, so the advice below is for the decision types. The types are not equally reliable, and engines differ, so measure the answers against your own outcomes.
  • Prefer bool where a yes or no question fits, since its one probability is the most direct for your outcomes to measure and correct.
  • Read score as a position on the scale. An answer often lands near the correct level rather than on it, so set thresholds between levels (such as 3.5), and do not rely on the difference between adjacent levels.
  • Use a choice’s value, not its probabilities. dist can put 1.0 on one option even when the pick is wrong, so post outcomes and read the correction before you act on the probabilities.

Choose among candidates

A choice can take its options from candidates, which are the documents that share a key with the judged document, read by a blocking relation. "options": {"from": "candidates", "label": ["state.number", "state.amount"]} makes one option per candidate, newest first, with the candidate’s id as the option’s value and label to describe it. none_of_the_above comes last and means “no match”.
  • At most 10 candidates (the candidate limit on the relation’s last_n), judged together in one call.
  • One match per document. To find all duplicates of a record, use one pair document for each pair of candidates.
  • escape_p is the probability that no candidate matches. It is the only number this choice takes a threshold on, so use it as your unmatched queue. dist is a short list and not a ranking.
  • No candidates, no call. The answer is then none_of_the_above with escape_p 1, and Brussle makes no engine call and bills nothing.
  • Other judgments read it only through a link, or count whether it matched. Its horizon must be 0s, and discovery does not apply.

Start from a starter

Starter judgments are ready-made definitions, such as payments.settles and contracts.material_change, and most ask a bool (two ask a choice). A starter shows how to organise your data for a question, and you measure whether its answers serve you. Send from_starter with the paths of your own documents. A starter takes no applies_to, so to limit it to some documents, create the definition that a dry_run returns with applies_to added. Add "dry_run": true to any definition to see it with its cost per answer and backfill estimate, without creating anything. Each create returns the version it made, in definition. See start from a starter.

Thresholds

A threshold is a named number. Brussle compares the answer with each threshold every time it reads the answer, and returns a boolean under answers.{name}.thresholds. With the unmatched threshold above, an answer with escape_p 0.42 returns "unmatched": true, so the payment waits for a person. Thresholds compare the numbers the answer shows. Without features these are the engine’s numbers (never calibrated), so a new fit never moves a document across a threshold. With features they are the fitted numbers, and after the fit changes, GET on the judgment shows fit_changed for thresholds on p or score until you set one again. A composite compares its combined p. See which number your thresholds and queries read. On a feature. A bool with features can compare one, as in "split": {"feature": "matched_payments.count", "gte": 2} (or lte for “at most”). Brussle compares the stored number exactly. The stored number follows the related documents after the judgment’s debounce, since Brussle computes it when it judges the document, and a missing feature reads false. When a threshold no longer applies. A new bool version can drop a feature that a threshold names, and the threshold then reads false. A new choice version can remove an option, and on activation Brussle removes the thresholds that name it. A namespace’s own thresholds on a template’s judgment are the exception: they stay, and the option’s probability reads 0. Either way, GET and the activation’s response show threshold_unresolved, naming the threshold, until you set it again.

Change thresholds

Thresholds are settings and not part of a version. PATCH /namespaces/{ns}/judgments/{name} replaces the whole set ({} removes all):
  • The change applies at the next read of every answer. Brussle judges nothing again and makes no version, and it records the change in your audit log.
  • Thresholds given with a new version replace the current ones when that version becomes active. A version given none keeps those that still fit, but a version of another type starts with none.
  • Use the recommender to pick one from your outcomes.
  • If another judgment’s relation reads a threshold, the PATCH first returns each reader’s cost, as downstream, and changes nothing, so send it again with confirm: true. Brussle refuses to remove a threshold that a reader reads, with a conflict that names the readers. See changing a threshold a reader reads.

Watch for answers that fit no option

A new kind of document shows up as more none_of_the_above answers in a choice with fixed options. escape_alert is the share of those in the last 7 days above which GET shows a taxonomy_drift warning and the events feed records one judgment.taxonomy_drift event (from 20 answers; null, the default, is off). POST /namespaces/{ns}/judgments/{name}/discover starts a job that proposes options the escaped documents have in common, each checked against those documents. The job creates nothing; you review the proposal and create the version. It sends a sample of the escaped documents to a third-party model provider, so an admin turns on suggestions first. See discover new options.

Pick an engine

Each judgment names one engine version: an included engine, such as {"name": "jev", "version": "current"}, or your own model on your own key, as {"name": "openai/gpt-5.2", "version": "current"}. The provider is one that GET /engines lists under providers, and the model id is the one you would send that provider. Your own model is always current.
  • An exact version never changes, and the judgment is pinned to it.
  • A version that is not pinned, such as Jev current, follows its provider’s newest behaviour. Each period of unchanged behaviour is an epoch, and each answer records its epoch in engine_version (such as current+2026-09-24.1). A new epoch makes no answer stale and judges nothing again. Filter on engine_version to compare epochs.
  • Leave engine out and 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 column’s type. The created version records the result, and Brussle never moves a column to another engine by itself (see choose an engine version).
  • Each judgment and each of its versions says its path: included for an engine Brussle runs on its own keys, customer_key for your own model.
  • An included version must be active in the registry, or Brussle refuses it with engine_version_unavailable. Your own model needs a stored key for its provider, or Brussle refuses the create with invalid_request and details.reason: credential_missing. Brussle does not check the model id at create, so a model that your key cannot use fails its first evaluation with engine_version_unavailable.
Engines differ in whether they read images, in their multiple on your bill, and in the provider that gets your data. See engines.

Say what the engine reads

context, the context recipe, says which parts of the document the engine sees, and so sets the size and cost of each request. See writing a context recipe. Brussle refuses a create without it and suggests a recipe. Send "use_context": "suggested" to accept the suggestion, or "whole_state" to send the whole state (without images). A recipe can also read the documents that point to this one, the one it points to, other judgments’ answers on them, candidates that share a key, and the document as the judgment last saw it, and Brussle keeps the answer current when those change. See relations.

Versions

A version never changes, so posting a definition with an existing name creates version n+1. The first version is active at once (except a composite’s), while a later version stays inactive until you activate it or send activate: true with it. POST /namespaces/{ns}/judgments/{name}/activate with {"version": 4} makes version 4 active for new evaluations. A version that asks differently becomes active when you confirm its shadow report, which starts a backfill of the old answers. A switch with force, or activate: true on a create, judges nothing again. Change a question or engine safely walks through it.

Old and new answers do not mix

Each answer records the judgment_version and engine_version that made it.
  • An answer from an earlier version reads stale, with stale_reason older_version, so answers: "fresh_only" and a filter on freshness leave it out. See freshness.
  • A version that changes only thresholds asks the same question, so earlier answers stay fresh.
  • A new epoch never makes an answer stale. engine_version shows which epoch made each.
  • A version that names a different engine asks differently, so its activation makes earlier answers stale.
A backfill judges stale answers again under any policy. Otherwise on_change judges them when the document changes, periodic at the next run, on_read when a get or query reads them (a fresh_only query that leaves the row out counts too, and the answer reads pending meanwhile), and manual only in a backfill. ["answers.settles.judgment_version", "Lt", 4] finds the answers that versions 1 to 3 made (find the answers of one version). A subscription does not read freshness, so it keeps matching an earlier answer on its stored numbers.

The shadow report

The activate call returns 202 with a shadow job when the new version’s engine or definition differs. The job judges 1,000 sample documents with the new version and reports the shift in answers, the thresholds that would flip, and the cost to judge everything again.
  • POST /jobs/{id}/confirm switches once the report is ready (before then, it returns conflict and changes nothing). It starts a backfill at the report’s cost if that fits the namespace budget and your balance, and the done shadow job names that backfill in backfill_job_id.
  • "force": true on activate, or activate: true on create, switches at once with no report and no backfill. On a composite, force still runs the shadow job, and activate: true on create is invalid_request.
See change a question safely with a shadow report for its fields.

Change a setting without a version

PATCH /namespaces/{ns}/judgments/{name} changes these settings and creates no version:
  • the freshness policy, debounce, fan-out and budget;
  • thresholds and escape_alert;
  • outcomes: implicit negatives and outcome rules;
  • alternatives: whether the run that scores alternatives starts by itself after a fit (automatic, off by default) and which engines it skips (skip_engines). Send it in a PATCH of its own, with confirm: true to turn automatic on, because each run is billed.
freshness in a create applies to the first version only. A later version keeps the judgment’s settings, since a new version never switches a judgment to on_change or removes a debounce you tuned. A different freshness returns a warning.

Set a horizon

horizon, part of the definition, is the window after an answer in which an outcome counts against it, such as "30d" (the default is 0s). With 30d, an outcome posted on day 12 counts against the answer made on day 0. For a question about what will happen, keep the counts that matter as features, and the calibration report’s features_only shows what the engine adds to them.

Deactivate a judgment

DELETE /namespaces/{ns}/judgments/{name} deactivates a judgment and keeps its answers and evaluations. While another judgment reads its answers, GET lists those readers and Brussle refuses the delete with conflict. A namespace can have 100 active judgments.

Backfill

A backfill judges the documents that existed before the judgment, or whose answers are from an earlier version. POST /namespaces/{ns}/judgments/{name}/backfill without confirm returns an estimate and does nothing else:
  • cost_usd is what it costs you. It prices the rows it would bill, by size class times the engine’s multiple, at the tiers your organization will reach, counting this billing period’s use so far. row_units counts them at the engine’s multiple. Here each document is a 2,000-token standard evaluation on Jev (multiple 2), so it counts 2, all in the first tier. On gpt-6-luna (multiple 5) each counts as 5 rows.
  • duration_s is the shortest time to expect, since other judging goes first. Here it is about 44 days on Jev. Each engine judges at its own rate.
Send "confirm": true to start it as a job, which you can follow, pause, resume or cancel under /jobs/{id}, and which obeys the namespace budget. filters limits it to matching documents, on document fields only. progress.documents_done counts up to the estimate’s documents, and the job reads done after the last. A backfill judges the documents in applies_to that match filters, except those with a successful answer for their current revision from the active version or a version that changes only thresholds. The estimate is zero after a version that changes only thresholds, and a new estimate after a backfill counts only the documents written since.
  • A document you wrote again unchanged counts in the estimate, since its answer is for an earlier revision. The backfill keeps that answer for the new revision with no engine call and bills nothing for it, so the cost can come in under the estimate.
  • While judging is paused (by the namespace’s budget or your organization’s balance), a backfill’s job keeps the status running but judges and spends nothing, and it goes on by itself when judging resumes.
  • Brussle does not refuse a second backfill while one runs. Each job passes over the documents that already have an answer when it reaches them, so the second mostly skips what the first has judged. A document that both reach before either commits its answer, however, is judged and billed twice. Keep the job_id that the confirm returns and follow that job, since no route lists a namespace’s jobs. If your process can confirm again after a restart, send the confirm with the same Idempotency-Key, which returns the first job for 24 hours (see idempotency keys).

When a change takes long

A judgment create, a judgment PATCH and a backfill request (with or without confirm) estimate a cost first. If that takes more than 20 seconds, the request answers 202 Accepted with a Retry-After header and a running job of type judgment_create, judgment_update or backfill_start. Read the job with GET /jobs/{id}. Once it is done or failed, its result holds the HTTP status and body the request would have returned:
GET /v1/jobs/job_01j9zr4m6p8q0s2t4v6x8z0b2d
Here result.body.job_id is the backfill that started.
  • The result is the fast request’s. A done job holds the usual 201 or 200, and a failed one holds the usual error, such as budget_exceeded (402).
  • Mistakes come at once. An invalid body or a missing judgment gets its 400, 404 or 409 immediately, without a job.
  • The change happens once. A retry with the same Idempotency-Key returns the same job, and a job that Brussle runs again after a failure on our side never makes a second version or backfill.
  • unavailable (503) means nothing changed, and a retry makes the change once. A slow estimate becomes a job, never unavailable.
  • You cannot pause or cancel these jobs (conflict). They cost nothing, but the backfill that a backfill_start job starts is billed as usual.
  • Webhooks. job.completed and job.failed carry the job and its result.
The SDKs wait for the job by default and return its result.