Cover of Software Factories

Technical · AWC Field Manuals, No. 1

Software Factories

From the AI SDLC to Secure, Autonomous Software Delivery

Abdul Kavungal (AK)

ReadDownload PDF · 246 pages · 760 KB

About this book

About this book

Coding agents no longer wait to be asked. They take a ticket, write the code, run the tests and open a pull request while their owner sleeps. Once software produces software with that little supervision, you are running a production system whose output is code. This book is a practical guide to designing, securing, measuring and governing that system: the AI software factory.

Software Factories treats agent-driven delivery as an engineering problem with known techniques for making it safe, measurable and boring. Part I lays the foundations: the AI software development lifecycle, the history of software factories from Hitachi to the model-driven factories of the 2000s, specifications as the most important artifact a team writes, and the parts an agent is made of. Part II is the anatomy of a factory: the inner and outer loops, why an agent must be treated as untrusted, and the four boundaries of sandbox, network, supply chain, and identity and access, with provenance standards such as SLSA and Sigstore. Part III builds the factory through three levels of autonomy, from a hardened developer workstation to a shared service to orchestrated, self-healing work, with configuration, policy, gates and run records to adapt. Part IV covers measurement, governance and compliance mapping, and the people and platform teams around the factory. Part V weighs the idea of a “dark factory” that runs without human review and argues for an evidence-based path toward it. Harbour Ledger, the running example, is a composite company; appendices supply templates and a ninety-day starting plan.

Boring is the goal. A good factory is one where nothing surprising happens, and when something does, you can see exactly why.
Preface

Contents

Chapters

  1. Preface
  2. Part IFoundations of the AI SDLC
    1. Chapter 1The Line That Writes Code
    2. Chapter 2Factories Before Agents
    3. Chapter 3The AI Software Development Lifecycle
    4. Chapter 4Specifications Become the Source
    5. Chapter 5Agents, Harnesses and Context
  3. Part IIAnatomy of a Software Factory
    1. Chapter 6Two Loops
    2. Chapter 7The Agent Is Untrusted
    3. Chapter 8Four Boundaries
    4. Chapter 9Supply Chain, Provenance and Evidence
    5. Chapter 10Identity, Authorisation and Approval
  4. Part IIIBuilding the Factory
    1. Chapter 11Three Levels and a Roadmap
    2. Chapter 12Building Level 1: The Hardened Developer Factory
    3. Chapter 13Building Level 2: The Factory as a Shared Service
    4. Chapter 14Quality Gates, Tests and Evals
    5. Chapter 15Level 3: Orchestrators, Signals and Self-Healing
  5. Part IVOperating and Governing the Factory
    1. Chapter 16Measuring the Factory
    2. Chapter 17Governance, Compliance and Accountability
    3. Chapter 18People and Platform
  6. Part VThe Future
    1. Chapter 19Toward the Dark Factory
  7. Appendix ATemplates
  8. Appendix BA Ninety-Day Starting Plan
  9. Glossary
  10. Notes and References
  11. Index

Details

The edition

Author
Abdul Kavungal (AK)
Publisher
AWC · Award Winning Creations
Series
AWC Field Manuals, No. 1
Category
Technical
Year
2026
Pages
246
Language
English
Status
Published

58,977 words.

Read an excerpt

Chapter 1: The Line That Writes Code

At 2:10 on a Tuesday morning, a payments service starts returning errors to a small fraction of checkout requests. Nobody is awake to see the first alert. In one version of this story, an on-call engineer is paged at 2:14, opens a laptop at 2:25, spends forty minutes reading logs, finds a null check that a recent refactor removed, writes a fix, waits for a reviewer, and deploys at 4:05. In another version, an agent receives the alert, is granted read access to the last hour of that service's logs and permission to open exactly one pull request, reproduces the failure in an isolated sandbox, writes a fix and a regression test, and hands a pull request to an approval policy that routes it to the on-call engineer's phone. The engineer reads a short evidence summary, approves it, and the change rolls out to a small share of traffic. The error rate falls. The engineer goes back to sleep.

The second version is not science fiction. The pattern is described, nearly step for step, in the Agent Baseline project's reference architecture for secure software factories, and pieces of it already run in production at companies that have written publicly about their systems. What makes the second version interesting is not that an agent wrote the fix. Agents have been able to write small fixes for some time. What is interesting is everything around the agent: the decision about what it was allowed to read, the sandbox it ran in, the proxy that held the credentials so the agent never saw them, the test that proved the fix, the record of who approved what, and the canary deploy that confirmed the result. That surrounding system is the subject of this book.

## From suggestion to delegation