Manuscript Offprint

arXiv:2609.01985

When Agents Implement Systems: A Case Study in Defects, Detection, and Evaluation Rigor

Phanindra Reddy Madduru

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As LLM coding agents increasingly perform end-to-end engineering work rather than single-function code completion, we lack empirical characterization of how they behave when implementing genuinely systems-level requirements: a storage schema, concurrency and async orchestration, cross-process configuration correctness, and a retrieval-filtering precision trade-off. We present a case study of an LLM coding agent implementing a multi-component data system (a persistent graph store, a filtered vector index, an async ingestion pipeline, and a real-time visualization client) against a detailed pre-existing specification — storage technologies, schema, entity-resolution algorithm, and retrieval-filtering strategy fixed in advance; the agent's autonomy was in the implementation, in diagnosing and fixing defects it introduced while building to that spec, and in interaction-design choices the spec left open. Over a single extended session, we catalog five such defects, categorized by which systems constraint each violates and by whether it was caught by automated testing or only by empirical probing (rendered screenshots, timing measurements) with no type-level or static signature. We further evaluate, on a public multi-hop QA benchmark (HotpotQA, distractor setting), the one retrieval trade-off specified in that architecture — restricting candidates to a graph-identified entity set before ranking, versus unfiltered semantic search — reusing the benchmark's gold evidence labels as a stand-in for entity identification (which we did not have LLM access to run in this session) and for a standard information-retrieval recall metric rather than the benchmark's own answer-accuracy metrics. Across k∈{1,3,5,10}k \in \{1, 3, 5, 10\} and n=100n = 100 questions against a 2,994-paragraph pooled corpus, filtered recall reaches 1.0 by k=3k = 3 — expected once candidates are restricted to the gold-titled paragraphs themselves — while unfiltered search recovers all required evidence only 69% of the time even at k=10k = 10, a gap that holds at every kk (sign test, p<10−4p < 10^{-4}). We close with a candid discussion of where the agent's autonomy succeeded versus required human correction, including one instance where a claimed performance fix was never re-measured on the regression that motivated it — an unverified engineering claim that the self-reported development loop, in this instance, had no mechanism to catch.

1 Introduction

LLM coding agents are increasingly deployed not for isolated code completion but for open-ended, multi-file engineering work: implementing data models, wiring asynchronous job queues, and debugging failures that only manifest at runtime. Existing evaluations of agentic coding largely score whether an agent resolves a pre-specified, bounded issue in an existing codebase [4], and existing agent architectures for combining reasoning with tool use (retrieval, code execution) are evaluated on task success rate [5]. Neither setting captures a different failure mode: an agent given a detailed specification for a multi-component system, building it end to end across many files and pipeline

Preprint.

stages, and introducing — then having to diagnose and fix — its own systems-level defects along the way. This shifts the relevant evaluation question from “does the generated function pass its unit test” to “does the agent behave reliably when implementing systems engineering under the constraints systems engineers actually face” — consistency across a schema shared by multiple call sites, correctness of idempotent storage operations under repeated execution, reliability of configuration that must resolve identically regardless of which process launches it, and precision trade-offs in retrieval filtering. ML-driven systems design has an established track record when the target is a well-specified optimization problem, such as learned chip placement [6]; our case study instead concerns implementation reliability against a specification that is itself fixed and detailed — whether an agent introduces, and can self-correct, systems-level defects while building to it.

We report an observational case study: a single LLM coding agent (Claude, operated via a CLI coding tool) implemented a multi-component data system end to end — a persistent, schema-driven graph store; a metadata-filtered vector index; an asynchronous multi-stage ingestion pipeline; and a force-directed graph visualization client — against a detailed pre-existing specification (Section 2). Over the course of the session, five defects were introduced by the agent’s own implementation work and later diagnosed and fixed, either by the agent proactively or in response to a user-reported symptom. We treat this transcript as data: we categorize each defect by which systems constraint it violates — reliability, correctness, consistency, or efficiency — and by how it was actually caught (automated test vs. empirical/visual probing). We then evaluate one specified engineering trade-off in that architecture — filtering retrieval candidates by a graph-identified entity set before ranking, versus unfiltered semantic search — quantitatively on a public external benchmark, rather than the internal corpus the case-study system was originally developed against.

We are explicit about what this paper is not: graph-guided retrieval filtering is not new — it is established in the retrieval-augmented generation and GraphRAG literature [2, 3]. The contribution is Section 3’s defect catalog; Section 4’s benchmark is one reproducible illustration of a specified trade-off, not a new retrieval technique.

Contributions: (1) a catalog of five systems defects introduced during spec-directed implementation and later diagnosed and fixed by the implementing agent, categorized by constraint type and detection method; (2) an externally-benchmarked evaluation, with a significance test and a k-sweep, of one specified retrieval-filtering trade-off in that architecture; (3) a candid discussion of an evaluation-rigor gap the agent itself exhibited — claiming a fix without re-measuring the regression it targeted — and what it implies for trusting an autonomous agent’s self-reported engineering claims.

References (10)