November 14, 2026 · Steve Johnson
Where the LLM Belongs in a Domain Product: Deterministic Models First, Language on Top
In a domain product where the numbers must be right, deterministic models should compute the results and language models should explain them. A flood-risk platform shows why this separation is an architectural requirement. Scientific models and versioned datasets establish the hazard values. The LLM makes those values understandable without becoming their source.
Why a language model cannot compute a flood-risk score
A language model generates an answer token by token, predicting what should come next from the context it receives. Asked for a flood-risk score without an authoritative calculation beneath it, it produces a plausible answer without a basis in physical data. The distinction is about the source of authority. A number appearing in generated text is not evidence that the relevant scientific computation took place.
A deterministic model with explicit input constraints can reject an out-of-domain request or return an error. A language model can instead produce a fluent explanation of a result that has no defensible basis. Fluency makes that failure harder to recognize. In flood risk, insurance, healthcare, or finance, the consequence can extend beyond a poor user experience to harmful decisions, liability, or regulatory violations.
Reducing randomness does not repair this gap in authority. Compiled AI: Deterministic Code Generation for LLM-Based Workflow Automation documents non-determinism even at temperature=0, including accuracy differences across runs and output differences associated with architectural factors such as routing among model components. An identical prompt is therefore not a reproducibility guarantee. Even a consistently repeated answer would still need an independently testable basis. The architectural mistake is assigning the calculation to the language model.
What deterministic models actually do, and why that property matters in production
A deterministic system produces the same output from the same input under the same rules and version. It need not be simple. Its defining property is repeatability, which allows a result to be tested independently of the interface that presents it. Versioning makes changes to those rules clear, so a calculation that behaves differently cannot pass as the same one.
A deterministic compliance checker can record which rule caused it to flag a result, creating evidence that a reviewer can examine. A flood model can also be unit-tested and called without using a language model. The interface is not part of the calculation. The same model that supplies a narrated report can supply an automated bulk export.
Determinism alone does not prove that the science is sound. A system remains limited to the inputs and conditions its rules cover, and an unsupported input may produce failure or a defined default. That limitation must remain visible to the user. Language can explain why the model cannot answer, but it cannot legitimately extend the model’s scientific scope.
How the flood-risk platform draws the line between computation and narration
In the insurance-sector flood-risk platform used by city administrators, the authoritative hazard value comes from a scientific model operating on physical data and versioned public datasets. Its output may be a raster or a scored record. For a parcel, the deterministic model produces a versioned score. The LLM receives that score, the input variables that drove it, and a constrained prompt, then explains the result to the administrator.
The direction of that handoff is essential to the design. The score is an input to the narrative. The administrator needs to understand the result. The language layer has authority only to communicate what the supplied output supports.
A 2026 ISPRS conference paper on a comprehensive disaster risk model describes a modular pipeline covering flood, wildfire, earthquake, landslide, drought, and urban hazards. An LLM-based agent using MCP handles interpretation and communication through a web-based chatbot. The hazard pipeline remains a separate component.
WaterCopilot describes a similar split between natural-language requests and domain-specific models, which include flood propagation simulations. It also identifies FLAI as a flood-risk communication platform using knowledge graphs and RAG to produce contextualized narratives and infographics for decision support. These are separate implementations and make no claims about the flood-risk platform’s internal stack. Retrieval and structured knowledge help explain the results, which come from domain models.
The practical test is whether a numerical answer has a computational provenance. When a user asks a question whose answer contains a specific hazard value, the assistant’s tool-call trace must show the deterministic-model invocation with its exact inputs. An out-of-domain request must expose the model’s refusal. The trace makes the division inspectable. Without it, even a report that sounds convincing cannot show which component supplied the number.
What the LLM is actually for: interpretation, refusal, and explanation
The LLM supplies a useful interface between a domain model and a person who must act on its output. A city administrator may express a question in ordinary language. The language model can translate that request into a solver-compatible specification. It cannot make up missing physical inputs to complete the request.
SafeRun: Enabling Determinism in LLM Planning for Running calls this separation “soft interpretation” and “hard enforcement.” Its decoupled architecture restricts the LLM to invoking a predefined deterministic solver. The solver applies the constraints. The framework deals with running plans, but the same split in who does what applies to flood risk.
Explanation begins after the domain model has returned its output. SHAP and LIME quantify input variables’ contributions to a predicted score, while attention mechanisms highlight the parts of an input on which a model focuses. Where such information is available, the LLM can narrate it. It must not invent the contributions. A readable account of supplied explanatory evidence is different from a plausible story about why a number might be correct.
When the solver rejects an input or returns an error, the LLM can communicate the limit honestly instead of leaving the user with an unexplained failure. A score and a table of variables may be insufficient for an administrator, insurer, or operations manager, but a narrative is useful only while it preserves the meaning and limits of the authoritative output.
Holding the line architecturally: how the boundary is enforced, not just intended
Telling a model not to invent scores expresses a policy, but it does not determine which operations the system permits. Enforcement belongs in the tools and services beneath it. The engineering requirement is that deterministic services produce the numbers and that the LLM cannot bypass them to establish an alternative result.
SafeRun demonstrates one form of that enforcement through a predefined solver equipped with hard safety constraints, soft objectives, and planning APIs. Restricting the language model’s calls to the predefined solver turns a desired behavior into a structural limit. Its relevance to a domain product is not the particular planning problem, but the placement of enforceable constraints outside the language model.
Compiled AI offers a complementary approach to workflow control. It uses LLM-generated executable artifacts created during a compilation phase, after which branching, tool selection, error handling, and retry logic run as static code. The LLM is removed from that control flow. This separates the use of generation during development from dependence on generation for runtime orchestration. It does not, on its own, establish that a scientific formula is valid.
At the interface layer, MCP tools and REST APIs must expose only the domain operations the language model is authorized to invoke. Scoped API keys restrict access, while default-deny makes unlisted calls fail in the infrastructure. MCP alone is not the permission policy. The boundary comes from the permitted tool set and the restrictions applied to it.
Versioning completes the connection between computation and explanation. Changes to scoring logic must be traceable, and an explanation must remain tied to the model version that produced its score. Otherwise, a narrative can become detached from its evidence. The language layer can change independently, but that independence must not obscure which scientific result it is reporting.
The objection: deterministic models are expensive and slow to build
A defensible flood-risk model requires more than software engineering. It takes hydrology expertise, validated datasets, and regulatory credibility, which a pre-seed or seed-stage company may not have. This is a substantial objection to the architecture. A team cannot create scientific authority merely by placing a deterministic function behind an API.
The practical response is not necessarily to build a scientific model from scratch. FEMA NFHL, NOAA, and USGS provide existing public hazard products and data that can form the deterministic foundation of climate-risk products. A startup’s task can be integration and versioning. That still requires care about what the sources support, but it changes the scope of the work from inventing domain science to making established inputs usable within a product.
The compilation approach also offers a route to deterministic execution without requiring every artifact to be written by hand. Generated code can execute repeatably, but the team still needs a defensible calculation. The method used to produce software does not remove the obligation to validate what it computes.
There is also a commercial tension in exposing only deterministic outputs. A product that presents a score without enough explanation may fail the person who needs to use it, so the hybrid architecture remains valuable. Practitioners can reasonably disagree about the precise split point. For an early-stage team, the minimum viable foundation is a versioned lookup or validated formula it can defend to an auditor or regulator. Even a repeatable spreadsheet provides firmer ground than a language model that sometimes supplies the right number.
What this architecture means for early-stage startups shipping domain products in production
An LLM-driven demo can look complete even when its answers have no authoritative domain model behind them. The weakness is visible when a user needs to verify an output or challenge a wrong result. Plausibility provides no audit trail by itself. For founders and technical leads, the critical question is which product claims can be reproduced independently of the conversation that presented them.
The team can move the inherited product onto managed infrastructure, find the calculations the LLM should not do, and add a deterministic layer to do them. The remaining product can stay in place. In the flood-risk platform, taking an inherited beta to a verified production environment meant distinguishing model outputs from LLM outputs, versioning both, and making that boundary visible in the architecture.
Keeping the separation intact requires an accountable technical owner. A fractional CTO is useful in this role, and Steve Johnson, a software, AI and product partner who works embedded with seed-stage teams, is one example, when ownership includes guardrails, review, and default-deny permissions. That responsibility stays with the owner even when agents write the code. As generated code and user-facing language become more prominent, review of the permitted operations becomes a constraint on safe delivery.
An engineer-CTO who takes inherited prototypes to production serves as CTO for the flood-risk platform and advocates this separation between deterministic scoring and LLM explanation. His role illustrates one option for technical ownership.
A founder can act this week by commissioning a one-week technical audit of the existing codebase to locate calculations that lack an authoritative source. A free 30-minute consult can help scope whether a technical audit and planning engagement is the appropriate next step. The deliverable is a findings document. Before committing to more development, that audit can be the cheapest way to find out what not to build.