๐Ÿง  Decision Kernel

September 20, 2026 ยท View on GitHub

The judgment API โ€” a decision that was too expensive per row now fits in your pipeline.

Decision Kernel exposes TypeSafe Jev (a System One decision model) as a fast, calibrated, low-cost judgment API. Send text; get department (triage), urgency, spam, tone, and whether it needs human review โ€” all in one request, ~0.5s, with explicit confidence.

It also exposes /guard โ€” an agent-safety gate: before an agent spends money, deletes data, or touches production, ask Decision Kernel to judge approve / review / block with Jev's verdict.

Deployed on Cloudflare Workers. Judgment proposals only โ€” no money movement, no financial/medical/legal accountability (classification + routing suggestions only). The guard never executes anything itself.

Why judgment APIs

Most agent loops ask an LLM to pick between a few known answers, token by token, slowing every call and paying for prose nobody reads. A decision model returns a typed answer and a calibrated probability in milliseconds. Where code already knows the possible answers, a judgment is the right interface.

LLMs think. Jev decides. Tools act.

Try it

/classify โ€” route a customer message

curl -X POST https://decision-kernel.pickaxe.workers.dev/classify \
  -H "Content-Type: application/json" \
  -d '{"text":"my app keeps crashing when I try to export my data, please help"}'
{
  "judgments": {
    "triage":  { "choice": "technical", "confidence": 1 },
    "urgency": { "score": 0.4 },
    "spam":    { "score": 0.03 },
    "tone":    { "choice": "angry", "confidence": 0.45 },
    "risk":    { "score": 0.57 }
  }
}

/guard โ€” stop an agent from doing something dangerous

curl -X POST https://decision-kernel.pickaxe.workers.dev/guard \
  -H "Content-Type: application/json" \
  -d '{"action":"delete the leads database file","cost":0,"goal":"send a newsletter","lastActions":[]}'
{
  "guard": {
    "verdict": "block",
    "spend": "deny",
    "confidence": 0.99,
    "off_goal": 0.95,
    "duplicate": 0.03,
    "undoable": 0.2,
    "last_ok": 0.33,
    "lead_real": null
  }
}

Verdict logic: spend:deny โ†’ always block; review or low-confidence โ†’ review; otherwise approve. A deny stops the action no matter what the numbers say. A judgment proposal only โ€” code in the calling agent decides whether to proceed.

The judgments (one request, all parallel)

JudgmentTypeMeaning
triagechoiceWhich department (billing / technical / account / sales)
urgencynoulNeeds immediate attention (0โ€“1)
spamnoulIs this an automated pitch (0โ€“1)
tonechoicepositive / neutral / angry
risknoulNeeds human review before any automatic action (0โ€“1)
Guard fieldTypeMeaning
spendchoiceapprove / review / deny
off_goalnoulOff today's stated objective?
duplicatenoulAlready done in recent history?
undoablenoulCan it be reversed if it goes wrong?
last_oknoulDid the last step succeed?
lead_realnoul(when a lead is passed) is this a real enquiry?

Every judgment returns a calibrated probability, so routes can split on confidence (act automatically / confirm / escalate to a human).

Pricing (planned)

TierPriceIncludes
Free$010 judgments / day (demo)
Starter$29/mo2,000 judgments, all 5 types
Pro$99/mo10,000 judgments, parallel, priority
Enterprise$499/moCustom judgment types, SLA

Guard Skill (paid): the skill/decision-kernel-guard/SKILL.md โ€” a drop-in agent skill file that wires /guard into Hermes, Grok bot, or any agent, with policies (cheap+reversible runs at โ‰ฅ0.7, money/deletion requires โ‰ฅ0.9, deny always stops, hold on 3s no-response). Request via the pricing above.

Cost is a Cloudflare-free-tier Worker + Jev (~$0.04 / M input tokens) โ€” >90% gross margin. Target: small SaaS / support teams / agent developers in English / India / Indonesia.

Verified results

40-agent-action day, simulated against the live /guard (no funds moved):

CategoryResult
10 malicious (pay transfer, DB delete, credential leak)blocked 10/10 โœ…
21 normal (fetch, render, validate, preview)approved โœ…
9 borderline (bulk send, CSV export, schedule)routed to review โœ…
false-block rate on safe actions0 (after verdict fix) โœ…

Demo: demo/guard_demo.py

Agent discovery

Decision Kernel is built for AI agents:

  • llms.txt โ€” index & briefing
  • agents.txt โ€” capability card
  • agents.md โ€” human-readable guide
  • openapi.json โ€” machine-readable schema
  • robots.txt โ€” explicit AI-crawler allow
  • sitemap.xml
  • /.well-known/agent.json โ€” AgentCard
  • /.well-known/ai-catalog.json โ€” ARD registry

Run it yourself

npx wrangler deploy
# then set the secret (never committed):
echo "$YOUR_KEY" | npx wrangler secret put TYPESAFE_API_KEY

Stack

  • Cloudflare Workers (free tier, serverless)
  • TypeSafe Jev (System One decision model)
  • MIT License

Judgment proposals only. No money movement.