Non-FictionProfessional's Cheat SheetEngineeringSelf-Help

OKR for Engineering Teams eBook

Set OKRs for system reliability, performance, tech

by Connolly Trista

  • English
  • 144 pages
  • 2026
  • SamEnrico

Set technical debt and velocity objectives for developers.

Formats

Free sample

Chapter 1: The Measurement Trap--–- Every engineering leader I have ever coached has walked into my office with the same haunted look. It is the look of someone who knows something is broken but cannot prove it, because all the numbers on their dashboard say everything is fine. Deployment frequency is up. Ticket velocity is green. The burndown chart looks beautiful.

And yet, the team is exhausted, the system crashes at least once a week, and the product manager is furious that the “simple” feature took three sprints instead of one. This is the measurement trap, and it is the single greatest obstacle to building a high-performing engineering organization.The measurement trap works like this. You decide to measure something because it seems important, and because you have been told that what gets measured gets managed. So you measure lines of code, because more code must mean more progress. You measure ticket velocity, because closing tickets looks like shipping.

You measure uptime, because the site should be up. And then, slowly, invisibly, the metrics stop being tools and become masters. Engineers start writing longer functions because longer functions add more lines of code. They break one logical task into ten tickets because ten tickets look better than one. They learn to game the uptime dashboard by suppressing alerts rather than fixing the underlying problem.

The numbers go up. The system goes down. And you cannot figure out why.This chapter exists to save you from that trap. Before we can talk about setting OKRs for reliability, performance, debt, delivery, and security, we must first understand why the metrics most engineering teams use today actively sabotage the outcomes they claim to want. We must distinguish activity from outcome, throughput from impact, and busyness from progress.

And we must confront an uncomfortable truth: most of what you currently measure is either useless or actively harmful. Let me show you why.The LOC Delusion In 1981, a software engineer named Fred Brooks wrote a book called The Mythical Man-Month, in which he made a now-famous observation: adding more people to a late software project only makes it later. But Brooks also made another observation that received less attention but is equally important. He noted that measuring programmer productivity by lines of code is like measuring aircraft design by weight. Yes, weight matters, but a lighter plane is not automatically a better plane, and a plane that crashes because you removed too much weight is worse than useless.And yet, decades later, Lines of Code remains one of the most common metrics in engineering management.

I have sat in quarterly reviews where leaders celebrated a team that delivered fifty thousand new lines of code, while a neighboring team that deleted forty thousand lines of legacy code was quietly reprimanded for low productivity. The absurdity of this situation is almost too obvious to state, but let me state it anyway. Deleting code is often the most valuable thing an engineer can do. Every line of code is a liability. It must be read, understood, tested, deployed, secured, and maintained.

The best code is often the code you never write. The second-best code is the code you delete. But no one ever got a bonus for deleting code, because deleting code makes the LOC metric go backward.Consider a real example from my own experience. A payment processing team I worked with inherited a monolithic system that processed roughly five million dollars in daily transactions. The system was fragile, poorly documented, and required a full day of manual testing before every deployment.

The team spent six months refactoring, which involved deleting approximately thirty thousand lines of redundant or obsolete code and replacing them with fifteen thousand lines of clean, modular code. The net change was negative fifteen thousand lines. The team delivered negative productivity by the LOC standard. But after the refactor, deployment time dropped from eight hours to forty-five minutes. Production bugs fell by seventy percent.

The team went from dreading deployments to deploying on demand. Which number matters more: negative fifteen thousand lines, or seventy percent fewer bugs? If you answered the latter, congratulations. You are already ahead of most engineering dashboards.The deeper problem with LOC is not just that it rewards verbosity, although it does. The deeper problem is that it confuses effort with impact.

Writing code is effort. Deleting old code is also effort. Neither tells you whether the code actually does something valuable for your users or your business. A team could spend six months writing the world’s most beautiful, elegant, perfectly tested implementation of a feature that nobody wants. That team would show a massive increase in LOC and a massive decrease in customer satisfaction, but the metric would only capture the increase.

The metric would lie.Velocity and the Gaming Epidemic If LOC is the oldest lie in engineering metrics, then velocity is the most seductive. Velocity, for those unfamiliar with Agile terminology, is the number of story points or tickets a team completes in a sprint. The idea is simple: if you measure how much work a team finishes, you can predict how much work they will finish in the future. You can plan releases, forecast delivery dates, and hold teams accountable. What could possibly go wrong?Everything.

Everything can go wrong.The fundamental problem with velocity is that it is an activity metric disguised as an outcome metric. It measures throughput, not impact. A team can have high velocity and deliver zero customer value. They can close twenty tickets in a sprint, all of which are trivial bug fixes or cosmetic changes, and celebrate their productivity while the system rots underneath them. Worse, velocity creates powerful perverse incentives that any smart engineer will exploit within days.I once watched a team transform their velocity from forty points per sprint to eighty points per sprint over a single quarter.

Management was thrilled. The team was celebrated at the all-hands meeting. And then, quietly, one of the senior engineers confessed what had actually happened. They had simply redefined their story points. Previously, a “one-point” ticket was a simple text change.

Now, a “one-point” ticket was a thirty-second documentation update. Everything got repointed downward. The team was doing exactly the same amount of work, but their velocity had doubled. This is not cheating. This is rational behavior in a system that measures the wrong thing.The gaming goes much deeper than repointing.

Teams learn to break features into smaller tickets. A feature that should be one ticket becomes ten: database schema change, API endpoint, frontend component, unit tests, integration tests, documentation, monitoring, alerting, rollback plan, and post-deploy validation. Ten tickets instead of one. Velocity skyrockets. Actual delivery time does not change at all.

Some teams go further, creating “spike tickets” for research, “investigation tickets” for debugging, and “meeting tickets” for coordination. Every meeting becomes a ticket. Every Slack conversation becomes a ticket. Pretty soon, the team is closing fifty tickets a week and delivering approximately nothing.The most insidious form of velocity gaming, however, is the quality trade-off. When velocity is the only metric that matters, quality becomes an externality.

Teams skip tests because tests take time and do not generate story points. They skip documentation because documentation does not…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Set technical debt and velocity objectives for developers.

Details

Author
Connolly Trista
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Professional's Cheat Sheet, Engineering, Self-Help, Engineering OKRs
Released
2026-06-01
Pages (approx.)
144
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Connolly Trista

See all

You may also like

See all