Detecting faulty deployments: Our journey from unlabeled data to supervised learning
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%.
Related posts
- How we built a real-world evaluation platform for autonomous SRE agents at scale
Datadog Engineering mediumAdeptDatadog 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. Each evaluation label pairs a ground-truth root cause with a world snapshot of the telemetry queries available at incident time. Labels are generated from customer feedback, and Bits itself drafts the root cause analyses for human review, which raised label creation rate by an order of magnitude and cut validation time per label by over 95%. Deliberately noisy snapshots that include unrelated but nearby components lowered pass rates by about 11% but made results predictive of production, and segmenting labels by technology, problem type and difficulty lets the team catch cross-area regressions.
- Building Investigations: what it takes to build an AI SRE
incident.io mediumAdeptBuilding 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. Accuracy is measured by backtesting against past incidents frozen in time, where the main difficulty is keeping future information (fix PRs, post-mortems, root-cause messages) from leaking into the inputs. The harness fans out across data sources and uses an adversarial agent to challenge each hypothesis; its findings data model went through five versions, from free-form essays to evidence-backed, discountable records written in waves. Heads-up messages must pass layered mechanical checks, 'vibe' checks and tone tuning, and are LLM-graded for novelty and accuracy. Telemetry queries are summarized and graphed for the agent, and a nightly 'Explore' process re-validates stored memories so they stay correct as the organization changes.
- From single pull requests to full software packages: Detecting malicious code at scale
Datadog Engineering mediumAdeptDatadog 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. The agent uses GitHub APIs, osv.dev and SCA to check context such as author history and reverted commits. On 690 test diffs the two-stage design raised accuracy from 97.4% to 99.86% by cutting false positives from 17 to 0, and static typosquat-domain checks cover gaps in the filter. For large packages, giving the agent a codemap plus an on-demand ReadFile tool beat both forwarding the flagged chunk and rechunking, reaching 95.2% end-to-end accuracy with no runtime errors. Projected costs are about $0.025 per median package and $0.072 at p90, and a crawler polls npm and PyPI every 10 minutes, caching verdicts by hash and diffing against the previous version.
- Building an agentic harness that outlasts the model
Shopify Engineering mediumAdeptShopify'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. Across 80+ applications including the Shopify Core Rails monolith it produced 300+ findings in about six weeks, valued at over $400,000 in bounty equivalents. Full scans cost $50–300 and diff-based incremental scans $5–50. Key lessons: tests are the oracle for web vulns (e.g., two-tenant fixtures for IDOR), partitions sized to 20–30% of the context window improve recall at low cost, category-specific agents beat generalists, and deterministic scripts should own structured output, Git and credentials. Newer models find more candidates but also more noise, so the harness matters more than the model.
- 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.