---
title: "Making Failure Diagnosis Reliable with Pensive AI"
description: "Netflix augmented Pensive, its rule-based failure diagnosis system for data and ML workloads, with LLM-based error extraction and on-demand debugging after roughly half of seven million failure classifications landed in an \"unknown\" bucket."
url: "https://swe.quest/articles/making-failure-diagnosis-reliable-with-pensive-ai-99ce7ba81c232629"
canonical: "https://netflixtechblog.com/making-failure-diagnosis-reliable-with-pensive-ai-6b0811a1c015"
source: "Netflix TechBlog"
published: "2026-10-26"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["llms","evals","debugging","data-pipelines","observability"]
---

# Making Failure Diagnosis Reliable with Pensive AI

A post on [Netflix TechBlog](https://swe.quest/sources/netflix.md), published 2026-10-26, 16 min read, Case study. Original: [https://netflixtechblog.com/making-failure-diagnosis-reliable-with-pensive-ai-6b0811a1c015](https://netflixtechblog.com/making-failure-diagnosis-reliable-with-pensive-ai-6b0811a1c015)

## Summary

Netflix augmented Pensive, its rule-based failure diagnosis system for data and ML workloads, with LLM-based error extraction and on-demand debugging after roughly half of seven million failure classifications landed in an "unknown" bucket. Extraction numbers log lines and has the model return only start and end line indices, so cost stays bounded, hallucinated text is avoided, and calls fit under Maestro's 90-second deadline. On-demand debugging is cached per step attempt, using conditional writes to deduplicate concurrent requests, and streams full-snapshot SSE events that are republished over GraphQL WebSockets. Evals use frozen legacy regex rules as reference labels, logs archived to S3 as stable inputs, LLM judges for inclusion and precision, and noise and latency checks; AI extraction now covers 100% of failures.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- workflow orchestration
- server-sent events

## Keywords

Pensive, Maestro, Braintrust, MCP, Spark, Data Portal, S3

## Related posts

- [Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis](https://swe.quest/articles/dead-ends-or-data-goldmines-investment-insights-from-two-years-of-ai-powered-8637215027e4eee6.md): Zalando Engineering · 2025-09-24 · Medium · 18 min read · LLMs, SRE, Incidents & postmortems, Databases
  Zalando built a multi-stage LLM pipeline (summarization, classification, analyzer digests, cross-incident patterns, investment opportunities) to mine thousands of postmortems for recurring failure patterns in its datastores: Postgres, DynamoDB, ElastiCache, S3 and Elasticsearch.
- [Building LLMs for Code Repair](https://swe.quest/articles/building-llms-for-code-repair-56ef089519b9fe77.md): Replit · 2024-04-02 · Hard · 14 min read · Model training, AI for coding, LLMs, Evaluation, Data pipelines
  Replit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics.
- [Iterating Towards LLM Reliability with Evaluation Driven Development](https://swe.quest/articles/iterating-towards-llm-reliability-with-evaluation-driven-development-ec58eecfac04025b.md): LangChain · 2026-11-09 · Medium · 7 min read · Evaluation, LLMs, Observability
  Dosu, an AI teammate that triages GitHub issues and answers code questions, uses evaluation driven development (EDD): ship a behavior with a few evals, monitor production for failure modes, add failing examples to offline eval datasets, iterate, and relaunch.
- [Can LLMs replace on call SREs today?](https://swe.quest/articles/can-llms-replace-on-call-sres-today-892e82a344776e7f.md): ClickHouse · 2025-08-14 · Medium · 57 min read · SRE, Observability, LLMs, AI agents, Evaluation
  LLMs were tested on autonomous root cause analysis of production incidents and fell short of replacing on-call SREs.
- [IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST](https://swe.quest/articles/ibm-and-uc-berkeley-diagnose-why-enterprise-agents-fail-using-it-bench-and-mast-8ef90262771faa1d.md): Hugging Face · 2026-02-18 · Medium · 10 min read · AI agents, Evaluation, LLMs, SRE
  Applying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
