A technical book written in public

Reliability Engineering for AI Systems

Measuring, Predicting, and Controlling Failure in LLMs, Agents, and Their Harnesses

AI systems can succeed repeatedly and still contain hidden failure modes. Their behavior depends on prompts, context, model configuration, tools, retrieved information, and other operating conditions.

Reliability Engineering for AI Systems develops a practical framework for measuring failure probability, discovering where risk concentrates, evaluating whether interventions work, and operating more reliable LLM and agent systems.

Starting with repeated trials and empirical failure estimation, the book builds toward conditional and latent failure models and applies them to tools, RAG systems, autonomous agents, guardrails, failure prediction, reliability budgets, monitoring, and production assurance.

This is a living technical book. Chapters 1 and 2 are available free in full. The Founding Reader edition now includes Chapter 3, every subsequent release, and the completed digital first edition.

Early-Access Edition
Reliability Engineering
for AI Systems
Measuring, Predicting, and Controlling Failure in LLMs, Agents, and Their Harnesses
Current cover treatment · final artwork to followISBN 979-8-9979028-0-3

Read the First Two Chapters Free

Learn how reliability engineering applies to large language models and AI agents, from defining failure to building reproducible experiments with repeated inference.

Chapter 1 introduces the foundations of AI reliability. Chapter 2 develops a practical experimental framework for measuring failure through repeated trials.

Chapter 3 is now available through Founding Reader access, together with every future early-access release.

Practical methods for evaluating AI reliability

These focused guides explain the experimental and statistical tools behind the book. Each is free to read and designed to stand on its own.

Chapter 4

AI Judges as Measurement Systems

Target
November 7, 2026

Release dates are approximate and may shift when the technical work requires additional time.

Engineering reliability for probabilistic AI systems

Conventional software can often be tested by asking whether a fixed input produces the expected result. LLMs and agents complicate that model: the same system can produce different outcomes across repeated executions, and its failure probability can change with prompts, context, tools, retrieval, model configuration, and deployment conditions.

Reliability Engineering for AI Systems treats reliability as an empirical engineering problem: estimate the probability of failure, understand how that probability changes under operating conditions, and determine whether interventions actually reduce risk.

The book develops that reasoning progressively:

failure count→P(F)→P(F | X)→latent failure propensity

and then applies it to tool use, retrieval-augmented generation, agents, failure propagation, guardrails, prediction, reliability budgets, monitoring, and production assurance.

What you’ll learn

Readers will learn how to:

  1. Estimate AI failure probability using repeated trials instead of relying only on single executions or aggregate benchmark scores.

  2. Quantify uncertainty and distinguish an observed failure rate from the underlying probability it is trying to estimate.

  3. Validate human and LLM-based judges before relying on them as measurement instruments.

  4. Measure how prompts, models, configurations, tools, retrieval, and operating conditions change failure risk.

  5. Analyze reliability across RAG pipelines, tool-using systems, and long-running agent trajectories.

  6. Test interventions, predict high-risk conditions, allocate reliability budgets, and monitor reliability after deployment.

  7. Build the methods in Python using working LLM examples, starting in Chapter 2.

Release schedule

After Chapter 3, new chapters are planned approximately every three weeks.

This is a living technical book. Release dates may shift when experiments, validation, technical review, or editing require additional time.

  1. Free

    Chapter 1

    When AI Systems Fail

    Free

  2. Free

    Chapter 2

    Measuring Failure Through Repeated Trials

    Free

  3. Founding Readers

    Chapter 3

    Uncertainty in Failure Probability

    Founding Readers

  4. Next

    Chapter 4

    AI Judges as Measurement Systems

    Target: November 7, 2026

  5. Planned

    Chapter 5

    Human Validation and Judge Calibration

    Approximately three weeks after Chapter 4

Table of contents

Twenty-one chapters move from measuring failure to production reliability and assurance.

Part I — Measuring Failure5 chapters
  1. The reliability mental model, system boundaries, failure definitions, repeated execution, and the first reliability harness.

  2. Bernoulli trials, binomial experiments, empirical failure rates, and estimating failure probability.

    p_f = P(F = 1)
  3. Confidence intervals, zero-failure experiments, sample size, rare failures, and the difference between observed failure rate and underlying failure probability.

  4. AI Judges as Measurement SystemsNext

    Rubrics, structured judgments, judge stochasticity, false positives, false negatives, and how judge error affects reliability estimates.

  5. Human Validation and Judge CalibrationPlanned

    Blinded human review, confusion matrices, precision, recall, sensitivity, specificity, Cohen’s κ, disagreement analysis, bootstrap intervals, and deciding whether an automated judge is fit for use.

Part II — Conditional Reliability4 chapters
  1. Failure Probability Depends on ConditionsPlanned

    Conditional failure probability, prompt and context effects, model and decoding settings, system prompts, harness configuration, user state, and environment.

    p_f(x) = P(F = 1 | X = x)
  2. Designing Reliability ExperimentsPlanned

    Factors, controls, replication, randomization, blocking, factorial designs, ablations, frozen artifacts, and reproducibility.

  3. Mapping the Failure SurfacePlanned

    Stress testing, interaction effects, stratification, high-risk regions, adversarial conditions, and response surfaces.

  4. Latent Failure Under Repeated InferencePlanned

    Single-run versus repeated-run evaluation, hidden failures, k-of-N outcomes, repeated-use risk, and cumulative failure probability.

    P(at least one failure in N) = 1 − (1 − p)ᴺ
