Meta's Catching JiTTests: AI-Generated Tests as Merge Evidence at Scale
Meta's Catching JiTTests system uses LLMs to generate executable tests for high-risk code changes, employing dual generation workflows and a two-layer filtering system (LLM-as-Judge and RubFake) with human-on-the-loop oversight to catch 74 critical privacy defects and reduce SEVs by 20% across hundreds of millions of lines of code.
Reading font

Meta's Catching JiTTests system shifts AI-assisted testing from generating review comments to producing executable tests that serve as direct merge evidence. Instead of simulating a faster code reviewer, the system creates tests designed to fail when a high-risk change introduces a regression, turning a test failure into an objective, machine-verifiable signal that can automatically gate merges.
1. A Review Comment vs. a Test Failure
Traditional LLM code review outputs opinions based on semantic reasoning, requiring human judgment. Catching JiTTests outputs test cases whose pass/fail result is an objective behavioral difference. This enables two key advantages: (1) it catches deep behavioral regressions that only manifest at runtime, not just style issues or obvious logic errors; (2) a failing test is self-contained evidence that can flow directly into automated quality gates without human interpretation.
2. Two Parallel Generation Workflows
For each diff, the system runs two independent generation pipelines to maximize the candidate pool of potentially failing tests:
Dodgy diff workflow: Treats each diff as a mutant and uses mutation-guided LLM test generation to produce tests that distinguish the changed code from its parent version. The goal is to expand the candidate pool as widely as possible.
Intent-aware workflow: Asks the model to infer the change intent from the diff, title, and summary, then enumerate ways that intent could be implemented incorrectly. Each hypothesized bug becomes a mutant; tests are generated to kill each mutant and then executed against the actual diff.
Any test that fails on the diff is collected as a weak catch — a candidate that may still be a false positive.
3. Two-Layer Filtering: From Weak Catch to Strong Catch
To separate true positives (strong catches) from false alarms, Meta employs two complementary filters:
LLM-as-Judge ensemble: A panel of leading LLMs reviews the test code, execution results (failure code, error messages, execution traces), the parent/child diff, and the inferred intent. Multiple models jointly judge whether the weak catch is a true positive.
RubFake rule-based environment: A deterministic, verifiable rule engine that eliminates known false-positive patterns. LLM-as-Judge provides semantic richness but is non-deterministic; RubFake provides deterministic, auditable conclusions.
The two filters rank all weak catches; only those ranking high enough proceed to the next stage.
4. Human-on-the-Loop, Not Human-in-the-Loop
Meta deliberately chose human-on-the-loop over human-in-the-loop . Engineers do not review every generated test. Instead, they pre-define acceptance criteria and monitor aggregated results, intervening only when the system flags a potential issue. This reduces load, avoids interruption fatigue, and ensures consistent, reproducible judgments. Engineers simply confirm whether an observed behavior change is expected.
5. Production Results and Transferable Practices
As of the FSE 2026 paper (arXiv:2601.22832, https://arxiv.org/pdf/2601.22832), 589 engineers (64% of the target population) actively used Catching JiTTests. In the first half of 2026, the system caught 74 critical privacy defects at the diff stage — all before production merge — and overall privacy SEVs dropped ~20%. Engineers rated the findings as actionable, not noise.
The Meta Engineering Blog provides further details:
https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/.
Three transferable lessons emerge:
Produce executable evidence, not opinions. Only machine-verifiable pass/fail outputs can automatically enter pipelines.
Expand the candidate pool, then filter in layers. Use diverse generation strategies to maximize coverage, then apply semantic and deterministic filters to narrow down.
Humans guard policy, not individual results. Define success criteria upfront, monitor at the aggregate level, and keep human effort at the strategic layer.
As AI accelerates code generation, review, and deployment, the verification bottleneck grows. Meta's approach demonstrates that turning AI output into self-verifying evidence is a scalable path to keeping merge decisions fast and reliable.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.