logo
  • About Us
  • Press
  • BuyerHub
  • Case Studies
  • Services
  • Design
  • Tech Stack
  • EngineerHub
  • Careers
  • Blog
Contact Us
logo
  • About Us
  • Press
  • BuyerHub
  • Case Studies
  • Services
  • Design
  • Tech Stack
  • EngineerHub
  • Careers
  • Blog
  • Contact Us

© 2026 BlueTrail Software.

←Back to Blog
EngineeringAI & AutomationLeadership & StrategyBusiness Impact

Goodhart's Law Is Breaking Your Software Development Process. Goldratt Explains Why.

Remi Vespa, PhDRemi Vespa, PhD|Nov 23, 2026|Read 6 min

On this page

What Goodhart's Law Means for Software Engineering

Goodhart's Law Is Breaking Your Software Development Process. Goldratt Explains Why.

Why engineering productivity metrics can improve while software delivery gets slower and what AI changes about the bottleneck.

“When a measure becomes a target, it ceases to be a good measure.”

The sentence is usually associated with Goodhart's Law, but the wording comes from anthropologist Marilyn Strathern, who used it in 1997 to restate an idea Charles Goodhart had introduced in economics in 1975.[1][2]

The principle applies remarkably well to software engineering.

  • A team measured on velocity delivers more story points.

  • A team measured on code output produces more code.

  • A team measured on bugs resolved closes more tickets.

Every one of those numbers can improve while the product reaches customers no faster than before.

The teams are not necessarily underperforming. They are responding rationally to what the organization measures and rewards. That is the problem with turning a proxy into a target: eventually, the number starts improving without the underlying outcome improving with it.

At Blue Trail Software, we work with engineering organizations on complex digital products, modernization, and AI adoption. One pattern we repeatedly see is that companies have plenty of engineering metrics but still cannot answer a more important question:

Previous BlogBuilding Competitive Advantage Through Custom Web ApplicationsBlue Trail SoftwareBlue Trail Software· Oct 26, 2026
gradient

Where is work actually getting stuck?

What Goodhart's Law Means for Software Engineering

Goodhart's Law is often simplified to mean that a metric becomes less useful once people are measured against it. In software development, that can happen with almost any productivity metric.

  • Velocity can encourage teams to optimize for story points.

  • Lines of code can encourage output rather than useful functionality.

  • Ticket closure can encourage teams to close work rather than solve the underlying problem.

Even a metric nobody is deliberately manipulating can still be misleading because it describes only one stage of a larger system. That is the deeper problem.

A development organization is not a collection of independent stages. Requirements, design, architecture, development, testing, security, deployment, compliance, and other functions are connected. The time spent improving one stage does not necessarily improve the speed of the whole system.

This is where Eliyahu Goldratt's Theory of Constraints becomes useful.

Goldratt's Theory of Constraints: Find the Stage That Sets the Pace

Goldratt's Theory of Constraints argues that the performance of a system is governed by its constraint: the part of the system that limits overall throughput.[3] In simple terms, work cannot move through a system faster than its most restrictive constraint allows.

Improve a stage that is not the constraint, and the total system may not get any faster. You may simply create more work waiting for the next stage.

This explains why teams can make impressive improvements locally while the business sees little change.

  • Engineering reduces development time. The work then waits for a security review.

  • Testing becomes faster. Releases still wait for compliance approval.

  • Deployment becomes more automated. Requirements remain unclear, so engineers are building the wrong thing faster.

The individual metrics are real. The improvement may be real. But the system has not improved.

A constraint that is removed does not mean the problem is over. The constraint moves.

That is why improving software delivery is not a one-time optimization exercise. The organization has to continuously identify what is limiting the flow of value and address that constraint.

Why AI Can Make the Problem Worse

AI makes this more important, not less. Coding assistants can make it dramatically easier to generate code. But faster code generation only improves the system when coding is actually the constraint.

If the bottleneck is requirements, architecture, security review, testing, deployment, or understanding an existing codebase, generating more code simply creates more work that has to wait somewhere else.

The bottleneck does not disappear. It moves.

And when organizations measure AI success primarily through output—more code, more tickets, more commits, more completed tasks—they can create exactly the conditions Goodhart's Law warns about.

