--- title: "Summary: 2026-05-19_17-54-21Z_AMethodologyforSelectingandComposingRuntimeArchite.md" date: 2026-05-19 tags: ['paper', 'research', 'ai'] --- # Summary: 2026-05-19_17-54-21Z_AMethodologyforSelectingandComposingRuntimeArchite.md **Source**: [Original Paper](http://arxiv.org/abs/2605.20173v1) Saved: 2026-05-19 22:02 Source: 2026-05-19_17-54-21Z_AMethodologyforSelectingandComposingRuntimeArchite.md Model: None --- ## Summary This paper introduces the stochastic-deterministic boundary (SDB) as the fundamental architectural primitive for production Large Language Model (LLM) agents, addressing the critical gap in treating the interface between probabilistic model outputs and deterministic software systems as a first-class design object. The authors propose a comprehensive catalog of six runtime architecture patterns that compose this boundary differently across various agent types, such as conversational, autonomous, and long-horizon systems. By establishing a five-step methodology for selecting and composing these patterns, the work provides a diagnostic framework to map production failures to specific architectural weaknesses, particularly focusing on the novel failure mode of replay divergence. Ultimately, the research argues that as underlying model variance decreases, the strength of the SDB and the choice of architectural pattern become the primary levers for ensuring long-run reliability in complex agent deployments. ## Semantic links - [[concepts/papers/2026-06-11_17-58-35Z_Agents_K1_TowardsAgent_nativeKnowledgeOrche_summary.md|Summary: 2026-06-11_17-58-35Z_Agents_K1_TowardsAgent_nativeKnowledgeOrchestratio.md]] — 3 title terms overlap; shared tags: ai, paper, research; 9 summary/topic terms overlap - [[concepts/ai-foundations/ai-ml-foundations-lesson-11-large-language-models-the-modern-ai-interface.md|AI/ML Foundations Lesson 11 - Large Language Models: The Modern AI Interface]] — 4 title terms overlap; 5 backlinks; 6 summary/topic terms overlap - [[concepts/papers/2026-06-17_17-58-22Z_FreeingtheLawwithLOCUS_ALocalOrdinanceCorpu_summary.md|Summary: 2026-06-17_17-58-22Z_FreeingtheLawwithLOCUS_ALocalOrdinanceCorpusforthe.md]] — 2 title terms overlap; shared tags: ai, paper, research; 9 summary/topic terms overlap ## Key Contributions - **The Stochastic-Deterministic Boundary (SDB):** The paper formally defines the SDB as a four-part contract involving a proposer, verifier, commit step, and reject signal, establishing it as the load-bearing primitive of production agent runtimes. - **Catalog of Runtime Patterns:** It presents six distinct runtime patterns—hierarchical delegation, scatter-gather plus saga, event-driven sequencing, shared state machine, supervisor plus gate, and human in the loop—tracing their lineage to distributed systems concepts and analyzing how stochastic workers alter their behavior. - **Replay Divergence and Reliability Decomposition:** The authors identify "replay divergence," a unique failure mode where LLM consumers of deterministic event logs produce inconsistent downstream outputs due to model version or prompt changes, and propose a reliability decomposition that separates per-call model variance from architectural momentum. ## Methodology The authors approach the problem by first conceptualizing the agent runtime design around three core concerns: Coordination, State, and Control. They then develop a five-step methodology for selecting appropriate runtime patterns based on specific workload requirements. This involves a diagnostic procedure that maps observed production failures to the inherent weaknesses of specific architectural patterns. The methodology is applied to five distinct workloads to demonstrate its practical utility, culminating in the provision of a runnable reference implementation for a 90-day contract-renewal agent to illustrate the composition of the SDB in a real-world scenario. ## Results The theoretical results include a formalized classification of six runtime patterns that effectively manage the SDB across different agent paradigms. The analysis reveals that traditional distributed systems concepts must be adapted when the worker is stochastic, leading to new failure modes like replay divergence. Empirically, the application of the methodology to five workloads demonstrates that pattern selection significantly impacts system stability. The reference implementation for the contract-renewal agent serves as concrete evidence that composing the SDB correctly can mitigate the risks associated with stochastic outputs in deterministic environments. ## Significance This work matters because it shifts the focus from merely improving model accuracy to engineering robust architectures that can handle the inherent unpredictability of LLMs. By treating the SDB as a first-class object, it provides engineers with a structured way to design, select, and debug agent systems, which is crucial for moving LLM agents from experimental prototypes to reliable production environments. ## Related Concepts - [[concepts/ai-agents/agentic-workflows-hub.md|Agentic Workflows Hub]] - [[concepts/software-development/software-development-hub.md|Software Development Hub]] - [[concepts/llm-models/llm-models-hub.md|LLM Models Hub]] - [[concepts/multimodal-ai/multimodal-ai-hub.md|Multimodal AI Hub]]