How Microsoft tested language models as an on-call engineer's first guess
An alert fires, a ticket opens, and someone has to work out what broke. In May 2023 a Microsoft Research post described feeding the ticket's title and summary to language models and scoring their guesses against what engineers later wrote. It was an offline study, not a product. The useful parts are the data cleaning, the honest scoring problem, and the path from there to today's agents that need a human to approve every change.

Every company that runs software has the same bad hour. Something breaks, an alert fires or a customer complains, a ticket opens, and an engineer who may have been asleep has to work out what went wrong and what to do first. Most of that hour is reading: the ticket, the logs, the last deploy, and old tickets that looked similar.
In May 2023 Microsoft Research asked whether a language model could do the first pass of that reading. The post, Large-language models for automatic cloud incident management, dated 16 May 2023, is by Rujia Wang, Chetan Bansal, Supriyo Ghosh, Tom Zimmermann, Xuchao Zhang and Saravan Rajmohan, with contributions from Toufique Ahmed during his internship. It summarises a paper accepted at ICSE 2023, the main software engineering conference: Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models. The post's text is unchanged in archived copies from 2023 and 2025 and on the live page. It carries no licence, so the diagrams here are our own. Every result below is Microsoft's own.
This is a good post to read three and a half years later, because the field moved fast and in a clear direction, and because the study is more honest about its limits in the paper than in the blog.
The problem: the slow part is diagnosis
Microsoft's framing is simple. The post says the challenge is "quickly detecting incidents, then performing root cause analysis and mitigation." Detection is mostly solved by monitoring. Diagnosis is the slow part, because it needs context that lives in people's heads and in old tickets.
The group had studied this before. A 2022 paper, How to Fight Production Incidents?, looked at high-severity incidents and their postmortems in a large cloud service, and won a best paper award at SoCC 2022. The conclusion they drew, in the 2023 post: "From this study, we envision that automation should support incident diagnosis and help identify the root cause and mitigation steps to quickly resolve an incident and minimize customer impact."
So the question became concrete. When a ticket is created, its author writes a title and a summary with error messages and odd behaviour. Later, someone records the root cause and the fix. Can a model, given only the first two fields, write something close to the last two?
How they built it
The post gives the shape and one results table. The paper gives the details, and we use its numbers where the two differ.
The data. The paper used tickets created from 1 January 2018 to 15 July 2022, with severity 0 to 3, where 0 is the worst. The post rounds this to "more than 40,000 incidents generated from more than 1000 services"; the paper's exact count is 44,340 incidents from 1,759 services.
The cleaning. This is the part most teams skip, and it shaped the result. One big outage can raise hundreds of tickets with the same cause and fix, which would let a model look clever by memorising. The paper removed exact duplicates, which took 123,953 root-cause records down to 57,520, and left 8,300 mitigation plans. It cut very long and very short entries. And it dropped tables and images from summaries, because the models only read text, while admitting that "there is a chance that we lost some critical information while discarding that information." Finally, the data was sorted by creation date, so the models trained on older incidents and were tested on newer ones, which is how they would be used.
The models. Two small encoder-decoder models, RoBERTa and CodeBERT, served as baselines. Then four OpenAI models of the time: Curie, Codex, Davinci, and Code-davinci-002, which the post calls Davinci-002 or GPT-3.5. Each was tried zero-shot, meaning with no training on incident data, and fine-tuned on the training split with LoRA, a method that trains a small set of added weights instead of the whole model.
The scoring. Each model wrote several candidate answers per incident. "Top 1" scores the first candidate. "Top 5" takes the best of the first five, since ten was judged too many for an engineer to read. Candidates were compared with what the engineers had actually written, using six automatic metrics. Three measure word overlap (BLEU-4, ROUGE-L, METEOR) and three use other models to judge similarity of meaning (BERTScore, BLEURT, NUBIA).

What the numbers say
The post reports four findings.
First, the newer model wins among the OpenAI models. In Microsoft's words, Davinci-002 "provided at least 15.38% and 11.9% gains over all the GPT-3 models" for root cause and for mitigation. These are relative gains on the text metrics, not percentage points of accuracy.
Second, fine-tuning matters a lot. A fine-tuned GPT-3.5 improved the average word-overlap score "by 45.5% for root cause generation and 131.3% for mitigation generation tasks over zero-shot". In 2023, a general model that had not seen your incidents was much worse than one that had.
Third, the models did better on incidents raised by monitoring than on incidents raised by customers, which the post puts down to "the repetitive nature of the MRIs", its abbreviation for machine-reported incidents. That matches what any on-call engineer would guess. A disk-full alert looks like the last hundred disk-full alerts. A customer complaint that the dashboard is slow could be anything.
Fourth, people found the output useful. The post says "More than 70% of on-call engineers gave a rating of 3 out of 5 or better for the usefulness of recommendations in a real-time production setting."
What the post does not show
That last sentence is where the blog and the paper part ways, and it matters for anyone reading the post as proof that this works in production.
It was offline. The post itself says "In our offline evaluation". The paper describes the human check as 50 recent incidents "which occurred in the last two months", chosen so that owners would remember them. Owners were shown suggestions after the fact, in interviews of 20 to 30 minutes, and the paper says 25 owners responded. Its own results table adds up to 27 replies, and 19 of 27 is the 70% figure. Nobody in the study used the model while an incident was open. We could not find a deployment claim in the paper, and the word "real-time" does not appear in it.
The small models were not beaten everywhere. The post's own table shows RoBERTa with a top-1 ROUGE-L of 12.83, above GPT-3.5's 11.43. The paper is frank about it: "Surprisingly, the encoder-decoder models are doing really good compared to GPT-3 models in all six automatic metrics." The large models pull ahead on top 5, where the small baselines have no score because they produce only one answer. And on one meaning metric, NUBIA at top 1, GPT-3.5's gain over the best GPT-3 model is negative, minus 8.45.
The metrics measure similarity to a note, not correctness. An engineer's root-cause field might say config push to region X. A model that writes a bad configuration change in region X is right but shares few words. A model that copies the phrasing of a similar old incident can score well while being wrong. That is why the human check matters, and why it is a pity it is so small.
There are two small mismatches. The post's table prints Curie's top-1 ROUGE-L as 19.04; the paper prints 9.04, which fits the text, so 19.04 looks like a typo. The post also gives an 11.16% gain for mitigation when the root cause is supplied; we could not reproduce that figure from the paper's tables, so we leave it out.
There is no serving story. No latency, no cost per call, no integration with the ticket system, no rollout. That is fine for a research post, but it means the hard engineering was still ahead.
None of this makes the study weak. It was early, it was careful about its data, and the paper says what it could not show. The point is that being useful in a retrospective interview and being useful at 3 a.m. are different claims.
What the authors said would come next
The last section of the post is the most interesting today. It predicts that "the need for fine-tuning may decrease" as models improve. It names the next questions: adding "discussion entries, logs, service metrics, and even dependency graphs" as context, and the problem of staleness, since a fine-tuned model "would need to be frequently retrained with the latest incident data." And it sketches the fix: retrieval from past incidents, troubleshooting guides and internal documentation, with an engineer talking to the system through a chat interface.
That sketch turned out to be roughly the map of the next three years.
What has changed since
Microsoft's own research moved in four steps. Nine days after the post, the same group published RCACopilot, which went to EuroSys 2024. It changes the task: instead of writing a free-text root cause from the ticket alone, it first collects diagnostic data based on the alert type, then "predicts the incident's root cause category, and provides an explanatory narrative." The paper reports "RCA accuracy up to 0.766", and notes that its diagnostic collection part "has been successfully in use at Microsoft for over four years." That deployed part is data collection, not the language model.
In January 2024 a follow-up, using GPT-4 with in-context learning, did what the 2023 post predicted. It put similar past incidents into the prompt instead of training on them, an approach that "eliminates the need for fine-tuning", tested on "over 100,000 production incidents". It reports beating the earlier fine-tuned GPT-3 models by 24.8% on average across its metrics, and a 43.5% gain in correctness when incident owners judged the output.
In March 2024 a study of agents for root-cause analysis let the model call tools in a loop, and found that adding the incident discussion as input, one of the post's hoped-for next steps, "surprisingly does not yield significant performance improvements." In January 2025 AIOpsLab turned the question into a test bench for agents that handle an incident from start to finish, and named the goal "AgentOps".
Then it became a product. Microsoft introduced Azure SRE Agent in May 2025, opened the public preview in October 2025, and announced general availability on 10 March 2026. The public-preview post sets the safety line: by default the agent "never executes write actions on Azure resources without explicit human approval." The launch post reports Microsoft's own use: "1,300+ agents deployed, 35,000+ incidents mitigated, and over 20,000" engineering hours saved. Microsoft does not say whether the product builds on the 2023 study, so we do not claim it does.
The rest of the industry went the same way. In June 2024 Meta described a system that narrows the code changes that could have caused an investigation and ranks them with a fine-tuned Llama 2 model. It reports "42% accuracy in identifying root causes for investigations at their creation time related to our web monorepo", a narrower task than Microsoft's. In December 2025 Meta wrote about DrP, a platform for codified investigation steps rather than a language model, used "by over 300 teams at Meta, running 50,000 analyses daily".
Vendors followed. incident.io launched Investigations in July 2025 with a line worth copying: "It surfaces evidence, not guesses." Google Cloud put Gemini Cloud Assist investigations in preview in August 2025. Datadog made Bits AI SRE generally available in December 2025, saying it had been "tested against more than 2,000 customer environments". PagerDuty's Spring 26 release introduced "SRE Agent as a virtual responder", with a promise that teams will "decide if the agent should act on its recommended remediations or wait for approval." In November 2026 SiliconANGLE reported a further PagerDuty agent called Paige; we have only the news report for that one.
Every product number here is the vendor's own, measured on different tasks in different ways. They are not comparable with each other or with the 2023 study, so we do not put them in one table.

Three things changed, and they are the lessons. Fine-tuning stopped being the default, because newer models given a few similar past incidents in the prompt did better and do not go stale. The output changed from a paragraph to a set of evidence: the matching old incident, the log lines, the deploy that lines up with the start of the errors. And every serious product put a human approval step in front of anything that changes the system.
One more change matters for companies that build on these models. Microsoft and OpenAI rewrote their agreement in October 2025, and the specific OpenAI models in the study are from 2022. The lesson does not depend on any one model, which is the point: build the data and the scoring so that you can swap the model.
Why it matters for your business
Indonesia's digital economy is large and still growing. The e-Conomy SEA 2025 report by Google, Temasek and Bain, as summarised by Google Indonesia, puts it close to US$100 billion in gross merchandise value in 2025, up 14% on the year before. Much of that runs on software built by small teams: payment, logistics, booking, ordering and B2B SaaS, often with one or two people on call for dozens of services.
Those teams are the ones who would gain most from a good first guess, and they are short of people who can build one. An AWS-commissioned survey from August 2025 says 28% of Indonesian businesses had adopted AI, and that "57% of businesses cite a lack of digital skills as the main barrier to expanding AI use". That is vendor research, and it is about AI in general, but the gap it describes is real.
The infrastructure is now local. Google Cloud opened Jakarta in June 2020, AWS opened its Jakarta region in December 2021, and Microsoft opened Indonesia Central in May 2025 with a planned investment of US$1.7 billion from 2024 to 2028. Whether a given language model service runs in-country is a question to ask each provider; we did not check it.
Two laws shape how you build this. Neither is about AI. Both apply the moment incident text leaves your system.
PP 71/2019 on electronic systems. Pasal 3 ayat (1) requires operators to run their systems "secara andal dan aman", reliably and securely. Pasal 22 ayat (1) requires a "rekam jejak audit terhadap seluruh kegiatan penyelenggaraan Sistem Elektronik", an audit trail of what the system does. Pasal 24 requires procedures to prevent "gangguan, kegagalan, dan kerugian", and, when a serious failure is caused by someone else's act against the system, requires the operator to report it "segera" and "dalam kesempatan pertama" to law enforcement and the relevant ministry or agency. That reporting duty is about attacks, not every outage. A tool that drafts root causes does not change these duties. It does mean that a model's suggestion and the human decision should be logged like any other action.
UU 27/2022 on personal data. Incident tickets are full of personal data: a customer's name in the complaint, an email in a stack trace, a phone number in a failed SMS log. The law's definition covers data about a person who can be identified "secara tersendiri atau dikombinasi dengan informasi lainnya", alone or combined with other information. Sending that text to a model provider is processing. A provider that processes on your behalf is a processor in the law's terms, and Pasal 51 makes that processing part of your responsibility as controller. Under Pasal 51 ayat (5) the processor needs your written consent before it brings in another processor. Pasal 35 and 36 require you to keep the data secure and confidential. If the provider processes outside Indonesia, Pasal 56 ayat (2) requires you to make sure the receiving country's protection is "setara atau lebih tinggi", equal or higher, with fallbacks to binding safeguards or consent. And if incident text with personal data leaks, Pasal 46 gives you 3 x 24 hours to notify in writing.
The practical answer is simple. Mask personal data before anything leaves, prefer an in-country or contract-covered endpoint, read the provider's terms on sub-processors and training, and keep a record of what you sent. This is our plain reading of the official texts, not legal advice; check sector rules if you are in finance, health or government.
How we would build it today
The setting: an Indonesian SaaS company with a few dozen services, logs in one place, a few hundred past incidents of uneven quality, and a small on-call rota.

