The Hard Part of AI Debugging Is the Context, Not the Model
· Do Minh Tuan · Tech Made Simple 💡
Coroot, an observability company, published results from testing eleven different large language models on system failures. The finding that stayed with me was not about the models. They were already good enough to find the bug. What decided the outcome was the quality of the evidence they were handed. Coroot calls that context engineering.
I have spent fifteen years shipping software with teams, and the finding matches how I would expect human engineers to behave too. A strong developer dropped into a system with broken logs will flounder. A mid-level developer with clean traces will look brilliant. We keep buying the developer and ignoring the logs.
Root cause analysis is a reading problem
Root cause analysis means working out what actually triggered a failure, rather than what happened to be visible when it fell over. For a long time the industry's answer was to make the model smarter: more parameters, longer chains of reasoning, a model that talks itself through the crash. Coroot's test suggests the return on that is small compared with the return on fixing the input.
Telemetry is the general name for the three things your system emits while it runs: logs, which are text events; metrics, which are numbers over time; and traces, which follow a single request across services. When people say an AI has no context, they usually mean one of three things. The logs are unstructured, the trace breaks somewhere in the middle, or nobody kept the data long enough to look at it the next morning.
Anyone who has been on call at 2am knows the feeling of opening a dashboard and finding a wall of identical error lines with no request id on any of them. You cannot debug that. A model cannot either. It will produce a confident, wrong answer, which is worse than no answer because someone will act on it.
The unglamorous fix
If I were setting priorities for a team this quarter, I would put trace propagation above almost any AI tool purchase.
Concretely: every request gets an id at the edge, that id travels in a header through every service, and every log line carries it. Errors get logged as structured objects with a stable event name, not as sentences glued together with string concatenation. The difference between console.log('DB connection failed for user ' + userId) and a JSON entry holding the event name, the user id and the trace id is the difference between a usable incident and a guessing game. The second version is what lets a tool, or a tired engineer at 2am, follow one click in the browser down to one timeout in the database.
None of this is new advice. It has been in operations handbooks for a decade. What is new is that the payoff now shows up twice: better human debugging and better machine debugging. That second payoff is the reason to finally do the work.
The tooling is boring, and that is fine. A structured logger like pino or winston in Node, OpenTelemetry for traces, and a log store that can actually filter by trace id. A few weeks for a mid-size service, less if the team has been disciplined about it.
Where I get skeptical about the study
Coroot sells observability software. A study concluding that context matters is a study concluding that you should buy better observability. That does not make the finding wrong, but it does mean I read the framing with a raised eyebrow. Eleven models is a reasonable sample. How the failures were chosen matters more than the count, and the write-up I saw does not go deep on that.
The claim I would want tested: do the cheap models hold up when the failure is genuinely novel rather than noisy? Finding a known error pattern in clean traces is a much easier job than diagnosing a race condition that only shows up under load. I would want to see the cases where the model had to reason about timing, or a partial write, or a dependency that degraded slowly over an hour. Those are the ones that ruin a weekend.
That is the honest limit of this kind of announcement. The direction is right. The size of the effect is something each team still has to measure on its own systems.
The money question is worth spelling out. The business case is straightforward. If a small, cheap model can do the job once the context is clean, you stop paying for the biggest model on the market to triage routine incidents. You also cut the time a senior engineer spends reconstructing what happened, which is usually the expensive part anyway.
I would not promise anyone a specific saving. I would promise that the first incident after you fix your traces will be shorter, and that the second one will be shorter again, because the assistant has something real to read.
There is a version of this that goes badly. Teams pipe every log line into a model and call it AIOps. The bill goes up, the answers stay vague, and nobody trusts the tool after the third false alarm. The discipline is in what you leave out. A good context bundle for an incident is small: the failing request, its trace, the metrics around the failure window, and the deploy that came just before it. Not the entire log archive.
Before betting on one of these tools, I would ask three things. Whether it takes our existing traces or wants us to re-instrument everything. Where the data goes and how long it is kept. And what happens when the model is wrong, meaning whether the answer arrives attached to evidence I can check or as a paragraph of confident prose.
That last one is the test I care about most. An assistant that says the timeout started after the 14:02 deploy, and points at span 4c1f, is useful. One that says there may be a database issue is a chatbot.
For teams in Vietnam doing outsourced maintenance, this is worth taking seriously. Clients increasingly ask why the AI assistant cannot find the bug in the system you handed over. The uncomfortable answer is usually that the logs were never readable in the first place. Fixing that is cheaper than arguing about model choice, and it makes the handover better for whoever comes after you.
I am not impressed that eleven models can debug a system. I am impressed that the fix was mostly plumbing. That is a much easier thing to sell to a client than another AI subscription.
Written with AI assistance, reviewed and edited by Do Minh Tuan.