---
title: "Detecting faulty deployments: Our journey from unlabeled data to supervised learning"
description: "Datadog's Automatic Faulty Deployment Detection evolved from a hand-tuned ensemble of statistical checks into supervised random forest models trained on weakly supervised labels."
url: "https://swe.quest/articles/detecting-faulty-deployments-our-journey-from-unlabeled-data-to-supervised-09204a3dca0859a3"
canonical: "https://www.datadoghq.com/blog/engineering/detecting-faulty-deployments/"
source: "Datadog Engineering"
published: "2025-06-03"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["machine-learning","deployment","observability","incident-response"]
---

# Detecting faulty deployments: Our journey from unlabeled data to supervised learning

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2025-06-03, 14 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/detecting-faulty-deployments/](https://www.datadoghq.com/blog/engineering/detecting-faulty-deployments/)

## Summary

Datadog's Automatic Faulty Deployment Detection evolved from a hand-tuned ensemble of statistical checks into supervised random forest models trained on weakly supervised labels. Faulty deployments were defined by error-rate impact, temporal correlation with the new version, and persistence. An iterative unanimous-vote ensemble running 60 minutes after deploy was built by labeling false positives and adding checks. To cut time to detection, models at 10 and 20 minutes were trained to predict later labels, and weak supervision combined rule outputs with rollbacks, short-lived versions and new error signatures to produce better labels, improving precision on disagreements by 11% and recall by 31%.

Written by swe.quest, not by the author.

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

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- precision and recall
- supervised vs unsupervised learning
- APM error-rate metrics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Datadog APM, Automatic Faulty Deployment Detection, weak supervision, random forest

## Related posts

- [How we built a real-world evaluation platform for autonomous SRE agents at scale](https://swe.quest/articles/how-we-built-a-real-world-evaluation-platform-for-autonomous-sre-agents-at-scale-6a8c2348a0fba679.md): Datadog Engineering · 2026-04-07 · Medium · 15 min read · Evaluation, AI agents, SRE, Observability
  Datadog built a replayable offline evaluation platform for Bits Investigation, its autonomous SRE agent, after discovering that feature changes improving one investigation type silently regressed others.
- [Building Investigations: what it takes to build an AI SRE](https://swe.quest/articles/building-investigations-what-it-takes-to-build-an-ai-sre-97667cae8b2c0604.md): incident.io · 2026-10-01 · Medium · 14 min read · AI agents, Evaluation, SRE, Incidents & postmortems, Observability
  Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model.
- [From single pull requests to full software packages: Detecting malicious code at scale](https://swe.quest/articles/from-single-pull-requests-to-full-software-packages-detecting-malicious-code-at-717a58a001a046a1.md): Datadog Engineering · 2026-06-02 · Medium · 12 min read · Supply chain security, Threat detection, AI agents, LLMs, Cost optimization
  Datadog extended BewAIre, its LLM-based malicious code detector, from pull requests to full dependency packages by stacking a cheap filter model in front of an agentic investigation model.
- [Building an agentic harness that outlasts the model](https://swe.quest/articles/building-an-agentic-harness-that-outlasts-the-model-75504578038e6cc5.md): Shopify Engineering · 2026-07-29 · Medium · 8 min read · AI agents, Application security, Vulnerability research, LLMs, Ruby
  Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs.
- [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)
