Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 4 min read Announcement easyNovice

Revolutionizing software testing: Introducing LLM-powered bug catchers

Meta's Automated Compliance Hardening (ACH) combines LLM-based mutant generation with LLM-based test generation. Engineers describe the faults they care about in plain text, such as privacy regressions. ACH generates realistic mutants matching that concern, filters out equivalent mutants, and generates unit tests that are verified to kill those mutants. Unlike coverage-driven test generation, it targets specific fault classes. It has been deployed on Facebook Feed, Instagram, Messenger and WhatsApp, though the post gives no quantitative results and points to the accompanying paper for details.

Related posts

  • LLMs Are the Key to Mutation Testing and Better Compliance

    Meta Engineering easyNovice

    Meta's Automated Compliance Hardening (ACH) tool uses LLMs to make mutation testing practical at scale. Engineers describe a fault class in plain text, ACH generates realistic mutants that existing tests miss, and it then generates unit tests guaranteed to kill them. An LLM-based equivalence detector filters out unkillable mutants, reaching 0.95 precision and 0.96 recall with simple preprocessing. In a late-2024 privacy-testing trial across Facebook, Instagram, WhatsApp and wearables, engineers accepted 73% of generated tests. Meta also proposes the Catching JiTTest Challenge for generating bug-revealing tests at pull-request time, which runs into the test oracle problem.

  • Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale

    Meta Engineering mediumAdept

    Meta has moved Catching Just-in-Time Tests (JiTTests) from research prototype into production: LLMs generate executable tests designed to fail on risky diffs, exposing concrete behavioral changes before code lands rather than reviewing code like a human would. A nightly pipeline targets risky diffs, runs a mutation-guided "dodgy diff" workflow alongside an "intent-aware" workflow that infers a change's intent and risks to build mutants, then filters weak catches with an ensemble LLM-as-Judge plus a deterministic rule-based assessor (RubFake). Engineers are contacted only for highly ranked catches under a human-on-the-loop model, where they set criteria and review outcomes in aggregate. The system has drawn engagement from 589 engineers with a 60% true-positive rate and caught 74 serious privacy bugs at diff time, cutting privacy SEVs by 20% in the first half of 2026.

  • ClickGap: Autonomous QA for ClickHouse

    ClickHouse mediumAdept

    ClickGap is an autonomous QA agent that reviews every pull request merged into ClickHouse, writes and runs tests against real builds, bisects regressions, and files issues and test-only PRs without human sign-off. In five months it filed about 500 issues and 200 coverage PRs, more than half of the issues already closed as completed. Candidate findings must survive an adversarial reviewer and ten gates, eight enforced as plain code, including executed reproducers, valid citations, existing-test searches, mutation kill-tests for coverage claims, and matching against past false positives. Reviews cost a couple of dollars each, smaller models handle recoverable subtasks, and every cost cut must pass a recall benchmark that replays previously confirmed bugs.

  • Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes

    Meta Engineering hardMaster

    AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents. It is part of Meta's CyberSecEval 4 suite. Samples were kept only if they had reproducible crashes, valid stack traces, building vulnerable and fixed containers, and ground-truth patches that survive further fuzzing. A 113-sample Lite subset covers bugs whose root cause sits in a single function. Generated patches are checked by rebuilding, re-running the crashing input, fuzzing again, and LLDB-based white-box differential testing that compares program state against the ground-truth fix at the lowest common ancestor of the patched call stacks, with heuristics to handle nondeterminism and timeouts.

  • Detecting malicious pull requests at scale with LLMs

    Datadog Engineering mediumAdept

    Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.

The quest for software engineering knowledge.

Look:
Layout: