Skip to content

Docs

AI Primer: RLCD and Calibration

Why TypeSafe trains decision models with RLCD instead of RLHF: calibrated probabilities where 0.2 outcomes happen about 20% of the time, and the case for machine-to-machine automation.
Format
Docs
Reading time
3 min
Published by
TypeSafe AI
Last verified
Sep 2026

Highlights

  • RLCD, reinforcement learning for calibrated decisions, is a third post-training path alongside RLHF and RLVR.
  • Calibration means outcomes given 0.2 probability occur around 20% of the time across many predictions.
  • RLHF rewards can produce sycophancy and hallucinations; TypeSafe cofounder Diogo Almeida co-invented RLHF.
  • TypeSafe expects future AI automation to be roughly 99% machine-to-machine and 1% human-facing.

Quickstart

python
from typesafe_sdk import Noul, TypeSafeClient

client = TypeSafeClient()
response = client.system_one(
    state="I was charged twice. Please fix this ASAP.",
    questions={"refund": Noul(instructions="Does this message request a refund?")},
)

p = response.answers["refund"].noul  # P(true): calibrated, not generated text
# RLCD trains these: across many predictions, 0.8 should be right about 80% of the time

Watch out

Calibration is a property of groups of predictions, not a promise about one answer, so keep a review path for the individual cases that matter.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: How the agent stack moved in Jev's first three days

YouTube: Diogo Almeida tells swyx what System One is, why RLHF failed his automation goal, and why AI should eventually disappear.

X: The 10-step roadmap, summarised

X: Giving your agents a decision brain

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai