arXiv:2610.25629cs.SEOct 2026

Manuscript Offprint

arXiv:2610.25629

Selecting and Composing Agent Design Patterns: Industrial Case Evidence and Controlled Reference-System Experiments

Jia Huang, Bingsheng Ru, Bo Liang, Yuke Xiong, Haiyan Fan, Joey Tianyi Zhou

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

Abstract

Agent pattern catalogs describe architectural alternatives, but engineers also need evidence for selecting and composing them. A recurring industrial difficulty is that an apparently correct step can lose its meaning during execution: a valid identifier refers to the wrong record, a successful publication returns an unusable map, or a repeated event applies an effect twice. We extend a cognitive-function-execution-topology framework with an evidence-driven selection procedure and explicit composition contracts. The study combines two attributed industrial case accounts, a contributor's collaboration design, seven practitioner workshops, and executable fault-injection experiments.

Three local reference systems operationalize the reported mechanisms using SQLite state, shared artifact files, and a file-backed map-publication surrogate. A 2×22 \times 2 ablation separates function-specific contracts from execution controls across 36 scenario families, with ten input variants per family. Under equal family weighting, composition correctly completes or safely refuses 11 of 12 families in each system, compared with 2, 2, and 1 for the simple baselines. These are constructed challenge-suite results, not production success rates. Recovery without consumer-side verification increases false-success cases in the map surrogate. All composed systems still fail a boundary case in which trusted evidence is itself wrong. A separate audit of a frozen six-arm language-model pilot reproduces its reported scores but confirms an evaluator-dependent ranking reversal.

The contribution is a traceable connection from industrial failure to pattern selection, executable treatment, external acceptance, and revision. The selection step is demonstrated on these cases rather than evaluated against an alternative procedure, and catalog membership is governed by separately stated admission criteria rather than by these experiments. The results support specific composition mechanisms in bounded reference systems. Whether the framework improves engineers' design decisions over an equally informative conventional method remains a separate, explicitly specified research question.

Keywords: agent architecture; design patterns; empirical software engineering; fault injection; pattern composition; reproducibility

1 Introduction

An execution agent selects the right API, receives a valid identifier, and then supplies a different identifier to the next call. A GIS pipeline publishes a layer successfully, yet the consumer receives an XML exception or a blank image. Two cooperating agents process the same event twice after a worker restarts. These failures occur at different boundaries, but they share an architectural difficulty: information that was sufficient to advance one step was insufficient to justify the next step or the final claim of completion.

The industrial material underlying this study describes concrete responses. In Bo Liang's execution-agent case, exact business values move from conversational history to program-managed state, while a task graph records dependencies and resumption points. In Yuke Xiong's GIS case, tested processing decisions become versioned pipelines, and actual map requests establish acceptance. Haiyan Fan's collaboration proposal connects shared artifact references with event delivery, access control, and lifecycle management. These accounts provide empirical evidence about engineering problems and design reasoning. They do not all provide the same kind of evidence: the first two describe implemented systems and encountered failures, while the third specifies an architecture whose deployed performance has not yet been measured in the available record.

Our earlier framework organizes agent patterns along cognitive function and execution topology [1]. A function describes the responsibility being fulfilled, such as remembering a fact, choosing an action, or evaluating an outcome. A topology describes the control structure through which that work is performed. This distinction helps expose incomplete designs. Preserving an identifier does not determine when its consuming action may run. A retry loop does not establish whether the repeated action is correct. Selection must connect both questions to an observable engineering requirement.

The central proposition investigated here is conditional: when a failure crosses a function boundary and an execution boundary, a composition that preserves the required information and enforces the required transition can address failures that either component leaves unresolved. This proposition predicts interaction in some settings and merely additive effects in others. It also predicts no benefit, or added overhead, when the relevant failure is absent. It does not claim that every matrix cell should be used or that more agents improve a system.

We distinguish three questions throughout the paper, and separate all of them from a fourth, prior question—whether a pattern belongs in the catalog at all—which Section 4.2 answers with stated criteria rather than with experiments:

  1. Engineering relevance: which observed industrial failures and constraints motivate a pattern or composition?

  2. Mechanism effectiveness: what changes when an implemented contract, execution control, or their composition is enabled under the same task and injected fault?

  3. Design-method effectiveness: do engineers using the two-axis selection method build better systems than engineers given comparable information in another form?

The industrial accounts inform the first question. The new reference-system experiments and historical pilot audit address bounded aspects of the second. This manuscript does not report a completed human study of the third. Conflating these questions would turn a correct implementation of a known control into unsupported evidence for the causal superiority of a design method.

The paper contributes explicit admission and retirement criteria for the catalog, a case-grounded selection procedure together with its worked application, a contract for testing composition, three executable reference systems with full ablations and artifact readback, and an evidence-maintenance process that accommodates negative results and new contributor cases. The historical pilot is retained because its ranking reversal changes how architectural gains should be measured. Together, the studies provide an empirical foundation for further industrial replication without requiring an uninformative claim that the entire catalog has been universally validated.