Benchmarks & research
Never confidently wrong: a TLA+-verified consensus kernel around TypeSafe's Jev, run through 1,680 chaos-tested pharmacy decisions with zero wrong verdicts. Film, code, and every captured call.
const DEFAULT_BASE_URL: &str = "https://api.typesafe.ai";consensus/rust/consensus-kernel/src/jev.rs:25
The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from experiments.py:52
is_regulationtrue/falseIs the subject of this text a law or regulation?
mentions_deadlinetrue/falseDoes this text state a reporting deadline?
mentions_finestrue/falseDoes this text describe financial penalties?
mentions_scopetrue/falseDoes this text describe a geographic scope?
mentions_datetrue/falseDoes this text state a date it took effect?
mentions_controllerstrue/falseDoes this text place obligations on data controllers?
mentions_consenttrue/falseDoes this text discuss obtaining user consent?
mentions_dpotrue/falseDoes this text mention a Data Protection Officer?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_regulation: { type: 'boolean', instructions: 'Is the subject of this text a law or regulation?' },
mentions_deadline: { type: 'boolean', instructions: 'Does this text state a reporting deadline?' },
mentions_fines: { type: 'boolean', instructions: 'Does this text describe financial penalties?' },
mentions_scope: { type: 'boolean', instructions: 'Does this text describe a geographic scope?' },
mentions_date: { type: 'boolean', instructions: 'Does this text state a date it took effect?' },
mentions_controllers: { type: 'boolean', instructions: 'Does this text place obligations on data controllers?' },
mentions_consent: { type: 'boolean', instructions: 'Does this text discuss obtaining user consent?' },
mentions_dpo: { type: 'boolean', instructions: 'Does this text mention a Data Protection Officer?' },
},
});from experiments.py:249
is_regulationtrue/falseIs the subject of this text a law or regulation?
mentions_consenttrue/falseDoes this text discuss obtaining user consent?
severityscoreHow severe are the penalties described?
0 — No penalties1 — Moderate penalties2 — Severe penaltiestopicchoiceWhat is the primary subject of this text?
privacy_law — Data protection or privacy regulationtax_law — Taxation rulesemployment_law — Labour or employment rulesimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_regulation: { type: 'boolean', instructions: 'Is the subject of this text a law or regulation?' },
mentions_consent: { type: 'boolean', instructions: 'Does this text discuss obtaining user consent?' },
severity: { type: 'score', instructions: 'How severe are the penalties described?',
criteria: ['No penalties', 'Moderate penalties', 'Severe penalties'] },
topic: { type: 'choice', instructions: 'What is the primary subject of this text?',
criteria: { privacy_law: 'Data protection or privacy regulation', tax_law: 'Taxation rules', employment_law: 'Labour or employment rules' } },
},
});from harness/noise.py:110
billingtrue/falseIs this message about a billing or payment matter?
technicaltrue/falseDoes this message report a technical malfunction?
urgenttrue/falseDoes this message convey urgency?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
billing: { type: 'boolean', instructions: 'Is this message about a billing or payment matter?' },
technical: { type: 'boolean', instructions: 'Does this message report a technical malfunction?' },
urgent: { type: 'boolean', instructions: 'Does this message convey urgency?' },
},
});from smoke_test.py:36
departmentchoiceWhich team should handle this ticket?
billing — Payment, invoicing, or subscription issuestechnical — Bugs, outages, or integration problemssales — Pricing, upgrades, or new accountsfrustrationscoreHow frustrated the customer appears
0 — Calm, just stating facts1 — Frustrated but civil2 — Very angry, strong languageis_urgenttrue/falseThe message conveys urgency or time-sensitivity
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
department: { type: 'choice', instructions: 'Which team should handle this ticket?',
criteria: { billing: 'Payment, invoicing, or subscription issues', technical: 'Bugs, outages, or integration problems', sales: 'Pricing, upgrades, or new accounts' } },
frustration: { type: 'score', instructions: 'How frustrated the customer appears',
criteria: ['Calm, just stating facts', 'Frustrated but civil', 'Very angry, strong language'] },
is_urgent: { type: 'boolean', instructions: 'The message conveys urgency or time-sensitivity' },
},
});