Leanpub Header

Skip to main content

Disciplined AI Development

Disciplined AI Development

AI can produce more work in less time. Making that work reliable takes discipline. Disciplined AI Development explores how to build workflows that combine AI capabilities with human judgment, clear boundaries, and rigorous verification.

Minimum price

$35.00

$45.00

You pay

Author earns

$

Also available for 2 book credits with a Reader Membership

PDF
EPUB
About

About

About the Book

How do you use AI to improve the speed and quality of your work while preserving accountability, security, and human expertise?

Disciplined AI Development is a practical engineering handbook for integrating AI into software development, research, writing, analysis, and other professional workflows. It covers when to use AI, when conventional tools are a better choice, and how to move from generated output to work you can confidently accept.

The book follows a repeatable process: specify, contextualize, generate, inspect, verify, integrate, observe, and improve. Along the way, it examines context engineering, human editing and review, testing, evaluation, provenance, and production reliability.

Particular attention goes to protecting confidential information throughout AI pipelines, designing secure agent-to-agent communication, and using type systems and deterministic boundaries to constrain probabilistic inference. These topics address three practical questions: what may an AI system know, what may it communicate or delegate, and what may it do?

Written for developers, technical leaders, and professionals designing AI-assisted workflows, this book emphasizes practices that remain useful as models and tools change. Its aim is to help individuals and teams produce better work—and build the evidence needed to trust it.

Share this book

Author

About the Author

Sean Westfall

Sean is a software engineer with more than 8 years of experience, with a mix of full-time roles and contract consultant roles. Sean has seen the best days and the worst days of the industry. Recently Sean has taken his career in the direction towards logistics and commercial transportation, with a particular focus on the maritime transportation industry. Please reach out if you have any questions.

Contents

Table of Contents

Introduction — AI Is a Tool, Discipline Is the Difference

Chapter 1 — What AI Is Good At

Chapter 2 — What AI Is Bad At

Chapter 3 — When Not to Use AI

Chapter 4 — Start With the Problem, Not the Model

Chapter 5 — Decomposing Work

Chapter 6 — Context Engineering

Chapter 7 — Prompting as Specification

Chapter 8 — Choosing Models and Tools

Chapter 9 — Retrieval, Tools, and External Knowledge

Chapter 10 — Generation Without AI Slop

Chapter 11 — AI-Assisted Software Development

Chapter 12 — AI-Assisted Research and Analysis

Chapter 13 — AI-Assisted Writing and Documentation

Chapter 14 — AI-Assisted Data and Analytical Work

Chapter 15 — Multimodal AI

Chapter 16 — Never Confuse Generation With Completion

Chapter 17 — Human Editing and Review

Chapter 18 — Testing AI-Generated Software

Chapter 19 — Evaluating AI Systems

Chapter 20 — Critique, Verification, and Independent Checks

Chapter 21 — Provenance and Traceability

Chapter 22 — Architecture for AI Applications

Chapter 23 — AI Pipelines

Chapter 24 — Agents and Autonomous Workflows

  1. Agent-to-agent communication

Chapter 25 — State, Memory, and Knowledge

Chapter 26 — Structured Outputs and Interfaces

  1. Deterministic boundaries and type systems

Chapter 27 — From Prototype to Production

Chapter 28 — Observability

Chapter 29 — Cost and Performance Engineering

Chapter 30 — Reproducibility and Change Management

Chapter 31 — Continuous Improvement

Chapter 32 — AI Security Fundamentals

Chapter 33 — Secrets, Privacy, and Confidential Information

  1. Confidential information throughout the AI pipeline

Chapter 34 — Intellectual Property and Licensing

Chapter 35 — Bias, Fairness, and Harm

Chapter 36 — Designing for Failure

Chapter 37 — Human-in-the-Loop Development

Chapter 38 — Avoiding Automation Bias

Chapter 39 — AI and the Development Team

Chapter 40 — AI Policies That People Can Actually Follow

Chapter 41 — Training People to Work With AI

Chapter 42 — Measuring Whether AI Is Actually Helping

Chapter 43 — The Disciplined AI Development Loop

Chapter 44 — Designing Review Gates

Chapter 45 — Building an AI Development Playbook

Chapter 46 — AI Development Maturity

Chapter 47 — The Future of Disciplined AI Development

Appendices

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub