Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

The Sovereign Engineer

AI Literacy for Software Professionals

This book is 100% completeLast updated on 2026-05-06

AI is an amplifier. It magnifies whatever engineering discipline — or lack of it — already exists, which means the bottleneck was never AI's capability; it is the collaboration space you design around it.

This book is a six-level progression from early AI panic to sovereign engineering: the discipline of designing the environment in which human and artificial intelligence produce work worth keeping. It moves past prompting into the practices that compound — verification, habitat engineering, specification-first development, and the platform discipline that scales the practice across teams.

The habitat is yours to design. Let's build it well.

Free With Membership

Minimum price

$19.00

$29.00

You pay

Author earns

$

Buying multiple copies for your team? See below for a discount!

PDF
EPUB
WEB
About

About

About the Book

From Panic to Partnership — A Practical Framework for Human-AI Collaboration

You have installed the plugins. You have subscribed to the newsletters. You have read the threads, watched the demos, run the prompt engineering courses, and tried, with varying degrees of success, to integrate AI into your daily work.

And yet something is wrong.

The fast teams have got faster, and the broken teams have got more broken — at scale, at speed, with confidence. Senior engineers are quietly losing trust in code they did not write and cannot fully audit. Reviews are getting shorter while pull requests are getting longer. Tests pass that should not pass. Architecture drifts in directions nobody chose. The 2025 DORA report named what many of us already suspected: AI is an amplifier. It magnifies whatever engineering discipline — or lack of it — already exists.

This book is about what to do about that.

The Thesis

The quality of your AI-assisted work depends almost entirely on the quality of the collaboration space you design. Not on the model. Not on the temperature setting. Not on whether you say "please" in your prompts. On the creative, collective habitat in which human and artificial intelligence meet.

Most of the literature on AI for engineers stops at prompting. Prompting is one micro-skill at one level, and if you stay there, you are leaving most of the value on the table. The real leverage comes from designing the environment where collaboration happens: the documents that encode your team's accumulated wisdom, the architectural constraints that give AI the context it cannot intuit, the verification loops that catch drift before it compounds, the specifications that define intent precisely enough for a different kind of intelligence to act on.

This is not prompt engineering. It is habitat engineering — and it is the discipline that separates the engineers who thrive over the next decade from the ones who drown in their own AI-generated code.

What This Book Is

A professional development framework for human-AI collaboration, structured as a progression from awareness to sovereignty across six levels of literacy:

  • Level 0 — Understand the landscape: what AI actually is, what it is not, and what kind of intelligence you are about to work with.
  • Level 1 — Communicate effectively through prompts and structured context.
  • Level 2 — Develop verification discipline: detect when AI output has drifted from reality.
  • Level 3 — Design habitats: persistent, evolving collaboration environments that make good AI output the default rather than the exception.
  • Level 4 — Work through specifications: formal, lossless encodings of intent that survive multiple implementations.
  • Level 5 — Operate at the level of systems: orchestrate multiple AI agents within organisational structures you have deliberately designed.

Each level represents a qualitative shift in how you think about the collaboration, not just a quantitative improvement in your tool use.

The book is structured in two acts. Act I — The Thesis lays out the intellectual framework: the amplifier thesis, the two kinds of intelligence, the six levels, the three disciplines, the collaboration space itself as an engineering artefact. A tech lead can read Act I alone and walk away with a complete strategic picture. Act II — The Practice is a hands-on journey through the levels using working tools: building a slop detector, writing a living harness, designing architectural guardrails, running parallel agent workflows, authoring executable specifications, choosing your cognitive substrate deliberately, and ultimately scaling the practice across teams and portfolios.

Interludes and field notes provide breathing room between the dense chapters. Exercises throughout demand that you stop and try the thing rather than nod along.

What This Book Is Not

It is not a tool manual. Tools change quarterly. The disciplines in this framework have a longer shelf life because they are grounded in how intelligence — both human and artificial — actually works. Specific tools appear where they illustrate a concept; if you want a step-by-step guide to configuring your IDE plugin, this is the wrong book.

It is not an anti-AI polemic. I am not here to warn you about the dangers of artificial intelligence or to argue that real programmers do not use AI. That position is as useful as arguing that real navigators do not use charts.

It is not a prediction. Nobody knows what AI will be capable of in five years, and anyone who claims otherwise is selling something. What I can tell you is that the disciplines of designing good collaboration spaces, making implicit knowledge explicit, enforcing structural boundaries, and building feedback loops that catch drift are valuable regardless of what the next model can do. They were valuable before AI. They will be valuable after whatever comes next.

It does not promise a 10x productivity boost. It might, in specific contexts, for specific tasks, if you have designed the collaboration well. Or it might make you slightly faster at things that were not your bottleneck while introducing failure modes you have never encountered before. The honest answer depends on how seriously you take the design of the collaboration.

Who It Is For

Individual contributors who want to get seriously good at AI collaboration. Not "I can get Copilot to write a function" good. Seriously good. The kind of good where you design a working environment that makes your AI collaborator consistently produce output worth keeping, where you can assess the quality of generated code with the same rigour you bring to a human colleague's pull request, and where you understand the cognitive asymmetry between your intelligence and the AI's well enough to leverage it deliberately.

Tech leads and engineering managers who need to assess and grow their team's AI collaboration capability. You have team members at wildly different comfort levels — some enthusiastic but undisciplined, some sceptical but potentially brilliant collaborators given a framework that respects their craft. You need a shared vocabulary, a progression model, and concrete practices you can introduce without it feeling like a mandate from management. The book includes calibrated assessment instruments at each level, designed to give you a picture of where your team actually is, not where they think they are or where you hope they are.

Platform engineers and architects thinking beyond personal productivity to organisational capability. The final act covers multi-repo orchestration, governance audit cycles, portfolio-level literacy assessment, and the platform-builder discipline that makes good AI collaboration a property of the system rather than the individual.

The Philosophical Spine

There is a philosophical thread running through this book that I should be upfront about, because it will surface in places you might not expect.

The Stoic tradition — particularly Epictetus — provides the ethical backbone. The core insight is ancient and urgently relevant: distinguish what is in your control from what is not. You do not control the existence of AI, its pace of development, or whether your organisation adopts it. You do control the quality of the collaboration space you design, the rigour of your verification practices, and the clarity of your professional judgment.

Richard Gabriel's concept of habitability, borrowed from Christopher Alexander's architecture, supplies the design backbone. Gabriel asked a question most software methodologies ignored: is this code a good place to live? Not "is it correct?", but can the people who must understand it, change it, and grow it over years do so with comfort and confidence? This book extends that question into the AI era. If code is a habitat for programmers, then the entire development environment — code, configuration, documentation, conventions, specifications, agents, and the feedback loops that bind them — is a habitat for the combined intelligence of humans and AI working together. The inhabitants have changed. The design question has deepened. The principle remains.

The closing chapter borrows from Marcus Aurelius and Epictetus a final practice: the enchiridion — a personal handbook of hard-won principles, written for yourself, revised against reality, passed forward. By the time you finish the book, you will have started writing yours.

What You Will Walk Away With

A vocabulary precise enough to discuss AI collaboration with colleagues without arguing past each other. A six-level progression model you can locate yourself and your team on. Concrete practices for verification, harness engineering, specification-first development, parallel agent orchestration, and cost discipline. An assessment instrument calibrated against the framework. A philosophical posture that treats AI neither as saviour nor as threat, but as a powerful collaborator whose value depends entirely on the quality of the collaboration you design.

And — if you do the exercises rather than skim them — the beginning of a sovereign practice that survives whichever model is fashionable next quarter.

An Invitation

The engineers who thrive in the next decade will not be the ones who use the most AI or the least AI. They will be the ones who understand both kinds of intelligence well enough to design spaces where each contributes what it does best. They will be sovereign over their craft — not because they rejected AI, and not because they surrendered to it, but because they learned to be the architect of the collaboration rather than a passive consumer of its outputs.

That is what this book teaches. It is a progression. It requires practice. Some of it will be uncomfortable.

But the habitat is yours to design. Let's build it well.

Team Discounts

Team Discounts

Get a team discount on this book!

  • Up to 3 members

    Minimum price
    $47.00
    Suggested price
    $72.00
  • Up to 5 members

    Minimum price
    $76.00
    Suggested price
    $116
  • Up to 10 members

    Minimum price
    $133
    Suggested price
    $203
  • Up to 15 members

    Minimum price
    $190
    Suggested price
    $290
  • Up to 25 members

    Minimum price
    $285
    Suggested price
    $435

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 blog and his daily work.

Contents

Table of Contents

Preface

  1. What This Book Is
  2. What This Book Is Not
  3. Who This Book Is For
  4. The Philosophical Thread
  5. An Invitation

How to Read This Book

  1. Three Paths Through This Book
  2. What’s Between the Chapters
  3. A Quick Guide to the Furniture
  4. One More Thing

The Pattern of Panic

  1. The Feeling You Recognise
  2. The Oldest Story in Technology
  3. The Amplifier Thesis
  4. What This Means for You

Two Kinds of Intelligence

  1. What You Are Actually Talking To
  2. The Asymmetry
  3. Your Reference Frame Is the Whole Point
  4. The Impoverished View and the Real Discipline
  5. What This Means For You, Starting Now

The Six Levels

  1. The Aware
  2. The Prompter
  3. The Verifier
  4. The Habitat Engineer
  5. The Specification Architect
  6. The Sovereign Engineer
  7. The Key Insight

Interlude: The Tango

The Three Disciplines

  1. Context Engineering
  2. Architectural Constraints
  3. Guardrail Design
  4. The Interplay

The Collaboration Space

  1. What a Collaboration Space Is
  2. How Individual Levels Combine
  3. The Two-Tier Model
  4. The Risk of Separation
  5. What Leaders Can Actually Do
  6. The Assessment Question
  7. A Deeper Pattern

Interlude: The Confidence of the Djinn

  1. The Confidence Problem
  2. The Vulnerability You Didn’t Know You Had
  3. The Inversion
  4. The Practice
  5. The Djinn Is Still Worth Having

Reference Frames and the Amplifier

  1. What Intelligence Means When There Are Two Kinds
  2. Your Reference Frame Is the Irreplaceable Ingredient
  3. The Answer to “Will AI Replace Me?”
  4. From Thesis to Practice

Meet Your AI

  1. The Underwhelm Problem
  2. What Claude Code Actually Is
  3. Setting Up
  4. Your First Real Interaction
  5. What Just Happened
  6. The Shift
  7. The Courage of the First Step

The Art of Intent

  1. Three Prompts Walk Into a Codebase
  2. The Gap Between What You Said and What You Meant
  3. The Producer’s Mindset
  4. Patterns That Work (and Why)
  5. Anti-Patterns That Seem Smart
  6. The Pre-Prompt Pause
  7. The Untranslatable Residue
  8. What You Now Know

The Slop Detector

  1. The Function That Looked Perfect
  2. What Slop Looks Like
  3. The Spot-the-Bug Challenge
  4. The Trust Protocol
  5. When to Trust and When to Verify
  6. The Five Dimensions of Slop
  7. The 41% Tax
  8. The Instinct Behind the Protocol
  9. What You Are Actually Detecting

Field Note: The Busy Factory

  1. The Invisible Assembly Line
  2. The Metaphor That Won’t Die
  3. What You Can’t See Will Hurt You
  4. The Factory Floor You Actually Need
  5. The Itch

Testing as Thinking

  1. The Counterintuitive Truth
  2. Tests as Specification
  3. The Feedback Loop
  4. The TDD Exercise
  5. The Green Dashboard Problem
  6. What to Never Delegate
  7. The Perception-Reality Gap
  8. The Lingering Question

The Living Harness

  1. The Flip
  2. What a Harness Is
  3. Surfacing What You Already Know
  4. CLAUDE.md: Your Project’s Constitution
  5. HARNESS.md: The Architectural Constraints
  6. Hooks: Automated Enforcement
  7. How Do You Know the Harness Is Working?
  8. Four Layers of Harness Observability
  9. The Governance Audit Cycle
  10. Why All Three Components Matter
  11. Building Your First Harness
  12. The Harness Improves Through Failure
  13. The Plugin Reveal
  14. The Cost of Context
  15. What You Have Now

