Skip to main content

Goodhart's Law and the Second Loop

· 7 min read
Dave Hulbert
Builder and maintainer of Wardley Leadership Strategies

Say you ask a coding agent to get more people through the setup wizard for a project management app. It finds that the last step times out on slow connections. People press the button again and sometimes create two workspaces. The agent fixes the retry, opens a PR and watches a small rollout. More people finish setup and fewer get stuck. I'd be happy to wake up to that.

Now give the agent the same job every hour. It tries making the invitation step optional, and setup completion goes up again. People who came to try the app on their own can get straight to work. Others finish the wizard, land in an empty workspace and leave. The agent has found two quite different ways to raise the same number. How long before the team asks what finishing setup was supposed to achieve?

What a fast first loop buys you​

In Autonomously Executed Strategy, One Year On, I looked at Uber's AutoClean. A stale feature flag can start a job that writes a patch and fixes it if CI fails. The owning team gets a change to review without having to go looking for the work. Cloudflare has described a similar handoff from production errors to a coding agent that proposes a fix. Uber's AutoClean write-up and Cloudflare's production issue detection.

The next step is a standing goal with feedback after each rollout. An agent can pick a change, open a PR, and use what happened after deployment to decide what to try next. Even with review in the middle, that can make worthwhile work cheap enough to do. Snap reports that Alchemist halved the time for its first feature-selection workflow, from four weeks to two. Engineers still set the objectives and approve the experiment plans. I'd count getting a useful answer two weeks earlier as a gain in its own right. Snap's Alchemist write-up.

Setup completion was a decent place to start. It pointed straight to a real bug. It stood in for a belief that people who finish setup are ready to use the product. Once the agent can alter what setup asks of people, it can improve completion without improving readiness. That's Goodhart's law at work. The steps that used to make the measure informative are now among the things the agent can change. Manheim and Garrabrant on the variants of Goodhart's law.

Follow the improvement​

In Double-Loop Learning Keeps Wardley Maps Honest, the second loop asks whether the map is built around the right user need. Here it's the same question at the scale of a single feature. The first loop finds better ways to get people through setup. The second asks what people need to be able to do when they get there. Chris Argyris on double-loop learning.

Suppose the team looks at the people who came back. Some started alone, put a real piece of work in the app, then invited a colleague to help with it. The team had thought an invitation was a prerequisite for getting started. For these users, having something worth sharing was what made the invitation useful. The team could test a new goal, helping people put their first piece of real work in the app. That gives the agent useful things to try that the wizard metric would barely notice, like making it easier to import a small project from a spreadsheet.

I'd keep the retry fix and test whether people do better with invitations offered after they've added some work. I'd also look for the same pattern elsewhere in the product. Which other features ask people to set up a team before they've got anything to do together? The first loop made a worthwhile change. The second found a plausible reason it worked for some people and opened up more places to test what the team had learnt.

Give the team a way to change the brief​

I'd put the intent and its assumptions next to the goal the agent reads. For this one, write down that finishing setup is useful insofar as it helps someone start real work. Name who can change the goal and what evidence would bring the decision forward. In Executable Doctrine I wrote about making rules runnable. A team should be able to revise the rule and see which experiments ran under each version.

There are a few ways to keep finding out whether that brief holds up.

  • Pair the metric with a counter-metric. Track how many new users create or import a project of their own within a day, including those who never finish the wizard. For a change to invitations, also look at whether the teams who do want to collaborate can still get their colleagues in. Microsoft Research on guardrail metrics.
  • Hold some evidence back. Keep a measure such as next-week return for decisions about which rollouts to widen. Check promising changes against fresh users or journey replays that the agent hasn't already learnt from. If every replay score goes straight back into the next attempt, the agent can start tuning to the replays too. Dwork and colleagues on reusing holdouts.
  • Decide what counts as good enough. Give setup errors an acceptable ceiling. Once the app stays below it, the agent can move on and the team can spend its time on a bigger source of friction. Google SRE's example error budget policy.
  • Give someone a different job. Ask another agent to try importing a real project on a small screen, or ask support what callers had to do after setup. Let AI pull out examples from feedback and replays, including people who succeeded in surprising ways. Give the reviewer access to the underlying accounts of what happened so they can follow up when the summary misses something.

Review at the speed the evidence allows​

An hourly deploy can tell you in minutes whether a common error has gone away. It still takes a week to find out who comes back a week later. Keep the rollout small while that evidence comes in, and limit how many changes you try on the same users so you can tell which one helped. The agent can keep testing ideas on a separate cohort or pick up work elsewhere.

If support finds a new problem on Tuesday, the person on duty should be able to pause the rollout on Tuesday. If the first cohort shows that people who import work are getting value sooner, the team should be able to authorise the next experiment as soon as it has reviewed the evidence. I'd give the team both decisions in its rollout process. A monthly review can look for patterns across teams, including cases where one team's gains send more work to another.

Some of that review can run automatically. If an agent starts proposing changes to the goals, sample the cases it waved through and look at which users and outcomes its reviews tend to miss. That's a version of the same question one level up, and it can sit with the people who already own decisions at that level.

Pick one goal you already give to an agent. If it beats the target next week, what evidence would make you stop, and what evidence would make you give it a more ambitious job? Who can make either decision while the work is still running?