# Metaが変更前後の違いから不具合を見つけるJiTTests

> MetaがAIでテストを生成し、コード変更が本番へ入る前に不具合を見つけるJiTTestsの運用を紹介しています。

- URL: https://cardene.dev/daily/2026-11-03/ai-dev/hn-50343102
- 紹介した日: 2026-11-03
- カテゴリ: AI開発支援
- 元の記事: https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/
- 元の記事の公開日: 2026-10-29

Metaがコード変更による不具合を本番前に見つけるJiTTestsの運用を紹介しています。
変更の意図から作る経路では意図的に誤りを加えたコードを使い、その誤りを検出するテストを実際の変更にも適用します。


```dragon
architecture 候補の選別
box change as コード変更 [icon: code]
box tests as 二通りのテスト生成 [icon: code]
box run as 失敗候補 [icon: flag]
box filter as 選別 [icon: check]
box human as 人の確認 [icon: user]
step 候補を絞る
  say 変更の差と意図からテストを作り、失敗候補をルールと複数のAIで絞ります。
  change -> tests [carry: none]
  tests -> run [carry: none]
  run -> filter [carry: none]
  filter -> human [carry: none]
  source Meta JiTTesting [url: https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/]
```

## 失敗した候補を人へ渡す前に選別する
意図した変更でもテスト結果は変わるため、失敗だけでは不具合と判断できません。
そこで変更の意図と実行結果を複数のAIやルールで評価し、人が確認する候補を絞ります。
本番前に重要な不具合を見つけたという成果はMetaの環境での報告です。

## 参考リンク

[元の記事を読む](https://engineering.fb.com/2026/10/29/security/catching-bugs-before-they-land-jittestings-human-on-the-loop-approach-at-full-scale/)
