Decision models
A decision model (a classifier such as Jev) answers a narrow question
in one pass, with no generated text. A workspace's classifier is the
capability classify@1 (capabilities).
The rule
When the workspace has classify@1 bound, the platform asks it; when
it has not, the path without it runs. A classifier that fails, times
out or answers nothing usable falls back to that path. It never fails
or stops a run. Every call is metered on the run it serves.
How answers are read
Code decides from the answers. A probability above 0.7 reads as yes
and below 0.3 as no; the band between is unsettled (settled_band in packages/rules/src/decisions/settled.ts). A score's verdict passes
or fails at 0.5 (scores).
Where it is used
- Scores. The judge of a workspace's questions about its runs (scores).
- Reading along in rooms. A listening turn first asks whether the message is squarely the member's, and ends quiet below 0.3 (factory rooms).
- Outcome of a turn. A finished run is labelled answered,
delegated, quiet, blocked or failed (
runs.outcome,label_outcomeinpackages/runtime/src/run/decisions/outcome.ts, the rules inpackages/rules/src/decisions/run-outcome.ts). Code labels failed runs, runs waiting on the person and quiet reports; the rest get two yes/no questions on the request and the result: did it give what was asked, and was it stopped by something missing, broken or not allowed. A run that sent an ask is delegated only when it clearly did not answer. Unsettled answers leave no label.pnpm --filter @werkerai/worker label-outcomeslabels earlier runs. - Rows.
tools.classify_rows(packages/runtime/src/tools/classify-rows.ts,packages/rules/src/classify-rows.ts) asks one yes/no question per row: 8 calls at once, 1,000 rows per call, 2M input tokens per run, no question asked twice about the same row in a run. The rows' indexes and probabilities come back. - A decide step in workflows. A step can end with a yes/no question that decides what comes next (decide what comes next).
/newoffers saved work. While a person follows creation,classify@1is asked of each saved workflow with steps and each agent with a task (up to 40) whether running it would do what the request asks for. Code offers at most three at 0.7 and above. "Run this" runs the saved item on the creation's model and stops the creation as handed on; "Make something new" goes on and is not asked again (packages/rules/src/decisions/saved-offers.ts,packages/runtime/src/run/decisions/saved-offers.ts).- The generator sees only agents that may fit. Before it plans,
each saved agent it would be shown (up to 40) is asked whether it
could do the work or one stage of it. Only a clear no (0.3 and
below) is left out (
packages/rules/src/decisions/agent-fit.ts). - In a run, agents can call
tools.classify.step_abilities(packages/runtime/src/run/setup/planning.ts) tells them how to ask.
Each call's tokens and cost are stored on the run under the
classifier's model (usage_rows in packages/runtime/src/tools/usage.ts).
Providers and bindings
classify@1 has implementations for the typesafe, openai and openrouter adapters.
- TypeSafe and OpenAI: the first connection is bound as the workspace's classifier (integrations).
- OpenRouter: decision calls go to
/api/v1/systemone, chat to/api/v1/chat/completions. A new connection bindstypesafe/jev-1.14when the workspace has no classifier (default_classifier_modelinpackages/connections/src/models.ts). - Choosing one: Admin → Models has a "Decision model" row listing
the classifiers the workspace's connections offer. Choosing one
rebinds
classify@1.
The providers are classify_implementations in packages/connections/src/capabilities/classify.ts.