Leanpub Header

Skip to main content

Decision4

A Handbook of Decision Sovereignty for Agentic Engineering

Decision4
This book is 100% completeLast updated on 2026-12-01

Agents now make decisions you will answer for. One question tells you which ones need you, and what the agent must hand back when they do.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
About

About

About the Book

Agents now make decisions on your behalf: what to change, what to leave alone, what to trade off, what to promise. The pull request goes green. The work looks done. And when one of those decisions turns out to be wrong, it is still you who answers for it.

Most teams respond in one of two ways. They read every line, and drown. Or they sign at the end for decisions nobody actually made, and hope. Neither keeps you in a position to answer.

This book gives you a third way. It starts from one question, asked of every decision an agent touches:

If this turns out to be wrong, what does it take to put right?

The answer puts every decision into one of four classes, and the class decides what the agent may hand back to you:

  • Undo — a revert puts it right. The agent hands you the result.
  • Repair — real work, contained to your team. You get the result, plus what it decided and why.
  • Migrate — coordinated change involving other people. You get at least two real options, and you choose.
  • Answer — the wrong outcome has reached someone outside the team, and nothing unmakes it. You get evidence and challenge, never a recommendation. All you can do is answer for it, so that decision is yours.

Three rules hold it together. When unsure, take the higher class. Escalation needs no justification, and every de-escalation is recorded. Unattended runs close only Undo.

That is the whole framework, and it fits on one page. The rest of the book is how you use it: on Monday morning, in your pull requests and specs, in your agent's instructions and your CI pipeline, in your platform, and in the decisions leaders make about vendors, models and policy.

What you get
  • The one page. The question, the four classes and the three rules, ready to print and pin up.
  • A handoff contract to paste into your project's AGENTS.md, so your agents know what they owe you at each class.
  • The boundary map. A way to write down where the ground changes in your systems, so the class comes from the map rather than from mood, with a schema you can validate.
  • Recipes. Practical patterns for reviewing a pull request by decision rather than by file, designing a risky change down to a cheaper class, building an evidence pack with no recommendation, recording a downgrade, and running a nightly loop that knows where to stop.
  • Classify-this exercises in every chapter, with an answer key that explains the reasoning, not just the class.
  • A thirty-day pilot a team can run on its own: one team, one page, the class mix measured in week one, and the signals read in week four.

Who this book is for

The book is written first for the experienced engineer or tech lead who is already working with coding agents and wants to stay in command of what they ship. Everyone reads Part I, about ninety minutes of common ground. Then you follow your own route:

  • Experienced engineers and tech leads: lowering the class by design, following one feature round the loop, and staying in a position to answer, not just in the room.
  • Apprentices and early-career developers: moving fast where the map says Undo, and knowing exactly how to ask everywhere else.
  • Habitat curators: keeping the map and the decision records honest as the system changes underneath them.
  • Platform teams: shipping the class as a platform layer, with pipelines that route by class and credentials that set the ceiling.
  • Leaders: better questions than "is there a human in the loop?", the same four classes for your own decisions, and what to tell a board or an auditor.

Contents
  • Part I. The Question. One question, four classes, what the agent may hand you, who classifies under pressure, and where the class comes from.
  • Part II. In the Work. Lowering the class, one feature round the loop, the experienced engineer and the apprentice.
  • Part III. In the Habitat. The habitat curator, the platform team, workflows at higher levels of maturity, the factory spectrum, and putting the lights on where the decisions are.
  • Part IV. In the Room. Who can answer, the leader's own decisions, signals to read rather than target, and how it scales and how it fails.
  • Part V. Reference. The one page, the full contract, boundary maps, the answer key, sources, a glossary and the thirty-day pilot.

Between the Parts, short interludes and field notes tell the story the chapters then take apart, from a building restorer deciding which jobs can be undone to the night an agent destroyed a production database while its owner watched.

Free and open at its core

