---
title: "Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale"
description: "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."
url: "https://swe.quest/articles/catching-bugs-before-they-land-jittesting-s-human-on-the-loop-approach-at-full-5ed9a65800ed7e6c"
canonical: "https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/"
source: "Meta Engineering"
published: "2026-10-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["testing","ai-coding","llms","privacy"]
---

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

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-10-29, 6 min read, Case study. Original: [https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/](https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)

## Prerequisites

- mutation testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- code review workflows ([easy posts on Code review](https://swe.quest/tags/code-review.md?difficulty=easy))
- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

JiTTests, Catching JiTTests, LLM-as-Judge, RubFake, Diff Risk Score, FSE 2026, Meta

## Related posts

- [LLMs Are the Key to Mutation Testing and Better Compliance](https://swe.quest/articles/llms-are-the-key-to-mutation-testing-and-better-compliance-3f8016e770f9b659.md): Meta Engineering · 2025-09-30 · Easy · 9 min read · Testing, LLMs, AI for coding, Privacy
  Meta's Automated Compliance Hardening (ACH) tool uses LLMs to make mutation testing practical at scale.
- [Revolutionizing software testing: Introducing LLM-powered bug catchers](https://swe.quest/articles/revolutionizing-software-testing-introducing-llm-powered-bug-catchers-b24e74e1ad8cbee7.md): Meta Engineering · 2025-02-05 · Easy · 4 min read · Testing, AI for coding, LLMs, Privacy
  Meta's Automated Compliance Hardening (ACH) combines LLM-based mutant generation with LLM-based test generation.
- [My 2 Cents: I'll gladly spend them to stop staring at test logs](https://swe.quest/articles/my-2-cents-i-ll-gladly-spend-them-to-stop-staring-at-test-logs-fd2b2fd0a7e91451.md): trivago tech · 2026-04-15 · Medium · 9 min read · Testing, CI/CD, LLMs, AI for coding
  trivago added a trailing GitHub Actions job that uses an LLM to triage persistent end-to-end test failures in its Selenium-based trupi suite, where a run-level success rate of only 20% forced manual failure analysis 30+ times a day.
- [ClickGap: Autonomous QA for ClickHouse](https://swe.quest/articles/clickgap-autonomous-qa-for-clickhouse-c4c38e14d8c1feef.md): ClickHouse · 2026-08-25 · Medium · 18 min read · AI agents, Testing, LLMs, CI/CD, Databases
  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.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
