- Preface
- Part I — Foundations
- 1. The nature of agentic systems
- 2. The agent: Formal definition and properties
- 3. Architectural forces in agentic design
- 4. Cognitive patterns: A reference map
- Part II — Architecture
- 5. Bounded autonomy as discipline
- 6. Governance as architecture
- 7. Memory and state architecture
- 8. The ingestion pipeline: Architecting semantic memory
- 9. Control and coordination
- 10. The skills layer: Dynamic capability loading
- Part III — Production
- 11. Failure modes and anti-patterns
- 12. Testing, evaluation, and trace discipline
- 13. The glass layer: UI and interaction architecture
- 14. Enterprise SaaS integration
- 15. Model routing and edge infrastructure
- Part IV — Synthesis
- 16. System architectures
- 17. A worked example, Concord
- 18. Operationalization and production
- 19. The harness: architecting the agent loop
- Reference
- 20. Glossary
- 21. Annotated bibliography
- Epilogue
Architecting Agentic Systems
Engineering Dependable AI Agents
You shipped the demo. The model worked. Now production is coming, and the demo is not a system. An agentic system is a distributed-systems engineering problem — the reliability lives in the shell, not the model.
Minimum price
$9.99
$19.99
You pay
Author earns
About
About the Book
You shipped the demo. The model worked. Now production is coming, and the demo is not a system.
Foundation models are useful, volatile, and impossible to fully trust. They work just well enough in a stage-managed demo to be handed things they cannot structurally guarantee once that demo meets real load, real users, and real consequences. The industry is sleepwalking into the result: conversational logs treated as databases, system prompts treated as security boundaries, open-ended reasoning loops deployed with the hope that the model will behave like a careful engineer. It will not.
An agentic system is not an AI project; it is a distributed-systems engineering problem. The model at its center is a highly useful, highly volatile probabilistic component, valuable exactly insofar as its behavior can be bounded, governed, observed, and recovered from by the deterministic infrastructure built around it. The reliability lives in the shell, not the model.
That shell is the harness: the deterministic loop that assembles context, calls the model, parses intent, and dispatches every proposed action through bounds and governance before it touches the world. The model proposes; the harness disposes. No effector runs outside the harness's reach, so every hand and eye passes through a place where a bound can refuse, a gate can escalate, and the trace can record.
This book is the architectural discipline for engineering dependable AI agents, dependable in the formal sense, the umbrella over reliability, safety, governance, observability, and recoverability. Where existing catalogs (Gulli, Anthropic, CSIRO, Andrew Ng) enumerate patterns and demonstrate frameworks, this book integrates the discipline end to end: bounded autonomy as substrate, governance as load-bearing structure, failure-mode taxonomies, trace discipline, the harness, and the design-time/runtime boundary made explicit by the skills layer. The governance-as-architecture position is now consensus the book documents and builds on; the integration is the contribution.
Inside:
- Bounded autonomy — the iteration, cost, and risk limits the architecture enforces before the expensive call, not after
- Governance as architecture — validators, policy gates, and human oversight as load-bearing structure, not a bolt-on
- The harness — the deterministic envelope designed in full: context assembled not accumulated, the execution seam defended, the model's every effect routed through the gateway
- The skills boundary — design-time guarantees in code, runtime know-how as content; where capability lives, and the rule that know-how may move into skills but power may not
- Memory and ingestion — working, episodic, and semantic memory, and the write-path that feeds them
- Failure modes — the taxonomy of what goes wrong, and how the architecture catches it
- Trace discipline — replay, evaluation, and regression against the typed events a governed system emits
- Integration, model routing, and operations — the production layers around the core
- Concord — a coding-assistant agent worked end to end, from bounds to tool surface to trace
For senior engineers and architects who carry the pager when these systems meet production, and who need the vocabulary and the structure to ship them without gambling on the model.
Damian Beresford is a Distinguished Engineer with 30+ years in the software industry, working on agentic systems in production.
Author
About the Author
Damian Beresford is a Distinguished Engineer with 30+ years in the software industry, working on agentic systems in production. A free copy of this book is available at: https://architecting-agentic-systems.net/
Contents
Table of Contents
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
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.