Decision4 itself is open. The canonical definition, the handoff contract and the boundary-map schema live at github.com/Habitat-Thinking/decision4, free to use and adapt under CC BY 4.0. This book is the practice: how to put the definition to work, chapter by chapter.

Part of the Habitat Thinking series

Decision4 is part of the Habitat Thinking series, alongside The Sovereign Engineer: AI Literacy for Software Professionals and The Sovereign Apprentice. It stands on its own: you need no other book in the series to read it, and every idea it borrows is explained where it is first used.

Share this book

Author

About the Author

Russ Miles

Russ Miles is on a mission, as an Author, Listener, Speaker and Developer to help people thrive in one of the harshest, and potentially impactful, working environments: software system engineering with AI. He's doing this through Habitat Thinking, Theory and Engineering.

As an expert in Platform, Agentic, Chaos & Resilience, and Software Engineering, Russ helps people navigate the complicated and complex to succeed in software through his talks, workshops, consultancy, books, mentorship, open source contributions, his Software Enchiridion newsletter and his daily work.

The Leanpub Podcast

Podcast

Podcast Episode

Contents

Table of Contents

Preface

  1. Who is asking
  2. Where it does its work
  3. What this book asks of you

The One Page

  1. Three rules
  2. Four habits that keep it honest

How to Read This Book

  1. Start with Part I
  2. Find your route
  3. How the chapters work
  4. The reference part

Introduction: Where Decision4 Lives

  1. Habitats, not factories
  2. Four ideas this book carries
  3. The decision layer
  4. Three scales, three measures
  5. Modes, not goals
  6. The one measure that travels

Part I. The Question

Interlude: The Restorer

  1. The panelling
  2. The plaster
  3. The party wall
  4. The front
  5. The slate
  6. The fifth job

1. A Human Signed Off

  1. Put right
  2. Why
  3. The practice
  4. Worked examples
  5. Classify this
  6. If you are…

2. One Question, Four Classes

  1. Put right
  2. Why
  3. The practice
  4. One of each, from billing and refunds
  5. Classify this
  6. If you are…

3. What the Agent May Hand You

  1. Put right
  2. Why
  3. The practice
  4. Worked examples
  5. Classify this
  6. If you are…

4. Who Classifies, and Under Pressure

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Classify this
  6. If you are…

5. Where the Class Comes From: The Boundary Map

  1. Put right
  2. Why
  3. The practice
  4. Two maps
  5. Classify this
  6. If you are…

Monday

  1. 1. Paste the contract into AGENTS.md
  2. 2. Put the question in the pull request template
  3. 3. Adopt one rule
  4. 4. Classify last week’s pull requests
  5. Then keep going

Part II. In the Work

Field Note: Present, Not Deciding

  1. The setup
  2. The first warning
  3. The clean-up
  4. The sentence on the screen
  5. The night
  6. What he wrote down
  7. Signing is not deciding

6. Lower the Class

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Two more
  6. Classify this
  7. If you are…

7. Round the Loop

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Classify this
  6. If you are…

8. The Experienced Engineer

  1. Put right
  2. Why
  3. The practice
  4. Recipe and examples
  5. Classify this
  6. If you are…

9. The Apprentice

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Classify this
  6. If you are…

Part III. In the Habitat

Interlude: The Lamplighter

  1. The resolution
  2. The round
  3. The big frost
  4. Four ways to light a town
  5. The reply

Field Note: The Record That Stopped Being True

  1. The record
  2. The task
  3. The argument
  4. The record was wrong, not the agent
  5. What the team did

10. The Habitat Curator

  1. Put right
  2. Why
  3. The practice
  4. Cases
  5. Classify this
  6. If you are…

11. The Platform Team

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Four more
  6. Classify this
  7. If you are…

12. Workflows at Levels 3, 4 and 5

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Classify this
  6. If you are…

13. The Factory Spectrum

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Five lines in the field
  6. Classify this
  7. If you are…

14. Lights On Where the Decisions Are

  1. Put right
  2. Why
  3. The practice
  4. The recipe
  5. Cases
  6. Classify this
  7. If you are…

Part IV. In the Room

Field Note: Who Stands Behind the Chatbot

  1. The answer on the screen
  2. Two flights
  3. The tribunal
  4. Someone always answers

15. Who Can Answer?

  1. The map in one page
  2. Put right
  3. Why
  4. The practice
  5. Cases
  6. Classify this
  7. If you are…

16. The Leader’s Own Decisions

  1. Put right
  2. Why
  3. What comes back
  4. Records beyond architecture
  5. The practice
  6. The recipe
  7. Classify this
  8. If you are…

17. Signals and Readings

  1. Put right
  2. Why
  3. The practice
  4. Classify this
  5. If you are…

18. Scaling and Failure Modes

  1. Put right
  2. Why
  3. The practice
  4. Nine ways it fails
  5. The Thursday pull request, today
  6. Classify this
  7. If you are…

Part V. Reference

A. The One Page, printable

  1. Three rules
  2. Four habits that keep it honest

B. The Contract

  1. Decision4 (version 1.0.0)
  2. Decision4 handoff contract (v1)
  3. The four classes, as a picture
  4. A worked boundary map: billing and refunds

C. Boundary Maps

  1. A blank map
  2. Billing and refunds
  3. Customer notifications
  4. Keeping a map current

D. Answer Key

  1. Interlude: The Restorer
  2. Chapter 1. A Human Signed Off
  3. Chapter 2. One Question, Four Classes
  4. Chapter 3. What the Agent May Hand You
  5. Chapter 4. Who Classifies, and Under Pressure
  6. Chapter 5. Where the Class Comes From: The Boundary Map
  7. Field Note: Present, Not Deciding
  8. Chapter 6. Lower the Class
  9. Chapter 7. Round the Loop
  10. Chapter 8. The Experienced Engineer
  11. Chapter 9. The Apprentice
  12. Interlude: The Lamplighter
  13. Field Note: The Record That Stopped Being True
  14. Chapter 10. The Habitat Curator
  15. Chapter 11. The Platform Team
  16. Chapter 12. Workflows at Levels 3, 4 and 5
  17. Chapter 13. The Factory Spectrum
  18. Chapter 14. Lights On Where the Decisions Are
  19. Field Note: Who Stands Behind the Chatbot
  20. Chapter 15. Who Can Answer?
  21. Chapter 16. The Leader’s Own Decisions
  22. Chapter 17. Signals and Readings
  23. Chapter 18. Scaling and Failure Modes

E. Principles and Failure Modes

  1. The eight principles
  2. The nine failure modes

F. Sources

  1. F1. Ideas the book borrows
  2. F2. Further reading in the series
  3. F3. The public cases

G. Where It Came From

  1. The six dimensions
  2. Decision weight
  3. What the classes kept
  4. What they replaced, and why
  5. Where this leaves you

H. The Ladders, Side by Side

  1. The scales against the classes
  2. The rungs, the levels and the steps
  3. Three narrower ladders

I. Recipe Index and Factory Patterns

  1. The index
  2. The recipes the chapters name
  3. Factory patterns by station

J. Glossary

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
  8. H
  9. I
  10. L
  11. M
  12. O
  13. P
  14. Q
  15. R
  16. S
  17. T
  18. U
  19. V
  20. W

K. Metaphor Register

  1. Habitat
  2. Factory and lights
  3. The lamplighter
  4. The restorer
  5. The steps, and the fourth step
  6. The boundary map
  7. Signing
  8. Manager of agents
  9. Autopilot
  10. The crumple zone
  11. The false summit
  12. Gardening
  13. Ladders

L. A Thirty-Day Pilot

  1. Week one: the four steps, and the class mix
  2. Week two: draw the map
  3. Week three: design one decision down
  4. Week four: read the signals
  5. Leaving the pilot

Where Next

  1. Keep asking it, a little each week
  2. Work from the open definition
  3. Read the rest of the series
  4. Work through it as a course
  5. Bring it to your team, and your organisation
  6. And write to me

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.)

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