Making Failure Diagnosis Reliable with Pensive AI
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.
Related posts
- Dead Ends or Data Goldmines? Investment Insights from Two Years of AI-Powered Postmortem Analysis
Zalando Engineering mediumAdeptZalando 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. They chose chained single-purpose prompts in a map-fold pattern over large-context models to avoid "lost in the middle" effects, cost and latency. Strict no-inference prompts and negative examples counter hallucinations and surface attribution errors. NotebookLM alone gave roughly a 3x speedup but hallucinated and lost context, and human curation at each stage remains essential for trust and accuracy.
- Building LLMs for Code Repair
Replit hardMasterReplit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics. Only 10% of these diagnostics come with deterministic fixes, while hundreds of millions are logged daily. Training data comes from replaying Operational Transformation histories to reconstruct the project state at each diagnostic. LLM-synthesized numbered line diffs are then generated with DSPy, verified, and distilled. Sentinel-token schemas replace natural-language instructions, and training ran on 8xH100 with LLM Foundry, FSDP and 4 epochs. Evaluation uses a new Replit repair benchmark plus a contamination-resistant Leetcode set built from DebugBench and recent LiveCodeBench-style problems.
- Iterating Towards LLM Reliability with Evaluation Driven Development
LangChain mediumAdeptDosu, 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. As usage grew to thousands of repositories, manual log grepping stopped scaling, so the team adopted LangSmith via its `@traceable` SDK decorator to trace function inputs, rendered prompts and LLM outputs in one trace. They find failures by searching on explicit feedback, user sentiment, internal errors and response latency, which surfaced cases like very slow responses to huge log pastes. Next they plan to build eval datasets automatically from production traffic.
- Can LLMs replace on call SREs today?
ClickHouse mediumAdept
LLMs were tested on autonomous root cause analysis of production incidents and fell short of replacing on-call SREs. ClickHouse gave Claude Sonnet 4, OpenAI o3, GPT-4.1 and Gemini 2.5 Pro (plus GPT-5) access to OpenTelemetry demo telemetry stored in ClickHouse via an MCP server and LibreChat, injected four anomalies with feature flags (payment failures for gold-tier users, a recommendation cache memory leak, a product catalog error and a payment cache leak), and compared each model against a manual ClickStack investigation on accuracy, guidance needed, token usage and time. Some models found simple root causes from a naive prompt, while others chased irrelevant latency signals or needed explicit hints. The recommendation is to use LLMs as assistants for summarizing, drafting updates and suggesting next steps, with engineers in control and backed by a fast, searchable observability stack.
- IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST
Hugging Face mediumAdeptApplying 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). Open models fail through cascading errors (Kimi-K2 4.7, GPT-OSS-120B 5.3), where an early reasoning-action mismatch poisons context and leads to derailment. Incorrect verification is the strongest predictor of failure overall: agents declare success without checking ground truth. Kimi-K2 struggles mainly with termination, and GPT-OSS-120B loses conversation history in 24% of traces. The recommended fixes are architectural rather than prompt tweaks: external tool-based verification gates, termination and loop control via state machines outside the model, explicit clarify-or-read-only branches, and aggressive context hygiene.