artificial intelligence

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

arXiv:2607.14336

summary

The paper presents Copy-on-Write (CoW) Scoring, a framework that uses PostgreSQL's copy‑on‑write mechanism to isolate and evaluate LLM‑based agents' database write operations within real application environments, providing fine‑grained session and operation scores.

Abstract

Trustworthy deployment of LLM-based agents in software systems requires evaluating how they perform on application-specific workflows, with enough granularity to localize where they succeed and fail. Yet existing agent evaluation mechanisms are limited: benchmarks have low construct validity for application-specific workflows and environments, and replica evaluation environments are expensive and prone to drift. We propose Copy-on-Write (CoW) Scoring, a framework that evaluates agent operations directly within application environments using a PostgreSQL-level Copy-on-Write mechanism to isolate agent writes. CoW Scoring produces session- and operation-level scores that highlight where agents' database write operations succeed and fail in a given application environment, enabling inexpensive evaluation and iteration on agent harnesses and tool surfaces. We demonstrate the framework on Plane, an open-source project-management platform, where analysis surfaced specific issues in the tool surface, and corresponding fixes produced measurable improvements on affected models. Python library: https://github.com/trail-ml/agent-cow-python

15 pages, 11 figures, accepted at ICML 2026 Second Workshop on Agents in the Wild: Safety, Security, and Beyond

Topics & keywords

#agent evaluation#copy-on-write#database testing#application-specific workflows#llm agentsCopy-on-WritePostgreSQLLLM-based agentssession-level scoringoperation-level scoring