← Latest papers
💻 computer science

Agentic Generation of AST Transformation Rules for Fixing Breaking Updates

The paper presents BigBag, an agentic framework that generates reusable, API-level AST transformation rules to automatically fix breaking dependency updates across multiple software projects, achieving high compilation and fix rates while demonstrating significant cross-project transferability.

Original authors: Frank Reyes, Benoit Baudry, Martin Monperrus

Published 2026-06-24
📖 5 min read🧠 Deep dive

Original authors: Frank Reyes, Benoit Baudry, Martin Monperrus

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 the manager of a massive construction site (your software project). You rely on a specific supplier (a third-party library) for your bricks, cement, and tools. For years, everything has worked perfectly.

Then, one day, the supplier sends a new version of their catalog. They didn't just update the price; they changed the shape of the bricks, renamed the tools, and moved the delivery trucks to a different street. Suddenly, your construction crew can't build anything. The blueprints don't match the new materials, and the whole site grinds to a halt. This is what programmers call a "breaking dependency update."

Usually, when this happens, a human developer has to go to every single construction site using that supplier's new catalog, figure out the changes, and manually rewrite the blueprints for each one. If 100 sites are affected, that's 100 separate, tedious jobs.

The New Solution: BIGBAG

The paper introduces a new system called BIGBAG. Instead of sending a human to fix each site individually, BIGBAG acts like a super-smart, automated architect.

Here is how it works, using simple analogies:

1. The "Detective" Phase

When the new supplier catalog arrives and the construction stops, BIGBAG's "detective" (a coding agent powered by advanced AI) looks at the error messages. It asks: "Why did the brick stop fitting?" It reads the new catalog (API documentation) to understand exactly what changed.

2. The "Universal Blueprint" Phase

This is the magic part. Instead of drawing a new blueprint just for your specific site, the AI draws a Universal Repair Rule.

  • Old Way: "Move the door on the left wall of your house."
  • BIGBAG Way: "If you see a door on the left wall, move it to the center, regardless of which house you are in."

This "Universal Repair Rule" is a small computer program (an AST transformation) that says: "Find every instance of this old tool and replace it with this new tool."

3. The "Test Drive" Phase

Before sending this rule out, BIGBAG tries it on the original broken site. It runs the rule, checks if the building stands up, and if the tests pass. If it fails, the AI detective tries again, tweaking the rule until it works perfectly.

4. The "Mass Distribution" Phase

Once the rule is proven to work on the first site, BIGBAG sends that exact same rule to all the other construction sites affected by the same supplier change. It's like handing out a single "Fix-It" sticker that works on every car of the same model, rather than fixing each car one by one.

What Did They Find?

The researchers tested this system on 157 real-world disasters where software broke due to library updates. They used four different "super-intelligent" AI brains and two different "drawing tools" (software engines) to create these rules.

  • Success Rate: The best combination of AI and drawing tool was able to create a working "Universal Repair Rule" 94% of the time.
  • Fixing the Break: Once the rule was created, it successfully fixed the broken software 78% of the time.
  • The "Universal" Test: The most exciting part was seeing if the rule worked on other sites.
    • Overall, the rules worked on 33% of other sites.
    • However, if all the sites used the broken tool in the exact same way (uniformly), the rules worked 80% or more of the time.

The Catch (Why it's not 100% perfect)

The paper found two main reasons why the "Universal Rule" sometimes fails:

  1. The Drawing Tool Matters: Some AI models are better at using certain "drawing tools" (software engines) than others. It's like giving a painter a brush they've never used before; they might make a mess. The researchers found that a simpler tool (JavaParser) often worked better than a complex one (Spoon) because it was easier for the AI to understand.
  2. The "One-Size-Fits-All" Problem: The AI learns the rule by looking at one broken site. If that site used the broken tool in a weird, unique way, the AI writes a rule for that weirdness. When it tries to apply that rule to a different site that used the tool normally, the rule might not fit. It's like making a custom suit for one person and trying to force it onto someone else; it only works if they have the exact same body shape.

The Bottom Line

BIGBAG proves that we can stop fixing software updates one project at a time. Instead, we can generate a single, reusable "repair script" that fixes the problem for everyone affected by the same update. While it doesn't fix everything perfectly yet, it turns a massive, manual headache into a mostly automated process, saving developers from having to rewrite the same code over and over again.

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 →