Nivedit Jain

Observing Is Where Engineering Starts: The Past, Present and the Future

When did engineering start? Some people would argue that it started with the steam engine during the Industrial Revolution, but I would argue that engineering started the day humans began observing their surroundings and putting in the effort to understand the what, why and how of those observations, in order to improve the thing they observed.

Early cavemen observed which shape of stone poked into fish faster, and so built a tool for it.

In the 17th century, Newton observed an apple and started to wonder why.

Even the first Industrial Revolution owes a lot to one observation. Around 1763, James Watt was asked to repair a model Newcomen steam engine and noticed how much steam it wasted by cooling and reheating its cylinder on every stroke. He asked why, and his fix, the separate condenser, made steam engines efficient enough to power mills and factories across Britain.

Almost all progress has been made with a curious observation and by asking questions about that observation.

This obsession with knowing, observing and asking questions is what separates a good engineering culture from the rest. The best of the best organizations keep observing everything, every single thing, and they absolutely love to analyze this to keep improving their systems, 1% every day, slowly achieving such a high output-to-input ratio that it becomes absurd to compete. And no, I am not talking about just software companies; I am talking about every possible engineering-driven organization.

Through one of my friends, I had the opportunity to visit one of the largest Korean electronics manufacturers, and I was surprised to learn the role of an engineer there. All they do is see logs from production lines which produce electronics worth tens of millions of USD, from fridges, televisions, washing machines, etc. They build dashboards and alerting systems on top of them, establish the key metrics they want to measure and keep improving them by asking the right questions. Observe, Improve, Observe, Improve: the cycle keeps on.

Similar was the case with one of the world's largest cotton thread manufacturers. I am very close to one of the production owners there, and his entire role is to keep looking at his screen for dashboards and, whenever he receives an alert call or SMS that something is going off, to align teams to figure out why and keep improving. Again, the cycle is Observe, Improve, Observe, Improve.

Similar is my experience working with Microsoft and seeing my friends at large tech firms: most of an engineer's time does not go into writing code, but into seeing logs, building dashboards around them, keeping track of performance, figuring out alerts and continuing to observe, improve, observe, improve.

This cycle has always been the core of good engineering and will always be. This cycle is probably the strongest asset a company or an individual can build. It creates a vicious cycle of non-stop growth and improvement.

A lot of people or companies try to do this cycle by analyzing themselves, using their own imagination to figure out points of improvement, and keep spending resources to improve things which no one cares about. A good example of this is unit testing and integration testing. While they are good for catching a few basic issues, they won't bring in the cycle of growth and improvement which we strive for; they will always be kind of secondary for most orgs. That is why writing unit test cases was almost always what was assigned to an intern on his/her day 0. Similar is the case with AI systems: writing evals or benchmarks which work on synthetic data pre-deployment, probably in a CI, is good for figuring out which model might work best for us, but not something which will create the cycle of improvement.

This specific cycle is what makes or breaks products, and this will also be the case with AI agents and systems. This is particularly hard for AI agents as compared to traditional software systems because (1) logs and traces were built from the structure of the code itself, and everything had a fixed path to reach, as code has a deterministic path; however, with agents, especially when the model is the control center and can choose the trajectory on the fly, this path changes each time the system interacts with customers/users. (2) The text to search for or filter for was fixed in logs and trace statements, which is no longer the case; an LLM input could be any free text or image, and the output could also be the same. There is an expansion of possibilities we would like to query, filter or build dashboards around. (3) Because of the free-form nature, to understand the data well, we usually need another model for this, and it becomes very costly as systems scale. (4) What we would like to measure has itself evolved. In traditional systems, we would usually like to measure things like what the latency is, what the 5xx rate is, etc. These metrics would usually give us a good picture of the whole system, but now we need more. We need to know the quality of the output and whether all the rules mentioned in the prompt were followed. The definition of what we want to measure and the definition of errors and KPIs have themselves become much richer.

While we are solving all these problems, we also need to think about the future of observing. I am placing my bet on 2 things which will change: (1) we will see the evolution of online observability, or, as I like to call it, oversight; (2) as building with coding agents becomes more and more simple, observability platforms will become the central application for a dev, not an IDE. Further, they will use the observability platform itself to create and deploy PRs.

As we have established, with deterministic systems, if you fix something once, it never happens again. Why? Because the systems are deterministic. But this assumption no longer holds with AI systems; they have their own will and always will. Something you say in a prompt or a skill is just a request to the model to do it, hence there is no way to actually fix this with the premise of traditional observability. You actually need a system which is smart and is observing, to correct during the execution itself. This is what I call oversight, and an arm of observability will emerge for this.

The other bet is based on a simple thesis: building is simple, but building these cycles of improvement and growth is what will take a product from being mediocre to awesome, and that needs a lot of observing the data and using this context to build. Building with coding agents and deploying these coding agents is simple today, but having this data to build self-improving product loops is what is being enabled. Hence, observability systems will start creating PRs or prompt changes and keep improving the product.

From the start, to today, to the future, observability has always been the starting point of engineering and will always remain so. The form and shape will keep evolving; observability solutions will keep getting more online and will keep auto-improving the product or process with improvement loops.

Nivedit