-
Clean the history first. Pull past incidents into one table: title, summary, root cause, fix, owner, service, dates. Merge duplicates from the same outage, as Microsoft did. Most teams find that a third of their root-cause fields say "fixed" or are empty. Fix the last hundred properly; that is your real training data.
-
Do not fine-tune. A few hundred incidents is a hundred times smaller than the study's data, and the 2024 follow-up showed that a strong model with similar past incidents in the prompt beats a fine-tuned older one. Retrieval also never goes stale: a new incident is searchable the moment it is closed.
-
Retrieve more than tickets. For each new incident, find the three to five most similar past incidents, the runbook for the affected service, deploys and config changes in the last few hours, and log lines that match the error. Structured logs with trace IDs, in OpenTelemetry style, make this cheap: the project's docs describe a log as a timestamped record, "either structured (recommended) or unstructured". A model given 40 relevant lines does better than one given 4,000.
-
Ask for a hypothesis with evidence, not an answer. The output should be a likely cause, two or three first checks, and for each one the evidence it rests on: this past incident, this deploy, these lines. If the model cannot point to evidence, it should say so. This is what the products converged on, and it makes wrong answers quick to dismiss.
-
Keep it read-only. No restarts, rollbacks or scaling from the model. Every vendor that ships this puts approval in front of change, and a small team has even less room for a confident wrong action. Revisit after a few months of good scores, one narrow, reversible action at a time.
-
Mask before sending. Strip names, emails, phone numbers, account IDs, tokens and IP addresses with a deterministic masker before the text reaches any model, and keep the mapping on your side. This is the single most important step for UU 27/2022.
-
Score it on your own past before trusting it. Take 30 to 50 closed incidents, hide the recorded cause, run the helper, and have the original owner mark each draft right, partly right or wrong. That is Microsoft's human check, done properly on your own data. Text-overlap scores are not worth computing.
-
Log every call. Store what was sent, what came back, which evidence was shown, and who accepted or rejected it. That is your audit trail under PP 71/2019 and the data for improving the prompts.
-
Track two numbers a month. Time from alert to the first useful hypothesis, and the share of drafts the on-call engineer accepted. If acceptance stays low after a month of tuning the retrieval, stop. A tool on-call people ignore costs attention.
With incident history in reasonable shape and logs already centralised, the cleaning, masking, retrieval and backtest are about four to six weeks for one engineer who knows the systems. Model cost depends on the provider and volume; we did not research prices, so measure it during the backtest. The order matters more than the model: clean data, honest scoring and a human who decides were the strengths of Microsoft's 2023 study, and they are still what separates a useful helper from a confident guesser.