← All Labs Lab 20 / 28 System One decision models through Mycel
Lab 20 · Code & ship · Learned

System One decision models through Mycel

Every decision model in Mycel's catalog answers the same hard binary, choice and ordinal cases through POST /v1/decisions, and they rank by mean Brier score, which separates models that accuracy alone ties.

Learned Needs: decisions Smoke: pnpm exec tsx examples/20-system-one-decisions/run.ts --smoke Run: pnpm exec tsx examples/20-system-one-decisions/run.ts --live Source: examples/20-system-one-decisions

"System One" models (Jev, Clef, Liquid d1.2, Gemini decision and others) don't chat. They take a state and a few bounded questions and return a probability for each answer. This lab asks which of them is best calibrated on cases where the wording points the wrong way, and does it the same way for every model Mycel offers.

sh
pnpm exec tsx examples/20-system-one-decisions/run.ts --smoke                     # offline, fake Mycel, 5 checks
pnpm exec tsx examples/20-system-one-decisions/run.ts --live                      # every decision model on Mycel
pnpm exec tsx examples/20-system-one-decisions/run.ts --live --models cloudflare/clef,typesafe/jev-1.14

--live needs MYCEL_API_KEY; MYCEL_URL defaults to https://mycel.thefocus.ai and MYCEL_END_USER to lab-20. No vendor key is used (D-28). The model list comes from the public GET /v1/models, filtered to the decisions capability, so a model added to Mycel joins the next run. Answers are cached per model and case under --out (default output/system-one/), and the ranking is written to ranking.json.

The cases

cases.ts has twelve, four of each kind, written so the surface reading is wrong:

  • Refund (binary): conditional ("if it isn't fixed by Friday…"), declined entitlement, and money-back requests that never say "refund".
  • Evidence (choice: supported, contradicted, unresolved): "18 of 20" against "all", an indirect date, revenue against profit, minor cuts against "no one was injured".
  • Progress (ordinal, three levels): tests that only ran locally, an acceptance suite with a gap, a plan with no code, and a verified finish.

The labels are hand-written and not reviewed by anyone else.

Scoring

Each answer's Brier score is the squared distance between its probabilities and the right answer (0 is perfect, 2 is the worst possible). A call that fails, or returns a distribution Mycel or the schema rejects, counts as 2. Models rank by mean Brier, so a model that is right but unsure ranks below one that is right and sure, and confidently wrong is punished hardest.

What the smoke checks

A fake Mycel serves four scripted decision models plus one chat model:

CheckWhat it shows
finds-decision-modelsDiscovery picks the four decisions models from the catalog and leaves the chat model out
valid-answers-scoredEvery valid model answered all twelve cases through createJevBackend
brier-matches-hand-computedMean Brier for 0.9-right, 0.6-right and 0.9-wrong models equals values computed by hand (0.0167, 0.2667, 1.6833)
brier-separates-equal-accuracyTwo models with 100% accuracy are ranked apart by Brier
invalid-answers-rank-lastA model whose distributions don't sum to 1 answers 0/12 and ranks last at Brier 2

Break it

In packages/evaluation/src/evaluation/judgment/schema.ts, drop the sum-to-one check in answerSchema. Invalid distributions get scored, the sloppy model answers 8/12 and ranks third, and the smoke exits 1.

Replaces the Jev-only calibration pilot (Lab 20 before D-33). Its 60 synthetic cases live on in examples/_model-watch/jev-fixtures.ts, which model watch still uses.

Prompt

Coding-Agent Prompt · Ready to Paste
Build `examples/20-system-one-decisions/`: a lab that ranks every System One decision model on Mycel by mean Brier score on the same hard cases.

