The Software GardenEngineering Risk ← Contents
The Software Garden · Why · 04

Engineering Risk

It's not the agentic part. It's the engineering part.

You can lose by shipping something broken. You can also lose by being too careful, while a faster competitor takes the deal, the market and the lead. Both are real. Engineering manages two trade-offs: speed against risk, and speed against complexity. It locates each change on the first, then changes the curve with mitigations. Those cost complexity, which is the second.

Scroll ↓
The first way

Going slow to avoid getting it wrong is getting it wrong.

Caution feels safe because its costs are invisible. Nobody files a bug for the deal you lost because the feature shipped a quarter late, or for the customer who chose the competitor that already had it.

But those costs are as real as an outage, and often larger. With agents, your competitors' speed is going up. Standing still is falling behind.

🤝 Lost dealsThe prospect needed it this quarter. You had it next year.
📉 Market shareCustomers move to whoever solves their problem first.
💬 Mind shareThe conversation moves on. You're no longer who people think of.
🚀 Innovative leadHard won, quickly lost, and very hard to win back.
The second way

Switching off critical thinking isn't speed. It's a different way to lose.

Agents make it easy to publish anything. Generate it, glance at it, merge it. That works until the outage, the data loss, the security hole, or the slow pile-up of entropy that makes every later change harder.

Those costs are visible, which is why organisations overcorrect towards caution. Neither extreme is a strategy.

🔥 IncidentsDowntime, data loss, an emergency instead of a roadmap.
🛡️ TrustCustomers forgive a late feature sooner than a broken one.
🔓 SecurityOne unchecked change can cost more than a year of features earned.
🌿 EntropyUnchecked speed now becomes no speed later. That's the jungle.
Trade-off one: speed against risk

Don't just pick a point on the trade-off. Change the trade-off.

Locate. Business risk falls as you go faster. Quality risk rises. The total has a best point, and without engineering it's at a modest speed. Finding it, change by change, is the first move.

Change the curve. Every mitigation lowers quality risk at every speed: loops that catch mistakes in minutes, checks that can't be argued with, a gate that refuses bad changes, flags and rollback that make a change cheap to undo. Each one flattens the curve, and the best point moves right. Same risk, more speed. The rest of this book is those mitigations. But watch the complexity counter: none of them is free.

Business riskQuality riskTotalBefore mitigation
1 · Locate
Speed
2 · Change the curve
Business risk0
Quality risk0
Total risk0
Complexity0
 

Illustrative curves, not measured data.

Mitigation

Risk isn't uniform, and it isn't fixed.

One process for every change is the lazy answer in both directions: everything gets the scrutiny of a database migration, or nothing does.

Ask two questions of each change: how far can the damage spread, and how fast can we undo it? Amazon calls these one-way and two-way doors. Walk through two-way doors quickly, and slow down for one-way doors. Then ask a third: what would lower it? Most risk can be engineered down before you decide how fast to go. Turn one-way doors into two-way ones, and make the blast radius small.

ChangeLower the riskThen
UI copyPut it behind a flag.Two-way door. Ship it; the loops are enough.
New endpoint, additiveContract tests.Ship it. Easy to roll back.
Change to a public APIAdd the new beside the old, deprecate, tell the consumers.A breaking change becomes an additive one.
Data migrationReversible script, dual writes, rehearse on a copy.A one-way door becomes nearly two-way. A human still decides.
Auth and paymentsSmall blast radius by design, staged rollout, extra gates.A failure hits a few, not everyone.

Illustrative examples.

Trade-off two: speed against complexity

Mitigations buy speed. They cost complexity.

An additive API spares customers a breaking change, and leaves engineering two versions to maintain and test, and customers a migration to plan. A flag makes a change cheap to undo, and doubles the states to test until someone removes it. Somebody pays: the customer, or the team.

Complexity is a risk of its own. Left to pile up, it slows every later change: that's the jungle. So mitigate deliberately. Choose the cheapest mitigation that buys the speed this change needs, and retire it when it has done its job. Remove the flag. Sunset the old API.

MitigationBuysCosts
Additive APINo breaking change.Two versions to maintain and test. A migration for customers, a deprecation to run.
Feature flagShip dark, switch off fast.More states to test. A forgotten flag is permanent entropy.
Reversible migrationAn undoable data change.Dual writes, more code, drift between the copies.
Another gate or checkMistakes caught before merge.A slower loop for every change. A flaky one taxes everyone.
Staged rolloutA small blast radius.Longer until it's fully live. Versions running side by side.
Measure it

Headlines aren't data.

“The agent dropped the production database” is rare and memorable, so it sets the intuition. Steer by the headline and you get one of two naive answers: cargo-culted mitigations, adopted because careful teams have them, without anyone measuring what they buy or what they cost, or “we must avoid risk”, which is losing slowly with a worst case as the excuse.

Quality is measurable. Count defect reports, and segment them by surface (API, SDK, UI, docs, data) and by impact (severity, customers affected, how long). Add where they're caught (by your loops or by customers), how fast you detect and restore, and how many changes cause one.

Then treat every mitigation as a hypothesis. Measure its benefit on the surface it targets, and weigh it against its complexity. Keep it if the benefit is worth the cost; retire it if not. With agents writing the code, engineers finally have the time to weigh these balances in detail. Risk is a number you can point the loops at.

Mitigate, then measure
Defects / quarter0
Risk score0
Complexity0
 

Illustrative data. Risk score = defect count × impact weight (low 1, medium 4, high 15, critical 60).

Engineering judgement

Agents do the typing. Engineers still own the risk.

None of this is new. Balancing speed against confidence has always been the engineering part of software engineering. What's new is that agents removed the cost of implementation. An agent writes the dual-write code in minutes; it won't decide whether this change deserves it. That's where engineering attention goes now: speed against risk, and speed against complexity.

The answer is never “go slow to be safe” or “ship it and see”. It's a handful of questions, asked every time, and answered with evidence rather than habit.

What does waiting cost?Deals, users, lead. Put it on the scale, not just the risk of shipping.
What's the worst realistic case?Not the worst imaginable one. And who would it hit?
How would we know?Which loop, check or signal would catch it, and how soon.
How fast can we undo it?Flags, rollback, staged rollout. Speed is safest when it's reversible.
What would make it safer?Flag it, split it, stage it, make it reversible. Lower the risk before you choose the speed.
What does the mitigation cost?Who pays, the customer or the team, and when does it come out?
So

Neither slow nor reckless. Engineered.

Losing the market by being too careful and losing trust by being careless are both failures. Two trade-offs, every time. Speed against risk: locate each change by blast radius and reversibility, then mitigate to move the curve. Speed against complexity: every mitigation has a price, so choose the cheapest one that buys the speed, and retire it when it's done. Measure both: defects by surface and impact, before and after each mitigation, not the headlines. With agents writing the code, this is the engineering.