๐Ÿ›๏ธ Enterprise Architect View

When to use JEV vs LLM vs JEPA. Cost model. Reliability. Migration patterns.

The 3-Model Psyche

JEPA is the id. Gestalt, embodied, spatial, fast. One forward pass through the world model gives you a direction without needing to count anything. JEPA

LLM is the ego. Verbal, analytical, communicable, slow. Generates tokens one at a time, builds up an explanation, can read or write. LLM

JEV is the superego. Constrained, principled, schema-bound, decision-oriented. Returns calibrated probabilities, not text. Cannot hallucinate outside your schema. JEV

Quilt cells use all three. Most substrates use one and bolt on the others. We use the psyche frame because it explains why cellular logic works: every cell needs an instinct, a voice, and a conscience.

Decision matrix: JEV vs LLM vs JEPA

AxisJEVLLMJEPA
Output typeTyped choice / score / noul + probabilitiesGenerated text tokensLatent vector
Hallucination riskZero (schema-constrained)High (open-ended)Medium (vector-level)
Latency p50150-300ms1.5-3s50-200ms
Latency p99800ms30s+500ms
Cost per call~$0.000025~$0.025~$0.001
Schema enforcementHard (parallel sampler)None (you parse)None
Training data reqQuestion schemasPrompt engineeringEmbeddings corpus
AuditabilityProbabilities + confidenceNone (free text)None (latent space)
Skill floor (junior eng)Define questions, read answersPrompt engineeringVector DB + retrieval
SovereigntyTypeSafe cloud (US)Various (US, EU, Asia)Often self-hosted

When to use which

Use caseBest fitWhy
Spam detectionJEVSchema is {spam, not-spam}, high-volume, low-cost
Email triageJEVPick folder from known set
Lead scoringJEVScore 1-5 on rubric
Form validationJEVDecision with confidence
Creative writingLLMOpen-ended generation
Image generationFLUX/DALL-ENot a decision
TranslationLLMLong context + fluency
Sentiment analysisJEVChoice or score
Image classificationJEPAVector-based similarity
Audio transcriptionWhisperNot a decision
Routing/triageJEVPick from handlers, low cost
Code review (linting)JEVPass/fail decisions
Code review (style)LLMSubjective
Search relevanceJEPA + JEVJEPA finds candidates, JEV ranks
Customer support routingJEVPick team from known set
Fraud detectionJEVYes/no with confidence

Anti-patterns: when JEV is wrong

Cost model

Per-call

ModelAvg input tokensAvg cost
JEV600$0.0000253
GPT-4 (input only)800$0.0020
DeepSeek V4-Flash (DeepInfra)800$0.000023
JEPA self-hostedn/a~$0.001

1M decisions/month

PatternCostQuality
JEV only (no fallback)$25Medium (low-confidence routes to human)
JEV (95%) + LLM (5%)$75High
JEPA + JEV (70%) + LLM (30%)$300Highest
LLM only (baseline)$25,000High but slow

JEV-augmented stacks are 100-1000x cheaper than LLM-only for typed decisions.

Reliability

ComponentSLA
Cloudflare Pages (static)99.99%
Cloudflare Pages Worker99.95%
TypeSafe JEV (current)Best effort, 250k tok/s, 1200 req/min
Combined (worst case)~99.9% (multiply)

Failure modes

Monitoring recommendations

Migration patterns (5 examples)

1. LLM-only spam filter โ†’ JEV + LLM

// Before: prompt-engineered classifier
const r = await openai.complete(
  "Classify this email as spam or not-spam. Email: ..."
);
if (r.includes("spam")) block();

// After: JEV-decision + LLM escalation
const jev = await jev.decide(state, {
  is_spam: {type: "noul", question: "Is this spam?", instructions: "..."}
});
if (jev.is_spam.noul > 0.9) block();
else if (jev.is_spam.noul > 0.6) return await llm.review(jev);
else deliver();

2. Regex form validator โ†’ JEV semantic validator

Regex catches format errors. JEV catches semantic errors (e.g., "555-01-0234 is a fake SSN that passes the regex").

3. Rules-engine business logic โ†’ JEV + LLM narrative

Replace 5000-line rules engine with 20 questions. Output the rules as LLM narrative for audit logs.

4. Bayesian lead scoring โ†’ JEV score + JEPA cluster

JEV replaces the score function. JEPA replaces cluster features. LLM generates the sales email.

5. Multi-model ensemble โ†’ JEV router

JEV picks the right model per request (vs always calling all of them).