Course outline
The CTO's playbook for AI coding agents · Module 2: Measuring impact
Running a fair experiment: baselines, controls and the novelty effect
Before and after is not an experiment. Set a baseline, keep a comparison group, wait out the novelty spike and control for task mix, so the result survives a skeptical CFO.
Lesson 7 / 20 · ⏱ 9 min
“We turned agents on in March and cycle time dropped 20%.” Maybe. March is also when the hiring freeze ended, the big migration shipped and everyone came back from holidays. A claim that survives a skeptical CFO needs a baseline, a comparison and enough time.
What a fair result looks like
Note the comparison line also drifts up: something else improved during the pilot. Without it, you would have credited the agents for that too.
The five threats to your conclusion
| Threat | What it looks like | The fix |
|---|---|---|
| No baseline | “Lead time is 3 days now”, compared to nothing | Capture 6–8 weeks of the same metrics before rollout |
| No comparison group | Org-wide change in the same quarter as a reorg | Keep a similar team on the old way, or stagger rollout team by team |
| Novelty effect | Enthusiastic first weeks, the easy tasks delegated first | Run at least 8–12 weeks; judge on the last half |
| Task mix | Pilot team happened to get greenfield work, control got legacy bugs | Compare like with like: segment by work type or repo |
| Volunteer bias | Only the keenest engineers joined the pilot | Assign teams, or at least compare volunteers to their own baseline |
Design it in five steps
- 1
Before
Write the hypothesis
One sentence with a number: 'agent-assisted teams cut median PR cycle time by 15% without raising change failure rate.' If you can't write it, you're not ready to measure.
- 2
Before
Freeze the baseline
Pull 6–8 weeks of the metric stack from lesson 2-2 for every team involved. Lock the definitions.
- 3
Week 0
Pick the groups
Matched teams or a staggered schedule. Write down what kind of work each will do in the period.
- 4
Weeks 1–12
Run and don't touch
No mid-flight metric changes, no new targets. Log big external events (incidents, reorgs, launches) as they happen.
- 5
After
Judge the settled half
Compare the last 4–6 weeks of each group to its own baseline, then the groups to each other. Report the range, not just the best number.
For the program logistics around a pilot (who owns it, how to staff it), see Module 1 and the developer productivity initiative guide.
Valid or confounded?
Sort each claim your team might bring you. Would it hold up in front of the board?
🎮 Valid conclusion or confounded?
1 / 8 · Score: 0
Read the claim, decide whether the evidence supports it.
Before you move on
✅ Key takeaways
0 / 5 completed