Meet Meta’s JiTTests: LLM-Generated Tests Designed to Fail Before Risky Code Lands

In one sentence

Meta deployed JiTTests, an LLM-based system that generates tests designed to fail on risky code diffs, catching 74 privacy SEVs before landing in H1 2026.

Key points

  • Unlike standard AI reviewers that only leave comments, JiTTests executes code and triggers failures to prove behavioral differences.
  • The production pipeline features five stages: overnight targeting, diff-aware test generation, an LLM-as-Judge ensemble, rule-based filtering (RubFake), and human-on-the-loop oversight.
  • In H1 2026, JiTTests caught 74 privacy SEVs at the diff stage, reducing privacy SEV occurrence by 20% with a 60% engineer-reported true-positive rate.
  • JiTTests remains internal Meta infrastructure, with no code, models, or API released to the public.

In depth

An AI-written overview of the original article, not the article itself.

Meta has moved its LLM-based Catching Just-in-Time Tests (JiTTests) system into internal production. Designed to generate executable tests that fail on risky code changes, the system caught 74 privacy SEVs in the first half of 2026 before the code was merged.

How the Pipeline Works

Unlike typical AI review tools that only read code diffs and leave comments, JiTTests executes generated tests to provide concrete proof of behavioral changes, according to the article. Running overnight on spare capacity, the pipeline first targets risky code diffs from the previous day.

Next, two workflows generate candidate tests: one treats every diff as buggy, while an intent-aware workflow infers the code's purpose and risks before writing tests. An ensemble of LLMs and a rule-based filter called RubFake then score the failing tests to remove false positives before deciding whether to alert an engineer.

Production Results and Availability

During its initial deployment, JiTTests reported 41 candidate catches, with 8 confirmed as true positives, representing a 19.5% rate. By October 2026, full-scale production data showed 589 engineers engaging with the system, a self-reported 60% true-positive rate, and a 20% drop in overall privacy SEV occurrences.

Meta uses a human-on-the-loop approach, where engineers set high-level criteria and simply confirm whether a detected behavior change was intended, rather than reading every test. However, JiTTests remains internal to Meta, with no code, models, or APIs released to the public.

Read originalOpens marktechpost.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source