RELAY: Scaling Historical Build Restoration through Rule Reuse and Agentic Repair
- Source
- arxiv.org
- Author
- Olivier Nourry, Yoshiki Higo
- Date

Context
Security benchmarks and a lot of software engineering research assume you can rebuild an old version of a project and reproduce what it did. The problem this paper documents is that builds depend on things outside the repository, such as base images and packages, and those keep changing after the code is frozen. Looking at 14,159 historical OSS-Fuzz cases, the authors report in the abstract that 69.7% can no longer be rebuilt and verified.
The useful is that most of those failures share a small number of recurring symptoms. That makes repair a reuse problem rather than a one-off problem. Relay uses an to work out a fix from representative failures and turn it into a deterministic rule, checks that the rule works, and then applies it to other cases without any further model calls. Cases the rules cannot fix are handed to an agent that works on that one build.
The authors compare this against simply running a per-case agent everywhere. By their account, deriving the rules can be fully automated, and the rules restore as many builds as per-case agents while needing fewer build executions, though agents still fix cases the rules cannot. The combination, rules first and an agent for the remainder, restores more builds than either approach alone and costs less than using agents alone. In the full paper, that head-to-head comparison is a paired on 50 cases, where combining the recorded rule and agent outcomes gave 37 to 39 recoveries with fewer builds and less than half the agent of an agent alone.
- Of 14,159 OSS-Fuzz cases, the authors found 69.7% no longer complete reconstruction and verification, because base images and packages change independently of the source. Most failures share a small number of recurring symptoms.
- Relay has an LLM derive and validate deterministic repair rules from representative failures, then reuses those rules without model calls. Rule derivation could be fully automated, and rules restored as many builds as per-case agents with fewer build executions.
- Agents still restored cases rules could not, so the best result came from applying rules first and escalating leftovers to an agent: more builds restored than either alone, at lower cost than agents alone.
- Observation — The result the harness returns into the context after executing a tool: contents, a listing, a status or an error.
- Large language model — A model trained on large amounts of data to process and generate language.
- eval — A repeatable test for AI quality — a set of tasks plus scoring — used the way software teams use test suites, because model output is too variable to judge by eyeballing.
- Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
articleExercised, Rarely Recovered: What Public Reports Say About Recovery in 50 AI Agent Harnesses and RuntimesKaviru Hapuarachchi
articleSupporting Industrial Test-Failure Analysis with LLM-Based Systems: An Experience ReportEric Jansson, Per Strandberg, Thomas S\"orensen, Eduard Paul Enoiu, Wasif Afzal
articleCode Transformation Rule Synthesis using LLMs: Potential and LimitsAxel Allain, Aymeric Blot, Djamel Eddine Khelladi, Mathieu Acher