Working with engineering
Estimates are distributions, debt is a cost on every future feature, and when the number doubles you cut scope, not the outcome
Your tech lead says a feature will take six weeks. What is that number most likely to be?
Working with engineering is most of a PM’s working week, and very little of it is about telling engineers what to build. It is about deciding together what is worth building, forecasting how long it will take, noticing early when the forecast is wrong, and deciding what to do about it without losing the reason the work existed. It is also about the part of the system nobody outside engineering sees: the debt, the migrations and the design decisions that make next year’s features cheap or expensive.
This chapter covers four things: the partnership itself, how estimates are made and why they slip, technical debt as a product concern, and the design review from your side of the table.
A partnership, not a handoff
The model that fails is the relay race. The PM writes requirements, hands them to engineering, and waits for the feature. Marty Cagan calls this the feature-team model, in his 2019 essay “Product vs. Feature Teams” and in Empowered, and argues it wastes the most valuable thing engineers have: they know what the technology makes possible, and they cannot use that knowledge if they first see the problem as a finished list.
The model that works is a small group, usually you, a designer and a tech lead, who own the problem together. Teresa Torres calls it the product trio, and Cagan the empowered product team; the name matters less than the habit. The tech lead is in discovery interviews sometimes, reads the problem brief before the PRD exists, and says early that a requirement is expensive or that a cheaper version would solve most of the problem. You, in turn, sit in on the parts of engineering’s work where product judgement matters: sizing, design review, the decision to pay down debt.
The division of ownership stays clear. You own the problem, the outcome and the priority. Engineering owns the solution, the estimate and the quality of the system. The engineering manager owns the team: who works on what, how they grow, whether they are burning out. Camille Fournier’s The Manager’s Path describes the same relationship from the engineering side, and it is worth reading for one reason above others: it shows you what a good tech lead and engineering manager are trying to protect, so you stop treating their pushback as obstruction.
Two things erode the partnership faster than anything else. The first is negotiating estimates down: asking whether six weeks could be four, without changing the work. It teaches the team to pad, and padded estimates are worse forecasts. The second is committing dates to customers before engineering has sized the work. You will be asked to do both, by people with good reasons. Learn to answer with scope instead.
How estimates are made
An estimate is a forecast of effort under uncertainty. Steve McConnell’s Software Estimation draws the distinction that saves most arguments: an estimate is what the team thinks it will take; a target is what the business wants; a commitment is what the team agrees to deliver. Confusing the three is the root of most estimate fights. When a stakeholder says “we need it by March”, that is a target. Your job is to find out whether the estimate supports it, and if not, what scope does.
Teams use a handful of techniques, and you should know what each one gives you.
| Technique | What it is | What it is good for | Where it misleads |
|---|---|---|---|
| T-shirt sizes | S, M, L, XL against agreed ranges | Roadmap sizing before design exists | Treated as dates once written on a slide |
| Story points and velocity | Relative size per item; points completed per sprint | Sprint planning for a stable team | Comparing teams; converting to days for one item |
| Planning poker | Each engineer sizes privately, then discusses the spread | Surfacing what one person knows that others do not | Consensus can still be wrong together |
| Three-point estimate | Best, likely and worst case per task (PERT) | Making the tail visible | The worst case is still optimistic |
| Reference class | How long the last similar projects took | Correcting optimism with history | Needs records most teams do not keep |
| Evidence-based scheduling | Each estimator’s past estimate-to-actual ratios, run as a Monte Carlo simulation | A probability curve for the date | Needs time-tracking discipline |
The last two come from the same insight. Daniel Kahneman and Amos Tversky named the planning fallacy: people forecast from the plan in front of them, the inside view, and ignore how long similar plans took, the outside view. Reference-class forecasting is the correction. Joel Spolsky’s evidence-based scheduling, in the reading, is a practical version for software teams.
The single most useful thing you can do is ask for a range rather than a number. “Six weeks” becomes “five to nine, most likely six”, and the width of the range tells you how much the team knows. Barry Boehm and later McConnell called the narrowing of that range over a project the cone of uncertainty: wide before design, narrower after, narrow only near the end. An estimate given before the design review is a guess with a unit attached. Plan accordingly, and re-estimate at the points where the cone narrows.
Why estimates slip
Estimates slip for reasons that are predictable in kind even when they are not predictable in detail. Name them, and you can watch for them.
The distribution is skewed. Work has a floor, the known tasks, and no ceiling. Even unbiased estimators produce late projects on average, because the late outcomes are further from the estimate than the early ones.
Unknown work surfaces. The send pipeline assumed immediate delivery; the old schema has a column three services read; the vendor’s API rate-limits differently in production. Most of this is found when the work starts touching existing code, which is why the middle of a project is when estimates move.
Integration is underestimated. Each piece works alone. Joining them, with the edge cases between them, takes longer than any piece.
Scope grows quietly. A designer adds a state, a stakeholder adds a field, an engineer handles a case nobody asked for. Each is small. Without a non-goals list and a decision log, as the PRD chapter covers in writing the PRD, they add up.
The team is not fully on the project. On-call, incidents, interviews, support escalations and the previous project’s bugs. A team of five rarely gives five people’s full time to anything.
Debt charges interest. Work in a part of the system nobody has cleaned up takes longer than the same work elsewhere. If one area’s estimates are consistently wide, that is your debt map.
People are added late. Fred Brooks’s law, from The Mythical Man-Month: adding people to a late software project makes it later, because the new people need onboarding from the people doing the work and the communication paths multiply.
The PM’s job is not to prevent slips. It is to hear them early. Ask at each weekly check-in what the team has learned that changes the range, not whether they are on track. “On track” invites a yes. “What changed?” invites the news.
When the estimate doubles: cut scope, keep the outcome
When the forecast moves a lot, there are four levers: time, people, scope and quality. Two of them are worse than they look. Adding people late slows the work. Cutting quality, fewer tests, no monitoring, skipping the migration’s verification step, borrows from next quarter at a high rate and often shows up as an incident. That leaves time and scope, and scope is the one you own.
The principle: the PRD defined an outcome, a metric that should move. Most features carry more work than the outcome needs. A scope cut removes work that does not move the metric and keeps the path that does. Ryan Singer’s Shape Up calls this scope hammering: repeatedly asking of each piece whether it is a must-have for the outcome or a nice-to-have, and treating the time box as fixed.
Where to look for cuts, roughly in order of how little they cost the outcome:
- Breadth. One platform first, one market, one customer segment. The segment in your problem statement is often narrower than the build.
- Configurability. Settings, admin screens and per-customer options. Ship the default; add the option when a real customer needs it.
- Automation of rare cases. If a case happens a few times a week, a person with a runbook can handle it while the volume is low. Manual first is a legitimate design.
- Edge-case polish. Graceful handling of states few users reach. Keep the ones that would lose data or money; defer the ones that are merely ugly.
- Reporting and dashboards. Often the first feature asked for and the last one used.
What you do not cut: the core path that moves the metric, anything that protects money, data or security, and the ability to roll back. A feature flag that lets you ship to one customer and turn it off in seconds is part of the core, not polish. Pete Hodgson’s article on feature toggles, in the reading, explains the kinds of flag and the cost of leaving them in.
A scope cut is a proposal, not a decree. You write it with the tech lead, who knows which pieces are expensive, and you take it to whoever owns the date. It states the outcome you are keeping, the work you are cutting and deferring, the new estimate with its range, the risks, and what the stakeholders lose. The artefact below is that document.
Sometimes the honest answer is that no cut keeps the outcome. Then the choice is between moving the date and stopping the work, and both are legitimate. A project that costs twice what you thought may no longer be worth doing. Say so out loud; it is one of the most valuable things a PM can say.
Technical debt is a product concern
Ward Cunningham coined the debt metaphor: shipping code you know is not quite right is like borrowing money. It lets you move faster now, and you pay interest until you pay it back. The interest is paid in product terms: every feature touching that code takes longer, estimates there are wider, incidents there are more frequent. That makes debt a prioritisation question, and prioritisation is yours.
Martin Fowler’s technical debt quadrant, in the reading, sorts debt on two axes: deliberate or inadvertent, prudent or reckless. Prudent and deliberate debt, “ship now, clean up after the launch”, is a reasonable business decision when you record it and come back. Prudent and inadvertent debt, “now we know how we should have built it”, is inevitable for any team that learns. The reckless kinds are the ones to stop creating.
What a PM does about debt:
- Ask engineering to make it visible. Each significant item in the backlog, with a one-line statement of the interest: which features it slows, which incidents it caused, what it blocks.
- Rank it with everything else. A debt item that blocks next quarter’s biggest bet has a high cost of delay. One in a part of the product nobody is changing can wait indefinitely. Debt nobody touches charges no interest.
- Pair it with feature work. Paying down debt in the area you are about to build in is cheaper than a separate project and easier to explain.
- Agree a standing budget. Many teams reserve a fixed share of each sprint for maintenance; figures around a fifth are a common rule of thumb, not a law. The point is that the share is agreed in advance, so it is not renegotiated every planning session.
- Respect the error budget. Where the team runs service level objectives, an exhausted error budget is a signal to shift effort to reliability. The SLIs, SLOs and error budgets chapter explains the mechanism; the PM’s part is agreeing the policy before the budget runs out, not arguing about it after.
Migrations are the largest debt payments, and the hardest to sell because they ship nothing a user sees. Engineering will propose them as a sequence: build the new path beside the old, move traffic gradually, verify, switch, keep a way back. Fowler’s strangler fig pattern is the application-level version; the database version, copy, catch up, verify, switch, is in the partitioning and sharding chapter. Your job is to make the case in product terms, protect the time, and plan features around the migration window so that nobody builds on the old path while it is being retired.
The RFC and design review from the PM’s seat
Before a large piece of work starts, engineering writes a design document, often called an RFC (request for comments) or a design doc, and reviews it with peers. Google’s design-doc culture is the common model: context, goals and non-goals, the design, alternatives considered, and cross-cutting concerns such as security, privacy and operability. Some teams also keep architecture decision records, Michael Nygard’s short format for one decision, its context and its consequences.
You are a reviewer, not an author, and not the person who chooses the database. You need enough system design to follow the argument; the URL shortener lesson is a good test of whether you can. Read for these things:
- Does it solve the PRD’s problem? Map each must requirement to a part of the design. A design that meets every requirement but the one about latency has a gap you will hear about from customers.
- Does it respect the non-goals? Engineers sometimes generalise early: a scheduler for every message type when you asked for one. Ask whether the generality is needed now.
- What does it make harder later? A schema that assumes one currency, an API that exposes an internal id. These are the decisions that become next year’s debt.
- How does it roll out and roll back? Flags, a gradual rollout, a migration with a way back. If the answer is a single cutover at night, ask why.
- What does it cost to run? New infrastructure, on-call load, vendor fees. These belong in the business case.
- Which alternatives were rejected, and why? A design doc without alternatives has not been reviewed by its own author.
On a platform or API team the interface itself is the product, and the review carries more weight; Platform, API and technical PM covers what changes. Ask questions as questions. “What happens if the vendor is down?” is useful; “we should add a fallback” is a design decision you are not best placed to make. Write your comments in the document, before the meeting, so the review time goes on the ones that need a conversation.
Day to day
Daily, ten minutes. The stand-up, if the team holds one, is for the team; attend to hear blockers you can remove, a decision someone is waiting for, a stakeholder who needs an answer. Answer the open questions in the PRD and the ticket comments the same day. A PM who takes three days to answer a product question costs the team three days.
Weekly. Backlog refinement, an hour, with the tech lead and designer: next sprint’s items have acceptance criteria, the large ones are split, the open questions have owners. A one-to-one with the tech lead or engineering manager, thirty minutes, where you ask what changed in the estimate, what debt is hurting, and what you are doing that makes their week worse. Sprint planning every one or two weeks, where you bring the priority and the team brings the capacity.
Per project. An estimation session once the design exists, where you ask for ranges and the assumptions behind them. The design review, where you read the RFC in advance and comment in the document. A re-estimate at each milestone, and a scope-cut proposal the week the range moves past the target, not the week before the deadline.
Per quarter. Planning, where the debt items are ranked beside the features and the maintenance share is agreed. A retrospective on the quarter’s estimates against actuals, which is the cheapest reference-class data you will ever collect.
When things break. Attend the incident review for anything customer-facing, as described in the incident response and postmortems chapter, and make sure the follow-up actions get a place in the backlog with a priority. Action items that sit unranked are how the same incident happens twice.
There is no tech lead title; there are four engineers and one of them is the CTO. Estimates are conversations, and the CTO’s instinct is the reference class. Debt is mostly deliberate, the price of finding product-market fit, and the right amount to pay down is often very little, except where it slows the next experiment. Design review is a whiteboard on Tuesday. Your job is to keep the scope small enough to learn fast and to write down the shortcuts taken, so that when the company grows the debt has a list instead of a legend.
The teams are new and the old code was written for a company a tenth the size. Debt is now the main reason estimates slip, and the first large migrations arrive. Engineering managers are being hired and the PM-to-tech-lead pairing is being defined, often by you. This is where agreeing a maintenance share, a design-doc template and a habit of ranges rather than dates pays most. Expect at least one quarter where the right roadmap is mostly a migration, and expect to have to defend it.
Estimates cross teams: your feature depends on a platform team’s roadmap and a security review’s queue, and the critical path is someone else’s backlog. Design reviews have formal architecture boards. Debt is measured in years and some of it is load-bearing for revenue. Your leverage is the dependency map and the cost-of-delay argument written for the people who rank other teams’ work. Scope cuts often mean shipping on the old platform now and the new one later, and recording that choice where the next PM will find it.
Template
# Scope-cut proposal: <feature>
Author · Tech lead · Date · Decision needed from <name> by <date>
## What changed
Original estimate: <range, date given>
Revised estimate: <range>, because <what the team learned>
## The outcome we keep
<Success metric from the PRD: measure, baseline, target, date, guardrail. Unchanged.>
## Proposed scope
| Item | Keep / cut / defer | Effect on the metric | Effort saved |
|---|---|---|---|
## What we keep that protects
<Money, data, security, rollback, flags. Each listed explicitly.>
## Revised plan
New estimate: <range>, owner: <tech lead>
Rollout: <flag, first customers, widening>
## Deferred work
| Item | Backlog link | Earliest | Trigger to bring it back |
|---|---|---|---|
## What each stakeholder loses
- <stakeholder>: <what they no longer get, and when they might>
## Risks
- <risk> — <mitigation>
## Alternatives considered
- Move the date to <date>: <why not, or why it is the fallback>
- Stop the work: <why not> WORKED EXAMPLE
Lantern Messaging is a fictional business-messaging company, 140 people, selling a WhatsApp-style inbox to retailers. Its largest customer, a grocery chain with 900 stores, was promised scheduled messages by the end of Q3. The PRD’s metric: share of the chain’s promotional messages sent through Lantern rather than a competitor, from 40% to 70% within 60 days of launch, guardrail delivery failures under 0.5%.
What changed. Original estimate: 7 to 10 weeks, given in week 0. In week 5 the tech lead revised it to 16 to 22 weeks: the send pipeline retries for 24 hours and then drops, and holding messages for up to 30 days requires a new durable queue and changes to rate limiting.
Proposed scope. Keep: schedule a single broadcast up to 7 days ahead, web only. Cut: scheduling up to 30 days (the chain’s promotions run weekly; interviews show no need beyond 7 days), saving the new durable queue, 5 to 7 weeks. Defer: recurring schedules, mobile app, per-store time zones (the chain operates in one zone), saving 2 to 3 weeks. Cut: an analytics view of scheduled sends; the existing delivery report covers it, saving about a week.
What we keep that protects. Cancel a scheduled send up to one minute before; a feature flag per account; the delivery-failure alert.
Revised plan. 9 to 12 weeks in total from week 0, so 4 to 7 weeks from now, the tech lead’s estimate, because a 7-day hold fits the existing queue with a longer retention setting. Ship to the grocery chain alone behind the flag, widen after 30 days.
What each stakeholder loses. Sales loses a demo of recurring schedules for two prospects; earliest Q1. The chain loses mobile scheduling; its marketing team works on web.
Risks. The chain asks for 30-day scheduling after launch: you review its promotion calendar with its marketing lead before the build starts. Longer queue retention raises storage use: the tech lead has sized it within current capacity.
Alternatives considered. Move the date to Q4 with full scope: the chain’s autumn promotions would pass, so this is the fallback only. Stop the work: the chain’s renewal depends on the feature.
Decision needed from the Head of Product by the end of week 5, so the team starts the narrower build in week 6.
Now you
You are the PM for payouts at Harbour Pay, the fictional payments company from the PRD chapter. Your team is building instant payouts: merchants can move their balance to a debit card in minutes for a 1% fee, instead of waiting two days. The PRD target is 8% of eligible merchants using it monthly within 90 days, guardrail fraud losses under 0.05% of payout volume. The estimate was 10 to 12 weeks. In week 6 the tech lead says 20 to 24: the card network requires a new risk check per payout, two of the three countries need separate licensing work, and the ledger cannot represent a payout that is reversed after it lands. The CEO announced the feature at a merchant conference for next quarter. Finance wants per-merchant fee overrides. Write the scope-cut proposal with your tech lead, and say what you would do if no cut brings the estimate under 14 weeks.
Self-check
You are PM for a feature promised to a large customer at the end of the quarter, twelve weeks away. The original estimate was eight to ten weeks. In week four the tech lead says sixteen to twenty: an old part of the system cannot support the feature without a migration. Your head of product asks what you propose to do. What do you take to the meeting?
- BOOK Inspired: How to Create Tech Products Customers Love (2nd edition) Marty Cagan, 2017
The case for engineers as partners in discovery rather than recipients of requirements, and what the PM, designer and tech lead each own. Read: Part II, the chapters on the product team and the tech lead.
- BOOK The Manager's Path Camille Fournier, 2017
The engineering side of the relationship: what a tech lead and engineering manager are protecting when they push back, and what they need from a product partner. Read: the chapters on the tech lead and on managing a team.
- POST Technical Debt Quadrant Martin Fowler, 2009
The two-axis model of debt this chapter uses. Short, and it gives you the vocabulary to tell deliberate, prudent debt from the reckless kind.
- HANDBOOK Shape Up, chapter 14: Decide When to Stop Ryan Singer
Scope hammering, must-haves and nice-to-haves, and comparing against the baseline rather than the ideal. The clearest written method for cutting scope while keeping the outcome.
- POST Evidence Based Scheduling Joel Spolsky, 2007
Turns each engineer's history of estimates against actuals into a probability curve for the ship date. Read it for the idea that a date is a distribution.
- POST Feature Toggles (aka Feature Flags) Pete Hodgson, 2017
Release, experiment, ops and permission toggles, and the debt toggles become if nobody removes them. The mechanism behind shipping a cut-down feature to one customer safely.
- POST Strangler Fig Martin Fowler
How large migrations are done gradually, beside the old system, rather than as a big-bang rewrite. Read it before your first migration planning meeting.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.