Read first: `packages/evaluation/src/evaluation/judgment/` (`createJevBackend`, which posts to Mycel's `/v1/decisions`; `runPilot`; `answerSchema` in schema.ts for the wire answer shapes `noul` / `choice` / `score`; `JudgmentCase`) and `packages/mycel/src/buyer/models.ts` (the public `GET /v1/models` catalog and its `decisions` capability).

1. `cases.ts`: twelve JudgmentCases, four binary (does the customer request money back now, with conditional, declined and indirect wording), four choice (supported / contradicted / unresolved, where the passage is close to the claim but not the same), four ordinal (three progress levels, where the agent's report sounds finished).
2. `run.ts --live`: list decision models from `${MYCEL_URL}/v1/models` (or `--models a,b`), run every case through `createJevBackend({ model, baseUrl, apiKey: MYCEL_API_KEY, endUser })` with `runPilot`, compute each answer's Brier score yourself (failed calls count as 2), and print and save a ranking by mean Brier with answered count, accuracy and median latency. Models go through Mycel only (D-28).
3. `--smoke` (and the default): start a fake Mycel on loopback serving a catalog with four decision models and one chat model, and `/v1/decisions` answers scripted per model: 0.9 on the right answer, 0.6 on the right answer, 0.9 on a wrong answer, and distributions that don't sum to 1. Print one PASS/FAIL line per check and exit 1 on any failure: finds-decision-models; valid-answers-scored; brier-matches-hand-computed (against values derived by hand, not by the code); brier-separates-equal-accuracy; invalid-answers-rank-last.
4. Strict TypeScript, no `any`; close the server and remove temp dirs in `finally`. README frontmatter and FINDINGS.md.
Works in Pi, Claude Code, Codex & Antigravity Offline mock first → --live opt-in

What we learned

The answer

Run live on 2026-12-01 through Mycel, all seven decision models in the catalog got every answer they returned right on the twelve hard cases. Accuracy doesn't tell them apart; calibration does. Mean Brier spans 60× from best to worst:

Visual Target Wireframe ASCII Layout
  rank model                       answered  accuracy  mean Brier  median ms
  1    liquid/d1.2-ultra           12/12     100%      0.0028      372
  2    typesafe/jev-1.13           12/12     100%      0.0099      322
  3    google/gemini-decision-1    12/12     100%      0.0124      428
  4    liquid/d1.2                 12/12     100%      0.0148      377
  5    typesafe/jev-1.14           12/12     100%      0.0213      322
  6    cloudflare/clef-flash       12/12     100%      0.1204      498
  7    cloudflare/clef             11/12     92%       0.1802      531

Mean Brier by kind of question:

ModelRefund (binary)Evidence (choice)Progress (ordinal)
liquid/d1.2-ultra0.00090.00710.0004
typesafe/jev-1.130.00870.01240.0087
google/gemini-decision-10.00200.01760.0174
liquid/d1.20.02540.01840.0006
typesafe/jev-1.140.00750.01100.0453
cloudflare/clef-flash0.06620.25990.0352
cloudflare/clef0.00370.02600.5108 (one failed answer counts 2)

Twelve cases is a small sample: the ranking among the top five could change with more. The gap to the two Clef models is large.

What going through it found

  • The old lab tested one vendor and checked nothing. It ran Jev only, and its mock "passed" when six calls completed whatever they answered. It now finds every model with the decisions capability in Mycel's public catalog and checks the ranking against hand-computed Brier values, so a scoring bug fails the smoke.
  • Easy cases tied the models. The review found the old cases too easy to separate them. The new cases point the wrong way on the surface (a conditional refund, "18 of 20" against "all", tests that only ran locally), but every model still got them right. Calibration is what separates them, so the lab ranks by Brier and reports accuracy beside it.
  • Jev 1.14 is less sure than 1.13 on progress judgments (0.0453 against 0.0087), though both picked the right level every time.
  • Clef can answer without a distribution. For "a design doc, no code" it returned { "type": "score", "score": 0.558, "legend": … }: an expected level and no probabilities. Mycel's Decisions API allows that (OpenRouter makes probabilities optional, and Mycel passed it through), but answerSchema in @umwelten/evaluation requires a full distribution, so the call counts as failed. Without probabilities there is no Brier score; the lab counts it as the worst, 2.

Gotchas

  • GET /v1/models is public, so discovery needs no key; only /v1/decisions does.
  • Answers are cached by model and case under --out. Changing a case changes its cache key; rerunning without changes makes no calls.
  • Prices differ by 12× in the catalog (input $/M at the time: d1.2 0.021, Jev and d1.2-ultra 0.0441, Clef-flash 0.0399, Gemini decision 0.105, Clef 0.252). The cheapest Liquid models ranked near the top. The run didn't record Mycel's charge per call.

Not tested

  • Option-order invariance (reversing choice options) and the generative-LLM baseline the old pilot had.
  • More than twelve cases, or labels reviewed by a second person.
  • Cost per model from the Exchange ledger.

Smoke run

Visual Target Wireframe ASCII Layout
  rank model                       answered  accuracy  mean Brier  median ms
  1    fake/sharp                  12/12     100%      0.0167      3
  2    fake/hedge                  12/12     100%      0.2667      3
  3    fake/wrong                  12/12     0%        1.6833      1
  4    fake/sloppy                 0/12      0%        2.0000      0

  PASS  finds-decision-models: catalog decisions models: fake/hedge, fake/sharp, fake/sloppy, fake/wrong; fake/chat left out
  PASS  valid-answers-scored: fake/sharp 12/12, fake/hedge 12/12, fake/wrong 12/12
  PASS  brier-matches-hand-computed: fake/sharp 0.0167 (expected 0.0167), fake/hedge 0.2667 (expected 0.2667), fake/wrong 1.6833 (expected 1.6833)
  PASS  brier-separates-equal-accuracy: sharp and hedge both 100% accurate; Brier 0.0167 vs 0.2667
  PASS  invalid-answers-rank-last: sloppy answered 0/12, Brier 2, ranked 4 of 4

  5/5 passed