Architecture as Guardrails

  1. The Same Prompt, Twice
  2. The Constraint Paradox
  3. Literate Programming as Constraint
  4. CUPID as Review Lens
  5. The Before/After
  6. When Constraints Become Cages
  7. The Negative Space
  8. Putting It Together
  9. The Architecture Is the Collaboration

The Parallel Workflow

  1. One at a Time Is a Habit, Not a Law
  2. Why Parallelism Matters
  3. Git Worktrees: Your Isolation Mechanism
  4. Dispatching Tasks
  5. Your First Parallel Run
  6. The Reviewer Stance
  7. The Anti-Patterns
  8. The Orchestrator Pattern
  9. What the Merge Teaches You
  10. Scaling the Pattern
  11. What Changes Permanently

Field Note: Riding the Wave

The Twentieth Watt

  1. What Changes at Each Level
  2. The Thinking Move: The Depletion Check
  3. Things to Avoid

The Communication Bottleneck

  1. The Telephone Game at Machine Speed
  2. Why Natural Language Fails at Scale
  3. Specification by Example
  4. The Anatomy of a Good Spec
  5. The Spec Exercise
  6. When the Spec Is Wrong
  7. The Deeper Truth

Design-First Collaboration

  1. The Convergence
  2. Brainstorming with AI
  3. From Brainstorm to Spec
  4. From Spec to Plan
  5. The Test-First Turn
  6. Implementation: The AI’s Heaviest Lift
  7. The Review
  8. The Full Cycle
  9. When to Break the Pipeline
  10. The Compound Effect
  11. The Roles, Made Explicit
  12. The Living Pipeline

Interlude: The Governance of Meaning

The Cognitive Substrate

  1. The Question Most Engineers Don’t Ask
  2. Three Principles
  3. The Decision Framework
  4. Techniques on a Spectrum
  5. Hosting Options
  6. The Hybrid Architecture
  7. Lifecycle and Maintenance
  8. Sovereignty Maturity Across the Levels
  9. Why This Comes Before Sovereignty
  10. What You Have Now

The Sovereign Engineer

  1. Look at Where You Are
  2. The Platform Builder
  3. The Teacher
  4. Sovereignty at Scale
  5. The Enchiridion
  6. Your First Entry
  7. The Journey Continues

Appendix A: The AI Coding Tool Capability Matrix

  1. How to Read This Matrix
  2. The Matrix
  3. What This Matrix Does Not Tell You

Appendix B: Cost Discipline in Practice

  1. The Model Routing Strategy
  2. Token Economics
  3. Real Cost Examples
  4. The Decision Framework
  5. When to Spend More
  6. The Quarterly Cost Capture
  7. Beneath the Invoice: The Cache and the Attention Budget
  8. The Sovereignty Dimension

Appendix C: The ALCI Assessment

  1. What the ALCI Measures
  2. The Assessment Process
  3. The Scoring Rubric
  4. Interpreting Your Results
  5. Governance as Meaning-Alignment
  6. What to Do Next
  7. Running It Quarterly

Appendix D: The ai-literacy-superpowers Quick Reference

  1. Level 1: The Prompter
  2. Level 2: The Verifier
  3. Level 3: The Habitat Engineer
  4. Level 4: The Specification Architect
  5. Level 5: The Sovereign Engineer
  6. Operational
  7. Agents you will see invoked
  8. A note on freshness

Appendix E: Commands, Skills, and Agents — Choosing the Right Abstraction

  1. The Three Abstractions
  2. The Three Decision Axes
  3. Worked Example One: Three Shapes of the Same Need
  4. Worked Example Two: Where Should cupid-code-review Live?
  5. How This Plays Out in Claude Code
  6. Three Mistakes I Keep Seeing
  7. A Final Note on Names

Glossary

Recommended Reading

  1. On Software Craft
  2. On Systems Thinking
  3. On Learning and Cognition
  4. On Consciousness and Embodied Cognition
  5. On Architecture and Habitability
  6. On AI and Its Implications
  7. On Philosophy and Practice

Index

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

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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

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