Skip to main content
You can start from a ready-made judgment instead of writing one. A starter is a complete definition (a question, a type, a context recipe and thresholds) with placeholders, such as {reference}, for your own paths. Starters show how to organise data. Whether an answer is good on your data is yours to measure against outcomes. These starters read other documents or an earlier version. They come from version 2 of the catalogue that GET /v1/starters serves, and the starters that read one document (ticket_triage.urgency, ticket_triage.routing, moderation.breaks_rule, review_queue.needs_review) have their own page.

Create a judgment from a starter

Fill each placeholder in paths: a path takes state.… or attributes.…, an attribute takes attributes.…, and a value takes a value. If you leave out an optional placeholder, Brussle leaves out what it fills (a fields entry, a last_n entry, an option label or an outcome rule). Writing a context recipe shows how to preview a starter with dry_run. For example, this creates hierarchy.inherits_risk with its example paths:
  • freshness on_change judges each document when it changes, so you can sort, filter and get alerts on its answer. A judgment without it is on_read, which Brussle refuses in a query filter, a sort or a subscription.
  • Only these keys go beside from_starter: paths, name, engine, freshness, activate, confirm and dry_run. Brussle refuses any other key, applies_to included, with invalid_request, since the starter sets the definition. To limit a starter to some documents with applies_to, or to change anything else in it, take the definition that a dry_run returns, edit it and create it as an ordinary definition.
  • confirm: true is needed by a starter that reads related documents, since without it Brussle creates nothing and returns the judgment’s monthly cost estimate.
  • engine is never in a starter, and a starter’s recipe reads no images. To read images, add their images.<name> paths to the fields of the definition that a dry_run returns, name an engine that reads images, such as gpt-6-luna current, raise max_tokens past the standard size class that a starter keeps, and create that definition.
  • A suggested outcome setting, where a starter has one, takes effect with the first version of the judgment, on a plan with outcome rules.

Moderation: does this post break the policy it is under?

For posts, comments or listings that you judge against a written policy, such as the rules of a community or the listing rules of a marketplace. You keep the policy as a document. The judgment judges only posts. It reads the title and text of each post, with the rules of the policy document that the post points at. When the rules change, Brussle judges the posts under the policy again, within the judgment’s rolling limit. Simulate a change before you write it to see which answers it would flip. Each judgment reads the whole policy, so the length of the policy counts in each judgment. Over max_tokens, Brussle leaves out the policy before it cuts the text of the post. The judgment reads no images until you add their images.<name> paths to its fields, on an engine that reads images. Over max_tokens, Brussle then leaves out whole images first. Hide a post above the hide threshold. Send a post between review and hide to a person. from_starter: moderation.under_policy, with confirm: true

Matching: which open invoice does this payment settle?

For receivables, where a payment arrives without a clear link to the invoice that it pays. The judgment judges only unmatched payments. It reads the amount, reference and payer of each payment, beside the newest 10 open invoices that share its block attribute, created within 180 days of the newest one: their number, amount and customer. The answer is the id of one invoice, or none_of_the_above. Put each condition that a match needs in the block key, such as the customer and the currency. A change to the open invoices of a block makes Brussle judge its unmatched payments again, after a quiet period and within the judgment’s rolling limit. When the unmatched threshold is false, use the pick. When it is true, send the payment to a person. If you give the settles path, Brussle records an outcome when you write the matched invoice’s id there. from_starter: payments.settles, with confirm: true
Suggested outcome setting:

Change detection: did this contract section change in a way that matters?

For contracts, policies or terms that you keep as one document for each section, and that change over time. The judgment judges only sections. It reads the heading and text of a section, beside the same fields as the judgment last saw them. A write that changes neither costs nothing. Brussle compares each edit with the version that the last answer judged. A section’s first answer has no earlier version to compare with. To compare each edit with the signed version instead, add an anchor to previous in the definition that the dry run returns, such as attributes.signed_at. Send a section above the review threshold to a person. from_starter: contracts.material_change

Hierarchy: does this item inherit a risk from what it sits under?

For items in a tree that you keep, such as folders in a drive, teams in an organization chart, categories in a catalogue or replies in a thread. Each item lists the ids of its ancestors in one attribute, nearest first. The judgment reads the item’s name, its status and the start of its description, beside the same fields of the nearest 10 ancestors, in the order of the list. You write the list and keep it a tree. Brussle does not check the tree. A change to what an ancestor shows makes Brussle judge the items that list it again, within the judgment’s rolling limit. The judgment reads the fields of the ancestors, not their answers. Restrict an item above the restricted threshold. Send an item between review and restricted to a person. from_starter: hierarchy.inherits_risk, with confirm: true

Linked accounts: is this account one of a group used for abuse?

For fraud at sign-up, in payments and in marketplaces, where one person or group runs many accounts. Each account keeps its device, phone number, email and card in four attributes. For each of the four, the judgment reads up to 10 other accounts that share the value, created within a year of the newest of them: when each was created, its status and the start of its name. The number of accounts shown under each key is on the answer, as a number that a threshold can name. Each count is 10 at most, and an account that shares two keys with this one counts under both. The engine reads the accounts, not these numbers. Once you record outcomes, the fit weighs the numbers with the engine’s answer. The judgment reads only the accounts that share a key with this one directly, never the accounts linked to those, and never their answers. A change to what a key shows makes Brussle judge the accounts that share the key again, after a quiet period and within the judgment’s rolling limit. Hold an account above the hold threshold. Send an account between review and hold to a person. busy_device is true when five or more other accounts share the device. from_starter: linked_accounts.risk, with confirm: true

Triage: does this ticket repeat a problem already open in its queue?

For support and operations queues where one problem arrives as many tickets, such as an outage. The judgment judges only open tickets. It reads the subject and the start of the body of each ticket, beside the newest 10 other open tickets in the same queue, created within 14 days of the newest one: their subject, the start of their body, and when each was created. Newest means the most recently created, not the most important. An older ticket, or one after the newest 10, is not shown. A change to what the queue shows makes Brussle judge the open tickets of the queue again, after a quiet period and within the judgment’s rolling limit, so find the cost of a busy queue before you create the judgment. Group a ticket above the repeat threshold with the problem that it repeats. Send a ticket between review and repeat to a person. from_starter: triage.against_queue, with confirm: true