Part III — Reliability of AI Systems5 chapters
  1. From Model Reliability to System ReliabilityPlanned

    Foundation models, harnesses, prompts, orchestration, memory, guardrails, APIs, and the distinction between model-level and system-level failure.

  2. Tool-Using AgentsPlanned

    Wrong-tool selection, incorrect arguments, tool execution failures, misinterpretation of results, false claims of successful action, and unsafe actions.

  3. Retrieval and Multi-Stage ReliabilityPlanned

    RAG pipelines, retrieval failures, context quality, stage-wise reliability, and propagation of upstream errors.

  4. Reliability of Long-Running AgentsPlanned

    Sequential decisions, accumulating risk, per-step reliability, task completion probability, recovery, and dependence across steps.

  5. Failure Propagation and CascadesPlanned

    Correlated failures, common-cause failures, dependencies, cascading actions, redundancy, recovery, and system reliability models.

Part IV — Predicting and Controlling Failure4 chapters
  1. Predicting Failure ProbabilityPlanned

    Risk models for AI behavior, conditional failure prediction, embeddings, metadata, graph features, telemetry, and supervised models for failure prediction.

    P(F = 1 | X)
  2. Finding Rare Failures EfficientlyPlanned

    Risk-based sampling, ranking, top-k targeting, lift, failure-discovery recall, adaptive sampling, testing budgets, and stopping criteria.

  3. Reliability Requirements and BudgetsPlanned

    Acceptable failure probabilities, severity classes, probability-consequence tradeoffs, component-level budgets, safety margins, escalation, and acceptance criteria.

  4. Improving ReliabilityPlanned

    Prompt changes, model changes, decoding, routing, retrieval, verification, guardrails, redundancy, retries, human review, and experimental verification of whether an intervention actually lowers failure probability.

Part V — Production Reliability and Assurance3 chapters
  1. Reliability Changes Over TimePlanned

    Drift, changing models, prompts, tools, user populations, retrieval corpora, distribution shift, rolling estimates, change detection, and statistical process control.

  2. Reliability IncidentsPlanned

    Detection, reproduction, diagnosis, traces, logs, root-cause analysis, failure taxonomies, corrective action, and mechanistic evidence where available.

  3. Building an AI Reliability and Assurance SystemPlanned

    Continuous testing, measurement, prediction, control, monitoring, judge validation, experiment provenance, audit trails, reliability reports, and retesting.

Built around engineering problems, not abstract theory

The mathematics appears when the engineering problem requires it. Starting in Chapter 2, each chapter uses Python and working LLM systems to move from a reliability question through the mental model, probability model, experiment, code, results, and engineering decision.

  1. Engineering problem
  2. Mental model
  3. Probability model
  4. Experiment
  5. Code
  6. Results
  7. Engineering decision

Who should read this book

AI/ML engineers

For engineers building LLM, RAG, and agent systems who need to understand reliability beyond average benchmark performance.

AI evaluation and safety practitioners

For practitioners designing evaluations, stress tests, human-validation studies, red-team exercises, and assurance programs.

Reliability, platform, and systems engineers

For engineers bringing reliability, observability, fault analysis, and operational-risk thinking to probabilistic AI systems.

Technical leaders and model-risk practitioners

For people making deployment and governance decisions who need defensible evidence about failure probability, uncertainty, controls, and residual risk.

Keita Broadwater

Keita Broadwater is an AI and machine learning researcher and engineering leader whose work focuses on reliability, evaluation, and failure analysis in AI systems. He is the author of Graph Neural Networks in Action and has held technical and leadership roles spanning machine learning, analytics, and applied AI.

Broadwater holds a PhD in mechanical engineering, where his research included reliability-oriented engineering problems, as well as an MBA. His current research explores how repeated stochastic evaluation, statistical failure modeling, and engineering controls can be used to measure and improve the reliability of large language models and AI agents.

How Founding Reader access works

  1. 1

    Read Chapters 1 and 2 free

    The first two chapters are available now without an account or email signup.

  2. 2

    Purchase early access

    Buy the current manuscript with a one-time payment through Stripe.

  3. 3

    Keep every future chapter

    Founding Readers receive later chapters without paying future price increases as the manuscript grows.

  4. 4

    Receive the completed digital book

    The purchase includes all subsequently released chapters and the completed first edition.

Help shape the book.

Found an error, have a question, or want to suggest a topic? Reader feedback is welcome while the manuscript develops.

Send Feedback

Frequently asked questions

Are Chapters 1 and 2 really free?

Yes. Both chapters are available in full without an account, payment, or email signup.

What do I receive?

The current early-access manuscript, every subsequently released chapter, and the completed digital book. Early purchasers will not pay later price increases.

Is this a subscription?

No. Founding Reader access is a one-time $29 USD payment, not a recurring subscription.

Will the price change?

Founding Reader — Digital is currently $29. The price may increase as the manuscript grows, while your purchase price remains locked in.

Is a print copy included?

The current checkout is for the digital edition. Any future print offer will state its price, shipping, and fulfillment terms separately.

Is this the finished book?

No. This is a living technical book. Chapters, examples, organization, and wording may change as the manuscript develops.

Are release dates guaranteed?

No. Release dates are approximate and may shift when experiments, validation, technical review, or editing require additional time.