PART 1 · CHAPTER 01
The Day Code Became Abundant
A checkout that works in a demonstration is not yet a dependable business capability.
Saved locally in this browser, not synced to an account.
Central idea: A checkout that works in a demonstration is not yet a dependable business capability.
Why this chapter matters
When AI can draft a seemingly complete implementation within minutes, the important question is no longer only whether the program can be written. It is whether someone can explain its behaviour, judge the trade-offs, verify real-world assumptions and operate it responsibly. This chapter of Systems Over Syntax develops that distinction with a concrete software engineering situation.
The breakthrough is not that code has no cost. It is that producing a plausible first implementation often requires less manual effort. Review, integration, cloud operations and risk still demand work.
It is helpful to separate a demonstration from a production commitment. Demonstrations show that a workflow can be expressed and executed. A production commitment adds obligations: correct behaviour under retry and failure, understandable ownership, measurable reliability, secure data handling, controlled change and a plan for recovery. AI can assist with all of them, but it cannot make an undefined business rule unambiguous by generating more code.
A practical engineering story
Situation. A retailer wants to add a click-and-collect checkout option before a holiday promotion.
What can go wrong. The generated endpoint handles the happy path, but retries can reserve the same stock twice.
This is the important moment in the engineering story. A team can look at the running application, see successful output and reasonably feel optimistic. But the missing case is often not visible in the demonstration. It appears when a user retries an operation, two events arrive in the wrong order, a dependency times out, an administrator changes permissions, or real traffic behaves differently from development traffic.
In a real checkout flow, the user sees only a button, but the system must coordinate stock reservation, payment authorisation and cancellation. A generated controller cannot invent the company’s inventory policy correctly without context.
Before selecting a design, ask five questions:
- What outcome matters to the user? Define it without referring to a programming language or framework.
- What must always be true? Identify the invariants that protect business and technical correctness.
- What can fail? Consider duplicate requests, partial failures, invalid input, unavailable dependencies and conflicting updates.
- Who may decide or act? Make authorisation and accountability explicit.
- What evidence is sufficient? Decide how tests, logs, metrics or reviews will establish confidence.
These questions are useful whether the implementation is handwritten, AI-generated, assembled from managed services or built by a mixed human–agent team.
Designing the solution
Recommended approach. Model reservation as a state transition: requested, reserved, expired, fulfilled. Use an idempotency key unique to each customer command.
Concrete contract or example. POST /reservations with Idempotency-Key: checkout-481; duplicate commands must return the existing reservation.
A useful design review should connect the business decision to executable evidence. Start by stating the expected behaviour in plain English. Then express the rule in a form a developer or an agent can implement, such as a state transition, contract, test case or access-control policy. Finally, determine which component enforces the rule and what happens if enforcement fails.
A simple reservation endpoint should return the same result when the same command is retried. Persist the idempotency key and result in the same transactional boundary as the reservation.
A lightweight engineering decision record
| Review item | Question to answer before release |
|---|---|
| Business goal | What measurable outcome makes the change worthwhile? |
| Data and ownership | Which system is authoritative, and who can modify the state? |
| Preconditions | What must be true before the operation is accepted? |
| Failure handling | What happens on timeout, duplicate submission or partial completion? |
| Verification | Which independent evidence proves the rule works? |
| Operations | What will alert us to a failure, and how will we recover? |
The table is intentionally short. A good engineering record does not have to be a lengthy document. It must preserve the decisions that someone else—human or AI—would otherwise have to rediscover.
Where AI helps, and where judgment remains important
AI is valuable for producing a first implementation, comparing alternative patterns, drafting tests, describing an unfamiliar library and identifying possible edge cases. The practical benefit is that engineers can examine more possibilities without manually writing each draft from scratch.
However, a generated solution can be internally consistent and still be wrong for the organisation. It may assume a different business policy, invent a missing constraint or select a design too complicated for the team to support. Even generated tests can merely confirm the same faulty assumption used in the implementation.
A disciplined workflow therefore uses AI as an accelerator inside the engineering process, not as a replacement for it. The person or team accountable for the result should be able to defend the design without pointing to the model’s confidence as evidence.
Failure analysis: test beyond the happy path
Suppose the initial version passes a basic demonstration. Before declaring the chapter’s example complete, challenge it from four angles:
- Correctness: Try an input or event sequence that violates an unstated assumption. What exactly happens?
- Security and permissions: Attempt the operation as an actor with insufficient authority. Does the trusted server reject it?
- Recovery: Interrupt the workflow halfway through. Can it resume safely or roll back without corrupting state?
- Maintenance: Imagine a second engineer changing this feature in six months. Can they discover the rationale and the acceptance tests?
A resilient system need not eliminate every possible failure. It must make important failures understandable, bounded and recoverable. The level of assurance should match the consequences: a hobby prototype and a financial transaction system should not have identical controls.
A focused exercise
Try this: Compare first-working-demo time, verified feature time and operational support cost.
Write down the expected result before asking AI to implement it. Then ask an assistant for two alternative solutions and a list of assumptions. Check those assumptions against your own requirements. Choose an approach and add at least one negative test—one that should prove an unsafe or incorrect behaviour is blocked.
Finally, explain the result in a short design note: what changed, why this option was chosen, which risks remain and what evidence would justify deployment. This is a better test of engineering understanding than measuring how quickly a complete file appears.
Key takeaways
- A checkout that works in a demonstration is not yet a dependable business capability.
- AI can reduce the effort of creating an initial solution, while integration, verification and operational ownership remain real work.
- Domain rules, failure behaviour and access decisions should be explicit and enforced by trusted components.
- Evaluate time to verified value, not just code-generation speed.
- A good human–AI workflow makes assumptions visible and creates reusable evidence for the next change.
Questions for reflection
- Which assumption in this example would be most costly if it were wrong?
- How would you measure the difference between a fast implementation and a safe release?
- What additional context would allow another engineer—or an AI agent—to make a better decision?
- Which part of this workflow could be delegated, and which requires an accountable decision-maker?
Further reading
Research and standards are background reading. The chapter scenarios are original illustrative examples, not claims that the cited sources studied those exact scenarios.