← Latest papers
🤖 AI

Specification Portability Across LLM Development Agents: Cross-Agent Compatibility in Specification-Driven Software Migration

This paper demonstrates that specifications generated by one AI agent for Oracle-to-PostgreSQL migration often fail to port effectively to other agents, revealing significant agent-dependent degradation in implementation quality and highlighting the need for explicit strategies like retrieval-augmented ingestion to ensure cross-agent compatibility in software engineering workflows.

Original authors: Oleg Grynets, Oleksii Ilchuk, Dariia Zatulna, Vasyl Lyashkevych

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

Original authors: Oleg Grynets, Oleksii Ilchuk, Dariia Zatulna, Vasyl Lyashkevych

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

In the modern world of software creation, a new kind of worker has joined the team: the large language model. These are powerful computer programs trained on vast amounts of text and code, capable of reading a description of a task and writing the instructions a computer needs to perform it. As these tools become more common, developers are shifting from simply asking them to write code to giving them detailed blueprints, known as specifications. These specifications act as operational guides, telling the model exactly what to build, how it should behave, and what rules it must follow. This approach, called specification-driven development, promises to make software creation more reliable and structured. However, a critical question has emerged as teams begin to use multiple different models to build a single system: if one model writes a perfect blueprint, will a different model be able to read it and build the same thing? The assumption has been that a good plan is a good plan, regardless of who reads it, but the reality of how these machines interpret information is far more complex.

Researchers at EPAM Systems set out to test this assumption by treating software migration as a controlled experiment. They chose a specific, difficult task: moving database code from one system, Oracle, to another, PostgreSQL. These two systems speak similar languages but have different dialects, requiring precise translation of logic, data types, and functions. The team first established a baseline by having a single model generate a specification and then immediately use that same specification to write the new code. This worked reasonably well; out of over a thousand source files, the system successfully regenerated more than 600, and nearly 400 of those new scripts ran correctly in the target environment. This proved that the method of using a middle-step specification was viable. But the real test came when they introduced a second, different model into the mix.

The researchers created a scenario where one model, such as Amazon Kiro, would write a specification, and then a completely different model, like Google Gemini or GitHub Copilot, would be handed that document to generate the code. They wanted to see if the second model could understand the first model's plan without losing quality. The results were striking and surprising. The size of the specification turned out to be irrelevant to the outcome. One model produced a massive, detailed document with nearly 1,600 lines of text, while another produced a concise version with only about 200 lines. Yet, the length of the document did not predict how well the code would work. In fact, the most significant finding was that the origin of the specification mattered immensely. When Google Gemini was given a specification written by Amazon Kiro, the quality of the resulting code collapsed. The new scripts failed to run, contained syntax errors, and looked nothing like the intended target. This failure was not a one-time glitch; the researchers repeated the experiment and saw the same dramatic drop in performance, confirming that the two models simply could not agree on how to interpret the same set of instructions.

This incompatibility was not universal, however, which added a layer of nuance to the discovery. While Gemini struggled deeply with Kiro's specifications, GitHub Copilot handled the same foreign documents much better, sometimes even performing as well with them as it did with its own. This suggested that the problem was not that foreign plans were inherently bad, but that different models have different ways of reading and understanding text. To address this, the team tested several ways to help the models bridge the gap. They tried rewriting the foreign specifications into a new format that the receiving model might prefer, and they tried compressing the text to make it shorter. Rewriting helped Gemini significantly, bringing its performance back up to a usable level, but compressing the text offered no real benefit. The most promising strategy involved a technique called retrieval-augmented generation. Instead of feeding the entire specification to the model at once, the researchers gave the model a tool to search through the document and pull out only the specific parts it needed for the current task. This approach did not win on every single measure, but it was the only method that provided a consistently strong balance of performance for both the struggling and the successful models.

The study concludes that in a world where software is built by a team of different artificial intelligence agents, a specification cannot be treated as a neutral, universal document. A plan written by one agent is not automatically a valid instruction set for another. The effectiveness of the code depends heavily on the specific relationship between the model that wrote the plan and the model that is building the software. If a team swaps out one agent for another, they cannot simply assume the existing blueprints will work; they may need to adapt the language of the plan or change how the new agent accesses the information. The research suggests that the future of multi-agent software engineering will require a new focus on how specifications are structured and delivered, ensuring that the knowledge contained in a plan can actually be understood by the machine tasked with building it.

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 →