Methodology for Selecting Runtime Architecture Patterns for LLM Agents

Anon841 pts0 comments

[2605.20173] A Methodology for Selecting and Composing Runtime Architecture Patterns for Production LLM Agents

-->

Computer Science > Artificial Intelligence

arXiv:2605.20173 (cs)

[Submitted on 19 May 2026]

Title:A Methodology for Selecting and Composing Runtime Architecture Patterns for Production LLM Agents

Authors:Vasundra Srinivasan<br>View a PDF of the paper titled A Methodology for Selecting and Composing Runtime Architecture Patterns for Production LLM Agents, by Vasundra Srinivasan

View PDF<br>HTML (experimental)

Abstract:Production LLM agents combine stochastic model outputs with deterministic software systems, yet the boundary between the two is rarely treated as a first-class architectural object. This paper names that boundary the stochastic-deterministic boundary (SDB): a four-part contract among a proposer, verifier, commit step, and reject signal that specifies how an LLM output becomes a system action. We argue that the SDB is the load-bearing primitive of production agent runtimes.

Around this primitive, we organize agent runtime design into three concerns: Coordination, State, and Control. We present a catalog of six runtime patterns that compose the SDB differently across conversational, autonomous, and long-horizon agents: hierarchical delegation, scatter-gather plus saga, event-driven sequencing, shared state machine, supervisor plus gate, and human in the loop. For each pattern, we trace its lineage to distributed-systems concepts and identify what changes when the worker is stochastic.

The paper contributes a five-step methodology for selecting runtime patterns, a diagnostic procedure that maps production failures to pattern weaknesses, and a failure mode called replay divergence, in which LLM-based consumers of a deterministic event log produce different downstream outputs under model-version or prompt changes. A stylized reliability decomposition separates per-call model variance from architectural momentum, motivating the claim that as model variance decreases, pattern choice and SDB strength become increasingly important levers for long-run reliability. We apply the methodology to five workloads and provide one runnable reference implementation for a 90-day contract-renewal agent.

Comments:<br>25 pages, 2 figures, 6 tables. Companion repo at this https URL

Subjects:

Artificial Intelligence (cs.AI); Software Engineering (cs.SE)

Cite as:<br>arXiv:2605.20173 [cs.AI]

(or<br>arXiv:2605.20173v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2605.20173

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history<br>From: Vasundra Srinivasan [view email]<br>[v1]<br>Tue, 19 May 2026 17:54:21 UTC (29 KB)

Full-text links:<br>Access Paper:

View a PDF of the paper titled A Methodology for Selecting and Composing Runtime Architecture Patterns for Production LLM Agents, by Vasundra Srinivasan<br>View PDF<br>HTML (experimental)<br>TeX Source

view license

Current browse context:

cs.AI

next >

new<br>recent<br>| 2026-05

Change to browse by:

cs<br>cs.SE

References & Citations

NASA ADS<br>Google Scholar

Semantic Scholar

export BibTeX citation<br>Loading...

BibTeX formatted citation

&times;

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .

Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)

toggle runtime arxiv methodology patterns agents

Related Articles