← Latest papers
💻 computer science

FlyCatcher: Neural Inference of Runtime Checkers from Tests

FlyCatcher is an automated approach that leverages LLM-based synthesis, static analysis, and dynamic validation to derive stateful runtime checkers from existing software tests, significantly improving the detection of silent failures in complex systems.

Original authors: Beatriz Souza, Chang Lou, Suman Nath, Michael Pradel

Published 2026-04-27
📖 4 min read☕ Coffee break read

Original authors: Beatriz Souza, Chang Lou, Suman Nath, Michael Pradel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a chef in a massive, high-tech restaurant kitchen. Most of the time, everything runs perfectly. But occasionally, a "silent failure" happens: a chef accidentally uses salt instead of sugar, or a sauce is slightly too salty. The dish doesn't look wrong, and the stove doesn't explode, but the flavor is ruined. By the time the customer sends the plate back, the kitchen has already moved on, and it’s nearly impossible to figure out exactly when or why the mistake happened.

In the world of software, these are "silent failures." The program doesn't crash or show an error message; it just starts producing wrong data or making bad decisions.

The Problem: The "Recipe" is Too Specific

To catch these mistakes, programmers usually write "checkers"—little digital security guards that watch the code and yell "Hey! That's not right!" But writing these guards is incredibly hard and boring. It’s like having to write a 50-page manual for every single ingredient in the kitchen.

Programmers do write Tests, which are like "practice runs." A test might say: "Take 2 eggs, add 1 cup of flour, and make sure the batter is thick." This is great for a specific recipe, but it doesn't help you catch a mistake in a completely different recipe, like a soup.

The Solution: FlyCatcher (The "Master Sous-Chef")

The researchers created FlyCatcher. Think of FlyCatcher as a brilliant, AI-powered Sous-Chef that watches your "practice runs" (the tests) and learns the logic behind them so it can create permanent security guards.

Here is how FlyCatcher works using three special skills:

1. Reading Between the Lines (The LLM Skill)
If a test says, "Add 1 spoon of salt, then add 1 spoon of sugar," a regular computer might think, "Okay, I must always add exactly one spoon of salt." That’s too rigid.
FlyCatcher uses a Large Language Model (like the brain behind ChatGPT) to understand the intent. It realizes, "Oh! The chef is testing the balance of seasoning." Instead of guarding "one spoon," it creates a guard that says, "Whatever you add, make sure the ratio of salt to sugar stays sensible." It understands the spirit of the rule, not just the literal numbers.

2. The "Shadow Notebook" (The Shadow State)
To catch complex mistakes, you need memory. If a chef adds an egg, then later removes it, a simple guard might get confused about how many eggs are actually in the bowl.
FlyCatcher creates a "Shadow State." Imagine the Sous-Chef keeping a secret notebook. Every time a chef performs an action (like adding an ingredient), the Sous-Chef scribbles it down in the notebook. The checker then compares the actual bowl to the notebook. If the bowl has three eggs but the notebook says there should only be two, the alarm goes off!

3. The "Trial by Fire" (Validation)
FlyCatcher doesn't just hand you a guard and walk away. It puts the guard through a training camp. It says, "Here is the guard I built. Now, let's run 100 different recipes. If the guard accidentally screams 'Error!' when nothing is actually wrong, it's a bad guard. Go back and fix it." It repeats this until the guard is perfect.

Why does this matter?

In the researchers' tests on massive, complex software systems (like the ones that run big databases), FlyCatcher was a superstar:

  • It was much smarter: It created 2.6 times more useful guards than the previous best methods.
  • It was a better detective: It caught 5.2 times more hidden bugs.
  • It was efficient: It costs only about 60 cents per guard to "train," and it doesn't slow the system down much.

In short: FlyCatcher turns simple "practice runs" into intelligent, permanent security guards that can spot subtle, silent mistakes before they ruin the whole "meal."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →