AI Engineering.

A field guide to building AI systems that survive production, from autonomy and retrieval to guardrails, observability and release.

The field guide

Engineering AI that survives production.

Models are now a commodity. What separates AI that pays from AI that demos is engineering: how much autonomy a system is given, what context it sees, how it is tested, guarded, observed and released. This guide is how I think about each of those decisions.

The production AI stack: six layers, with guardrails and observability running through all of them
The production AI stack: six layers, with guardrails and observability running through all of them

Topics

Start with the topic you need.

When to use an AI agent

Start with a workflow. Climb the autonomy ladder only with evidence.

Why AI gives wrong answers

Measure retrieval before answers, and give the index an owner.

Managing prompts like software

Version, test, review and stage every change that shapes behavior.

Building safety into AI

Six layers between a request and a consequential action.

Monitoring AI in production

Four dashboards on a trace layer you can replay.

Why multi-agent systems fail

Design handoffs, tools, data, budgets and people before adding agents.

Customizing an AI model

Retrieval for knowledge, tools for action, tuning for behavior.

Releasing and running AI

Build, evaluate, release, observe and improve on a shared platform.

Choosing the pattern

Use the lowest rung that does the job.

Every pattern below is legitimate. The mistake is choosing one higher on the ladder than the problem requires, then paying for the extra evaluation, variance and cost.

PatternUse it whenEvaluateMain risk
Single model callA person reviews every outputOutput quality on real samplesInconsistent format and tone
WorkflowThe path is known and judgment is needed at a few stepsEach judgment step, then end to endBuilding an agent where a workflow would do
Retrieval-augmentedAnswers depend on your own, changing knowledgeRetrieval first, then answersSilent retrieval failure
Tool-using agentThe task needs live data or bounded actionTask success, tool errors, cost per taskActions beyond the user’s authority
Planning agentThe path depends on what each step discoversOutcome, path taken and costLoops, variance and runaway cost
Multi-agent systemDistinct roles genuinely need separationEnd to end, with injected failuresFailures at the seams
Fine-tuned modelBehavior must be consistent at high volumeAgainst the best un-tuned baselineUsing tuning to fix a knowledge problem

Production readiness

Fifteen questions before anything goes live.

If a team can answer all fifteen with evidence, the system is ready for real users. If it cannot, the gaps are the plan.

Quality

  • A golden evaluation set built from real inputs
  • Retrieval measured separately from answers
  • Production failures turned into test cases

Safety

  • Acts with the user’s permissions and no more
  • Action limits enforced in the tools
  • Red-teamed, with every successful attack kept as a test

Operations

  • Every step traced and replayable
  • One-step rollback of prompt, model or tool
  • Model upgrades staged like releases

Economics

  • Cost per resolved task known
  • Spend limits per use case
  • Each step on the cheapest component that clears its bar

Ownership

  • A named business owner and a measured baseline
  • An owner for knowledge freshness
  • A switch back to human-only mode

The newsletter

Pilot to P&L.

One operator’s read on enterprise AI value, every other week. The argument developed further than a post allows, and one thing I got wrong.