Manuscript Offprint

arXiv:2610.06255

LLM Non-Determinism in Deterministic Processes: A Controlled Variation Space for Constraining the Propagation of Non-Determinism

Paul Darius Mandl, Peter Mandl, Martin Häusl

A Controlled Variation Space for Constraining the Propagation of Non-Determinism

Paul Darius Mandl*, Peter Mandl†, Martin Häusl†

*Findustrial GmbH, Schörfling am Attersee, Austria

paul.mandl@findustrial.io

†Munich University of Applied Sciences, Munich, Germany

{peter.mandl, martin.haeusl}@hm.edu

Abstract—Large Language Models are increasingly used in software development processes that rely on defined states, rules, and approvals. This creates a tension between the flexibility of LLMs and the need for reliable and traceable process states. We introduce Controlled Non-Determinism, a process-oriented approach that allows variation without letting it directly determine the authoritative process state. We place LLM-based processing within a controlled variation space that is bounded by a Deterministic Envelope. Before execution, we define the process-relevant properties of the result and the exit conditions. We also record the task configuration. These elements remain fixed during execution. At the end of the variation space, an exit check determines whether the result satisfies the predefined conditions and may become the next authoritative state. Different runs may produce different admissible results while the transition to an authoritative state remains controlled. We illustrate the approach with regulated software development and derive design guidelines for LLM-based changes whose results can be checked before they become part of the authoritative software state.

Index Terms—Large Language Models, Controlled Non-Determinism, Deterministic Envelope, Process Control, Workflow Orchestration, Reproducibility, Auditability

I. PROBLEM STATEMENT

LLMs increasingly perform tasks in software development that can only be described to a limited extent by conventional rules. Coding agents interpret requirements, inspect repositories, generate implementation proposals, select tools, modify files, and add dependencies or tests. We are interested in settings in which this flexibility is useful but cannot simply be allowed to determine the software state on its own. Regulated development processes still require changes to be grounded in documented inputs, defined rules, checks, and traceable approvals.

As long as an LLM output remains a proposal, variation may have no immediate effect on the software development process. This changes once the output influences subsequent actions. For example, an alternative implementation may affect interfaces or dependencies, while a different tool choice may modify external resources. Such variations can propagate through subsequent development steps and ultimately affect an authoritative software state.

A deterministic processing step can be represented in simplified form as

sk+1=fk(sk,xk)(1)s_{k+1}=f_{k}(s_{k},x_{k}) \tag{1}

where the same state sks_{k} and the same input xkx_{k} are expected to produce the same successor state. This assumption cannot be transferred directly to LLM-based processing. In conventional LLM serving, even under inference settings intended to be deterministic, numerical effects, the dynamic grouping of requests into compute batches (dynamic batching), and other execution conditions may lead to different results [1], [2], [3].

For our purpose, asking whether two runs produce identical model outputs is therefore the wrong starting point. We instead ask which differences survive into downstream processing. Two different implementations may satisfy the same requirement and expose the same relevant behavior even when their code structure differs. Conversely, an initially small deviation may change the information state, the sequence of tool calls, or ultimately the authoritative process state.

We therefore do not formulate the design problem as the suppression of all variation. We ask how far variation may extend, where its effects must be constrained, and under which conditions a varying result may cross into an authoritative process state. The basis for that transition must remain traceable as well.

To address this problem, we introduce the concept of Controlled Non-Determinism. It denotes processing in which non-deterministic variation is deliberately permitted within a defined process region while its effects on authoritative process states remain controlled. The associated Deterministic Envelope bounds this variation space between controlled process states. Within the Envelope, LLM calls, tool interactions, and internal processing steps may produce different execution paths and intermediate results. Such variation is permissible as long as it remains within the bounded region and does not enter an authoritative process state without being checked. Only a defined exit check decides whether the produced result satisfies the predefined conditions for adoption by the downstream process.

The objective is therefore not deterministic repetition of the internal execution, but the controlled use of non-deterministic processing while constraining its effects on authoritative process states.

We make three contributions. First, we introduce a process model of Controlled Non-Determinism that defines a controlled variation space, a notion of process-relevant equivalence, an exit check, and a run artifact for traceability (Section III). Second, we derive a criterion for placing control boundaries based on the potential process effect of variation and apply it to regulated software development (Section IV). Third, we derive design guidelines for posing LLM tasks so that their results can be checked and use the model to compare how current agent environments place their control boundaries (Section V).

References (33)