The organization sees the metric improving and assumes productivity has improved. Meanwhile, the customer may still be waiting.

Goodhart's Law Is Breaking Your Software Development Process Blog: Image 1

The Measurement Problem Is Bigger Than Engineering

Most organizations can tell you how long individual engineering activities take. Far fewer can tell you how long it takes for an idea to become something a customer can actually use.

The difference matters. Stage-level metrics are useful, but they do not automatically create a system-level view. Metrics may come from different tools, use different definitions, cover different boundaries, or measure different points in time.

The result is often a dashboard full of numbers that no one can confidently connect.

Without a consistent measurement layer, the constraint becomes a matter of opinion. And the loudest opinion usually wins.

The boundary of measurement matters too. An organization does not exist simply to produce software. It exists to deliver something valuable to customers.

If engineering cuts development lead time in half but the work then waits three weeks for compliance review, a launch window, or another business process, the organization has not cut the time required to deliver value.

The constraint belongs to the value stream, not necessarily to engineering. That distinction is easy to miss from inside an engineering organization.

The Constraint We See Most Often: Unclear Specification

In our work, one constraint appears repeatedly: the organization does not have a single, agreed definition of what the software is supposed to do.

  • In a legacy system, that knowledge may live in code, undocumented behavior, old tickets, and the memories of the people who have maintained the system.

  • In a new product, it may live in conversations, assumptions, scattered documentation, and decisions that were never written down.

The result is the same. Engineering is working toward an unclear target.

And AI pointed at an unclear target produces more of the wrong thing faster.

This is why specification can become one of the highest-leverage investments an organization makes before scaling AI.

For an existing system, the specification has to be recovered. For a new system, it has to be defined properly rather than assumed.

Either way, the objective is the same: give engineers and AI a clear definition of what the organization has actually agreed to build.

Why This Matters for Legacy Modernization

This is also why I approach legacy modernization differently from a simple patch-or-rewrite decision.

Patching can keep a system running while preserving the underlying problem. Over time, each change adds more behavior and dependencies that may not be documented.

A rewrite looks like the clean alternative, but it often treats the existing code as the source of truth.

Code can tell you what a system does. It does not necessarily tell you what the business still needs it to do.

The step in between is to extract what the system actually does into a usable specification and then determine what the business still needs.

That changes modernization from a technical migration into a business decision.

It is also where AI can be particularly useful. AI can help analyze large codebases, identify behavior and dependencies, and propose an initial representation of how a system works subject to engineering review and validation.

The goal is not to automate the decision. The goal is to make the decision better informed.

Goodhart's Law Is Breaking Your Software Development Process Blog: Image 2

The Metric That Matters Most

There is one question worth more than the rest of the dashboard combined:

How long does it take an idea to reach a customer?

That number connects engineering work to the outcome the business actually cares about. It does not make stage-level metrics irrelevant. It puts them in context.

  • Velocity can tell you something about one part of the system.

  • Defect counts can tell you something about another.

  • Deployment frequency can tell you something else.

But none of them, by themselves, tells you where the system is constrained or whether the organization is delivering value faster.

Goodhart's Law names the measurement trap. Goldratt's Theory of Constraints provides a way to think about the system behind the numbers:

Measure the flow of value. Find the constraint. Improve the constraint. Then find the next one.

The goal is not more code. It is more valuable, delivered with less friction.

References

  • [1] Goodhart, C. A. E. (1975). Problems of Monetary Management: The UK Experience. Papers in Monetary Economics, Vol. 1.

  • [2] Strathern, Marilyn (1997). “‘Improving Ratings’: Audit in the British University System.” European Review, 5(3), 305–321.

  • [3] Goldratt, Eliyahu M. & Jeff Cox (1984). The Goal: A Process of Ongoing Improvement.

Blue Trail Software
Holding Inc.

Address:

182 Howard Street, Suite 226
San Francisco, CA 94105, USA

Contact:

sales@bluetrail.software

Phone:

(415) 247-9503

Links

  • About Us
  • Services
  • Tech Stack
  • EngineerHub
  • Careers
  • Jobs
  • Press
  • Case Studies
  • Blog
  • Questions & Answers
  • Contact

Legal

  • Privacy Policy

Social Proof

2026 BlueTrail Software. All rights reserved.

footer-gradient