AI Engineering

Meta reports production results for AI tests that catch bugs before code lands

Meta’s JiTTesting deployment generates executable tests for risky code changes, with engineers overseeing criteria and reviewing selected findings.

Published Updated
MetaJiTTestingSoftware testingAI coding

Meta published production results for Catching Just-in-Time Tests, or JiTTests, on October 29, describing a system now embedded in its infrastructure. It generates executable checks for proposed code changes and runs overnight on spare computing capacity, focusing on changes judged risky. Engineers set criteria and monitor aggregate outcomes, with selected findings escalated for attention, rather than supervising every generated output.

Meta says 589 engineers engaged with the system, representing 64% of its outreach, and reports a 60% true-positive rate. For the first half of 2026, the company credits JiTTests with helping intercept 74 serious privacy bugs before production and lowering privacy incidents classified as severe by 20%. These are Meta’s deployment figures, not independently reproduced results or measurements of all software defects.

The underlying idea predates this update. Meta explained it in a February 11 article: generate a test specifically for the code change under consideration, instead of depending entirely on tests written to cover unknown future changes. A regression is behavior that a modification unexpectedly breaks. A tailored test can expose that change while avoiding a permanent addition to a test suite that engineers must keep maintaining. That is a focused way to investigate a particular modification, without claiming to replace every other test.

That earlier explanation describes language models inferring what a developer intended, then creating altered code versions containing plausible mistakes. These deliberately introduced faults are called mutants. Generated tests try to expose them, and rule-based and model-based assessors help filter the resulting signals. The useful output for an engineer is a concrete report of unexpected behavior, rather than a demand to read and maintain every generated test.

The research paper, first submitted on January 30, describes an earlier evaluation of 22,126 generated tests. Researchers reported 41 candidate catches to engineers; eight were confirmed, including four judged capable of causing serious production failures. Those figures describe the initial study, separately from October’s larger deployment report. They should not be combined into one sample or treated as directly comparable rates.

Another predecessor is Meta’s Automated Compliance Hardening, described in February 2025. Engineers supply a plain-language description of a fault category, such as privacy regressions. The system generates representative mutations and tests that detect them. This explains why mutation testing is useful: simply running previously untouched lines of code does not demonstrate that a test would notice a meaningful fault. Detecting an inserted fault provides a more specific check.

Selecting where to spend that computational effort is a separate problem. Meta’s August 2025 documentation describes Diff Risk Score, a technology based on a fine-tuned Llama model that examines code changes and metadata to estimate production-incident risk and identify risky snippets. Its uses include guiding test selection and release decisions. That background explains risk-based prioritization; a score estimates likelihood, rather than proving that a proposed change contains a bug.

Meta’s risk documentation also describes a Risk Awareness Platform that exposes risk-analysis APIs and tool integrations. The 2025 article identified natural-language explanations and engineer feedback as directions for making scores more useful, while calling LLM explainability an open research problem. In that framing, a risk score is a statistical aid to allocating testing resources. It does not certify code as correct or eliminate the need to investigate unexpected behavior.