Why a Process Exists at All
Software is not difficult because writing it is hard. It is difficult because the cost of being wrong compounds, and because the person who knows what is wanted and the people building it do not hold the same information.
A process is not bureaucracy for its own sake. It forces three things into the open at the cheapest possible moment: the decision, the assumption behind it, and who owns it when it turns out to be wrong. Google's SRE book makes the case — most of its chapters are post-mortems of decisions that seemed reasonable at the time.
The Six Phases at a Glance
| Phase | Duration | Primary deliverable | Exit criteria — you do not leave until |
|---|---|---|---|
| Discovery | 2–3 weeks | Problem statement, scope boundary, risk register | Sponsor and one end user agree in writing it is worth solving |
| Design | 3–4 weeks | UX flows, visual design, architecture, data model | Prototypes of the two riskiest screens; architecture written down |
| Build | 8–14 weeks | Incrementally shipped software behind a feature flag | Every story meets the definition of done; staging demo accepted |
| Test | Continuous + 3 weeks | Automated suite, security review, load results | No open severity-1 or severity-2 defects; perf numbers met |
| Launch | 1 week | Production release, monitoring, rollback plan | Error rate and latency inside SLO for 72 hours; on-call staffed |
| Operate | Ongoing | Runbooks, backlog, incident reviews | First incident review within two weeks of the first incident |
Durations assume a team of four to six. They are not commitments — scope moves dates, not quality.
Phase 1: Discovery
The deliverable is a document a competent stranger could read and disagree with specifically. "We need a customer portal" is not a problem statement. "Branch managers spend roughly six hours a week re-keying supplier invoices into the finance system, causing a two-day lag before payment approval" is.
Three activities carry the phase: interviewing the people who will use the thing, mapping the systems it must talk to, and writing down what is explicitly out of scope. That last list is the most valuable artifact here, because every conversation afterwards will try to add to it, and the only defence is a list someone signed.
Exit criteria: the problem statement names a measurable current state and a measurable target, the out-of-scope list is signed off, and the technical spike has found no architectural blocker.
Phase 2: Design
Design converts intent into decisions that are expensive to reverse. That is the filter for what belongs in this phase: anything cheap to change later does not need a design document.
Deliverables: user flows, annotated wireframes, a visual design system (tokens, type scale, component inventory), an architecture diagram with a written rationale, the data model, and a list of third-party services with their failure behaviour.
The written rationale is the part teams skip. Six months later someone asks why the system is event-driven rather than synchronous, and the answer at that point is whatever the remaining engineers guess.
Exit criteria: the two riskiest parts of the product exist as clickable or running prototypes. For most products those are authentication, payments and anything with a third-party integration — prove them early, while changing them is still free.
Your accountability here is decisions. You are the only party who can choose between two business outcomes. A team can tell you option A takes two weeks and option B takes six; it cannot tell you which one the business should fund.
Phase 3: Build
This is where most of the calendar lives, and where process discipline is easiest to skip. Four commitments define it:
- A written definition of done, agreed once: merged to trunk, reviewed by another engineer, tests and type checks passing, deployed to staging, acceptance criteria demonstrated.
- Small batches. Anything larger than about two days of work is a guess, and a two-day guess is cheap to be wrong about.
- Continuous integration as the gate. A gate that can be bypassed is decoration.
- Demoable software at the end of every cycle, not a status report. A status report describes activity; a demo proves existence. This is the agile principle people drop first when a deadline gets close.
yaml# The build gate. Nothing reaches staging unless all of this passes. name: verify on: [pull_request] jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "22" cache: npm - run: npm ci - run: npm run typecheck # tsc --noEmit, no exceptions - run: npm run lint - run: npm test -- --coverage - name: Fail under 80% statement coverage on changed files run: npx jest --coverageThreshold '{"global":{"statements":80}}' - name: Migration dry run against a real schema run: npm run db:migrate:dry - uses: actions/upload-artifact@v4 with: name: coverage path: coverage/
The migration dry run is the step most teams add late and should add first. Schema migrations are the highest-risk change in a deploy and the only ones a redeploy cannot undo — once old application code meets the new schema, "roll back" is no longer a button.
Your accountability: timely feedback and honest priority. The most common cause of a slipped date is not technical difficulty; it is a stakeholder decision that waits nine days, or a priority that changes every sprint. Agree that decisions are needed within 48 hours, and make the cost of a late decision visible rather than absorbing it.
Phase 4: Testing
Testing runs continuously through build; this phase is the hardening window before launch, and the one most often under-scoped.
| Layer | What it proves | Realistic target |
|---|---|---|
| Unit | A function does what it claims | 80%+ statement coverage on business logic |
| Integration | Components agree on contracts and shapes | External integrations mocked at the boundary |
| End-to-end | The three or four journeys customers take | Playwright over revenue-critical flows only |
| Security | Common weaknesses are absent | OWASP Top 10 review plus dependency audit |
| Load | The system meets its numbers | p95 under 300ms at 3x expected peak |
Test the journeys, not the screens. Suites that click through every button go stale within a month and get ignored. Five tests that must pass in CI — login, create order, take payment, issue refund — will be maintained for years.
Exit criteria: zero open severity-1 and severity-2 defects, agreed performance numbers demonstrated under load, and a signed-off security review. "No critical bugs" is not a number; "no open severity-1 or severity-2" is checkable.
Phase 5: Launch
A launch is a change to a running system, so the interesting question is not "is it ready" but "how do we undo it". Every launch needs a rehearsed rollback, and the rehearsal should be a real one.
sql-- Expand / contract: the only safe way to change a column that live code reads. -- Step 1 (deploy N): additive change. Old code still works. ALTER TABLE invoices ADD COLUMN total_cents bigint; UPDATE invoices SET total_cents = (total * 100)::bigint WHERE total_cents IS NULL; -- Step 2 (deploy N+1): backfill in batches, never in one statement on a big table. UPDATE invoices SET total_cents = (total * 100)::bigint WHERE id IN ( SELECT id FROM invoices WHERE total_cents IS NULL LIMIT 5000 ); -- Step 3 (deploy N+2): read the new column, still write both. -- Step 4 (deploy N+3): stop writing the old column. -- Step 5 (deploy N+4): only now drop it, one release later. ALTER TABLE invoices DROP COLUMN total;
Spread across four or five releases, a column rename becomes a non-event. Attempted in one release against live traffic, it is a rollback with extra steps.
The rest of the launch checklist is unglamorous: monitoring live before traffic is switched, migrations applied and verified, error tracking receiving real events, a named person on call, and a written rollback trigger — for example, error rate above 2% for 10 minutes — decided in advance so nobody makes that call while panicking.
Exit criteria: error rate and latency inside the agreed SLO for 72 consecutive hours, with the SLO written down in advance rather than asserted as "99% uptime". The SRE workbook covers sizing an error budget, which is what makes this judgement call quantitative.
Your accountability: participation in the go/no-go. You are the only person who can decide to delay, and the only one who can authorise a launch on a Friday afternoon. Agree the trigger criteria in advance, in writing.
Phase 6: Operate and Iterate
Shipping is the midpoint. In the first month after launch teams learn things no amount of testing surfaced, and the process now earns its keep by capturing that knowledge.
Concrete practices, in order of return: error tracking grouped by release, so you can see whether the thing that broke is the thing you shipped last week; a runbook per alert saying what to do; an incident review within two weeks of any outage; and a dependency update cadence, because a framework two major versions behind is not maintenance, it is a project. Third-party integrations need their own treatment — if you depend on a payment provider's webhook, read their idempotency documentation and build retries against it, because providers deliver events more than once and an un-idempotent handler will eventually bill someone twice.
Your accountability: the feedback loop. The most valuable thing a client does here is answer one question a week: did this change the number you care about?
A Worked Timeline
A real-shaped project: an ordering, kitchen display and payments product for a three-location restaurant group. Team of five — two backend, one frontend, one designer, part-time QA. Eighteen weeks to production.
| Weeks | Phase | Work | Gate at the end |
|---|---|---|---|
| 1–2 | Discovery | 9 stakeholder interviews, POS data audit, out-of-scope list | Problem statement signed off |
| 3 | Spike | Payments integration spike, chosen as the highest risk | "Card-on-file works with our acquirer" proven |
| 4–6 | Design | Flows, visual system, architecture, data model, KDS prototype | Two risky screens prototyped and signed off |
| 7–14 | Build | 8 two-week cycles: auth, menu, orders, KDS, payments, reporting | Each cycle demoed and accepted |
| 15–16 | Hardening | E2E suite, load test at 3x peak, security review | Zero severity-1/2 defects, p95 under 300ms |
| 17 | Launch | Staged rollout to location 1, then 2, then 3 over 72 hours | Inside SLO for 72 hours |
| 18+ | Operate | Weekly metric review, incident review, dependency updates | Backlog ordered by measured impact |
Note where the risk went: week 3, before any design was signed. That spike is the highest-leverage week in the plan — skipping it to start the UI would have put a payments integration problem on the critical path at week 12, where a bad answer costs a month.
Where Projects Actually Go Wrong
- Scope never written down. Not malicious, just never committed to text, so it drifts one conversation at a time.
- Discovery skipped for the sake of starting. Feels like momentum. Is not.
- No automated gate. A process that lives in a document and not in CI is a suggestion.
- Testing everything. End-to-end suites covering every screen rot within a month and then get disabled.
- A launch with no rollback trigger, decided while the dashboard is red.
- A feedback loop that never closed, so month six is drift with no correction.
None of these are technical failures. Each is a decision made by a human — which means each can be made differently.
For the short version of how these phases map onto a real engagement, our development process sets out what we commit to at each stage. The practices above assume a stack; building a web app with Next.js and Supabase works through a concrete one end to end. Weighing a partner against hiring? What a software development company actually does covers the commercial side.