Engines: Kenning, Clef, Jev
Several engines speak the same System One wire format (POST /v1/systemone). The systemone
client works with all of them, so the code on this site runs unchanged on each. You switch engines
by changing a URL.
| Kenning | Clef | Jev | |
|---|---|---|---|
| Made by | the SystemOne Builder community | Cloudflare | TypeSafe AI |
| Licence | Apache-2.0 weights | Apache-2.0 weights | hosted service, paid |
| Runs | on your machine | on your machine | on TypeSafe’s API |
| Size / hardware | 435M parameters, ~2 GB of GPU memory, or CPU | 9B parameters, a 24 GB GPU | n/a |
| Determinism | same request, same answer (same hardware) | yes, locally | per TypeSafe |
| You can train it further | yes: SystemOne Builder | as a base, yourself | no |
Same benchmarks, side by side
Section titled “Same benchmarks, side by side”We run every engine through the same suites with systemone bench (in
SystemOne Builder). None of these suites were
used for training. Benchmarks below are kenning-large-v0.6, the current published model, with v0.5 shown
for comparison. Clef is clef-flash and Jev is jev-latest, run for comparison only and never trained on.
Both kenning-large-v0.6 and kenning-large-v0.5 are published Apache-2.0 downloads (Hugging Face); recipes
and full results are in the Kenning docs.
General decisions (the headline)
Section titled “General decisions (the headline)”The general suite: 1,328 held-out items, 30 questions in 7 families of state. Accuracy per family, and
the mean across the families:
| Family | Kenning v0.6 | v0.5 | Clef | Jev |
|---|---|---|---|---|
| Mean over families | 0.761 | 0.653 | 0.791 | 0.830 |
| Text: evidence, sentiment, toxicity, prompt injection, intent, topic | 0.813 | 0.756 | 0.841 | 0.834 |
| Conversations: which service a dialogue is about | 1.000 | 0.979 | 1.000 | 1.000 |
| Answer quality: helpful, correct | 0.457 | 0.479 | 0.447 | 0.498 |
| Agent decisions: right tool call, function call, task completed | 0.827 | 0.727 | 0.793 | 0.900 |
| Records: refunds, spending limits, access rules over JSON | 0.681 | 0.587 | 0.857 | 0.921 |
| Tables: is a statement true | 0.680 | 0.520 | 0.860 | 0.940 |
| Logs: is a service failing, which one | 0.810 | 0.520 | 0.740 | 0.720 |
| Latency per request (p50) | 285 ms | 35 ms | 125 ms | 152 ms |
Kenning v0.6 is a long-context (2,048-token) ModernBERT cross-encoder, a 400M reflex that sees the whole state in one pass. It beats Clef on agent decisions, conversation, answer quality and logs (logs 0.79, ahead of both Clef and Jev) while staying a twentieth of its size. The longer window costs latency, so v0.5 remains the fast option. Records and tables still trail the big engines: those need computation, not just more context, which is what the experimental decoder below explores.
Read the next section before choosing a model on this table alone. v0.6 leads here, on the suite we wrote, and loses to v0.5 on the one we did not.
A benchmark we did not write: WorkflowEvals
Section titled “A benchmark we did not write: WorkflowEvals”WorkflowEvals is TypeSafe’s own suite (Apache-2.0), built from realistic business documents and scored as per-question agreement with an OpenAI plus Anthropic consensus reference. We have never trained on it and never will. 240 items, 60 per workflow, seed 42. GLiDE here is Fastino’s hosted System One model, which speaks the same wire format and is run for comparison only, never trained on:
| Workflow | Kenning v0.5 | Kenning v0.6 | GLiDE |
|---|---|---|---|
| Mean over workflows | 0.625 | 0.575 | 0.800 |
| Agent traces: what went wrong, and where | 0.533 | 0.483 | 0.733 |
| Customer service: intent, urgency, risk | 0.684 | 0.667 | 0.817 |
| Invoices: line items, totals, policy | 0.618 | 0.517 | 0.933 |
| Security alerts: severity, evidence, exposure | 0.667 | 0.633 | 0.717 |
| Latency per request (p50) | 407 ms | 849 ms | 405 ms |
| Identical answer on repeat | 5/5 | 5/5 | 3/5 |
Three things worth saying plainly about this table.
- v0.5 beats v0.6 here, the reverse of our own suite. Our
generalsuite is largely rule-generated by us, and it rewarded a change that did not generalise. If you are choosing between the two, measure on your own data rather than trusting either table. - GLiDE leads by 0.175, and most of that is the structured documents. Some of the remainder is a limit of the architecture rather than of training: scoring each option independently cannot express “the earliest step that satisfies a predicate”, which is what the agent-trace questions ask.
- Kenning is deterministic and GLiDE is not. Same request, same weights, same hardware, same answer, verified over repeats. That is a property you can build a threshold on.
v0.5’s 8 errors on this suite are a real defect: its 512-token window drops some of the longest invoice states. How we found the rest, including three measurement bugs of our own that were worth 0.16 of the apparent gap, is written up in Half the Gap Was Ours.
Experimental: Kenning-XL (decoder)
Section titled “Experimental: Kenning-XL (decoder)”Kenning-XL is a research line that replaces the cross-encoder with a small decoder reasoning over the whole state, with a deliberate mode — a short gold-trace reasoning chain before it answers, trained on chains the builder’s rule generators compute for free. It is strong on the computation-heavy families through learned reasoning (a 4B decoder reaches records ≈ 0.79, tables ≈ 0.78) and more than doubles the hardest arithmetic task (daily-limit checks 0.42 → 0.81).
But the long-context ModernBERT reflex (v0.6, above) turned out to be the better overall path: simpler,
one pass, higher macro (0.753 vs the decoder’s ~0.69 as served), ahead on logs, and far faster to serve.
So v0.6 is what’s published, and the decoder continues as research aimed at records and tables. Its
engine, trainer and docs are merged into
main; it is experimental and not a published model.
The method and the honest open items are in
docs/kenning.md and the
design notes.
Email & phishing suites
Section titled “Email & phishing suites”Alongside the general models, two domain-specialised Apache-2.0 models (kenning-phishing-v1.1 on DeBERTa-v3-large at 512 tokens and kenning-phishing-long-v1.1 on ModernBERT-large at 1,280 tokens) pair deterministic Stage-0 pre-parsers (auto-enriched at inference in kenning/model.py, including SafeLinks/Proofpoint URL unwrapping) with 50% signal dropout, Clef-flash soft-label distillation (alpha=0.30), empirical hard-label calibration, and a two-stage state-aware cascade (kenning/cascade.py):
| Suite / Metric | kenning-phishing-v1.1 | kenning-phishing-long-v1.1 | Kenning v0.5 / v0.6 | Clef | Jev |
|---|---|---|---|---|---|
phishing_counterfactual (48 hand-written held-out): 6-task macro |
0.826 | 0.868 | 0.399 (v0.6) | 0.722 | — |
…is_phish accuracy @ 0.5 / ROC-AUC |
0.854 / 0.953 | 0.917 / 0.972 | 0.646 / 0.693 | 0.833 / 0.905 | — |
…is_phish counterfactual pair-flip accuracy |
0.708 | 0.833 | 0.292 | 0.667 | — |
…is_phish auto-triage rate / FN auto-closed (0.9 / 0.1 gate) |
60.4% / 0 | 75.0% / 1 | 56.2% / 3 | 25.0% / 0 | — |
phishing_counterfactual_synthetic (32 in-dist templates): macro |
0.995 | 1.000 | 0.464 | 0.823 | — |
phishing_layouts (160 items across 4 state shapes): macro |
0.856 | 0.825 | 0.556 (v0.6) | 0.781 | — |
phreshphish (80 real webpages, Stage-0 DOM + URL triage): is_phish / ROC-AUC |
0.963 / 0.992 | 0.925 / 0.983 | 0.600 / 0.781 (v0.6) | 0.938 / 0.978 | — |
PhishNChips (400 real Decision Index #56 emails): is_phishing / ROC-AUC |
0.900 / 0.974 | 0.953 / 0.984 | 0.510 / 0.633 (v0.6) | 0.748 / 0.852 | — |
…PhishNChips verdict (choice) / Recall @ 1% FPR / auto-triage |
0.905 / 0.875 / 57.5% | 0.870 / 0.945 / 83.2% | 0.527 / 0.240 / 45.8% | 0.743 / 0.315 / 41.2% | — |
decision_index (320 real stratified DI 0.3 items, 32/37 tracks): Index (0..100) |
22.9 | 22.8 | 27.4 (v0.6) | 61.9 | — |
…DI areas (Retrieval / Lang / Tools / Knowledge / Arts) |
31.8 / 26.1 / 22.0 / 15.7 / 17.2 | 36.2 / 30.7 / 16.8 / 13.6 / 10.5 | 22.5 / 52.0 / 19.8 / 14.9 / 19.5 | 25.4 / 76.7 / 77.8 / 62.9 / 65.5 | — |
modern2 (20 subtle body-only lures): accuracy / ROC-AUC |
0.950 / 1.000 | 0.750 / 0.950 | 0.650 / 0.890 (v0.6) | 0.900 / 0.960 | — |
Modern emails (modern, 20 held out) |
— | — | 0.75 (v0.5) | 0.90 | 0.90 |
| Phishing dataset (50) | — | — | 0.78 (v0.5) | 0.96 | 0.96 |
| Out of domain: spam / emotion / news topic | — | — | 0.917 / 0.583 / 0.867 | 0.900 / 0.600 / 0.950 | 0.967 / 0.583 / 0.933 |
| Latency per request (p50) | 32–120 ms | 23–86 ms | 18–91 ms | 113–321 ms | ~150 ms incl. network |
How to read this honestly:
- Kenning is close to Clef on text, and still behind on records and tables. Those need arithmetic over the state rather than more of it, so more context does not fix them; v0.6 reaches 0.681 and 0.680 where Clef reaches 0.857 and 0.860. Agent steps and logs are no longer the weak point: v0.6 is ahead of both Clef and Jev on logs. If your state is a record or a table, measure on your own data before trusting any of these numbers, or train it for your problem.
- The two models trade context for speed. v0.5 reads 512 tokens and answers in about 35 ms, so long states get cut off. v0.6 reads 2,048 and is several times slower. Neither is strictly better: pick by how long your state is and how much latency you have.
- It’s about 20 times smaller than Clef. In the email suites it was right whenever it was sure, apart from one spam message: it stays humble rather than confidently wrong.
- Small suites are noisy. In a 50-item task, each item moves the number by 2 points. The suites are open: run them yourself, and add your own.
- Full method, per-task results and caveats are in the Kenning docs.
Pointing the client at each engine
Section titled “Pointing the client at each engine”import osfrom systemone import Client, Kenning
# Kenning in-process (pip install "systemone-client[local]")model = Kenning.from_pretrained("systemonedev/kenning-large-v0.5")
# Kenning or Clef served by SystemOne Builder (localhost only, no key)kenning = Client("http://localhost:8093")clef = Client("http://localhost:8094") # docker compose --profile clef up -d clef
# TypeSafe Jev (your key; each request is billed under your TypeSafe agreement)jev = Client("https://api.typesafe.ai", api_key=os.environ["TYPESAFE_API_KEY"], model="jev-latest")All four objects take the same system_one(state=..., questions=...) call and return the same
Response.
Which one should I use?
Section titled “Which one should I use?”- Prototyping, privacy-sensitive data, high volume, or no budget: Kenning. It’s free, runs anywhere, and you can fine-tune it on your own labelled data with SystemOne Builder.
- Hardest judgement calls on your own hardware: Clef, if you have a 24 GB GPU to give it. It’s also a good teacher to distil into a smaller model.
- No GPU and no operations work: Jev, as a hosted service.
You don’t have to choose once. A common setup is Kenning first, escalating the uncertain middle band to a bigger engine or to a person. See the fuzzy if-statement.