The method
From a workflow that works in a demo to a small program the client owns. Ten chapters, each ending in a deliverable.
Eight principles
- Deterministic by default. The model is used only where judgement is needed. Everything around it is ordinary code with ordinary tests.
- One job per call. One decision, a constrained output, the smallest context that decides it, a worked example.
- Check before act. No model output touches a customer, a database or money without a check in code, and a human queue for what fails it.
- Measured before launched. Thirty real cases, a pass rate, a failure budget agreed with the client.
- Observable. Every run writes a record the client can open.
- Cost is a design input. A monthly figure in the proposal and a ceiling enforced in code.
- Owned. Runs on the client’s infrastructure, in a language a hired developer can read, with a runbook.
- Honest scope. “About 80% handled automatically, the rest queued with a suggested answer.” Never “fully automated.”
The ladder
Chapters in order of technical aptness. If you build in n8n, start at 0. If you already ship code, start at 4 and read 1 to 3 as diagnosis.
| # | Chapter | Where the work happens | Deliverable |
|---|---|---|---|
| 0 | Why demos work and production fails | reading | the failure catalogue |
| 1 | Map the workflow | your existing workflow | every step tagged deterministic, model or external |
| 2 | Contain the model | same workflow | one job, schema output, minimal context, fixed settings |
| 3 | Check before act | same workflow | a validation step and a human lane |
| 4 | Build the evaluation set | a file of real cases | a measured pass rate and a failure budget |
| 5 | Observe | a ledger | every run logged with lane, cost and outcome |
| 6 | The first owned script | code, called from the workflow | one model step replaced by a tested script |
| 7 | Move the system | code | the flow lives in the program; the workflow tool is a trigger or gone |
| 8 | Hand over | documents and a session | README, runbook, tests, ceiling, alert; the client runs it alone |
| 9 | Package and price | the offer | a scope template, an outcome statement, a small retainer |
Chapters 0 to 6 are the book From workflow to owned code . Chapters 7 to 9 are in preparation.
Definition of done
A system is done when it runs on infrastructure the client controls, passes its evaluation set at the agreed rate, checks every model output before it acts, logs every run, enforces a cost ceiling, has a README and a runbook, and the client has run it once with you absent. Any one missing means it is a demo.