Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Map of the Book

Production AI systems fail in predictable ways. A model gets better, but the product stays fragile. A demo impresses a room, but nobody can explain how to measure it. A workflow saves time until a human correction disappears from the logs. A prototype routes every task to a frontier model and quietly destroys margin. A team adds an agent and gives it tools without clear permissions. A buyer asks about auditability, and the answer is a dashboard screenshot.

The book is organized around the seven disciplines that prevent those failures.

Production AI Systems Architecture
├── Evaluation
├── Typed workflow architecture
├── Human-in-the-loop systems
├── AI observability
├── Security and governance
├── AI economics
└── Distribution systems for technical products

Each discipline answers a production question.

PillarQuestion
EvaluationHow do we know the system is behaving well enough for this workflow?
Typed workflowsWhat states and transitions are legal?
Human-in-the-loopWhich actions require human accountability?
ObservabilityWhat happened, why, at what cost, and with what evidence?
Security and governanceWhat must the system never expose, do, or silently decide?
EconomicsCan the workflow scale without destroying margin?
DistributionHow does the architecture become visible trust?

The System Boundary

The model is only one component. A production AI system includes:

  • input boundaries
  • identity and authorization
  • data retrieval
  • prompt and context construction
  • model routing
  • tool permissions
  • workflow state
  • human review
  • audit records
  • metrics and traces
  • cost controls
  • evaluation loops
  • release gates

If you optimize only the prompt, you are optimizing one wire inside the machine.

The Running Example

The capstone uses an auditable case-preparation system. Think of a KYC, compliance, public-benefit, or civic evidence workflow:

  1. a case is opened
  2. documents and evidence arrive
  3. extraction runs
  4. the AI prepares an evidence packet
  5. risk and missing-data signals are classified
  6. an analyst validates or rejects
  7. an audit packet is finalized
  8. evaluation and observability data feed improvement

This example is narrow enough to be concrete and broad enough to transfer. The same architectural moves apply to CaseReady, agentic revenue workflows, civic evidence engines, regulated AI products, and internal enterprise automation.

The Learning Loop

Each core chapter follows the same loop:

  1. what you already know
  2. what breaks in production
  3. the architecture concept
  4. a worked system model
  5. self-check questions
  6. retrieval practice
  7. transition to the next pillar

By the end, you should be able to look at an AI product and ask sharper questions:

  • Where is the golden dataset?
  • Which transitions are impossible?
  • Which actions require approval?
  • What trace proves the model saw the right evidence?
  • What stops prompt injection from reaching a privileged tool?
  • What is the margin per workflow?
  • What artifact would make an enterprise buyer trust this?

That is the practical skill this book teaches.