HudHud Tech — Tech & AI news platform
Tuesday, 1 December 2026
Breaking
Artificial Intelligence | Software & Apps

Meta Transitions JiTTests: LLM-Generated Tests to Identify Risky Code Changes

17 November 2026 3 min read هدهد تك | Hudhud Tech

Meta has moved Catching Just-in-Time Tests (JiTTests) from a research prototype into its production infrastructure. JiTTests is an LLM-based system that generates executable tests intended to fail when risky code changes are made. The Meta team reports that JiTTests caught 74 privacy security vulnerabilities at the diff stage in the first half of 2026. This approach is detailed in the FSE 2026 research paper titled ‘Just-in-Time Catching Test Generation at Meta.’

TL;DR

  • Scale: Operates on Meta’s backend code, which comprises hundreds of millions of lines. The research paper analyzes 22,126 generated tests.
  • Runs on: Meta’s internal infrastructure, utilizing spare capacity overnight. Judge models referenced in the paper include Llama3.3-70B, Gemini 3 Pro, and Claude Sonnet 4, which are not publicly available.
  • Performance: Engineers report a 60% true-positive rate at full scale (self-reported).
  • Best: 74 privacy security vulnerabilities caught before deployment in H1 2026; privacy SEV occurrence decreased by 20%.
  • Worst: The initial deployment confirmed only 8 of 41 reported catches (19.5%).
  • Bottom line: Best: executable proof of a bug before merging. Worst: internal only, with self-reported metrics.

What are Catching JiTTests?

Catching JiTTests are LLM-generated tests designed to fail when a diff introduces a bug. Unlike traditional hardening tests, which pass when written and guard against future regressions, JiTTests specifically target the changes under review before they are merged. Meta formalized the details in its 2025 paper titled ‘Harden and Catch.’

Most AI bug detection tools function as faster human reviewers, analyzing the diff and providing comments. In contrast, JiTTests execute the code and demonstrate a concrete behavioral difference. The Meta team acknowledges that this process requires more computational resources but argues that it captures bug classes that LLM or agent reviews might overlook.

How does the JiTTests pipeline work?

The production pipeline consists of five stages:

  1. Targeting: Runs overnight on spare capacity, selecting the previous day’s risky diffs using a method similar to Meta’s Diff Risk Score.
  2. Test generation: Two diff-aware workflows create candidate tests.
  3. LLM-as-Judge ensemble: Multiple LLMs evaluate each failing test using the test code, failure trace, diff, and inferred intent.
  4. RubFake: The Rule-Based False-Positive Killing Environment applies deterministic checks, flagging patterns such as reflection, broken mocks, and unimplemented exceptions.
  5. Human-on-the-loop: The system determines whether to contact an engineer based on the combined ranking.

Dodgy diff vs intent-aware: what is the difference?

The dodgy diff workflow assumes that every diff is potentially buggy, treating the diff as a mutant of its parent and generating tests to differentiate between them.

The intent-aware workflow first infers the intended behavior of the diff from its code, title, and summary. It identifies risks, creates a mutant for each, and generates tests to eliminate them. Tests that fail on the actual diff are categorized as ‘weak catches.’

What do the benchmarks show?

The research team analyzed 22,126 generated tests. Diff-aware methods produced four times more candidate catches than traditional hardening tests and twenty times more than tests that failed by coincidence.

The intent-aware workflow achieved weak catches in 6.4% of its tests and 7.9% of diffs, while the dodgy diff workflow scored 2.5% and 4.0%. Earlier mutation-guided hardening by Meta scored 0.8% and 1.6%. The rule-based and LLM assessors reduced the human review workload by 70%.

Related link: engineering.fb.com

 

Source: MarkTechPost

What do you think of this story?

Share this story: