Senior Engineering CraftVol. 24 · Craft
0 / 0

Shelves / Senior Engineering Craft

SC·07

Leading Technical Work

What a tech lead does between "here's the goal" and "it shipped": breaking work down, flow and Little's law, why limiting work in progress makes teams faster, prioritising by cost of delay, coordinating dependencies and interfaces across teams, keeping quality and operability in the plan, leading incidents and launches, measuring delivery with the DORA metrics without turning them into targets, retrospectives, sustainable pace, and managing a senior engineer's own time and career; with a lab that simulates a team at four levels of work in progress.

21 topics · ~10 min read · 16-question quiz
Updated Suggest a correction

Start here: the team that started everything

TiffinBox's ordering squad (four engineers) always had lots in progress: each person juggled three or more items, to "keep things moving" while waiting on reviews and other teams. The lab simulated a four-person team where each item needs about five days of focused work (with realistic variation), and each extra item an engineer juggles costs 15% of their day in context switching. It varied only how many items each engineer kept in progress:

WIP per engineer Team WIP Throughput (items/day) Median cycle time (days) Mean cycle time Little's law: WIP ÷ throughput
1 4 0.62 6 6.4 6.4
2 8 0.57 13 14.0 14.0
3 12 0.49 21 24.0 24.5
5 20 0.32 51 60.2 62.5

With five items each, the team finished half as many items and each item took eight times longer from start to finish, compared with one at a time. Even with no switching cost at all, Little's law means cycle time grows in proportion to WIP at the same throughput; switching costs make throughput fall too. The simulation's numbers depend on its assumptions (a 15% switching cost is a modelling choice, not a measured constant), but the direction is general: stop starting, start finishing.

Leading technical work is mostly about flow like this: making sure the right things get finished, at a sustainable pace, with quality built in.

How deep to go

Volume 17 defines six mastery levels. For leading technical work:

Level What you can do
L1 Deliver your own tasks predictably and flag blockers
L2 Coordinate a small feature with a teammate or two
L3 Lead a squad's project: plan, sequence, unblock, keep quality
L4 Lead multi-squad projects; manage flow, dependencies and risk; lead incidents
L5 Set delivery practices and technical direction for a group of teams
L6 Lead organisation-wide technical programmes and shape how the organisation builds

The tech lead's job

A tech lead (formal or not) is accountable for a team's technical outcome, not for doing all its technical work. The job spans:

  • direction: the technical approach, through design docs and decisions (chapters 01, 04);
  • planning: breaking work down, sequencing, forecasting (chapter 03);
  • flow: keeping work moving and finishing;
  • quality and operability: the system works, is observable and can be supported;
  • coordination: with product, design, other teams and stakeholders (chapter 06);
  • people: growing the team's skills and spreading ownership (chapter 05).

Will Larson's Staff Engineer describes common archetypes at staff level (tech lead, architect, solver, right hand); senior engineers often do a mix, and should know which their team needs from them now.

Breaking work down

Turn a goal into a sequence of thin vertical slices, each delivering something usable and testable end to end ("a test user in Dubai can browse menus in Arabic"), rather than horizontal layers ("all the database work, then all the APIs, then all the UI"), which deliver nothing until the end and hide integration risk. Order slices so that:

  1. the riskiest unknowns are tackled first;
  2. dependencies on other teams start early;
  3. something demonstrable exists every week or two;
  4. later slices can be cut if time runs out (chapter 03's fixed date, variable scope).

Flow

Little's law

For any stable system, average WIP = throughput × average cycle time. It holds for queues in a café, packets in a router (Volume 5) and tickets on a board. For a team, it means: at a given throughput, every extra item in progress lengthens how long each item takes. In the lab, the Little's-law column (WIP ÷ throughput) matched the measured mean cycle time.

Why limiting WIP helps

  • Less context switching: fewer items to reload into your head (the lab's assumed 15% per extra item; real costs vary by person and task).
  • Less waiting: items don't sit half-done waiting for review or another team while new ones start.
  • Faster feedback and earlier value: finished work can be released and learned from.
  • Problems surface: with a WIP limit, a blocked item blocks the team, so the team fixes the blocker instead of hiding it.

Practices: a visible board with explicit WIP limits per column (Kanban); "review before you start" as a team rule; swarming on the oldest item; small items (chapter 02); and tracking cycle time and ageing WIP (items in progress for too long).

Prioritisation

There's always more to do than capacity. Ways to choose:

  • Cost of delay: what does each week without this cost? Revenue, customer pain, risk, a fixed deadline. Dividing by duration (CD3) favours short, high-value work.
  • Value vs effort quick-wins grids, for rough triage.
  • Explicit capacity allocation: for example, a share for product features, a share for reliability and debt (chapter 04), a share for unplanned work, agreed with product and revisited quarterly.
  • Say no or not now clearly (chapter 06), and record what was deprioritised so it isn't silently forgotten.

Prioritisation is a joint decision with product management; the tech lead brings cost, risk and technical opportunity to the table.

Coordinating across teams

Most multi-team delays happen at the boundaries:

  • Define interfaces early: API and event contracts in a design doc or schema, agreed before both sides build. Contract tests (Volume 8) keep them honest.
  • Track dependencies explicitly: who needs what from whom, by when; check weekly; escalate early when a date slips.
  • One accountable owner for the overall project, even when work spans teams.
  • A regular, short sync among leads, plus a written status (chapter 06).
  • Shared definitions of done, including documentation, monitoring and handover to operations.
  • Reduce dependencies where possible: self-service platforms, feature flags, and teams that own whole slices.

Quality and operability in the plan

Quality isn't a phase at the end:

  • Definition of done includes tests, code review, observability (metrics, logs, alerts), documentation, security and privacy review where needed, and a rollout plan.
  • SLOs and error budgets (Volume 7) turn reliability into a planning input: when the budget is spent, reliability work comes first.
  • Launch readiness reviews for significant launches: load tested, alerts and runbooks in place, on-call briefed, rollback rehearsed, support and stakeholders informed.
  • Operational load is tracked and budgeted: pages per week, toil hours, recurring incidents.

Leading incidents

When production breaks, someone must lead. The incident commander (Volume 7) doesn't debug; they coordinate: assign roles (investigators, communications, scribe), set the cadence of updates, make decisions (roll back now?), protect investigators from interruptions, and declare the end. Afterwards they ensure a blameless postmortem happens and its actions are owned and finished. Senior engineers should be able to command incidents and to coach others into the role.

Measuring delivery

The DORA research programme (Forsgren, Humble and Kim's Accelerate, and the annual State of DevOps reports) identified four measures that correlate with organisational performance:

Metric Measures
deployment frequency how often changes reach production
lead time for changes commit to production
change failure rate share of deployments causing a failure needing remediation
time to restore service how quickly failures are fixed

Later reports added reliability. The SPACE framework (Forsgren and colleagues, 2021) adds satisfaction, activity, communication and efficiency: no single number captures developer productivity.

Use metrics to see your system and improve it. Goodhart's law ("when a measure becomes a target, it ceases to be a good measure") is why individual targets on commits, PRs or points backfire: people optimise the number, and the invisible work (reviews, mentoring, incident response) stops.

Retrospectives and continuous improvement

Every few weeks, and after significant events, the team asks: what went well, what didn't, what will we change? Keep the output small: two or three concrete changes with owners, reviewed next time. Vary the format to keep it fresh, include data (cycle time, incidents, carry-over), and make it safe to be honest (chapter 05).

Sustainable pace

Crunch borrows from the future: tired engineers write more bugs, make worse decisions, and leave. Occasional pushes for a real deadline can be fine if they're rare, short and followed by recovery. Persistent overtime is a planning failure to fix with scope and priorities, not a sign of commitment. Watch for warning signs in yourself and the team: irritability, cynicism, rising incident rates, people going quiet.

Managing your own time

Senior work fragments the day. Paul Graham's essay Maker's Schedule, Manager's Schedule names the problem: building needs long uninterrupted blocks; coordinating fills the day with meetings. Approaches:

  • Protect focus blocks in your calendar; cluster meetings.
  • Decide your mix deliberately with your manager: how much coding, reviewing, designing, mentoring and coordinating this quarter needs.
  • Stay hands-on enough to keep your judgment grounded: take some real implementation work, ideally not on the critical path, and do on-call.
  • Keep a work log ("brag document"): decisions, designs, incidents led, people helped. It makes your impact visible at review time and helps you notice where your time goes.

Common traps

  • Starting more to "keep busy", raising WIP and cycle time.
  • Horizontal slices that deliver nothing until the end.
  • Dependencies discovered late.
  • Quality and operations left for the end.
  • Individual productivity targets.
  • Retros without follow-through.
  • Chronic overtime treated as normal.
  • A tech lead who writes all the hard code and becomes the bottleneck.

Lab: work in progress and flow

Setup. A Python 3.13 simulation (standard library, fixed seed) of a four-engineer team over 400 working days. Each work item needs a lognormally distributed amount of focused work with a median of 5 days (σ = 0.5). Each engineer always keeps exactly k items in progress (k = 1, 2, 3 or 5), starting a new one whenever one finishes, and splits their day evenly among their items. Each item beyond the first costs 15% of the engineer's daily capacity in context switching. The first 100 days are discarded as warm-up. Reported: throughput (items finished per day), median and mean cycle time (start to finish, in days), and WIP ÷ throughput as Little's law predicts. The switching cost and work sizes are assumptions chosen for illustration, not measurements.

Results

WIP per engineer Team WIP Throughput (items/day) Median cycle time Mean cycle time WIP ÷ throughput
1 4 0.62 6.0 6.4 6.4
2 8 0.57 13.0 14.0 14.0
3 12 0.49 21.0 24.0 24.5
5 20 0.32 51.0 60.2 62.5

What it shows

  • Little's law holds: WIP ÷ throughput matches the measured mean cycle time (6.4, 14.0, 24.0 vs 24.5, 60.2 vs 62.5; small gaps come from warm-up and items still in progress at the end).
  • More WIP lengthens every item's journey even before switching costs: doubling WIP at similar throughput roughly doubles cycle time.
  • Switching costs make it worse: throughput fell from 0.62 to 0.32 items/day, so the team at WIP 5 delivered about half as much, eight times more slowly per item.
  • The cure is cheap: finishing before starting, with no extra people or overtime.

Try it yourself

  1. Set the switching cost to 0 and to 30%, and compare throughput at WIP 1 and 3.
  2. Add waiting: each item spends a random 0–4 days waiting for review, during which its engineer may start another item. Find the WIP limit that maximises throughput.
  3. From your team's board, record WIP and finished items for four weeks, and check Little's law against your measured cycle time.
  4. Run a two-week experiment with a team WIP limit of one item per person plus one, and compare cycle times before and after.
  5. Add an "expedite" lane for urgent items and see how it affects other items' cycle times.

Revision sheet: leading technical work

Key ideas

  • A tech lead owns the team's technical outcome: direction, planning, flow, quality, coordination, people.
  • Break work into thin vertical slices; riskiest and most dependent first; demonstrable every week or two.
  • Little's law: WIP = throughput × cycle time. Limit WIP; finish before starting; track cycle time and ageing items.
  • Prioritise with cost of delay (CD3), value vs effort and explicit capacity allocation, jointly with product.
  • Cross-team: early interface contracts, tracked dependencies, one owner, short syncs, shared definition of done.
  • Quality in the plan: definition of done, SLOs and error budgets, launch readiness, operational load.
  • Incident commanders coordinate; blameless postmortems with finished actions.
  • DORA metrics and SPACE for the system, never individual targets (Goodhart's law).
  • Retros with a few owned changes; sustainable pace; protect focus time; keep a work log.

Numbers to remember

  • Lab: WIP 1 → 0.62 items/day, 6-day median cycle; WIP 5 → 0.32 items/day, 51-day median.
  • DORA: deployment frequency, lead time, change failure rate, time to restore.

Glossary

  • WIP: work in progress.
  • Cycle time: start to finish for one item.
  • Throughput: items finished per period.
  • Little's law: L = λW.
  • Cost of delay / CD3: value lost per unit time / cost of delay divided by duration.
  • Vertical slice: an end-to-end increment of value.
  • Error budget: allowed unreliability under an SLO.
  • Goodhart's law: targets distort measures.