← Latest papers
💻 computer science

Project Prometheus: Bridging the Intent Gap in Agentic Program Repair via Reverse-Engineered Executable Specifications

The paper introduces \textsc{Prometheus}, a novel agentic framework that bridges the intent gap in automated program repair by reverse-engineering executable Gherkin specifications from failure reports and validating them through a Requirement Quality Assurance loop, achieving a 93.97% correct patch rate on the Defects4J benchmark.

Original authors: Yongchao Wang, Zhiqiu Huang

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

Original authors: Yongchao Wang, Zhiqiu Huang

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 master architect who has hired a brilliant, super-fast construction crew (the AI agents) to fix a leak in your house.

The Problem: The "Berserker" Builder
In the past, you would tell the crew, "There's a leak in the kitchen, please fix it."
The crew, being incredibly smart but lacking common sense, would panic. They might tear down the entire kitchen wall, replace the plumbing with a fire hose, and install a swimming pool in the living room just to be sure the leak is gone. They fixed the symptom (the water) but destroyed the house (the code). This is what the paper calls the "Intent Gap." The builders know how to build, but they don't truly understand what you actually wanted.

The Solution: Prometheus
The authors of this paper, Yongchao Wang and Zhiqiu Huang, built a new system called Prometheus. Instead of letting the builders guess, Prometheus acts as a strict, detail-oriented project manager who speaks a very specific language.

Here is how Prometheus works, broken down into three simple steps:

1. The Detective (The Architect)

Before the builders touch a single brick, Prometheus sends in a Detective.

  • The Old Way: The detective would just say, "The wall is wet." (Vague!)
  • The Prometheus Way: The detective analyzes the leak and writes a strict rulebook (called a Gherkin Specification). It says: "If water hits the pipe, it must stop. If the pipe is dry, the wall must stay dry. Do not touch the living room."
  • The Analogy: This is like translating a messy complaint into a precise legal contract. The builders can no longer guess; they must follow the contract exactly.

2. The Quality Inspector (The Engineer)

This is the paper's secret sauce. Before the builders start working, the Inspector checks the rulebook.

  • The Inspector takes the rulebook and tests it against the broken house (to make sure the rule actually catches the leak).
  • Then, the Inspector tests it against the perfect house (the one the original owner fixed) to make sure the rulebook describes the right solution.
  • The Analogy: Imagine a chef tasting a recipe before cooking. If the recipe says "add salt" but the dish needs sugar, the Inspector catches it before the food is ruined. This prevents the builders from following a wrong instruction.

3. The Surgeon (The Fixer)

Now, the builders get to work. But they aren't the chaotic "Berserkers" anymore. Because they have a strict rulebook and a verified plan, they act like Surgeons.

  • They make tiny, precise cuts. They fix only the leak. They don't touch the living room.
  • The Result: The paper found that this method fixed 94% of the bugs, whereas the old "guessing" method only fixed about 76%. More importantly, for the really hard, complex bugs, Prometheus saved 74% of the cases that the old method gave up on.

Why This Matters (The "Aha!" Moment)

The paper discovered something surprising: The problem wasn't that the builders weren't smart enough; it was that the instructions were too vague.

  • Old Approach: "Fix the bug!" (Result: The builder hallucinates and breaks things).
  • New Approach: "Here is a step-by-step contract of exactly what the bug is and how it should behave. Now, fix it." (Result: The builder becomes a genius).

The "Digital Archaeology" Challenge

The paper admits one downside: The "Inspector" takes a lot of time and computing power. It's like hiring an archaeologist to dig through layers of old dirt just to make sure the blueprint is right before you build. But the authors argue this is worth it because it stops the builders from wasting time and money on massive, wrong fixes.

The Future

The authors believe the future of AI coding isn't about making the AI "smarter" or "bigger." It's about teaching the AI to ask better questions.

  • Instead of asking, "Can you fix this?"
  • We should ask, "Can you write the perfect rulebook for this fix, and then follow it?"

In a nutshell: Prometheus teaches AI to stop guessing and start following a verified, step-by-step contract. It turns a chaotic demolition crew into a precise surgical team, saving software from being "over-engineered" and broken.

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 →