← Latest papers
🤖 AI

Copy-on-Write Scoring: Application-Specific Agent Evaluations

This paper introduces Copy-on-Write (CoW) Scoring, a framework that leverages PostgreSQL-level isolation to evaluate LLM-based agents directly within application environments, enabling granular, cost-effective identification of database write failures and iterative improvements to agent tool surfaces.

Original authors: Joanna Roy, Sven Hoelzel

Published 2026-07-17
📖 4 min read☕ Coffee break read

Original authors: Joanna Roy, Sven Hoelzel

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've just built a super-smart robot assistant that can talk to your favorite apps, like a project management tool or a calendar. You want it to help you organize your life, but you're terrified it might accidentally delete your entire to-do list or change your boss's status to "on vacation" when they're actually in a meeting. This is the world of AI agents: computer programs that don't just chat, but actually do things in software systems. The big problem right now is figuring out how to test these robots safely. Usually, scientists test them in fake, made-up worlds (like a video game simulation), but those simulations often drift away from reality, or they are so expensive to build that nobody can afford to update them every time the real app changes. We need a way to watch the robot work in the real app without it ever actually breaking anything, so we can see exactly where it gets confused and fix it.

Enter a new idea called Copy-on-Write (CoW) Scoring, proposed by researchers Joanna Roy and Sven Hölzel. Think of their method like a "magic glass wall" built right inside a database (the digital filing cabinet where apps store their data). Normally, if you tell a robot to "change this file," it goes straight to the real file and scribbles over it. With CoW, the robot is told to write on a special, invisible sheet of glass that sits on top of the real file. The robot thinks it's writing to the real thing, but it's actually just writing on the glass. The original file underneath stays perfectly safe and untouched.

Here's the clever part: the system keeps a "ground truth" version of what should happen (like a perfect human doing the task) and compares it to what the robot did on the glass. Because the robot is writing on a separate layer, the researchers can instantly see: "Oh, the robot tried to delete the wrong row," or "It added a comment to the wrong task." They can score the robot's performance based on how close its glass-writing was to the perfect human version. If the robot fails, the researchers just wipe the glass clean and try again, without ever having to restore a backup or worry about corrupting the real data.

In their study, the team tested this on Plane, an open-source project management platform. They set up 20 different real-world tasks, like "move all unfinished bugs to the 'In Progress' list" or "assign new tasks to specific team members." They let five different AI models try to do these jobs while the CoW system watched. The results were eye-opening. The researchers found that many robots failed not because they were "dumb," but because of vocabulary mismatches. For example, the app called things "work items," but the robots were looking for "issues." The robots got stuck, gave up, or started hallucinating (making up fake commands) because they couldn't find the right words.

By using CoW Scoring, the team could pinpoint these exact failures. They realized, "Ah, the robot is failing here because it doesn't know 'issue' means 'work item'." So, they updated the tools the robot uses to include both words. When they ran the tests again, the robots got much better. For instance, one model called Gemini-2.5-Pro improved its score by 54%, and another called GPT-4.1 jumped by 47%. The study suggests that this "glass wall" method is a powerful, low-cost way to debug AI agents in real applications, helping developers fix the specific tools and prompts that confuse the robots, rather than just guessing what went wrong. It's a way to let the robots practice in the real world without the risk of a real-world disaster.

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 →