AI-Powered Postmortem Analysis for Site Reliability Engineering

zalando · E-commerce · 2025 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: SRE postmortem analysis and infrastructure investment planning

Zalando needed to extract strategic reliability patterns from thousands of postmortems accumulated over two years, where manual reading at 15-20 minutes per document could not answer cross-team datastore failure questions fast enough.

Constraints:

Architecture

Zalando built a chained LLM pipeline over postmortems, focused first on datastore technologies such as Postgres, DynamoDB, ElastiCache, S3, and Elasticsearch. The pipeline uses specialized stages rather than a single agent: summarization condenses incident reports into five core dimensions with TELeR prompting and no-guessing constraints; classification buckets summaries by datastore technology; analysis converts bucketed summaries into failure fingerprints; pattern detection aggregates fingerprints into a one-page technology-pattern report; opportunity analysis links patterns back to the corpus and internal incident datasets. Human expertise is used at each stage through examination, labeling, quality control, curation, proofreading, and editorial review.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  postmortem-corpus[postmortem-corpus] --> summarization-stage[summarization-stage]
  summarization-stage --> classification-stage[classification-stage]
  classification-stage --> analyzer-stage[analyzer-stage]
  analyzer-stage --> pattern-stage[pattern-stage]
  pattern-stage --> opportunity-stage[opportunity-stage]
  trusted-incident-dataset[trusted-incident-dataset] --> opportunity-stage
  human-curation-loop[human-curation-loop] --> summarization-stage
  human-curation-loop --> classification-stage
  human-curation-loop --> analyzer-stage
  human-curation-loop --> pattern-stage
  human-curation-loop --> opportunity-stage
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
postmortem-corpus Thousands of incident postmortem documents accumulated through Zalando's SRE process. summarization-stage
summarization-stage Condenses each incident into issue, root causes, impact, resolution, and preventive actions. postmortem-corpus, classification-stage
classification-stage Buckets summaries by datastore technology such as Postgres, DynamoDB, ElastiCache, S3, and Elasticsearch. summarization-stage, analyzer-stage
analyzer-stage Turns bucketed summaries into short thematic failure fingerprints. classification-stage, pattern-stage
pattern-stage Aggregates failure fingerprints into recurring technology incident patterns. analyzer-stage, opportunity-stage
opportunity-stage Combines patterns and corpus context into investment opportunities. pattern-stage, trusted-incident-dataset
trusted-incident-dataset Internal source of truth for numerical opportunity data such as GMV, customers, and repair time. opportunity-stage
human-curation-loop Labels, compares, proofreads, and quality-controls outputs across stages. summarization-stage, classification-stage, analyzer-stage, pattern-stage, opportunity-stage

Data flow

Thousands of postmortem documents enter the pipeline. Each document is summarized into issue, root cause, impact, resolution, and preventive actions. Technology classification maps summaries into datastore buckets. Analyzer stages convert summaries into short digests describing a technology's role in the incident. Pattern stages aggregate digests over time into a report about recurring incident patterns. Opportunity stages combine patterns with the original postmortem corpus and trusted internal incident datasets for investment recommendations. Human curators compare outputs to originals, label correctness, refine prompts/models, and proofread final reports.

4 supporting quotes
“Pipeline’s input is thousands of postmortem documents, the output is a one-pager describing the trends and patterns for incidents in the focus.”article, stated
“Stage Goals Input Output Summarization Reduces reviewer load by condensing postmortem narratives into few data points.”article, stated
“Classification Enables technology-specific clustering across incidents.”article, stated
“Analyzer Converts summaries into thematic failure fingerprints.”article, stated

Why this architecture

Zalando rejected a no-code agentic prototype after encountering performance limits, inaccuracies, and hallucinations. A hybrid chain of specialized stages made every input and output human-evaluable. The map-fold pattern lets each postmortem be processed independently and then aggregated into higher-level patterns. Claude Sonnet 4 on Bedrock became the current model partly because legal/compliance alignment was necessary for sensitive incident data.

4 supporting quotes
“Our pipeline is a chain of a few models, where each stage strictly specialises on a single objective.”article, stated
“A functional pattern “map-fold” is a key building block for the pipeline”article, stated
“The initial concept of a no-code agentic solution was quickly deemed unfeasible due to performance limitations, inaccuracies, and hallucinations”article, stated
“legal alignment was a pre-condition before using cloud hosted LLMs (e.g. AWS Bedrock).”article, stated

Models used: Claude Sonnet 4 · AWS Bedrock · open source 3B-12B models · LM Studio

Scale

Alternatives considered (roads not taken)

manual strategic postmortem review

Rejected because: Thousands of documents at 15-20 minutes each made company-scale pattern analysis too slow and cognitively expensive.

“Suddenly, strategic questions like “Why datastores fail most frequently at scale?” become impossible to answer quickly, or without excessive cognitive load.”article, stated

no-code agentic solution

Rejected because: The prototype was unfeasible due to performance limitations, inaccuracies, and hallucinations.

“The initial concept of a no-code agentic solution was quickly deemed unfeasible due to performance limitations, inaccuracies, and hallucinations”article, stated

LLM extraction of numerical business impact

Rejected because: The team could not get reliable accuracy for GMV, EBIT loss, affected customers, and repair time.

“Reliable accuracy in extracting numerical data, such as GMV or EBIT loss, affected customers, and repair time, from postmortems was not achieved.”article, stated

Patterns

prompt-chaining (prompting)

The pipeline chains summarization, classification, analysis, pattern detection, and opportunity stages.

“Our pipeline is a chain of a few models, where each stage strictly specialises on a single objective.”article, stated

batch-offline-processing (operations)

Thousands of postmortems are processed into summaries, buckets, digests, and reports for retrospective analysis.

“Pipeline’s input is thousands of postmortem documents, the output is a one-pager describing the trends and patterns”article, stated

human-in-the-loop-gate (evaluation)

Human curation labels outputs, checks them against source postmortems, and proofreads final reports.

“human curation remains essential”article, stated
“The feedback loop from humans helped us refine prompts and make optimal model selections for each stage.”article, stated

guardrails-io-filtering (safety)

Summarization prompts forbid guessing, assumptions, and speculation, requiring missing information to be stated explicitly.

“The entire process is governed by strict constraints: no guessing, no assumptions, and no speculative content.”article, stated

eval-driven-development (evaluation)

The team compared generated digests with original postmortems, used labels to refine prompts, and adjusted curation rates as confidence improved.

“This involved analyzing the generated postmortem digests and comparing them to the original postmortems.”article, stated

Tradeoffs

Use a hybrid staged pipeline.

Chose LLM stages with human-evaluable inputs and outputs over no-code agentic automation.

Rationale: The staged design improved confidence after the no-code prototype hit hallucination, accuracy, and performance limits.

“We have opted for a hybrid solution where the input and output of each stage are amenable to human evaluation”article, stated
“enhancing confidence in accuracy.”article, stated

Use Bedrock/Claude despite starting with local open-source models.

Chose Claude Sonnet 4 on AWS Bedrock over small local 3B-12B models.

Rationale: Small models had high hallucination rates, while compliance-aligned Bedrock enabled stronger hosted models.

“Initially, we employed open source models hosted within LM Studio. Subsequently, we evaluated different models, and the current iteration is powered by Claude Sonnet 4 on AWS Bedrock.”article, stated
“We have observed up to 40% probability for hallucination at summary and analysis phases.”article, stated

Relax but retain human curation.

Chose 10-20% random sampling after maturity over 100% curation forever or no curation.

Rationale: Initial full curation improved prompts and model selection, but sampling preserved oversight with less human load.

“During the pipeline development, we conducted 100% human curation of output batches.”article, stated
“As the system matured, we relaxed human curation to 10-20% of randomly sampled summaries”article, stated

Gotchas (what bit them)

Long-context LLMs do not automatically solve postmortem recall.

Root cause: Large contexts can increase latency, memory usage, and cost while still not guaranteeing perfect recall.

Resolution: Use a chain of specialized stages with single objectives and human-evaluable outputs.

“In addition, large contexts do not guarantee perfect recall and can increase latency, memory usage, and cost.”article, stated
“each stage strictly specialises on a single objective.”article, stated

Small models hallucinated plausible incident summaries.

Root cause: Models inferred facts from weak signals such as a technology name appearing in a linked playbook title.

Resolution: Move to stronger models, strict prompt requirements, examples, and human-led curation.

“small models fabricated a plausible summary regarding a non-existent DynamoDB incident”article, stated
“we conducted human-led curation until the effect of hallucination became less than”article, stated

LLMs were unreliable for numerical incident impact extraction.

Root cause: Postmortem text did not yield reliable GMV, EBIT, customer, or repair-time extraction.

Resolution: Use the internal incident dataset as the numerical source of truth for opportunity analysis.

“Reliable accuracy in extracting numerical data, such as GMV or EBIT loss, affected customers, and repair time, from postmortems was not achieved.”article, stated
“we depend on our internal incident dataset that serves as a trustworthy source of truth”article, stated

Cloud-hosted LLM use required legal alignment.

Root cause: Postmortems include PII, business metrics, GMV losses, and other sensitive incident data.

Resolution: Treat compliance as a precondition before using Bedrock-hosted Claude.

“Postmortem document contain PII data of on-call responders, companies business metrics, GMV losses, etc.”article, stated
“The legal alignment was a pre-condition before using cloud hosted LLMs”article, stated

Evaluation

Zalando evaluates the pipeline through human curation against original postmortems, hallucination monitoring, latency, annual-processing time, sampling rates, strategic pattern usefulness, and downstream investment outcomes.

Metrics: 15-20 minutes manual read time per postmortem · about four postmortems per reviewer hour manually · approximately 30 seconds per postmortem with Claude Sonnet 4 · annual data analysis under 24 hours · 100% initial human curation · 10-20% mature random-sample curation · 25% of subsequent datastore incidents shielded by automated change validation

3 supporting quotes
“The most recent release, based on Claude Sonnet 4, processes each postmortem in approximately 30 seconds”article, implied
“As the system matured, we relaxed human curation to 10-20% of randomly sampled summaries”article, implied
“automated change validation for infrastructure as code which is able to shield us from 25% subsequent datastore incidents”article, stated

Outcomes

The source is strong on operational scale: thousands of postmortems, two years of incident data, 15-20 minutes per manual read, approximately 30 seconds per Claude Sonnet 4 analysis, and annual processing under 24 hours.

3 supporting quotes
“The AI analysis significantly reduced the time for analysis from days to hours and achieved the scalability of the solution across multiple technological areas.”article, stated
“It also surfaced 'hidden hotspots' like improper connection pool configuration or circuit breakers leading to cascading failures that were previously considered stable.”article, stated
“The discussed solution has addressed our core problem – the inability of manual postmortem review to keep pace with the large volume of incidents, identifying systemic issues and making data-driven investments for preventing recurring failures.”article, stated