Safety & security

Wiki chapters and blog posts about Safety & security.

Wiki

MCP and the Tool Ecosystem: How It Works and What to Do When Tools Pile Up

MCP, the Model Context Protocol, is the open protocol that connects AI applications to external tools and data; its 2026-07-28 revision is stateless. This page shows the protocol in real messages, measures what 96 tool definitions cost in tokens, and compares three ways to pick a tool.

Intermediate 109 min read

Hallucination and Calibration: Why Models Sound Sure and Are Wrong

Hallucination is fluent output that contradicts the facts or the sources a model was given. This page covers two taxonomies, the floor set by facts seen only once, why binary grading rewards guessing, and three runnable simulations of calibration, temperature scaling and abstaining.

Intermediate 38 min read

Prompt Injection and Jailbreaks: The Security Boundaries of LLM Applications

Prompt injection makes a model treat untrusted content as instructions; a jailbreak makes it ignore its safety training. Attackers, targets and defenses differ. This page gives the threat models, six architectural defenses and a runnable worst-case simulation of what each defense stops.

Intermediate 39 min read

Blog posts

Topics