Courses / Senior and Staff Engineers: Behavioural and Leadership Rounds / Chapter 7
Module 4 · Leading as a senior or staff engineer · Chapter 7 of 11
Leading Projects: Kick-off, Estimates in Ranges, Risk and Delivery
No prerequisites. Next up: Building the Organisation: Team Shape, Hiring, Standards and Strategy.
Part 1 · Kicking off a project
The kick-off page
A rewrite of an invoicing system at a Lucknow software company starts with five people agreeing on what they are building. A project that begins with a shared page avoids weeks of private assumptions.
A project kick-off is the first agreement on what the work is, why it matters, what is out of scope and who decides. It usually fits on one page. The page is not a plan. It is a statement that everyone can point to when a request arrives in week five and someone asks whether it was ever part of the job.
Start with a problem statement: one or two sentences saying what is wrong today and who feels it. "Invoices are generated by a script that only one person understands, and a tax change needs three weeks" is a problem statement. "Rewrite the invoicing system" is a solution wearing a problem's clothes.
Next come goals and non-goals. A goal says what the project will achieve. A non-goal names something that could reasonably be a goal but is deliberately excluded. Non-goals are often the most useful part of the page, because they are what people argue about later. Ritu, who leads the invoicing rewrite, lists "no change to the customer-facing invoice layout" as a non-goal, and that one line settles a debate before anyone starts it.
When to write a design document
A design document is a written description of how you will build something, shared for review before the work starts. Malte Ubl, an engineer who has written about design docs at Google, describes common sections: context and scope, goals and non-goals, the design itself, alternatives considered, and cross-cutting concerns such as security, privacy and observability. The context is brief and objective and is not a requirements list. The design shows trade-offs and sketches an API or storage only where it matters.
| Section | What goes in it |
|---|---|
| Context and scope | The background a reader needs, briefly |
| Goals and non-goals | What you will and will not do |
| The design | An overview, then the trade-offs; diagrams and API sketches where useful |
| Alternatives considered | Other designs and why you did not choose them |
| Cross-cutting concerns | Security, privacy, observability and similar |
Ubl says a design document for a large project is often ten to twenty pages, and a mini design document of one to three pages suits a smaller change. He also says when not to write one: when the solution is not ambiguous, when the document would only be an implementation manual with no alternatives, or when prototyping would be quicker. A design document is for deciding between options. If there are none, build. Will Larson, in his staffeng.com guide on engineering strategy, gives the other side: write one for work that future projects will reuse, for changes that users will notice, and for anything that takes more than a month of engineering time.
Who decides
Many projects stall because nobody knows who can say yes. DACI is a model from the Atlassian team playbook that names four roles. The driver gathers the people and the information and moves the decision forward. The approver is the one person who makes the final call. Contributors are experts who give input: in the playbook's words they have a voice but not a vote. The informed are people whose work the decision affects; they are told the outcome and have neither a voice nor a vote.
Write the names on the kick-off page. The rule that matters most is that there is exactly one approver. A committee as approver means no one is accountable, and the decision will drift.
For Ritu's rewrite, she is the driver, the engineering manager approves scope and dates, the payments and support leads contribute, and finance is informed. When a new request arrives, everyone knows whom to ask and who decides.
A kick-off page
KICK-OFF: invoicing rewrite, owner Ritu Problem: invoices come from one script that only Sunil knows; a tax-rule change takes three weeks and has broken two month-end runs Goals: 1. A tax-rule change ships in under a week 2. Any engineer on the team can run and fix the job 3. Month-end run finishes before 9 am Non-goals: - no change to the invoice layout customers see - no new payment methods - no rewrite of the reporting screens Decision roles (DACI): Driver: Ritu Approver: Meena (eng manager) Contributors: payments lead, support lead Informed: finance, sales ops Design doc: yes, mini (2-3 pages), review by Friday Not doing a doc for: the PDF library swap (no alternatives)
A filled kick-off page. Names and details are invented.
The last line follows Ubl's advice: the library swap has no real alternative worth weighing, so it gets no document. Writing one would add work and no decision.
A teammate wants to write a design document for swapping one PDF library for the only other one that meets your needs. What do you advise?
- Skip it: there are no real alternatives to weigh, so the document would be an implementation manual.
- Record the choice in a line on the kick-off page and start building.
Name Ubl's sections of a design document.
- Context and scope, goals and non-goals, the design, alternatives considered, cross-cutting concerns.
In DACI, how many approvers should there be and why?
- One, so that someone is accountable for the decision.
- A group as approver tends to produce no decision.
Part 2 · Estimates in ranges
Why one number misleads
An estimate is a prediction of how long work will take. A single number such as "twenty days" hides how unsure you are, and it turns into a promise as soon as someone writes it down. A range keeps the uncertainty visible: "twenty to twenty-five days" says both the likely size and the risk.
People are reliably optimistic about their own plans. Daniel Kahneman and Amos Tversky named this the planning fallacy: we plan as if everything will go as intended and forget the delays that hit every project. The remedy is not to try harder to be accurate. It is to break the work into small pieces and give each a range, so that the shape of the uncertainty shows up in the total.
Break the work into pieces of a few days. A piece of two weeks hides several unknowns. A piece of two days can usually be pictured in full, so the estimate is better. If you cannot break a piece down, that is itself a finding: it means you do not yet understand it, and it belongs on the risk list in the next lesson.
Three-point estimates
A three-point estimate gives each piece three numbers: an optimistic value O (things go well), a most-likely value M, and a pessimistic value P (things go badly, but not disasters). One common way to combine them, from the PERT technique, is the weighted average (O + 4M + P) / 6, with the spread (P - O) / 6 as a rough measure of the uncertainty. It is not the only method: some teams take the plain average (O + M + P) / 3, and others simulate the total from many random draws. What matters more than the formula is that each piece carries a range.
Take the pieces of Ritu's invoicing rewrite. For the PDF output she thinks 4 days if the library works, 6 most likely, and 14 if the fonts and layout fight her. The expected value is (4 + 4 x 6 + 14) / 6 = 7 days, and the spread is (14 - 4) / 6 = 1.7 days. Notice that 7 is higher than her most likely value of 6. Her pessimistic case is much further from M than her optimistic case, and the average reflects that.
| Piece | O | M | P | Expected | Spread |
|---|---|---|---|---|---|
| Invoice model | 3 | 5 | 9 | 5.3 | 1.0 |
| GST rules | 2 | 4 | 8 | 4.3 | 1.0 |
| PDF output | 4 | 6 | 14 | 7.0 | 1.7 |
| Email send | 1 | 2 | 4 | 2.2 |
Adding the pieces
The most-likely values add up to 20 days. The expected values add up to 22.3 days. The gap of 2.3 days is the cost of the lopsided risks: each piece has more room to go wrong than to go right, and a sum of most-likely values ignores that. This is one reason a plan built only from most-likely numbers tends to run late.
For the spread of the total, the same method adds the squares of the pieces' spreads and takes the square root. That rule assumes the pieces go wrong independently; if one cause, such as a slow reviewer, hits every piece, the real range is wider. For these five that is 2.4 days. So Ritu quotes about 22.3 days plus or minus 2.4, which she rounds to 20 to 25 days. She tells the business the middle and the range, not only the middle.
Quote the range: 20 to 25 days (22.3 plus or minus 2.4, rounded)
Read it as steps
Five three-point estimates are summed to an expected total with a range.
The scene shows the numbers as the table did, with one more step: the range. Read the last row as the sentence you would say to the business.
Adding people
When a project is late, the instinct is to add engineers. Fred Brooks argued in The Mythical Man-Month (1975) that adding people to a late project tends to make it later, partly because new people must be taught and partly because communication grows faster than headcount. If everyone must talk to everyone, a team of n people has n(n - 1) / 2 communication paths.
| People | Paths | Working |
|---|---|---|
| 3 | 3 | 3 x 2 / 2 |
| 5 | 10 | 5 x 4 / 2 |
| 8 | 28 | 8 x 7 / 2 |
| 10 | 45 | 10 x 9 / 2 |
Going from five people to eight raises the paths from 10 to 28, nearly three times as many for 60 percent more people. That is a model and real teams do not talk to everyone. Still, it explains the feeling that a big team spends more time coordinating.
ESTIMATE SHEET: invoicing rewrite, Ritu Piece O M P Expected Spread Invoice model 3 5 9 5.3 1.0 GST rules 2 4 8 4.3 1.0 PDF output 4 6 14 7.0 1.7 Email send 1 2 4 2.2 0.5 Data backfill 2 3 7 3.5 0.8 Totals 12 20 42 22.3 2.4* * root of the summed squares, assuming independent pieces Quote: 22.3 plus or minus 2.4 person-days, 20 to 25 Assumptions: one engineer full time; review adds no wait Re-estimate: at the end of week 2, with the first piece done
An estimate sheet with every number computed. Pieces and days are invented.
Why is the sum of most-likely values usually optimistic?
- Each piece has more room to go wrong than to go right.
- The expected values, which weigh the pessimistic case, add up to more.
Part 3 · Finding risk early
What a risk is
A risk is something that might go wrong, with a chance and a cost. A risk that nobody could have seen is bad luck. A risk that someone saw and kept quiet about is the kind a lead can prevent. The aim of this lesson is to get those risks said out loud while there is still time to act.
Say who knows what. The person writing the code usually has the best view of the unknowns: an API they have not used, a data shape they have not seen, a dependency owned by another team. The lead's job is to make it safe and routine to say so, early.
Sort risks into two kinds. A known unknown is something you know you do not know, such as how the payment provider handles refunds. You can plan to find out. An unknown unknown only shows itself when the work starts, and the defence is to start the riskiest work first.
The pre-mortem
A pre-mortem is a meeting held before a project starts, in which the team imagines it has failed and works out why. The Atlassian team playbook has a version that runs for about 60 minutes with three to eleven people. Each person writes risks in silence, similar ideas are grouped, and everyone votes with three votes on the threats that worry them most. Everyone also votes on what is going well. Then the team discusses the three threats with most votes and leaves with an action, an owner and a deadline for each.
Silence at the start matters. If the most senior person speaks first, others adjust what they say. Writing alone gets every person's view onto the wall. The playbook's run steps, about 5 minutes of framing, 10 of silent writing, 5 of grouping, 5 each of threat and success voting, 25 of discussion and 5 of actions, add up to its 60 minutes; preparing the board comes before that. With eight people and three votes each, 24 threat votes land on the wall.
The playbook also votes on what is going well, so the team protects its strengths as well as fixing its weaknesses. Keep the output where the team can find it, and revisit it at each milestone.
Spikes, milestones and the critical path
A spike is a short, time-boxed piece of work done to answer one question, such as "can we render this invoice in the PDF library with our fonts?" Spend two days, write down the answer and throw away the code if you like. A spike turns a known unknown into a fact for the price of two days.
A milestone is a point in the plan with a visible outcome. Good milestones retire risk: "one real invoice produced end to end" proves the whole path early, even if ugly. Bad milestones are only dates.
The critical path is the longest chain of dependent tasks. It sets the earliest finish, because tasks off the path can slip a little without moving the end. Take Ritu's five pieces with most-likely days: the model is 5, the GST rules 4, the PDF output 6, email 2 and backfill 3. The GST rules and the PDF output both need the model. Email needs the PDF. Backfill needs the model and the GST rules.
Working forward gives the model at day 5, GST rules at 9, PDF at 11, email at 13 and backfill at 12. The longest chain is the model, then the PDF output, then email, 13 days. If two engineers work in parallel the project finishes in 13 days, not the 20 days of one engineer doing everything. Slip on the PDF output moves the end. A slip on backfill of one day would not, since it has a day of room.
A risk register
RISK REGISTER: invoicing rewrite, week 1 ID Risk Chance Cost Action R1 PDF fonts break the layout med high Spike, 2 days, Ritu, by Fri R2 GST rules differ by state high med Meet finance, Sunil, by Wed R3 Backfill is slow on 4 M rows med med Time a sample of 100k, Joy, wk2 R4 Sunil is the only one who knows high high Pair on 3 runs, the old script Ritu + Joy, wk 1-3 Critical path: model > PDF > email = 13 days (2 engineers) Review: every Friday; retire a row when its action is done Milestone 1: one real invoice end to end, end of week 2
A register with an action, an owner and a date per risk. Details are invented.
Every row has an action, an owner and a date. A risk with no action is a worry, not a plan. Rows leave the list when the action finishes, so the register shrinks as the project learns.
What is a spike?
- A short, time-boxed piece of work done to answer one question.
- It converts a known unknown into a fact cheaply.
In Ritu's plan the backfill ends on day 12 and the project on day 13. The backfill slips by two days. Does the end date move?
- Yes. The backfill now ends on day 14, after email on day 13, so the project ends on day 14.
- It had one day of slack, so only a slip of more than one day moves the end; the longest chain is now the model, the GST rules and the backfill.
Why does a pre-mortem start with silent writing?
- So that every person's view reaches the wall before the most senior voice shapes the others.
Part 4 · Running delivery
A written weekly status
A status update is a short written report of where a project stands. Write it every week on the same day, in the same place. A regular update means the people who depend on you never need to ask, and the questions they would have asked are already answered.
Keep it to four things. First, an overall colour: green (on track), amber (at risk, with a plan) or red (off track, help needed). Second, one reason for the colour, in one sentence. Third, what changed since last week. Fourth, what you need from someone, by name and by date.
The colour is not a mood. Define the colours with your readers in advance. Amber, for instance, can mean "the end date is at risk but I have a plan to recover it", and red can mean "the end date will move unless something changes". An update that is green every week until the week it is red teaches nobody anything.
Write for the busiest reader. Your director may read only the first two lines, so put the colour and the reason there. Details go below for those who want them. Link to the board or the plan instead of pasting it, so the update stays short and the plan stays in one place. If a dependency on another team is the cause of an amber, name the team and the date you need from them, so the update is a request as well as a report.
Raising a slip the day you see it
Delivery slips. What matters is when people hear about it. A slip that is announced on the day you notice it gives the business time to move something. A slip announced at the deadline gives them nothing but a surprise.
Put numbers on it. At week 3 of 8, Ritu planned 14 person-days of work and has done 11, so she is 3 days behind, which is 21.4 percent of what she planned for those weeks. She does not wait for week 6 to say so. She writes it in Friday's update, with the cause, the forecast and what she can do about it.
Be honest about what you know. "I am three days behind, because the PDF fonts took longer than the spike suggested; I expect to recover two days by dropping the preview screen" is useful. "Things are a bit slow" is not.
Scope cuts as options
When time is short, the lead has three levers: cut scope, move the date, or add people. Adding people is the slowest, as the estimates lesson showed. Moving the date is sometimes impossible. So scope is usually where you act.
Do not decide the cut alone. Offer it to the person who owns the decision as options, each with a cost. "We can drop the CSV export (3 days) or the bulk edit (4 days) and still hit the date. Dropping both recovers 7 days. Which matters more to the customers who asked?" That puts the trade-off in the hands of the person who knows the business, and it shows you have thought about it.
Say what was dropped, in writing, so that the cut is recorded and so that nobody is surprised at launch. Put the dropped items on a list for later, which keeps them from being forgotten and tells the team they were not wasted.
Prefer cuts that are easy to undo. Dropping a screen that can be added in the next release is a smaller decision than dropping a data check that is hard to retrofit. When you offer options, say which are reversible, since the owner of the decision will weigh that. A cut that keeps the door open costs much less than one that closes it.
A status update
STATUS: invoicing rewrite, week 3 of 8, Fri 4 Dec Overall: AMBER Reason: 3 days behind plan (11 of 14 planned person-days); PDF fonts took longer than the spike showed Changed since last week: + invoice model and GST rules merged + first real invoice produced from the test data - PDF layout for multi-page invoices not started Forecast: end of week 8 holds if we cut one item (below) Options for scope (decision needed from Meena by Tue): A. drop CSV export (3 days) B. drop bulk edit (4 days) C. drop both (7 days) and keep the days as buffer Needed: finance to confirm the GST rule list by Wed (Sunil) Next week: multi-page PDF, email send, backfill timing
A weekly status with colour, reason, changes, options and asks. Invented.
The update fits on one screen, names a person for the one thing it needs, and ends with the next week's plan. A reader can skim it in a minute.
What four things does a good weekly status carry?
- An overall colour, one reason for it, what changed and what you need from whom.
Why raise a slip the day you see it?
- The business then has time to move something.
- A slip announced at the deadline gives them only a surprise.
At week 3 you planned 14 person-days and did 11. How far behind are you?
- 3 days, which is about 21 percent of the plan for those weeks.
Part 5 · Finishing: migrations, launches and retrospectives
Why finishing is hard
Most projects begin well and end badly. The last ten percent is long, dull and spread across other teams. A project that does not finish leaves two systems where there was one, and that is worse than either alone.
A migration is the move of users or data from an old system to a new one. Will Larson, an engineering leader who writes about staff roles, describes migrations in three phases: derisk, enable and finish. The idea is that the hardest cases go first, then tooling makes the easy ones cheap, and the long tail is closed deliberately.
Why start with the hard cases? A migration that begins with the easiest teams gives a false sense of progress. The hard ones may reveal that the design does not work, and discovering that in month four is expensive. Discovering it in week two is cheap.
Derisk, enable, finish
| Phase | What you do | What it gives |
|---|---|---|
| Derisk | Share the design with the teams who will find it hardest; migrate one or two of them alongside the team | Proof the design works on the hard cases |
| Enable | Build tooling that migrates the easy majority automatically; make it self-service and reversible | Cheap migration for everyone else |
| Finish | Make new work use the new path, track the rest, move the long tail yourselves, delete the old path | One system, not two |
Larson's page says tooling should migrate the easy ninety percent programmatically. In the finish phase he suggests making new code use the new approach by default, for example with a linter that blocks the old one, so the remaining work stops growing. He also advises saving most of the celebration for when the migration completes, since half-finished migrations leave debt and bad incentives.
In Ritu's project the old invoicing script and the new service run side by side during the move. The payments team is the hardest customer, so they go first. If their month-end run fails on the new system, the project goes back to planning, which is a cheap place to learn.
One migration, five states
Watch for the hardest team going first, not the easiest
Read it as steps
A migration moves from planned through three phases to the old path being switched off.
The loop from derisk back to planned is the point of the first phase. A failure there costs days. The same failure after the easy ninety percent had moved would cost months.
Launch checklist and retrospective
A launch checklist is a short list of things to confirm before a change reaches customers: tests pass, a rollback path exists, the right people are told, monitoring is watching, and support has what it needs. It is written once and improved after each launch.
A retrospective is a meeting after a project to learn from it. A simple form uses the four questions of the after-action review. Knowledge at Wharton, which says the US Army developed the review in the 1970s, gives them as: what did we intend to accomplish, what did we actually do, why did the results differ from the plan, and what will we change or repeat.
LAUNCH CHECKLIST: invoicing service, cutover Sat 9 am [ ] Month-end dry run on a copy of production data: matches [ ] Rollback: switch the flag back, tested on staging [ ] Alerts: failed-run alert pages Ritu or Joy [ ] Support has the one-page "what changed" note [ ] Finance signed off the GST totals on 20 sample invoices [ ] Old script kept, switched off, not deleted, for 2 weeks [ ] Owner on call this weekend: Ritu; backup: Joy RETRO (after-action questions): Intended: ship in 8 weeks, 20 to 25 person-days of build Did: shipped in week 9; PDF fonts cost 3 days Why: the spike used one font; production used four Change: spike with real data next time; repeat the weekly status, which made the slip visible in week 3
A launch checklist and a retrospective in four questions. Invented.
Tooling has moved the easy ninety percent of teams, and the last few teams say they have no time. What does Larson's finish phase suggest?
- Stop the old path growing: make new code use the new one by default, for example with a linter.
- Track who is left, and have the migrating team move the long tail itself, then delete the old path.
Why migrate the hardest team first?
- It tests the design where it is most likely to fail, early and cheaply.
- The easiest teams give a false sense of progress.
Name the four questions of an after-action review.
- What did we intend, what did we actually do, why did the results differ, and what will we change or repeat.
All chapters · Previous: Leading People as an Engineer: Mentoring, Feedback, Reviews and Growth