← Blog

December 1, 2026 ·

Hash the Configuration, Not Just the Code: Reproducible Results in Risk Software

Risk software needs to preserve more than its code. Every loss figure must cite an immutable, hashed configuration revision so the inputs behind it can be recovered. Steve Johnson used this design discipline in his work on an inherited flood-risk platform. It applies equally to deterministic models and AI-generated explanations, because neither can support an auditable decision without a recoverable record of what produced it.

Why a loss number is not just a number

A city administrator receives an average annual loss figure and must use it to inform a budget allocation. An underwriter may use the same kind of figure to price a premium or assess capital reserves. The harder question arrives when someone disputes it. Can the platform recover the exact inputs that produced that particular number?

An AAL figure depends on code, model weights, scenario settings, community assumptions, and run-time configuration. A silent change to any of those inputs can prevent a later run from reproducing the original result, even when the code has not changed. A reproducible codebase running against unversioned configuration still produces an output whose origin cannot be established completely.

That distinction becomes consequential during an audit or regulatory inquiry. The platform must account for the calculation that informed the decision. If the original inputs were never formally recorded, recovering the code release solves only part of the problem. The missing evidence concerns the state in which that code ran.

Configuration is data, not a setting

Scenario settings, community parameters, and model assumptions are computational inputs. They belong in a machine-readable configuration artifact that is stored immutably and cryptographically hashed. Each output then cites that artifact as a named revision. The snapshot preserves the inputs for later inspection. Its hash provides the citation that connects the result to that snapshot.

Write-once configuration gives a committed scenario a stable identity. Changing a setting creates a new revision rather than silently changing the meaning of an existing one. This discipline is especially important for paired counterfactuals, where the purpose is to isolate the effect of a defined change. The configurations must be fixed before they can be compared. Otherwise, a before-and-after analysis cannot distinguish the intended intervention from an unrecorded change in assumptions.

This is a design decision. Auditability follows from preserving the calculation’s inputs rather than from assembling an explanation after someone requests one. The platform needs upfront investment in a configuration schema, immutable storage, and output citation. But that cost replaces repeated attempts to reconstruct disputed settings from incomplete evidence. In a regulatory or legal context, such reconstruction can be enormously expensive without ever producing a defensible answer.

What this looks like in practice on a flood-risk platform

Steve Johnson, an engineer-CTO who takes fast-built or inherited systems to production, used this approach as CTO of a flood-risk platform in the insurance sector that Massachusetts city administrators used. Every community configuration is stored as a hashed revision, and scenario settings are write-once. A committed revision cannot be silently altered. A new scenario requires a new revision with its own hash, while each delivered loss number cites the configuration that produced it.

For an administrator, that citation has a practical purpose. If a state agency, federal program, or bondholder disputes an estimate, the platform can produce the exact configuration behind it. The response does not depend on someone remembering which assumptions were active or reconstructing them from logs. The evidence already belongs to the output. The same design fixes the configurations behind estimates for two communities, so the states being compared are defined and stay the same.

The platform moved from an inherited beta to a verified production environment without a default rewrite. Johnson’s responsibility was the platform and delivery side. The configuration discipline applied an established design pattern whose wider significance becomes clear in regulated modeling workflows and, increasingly, in AI-generated risk outputs.

How regulated risk platforms converge on this design

Governed risk workflows approach traceability from several directions, including controlled recalculation, repeatable catastrophe runs, and managed model-release lifecycles. Controlled recalculation ties scenario results to the configuration that ran and its release history, so results from different versions can still be compared. Recurring catastrophe analysis needs exposure updates tied to repeatable model execution. Managed execution binds data ingestion, calculation steps, and publishing rules. With each approach, the record shows which settings were active without relying on an operator to remember them.

These are different workflow requirements. An underwriting team needs to defend the scenarios it chose, while a portfolio modeling team needs to explain what changed between releases. Both require an output history that resolves to the configuration actually executed. The system must preserve that link over time.

The regulatory background supports this design without prescribing a single implementation. Lloyd’s Solvency II guidance calls for version control and an audit trail of changes to the calculation kernel. EIOPA and PRA materials support auditability of model decisions on demand. BCBS 239 addresses accuracy and completeness in banks’ risk data aggregation, while BIS and FSB AI reports emphasize transparency and continuous validation. These requirements have different scopes, but none makes undocumented computational inputs an adequate foundation for review.

An eighteen-month-old result is therefore a useful engineering test. An actuary or regulator must be able to recover the executed configuration when review occurs. Platforms converge on traceable execution because release management alone cannot supply that evidence.

Why AI-generated outputs in risk software inherit the same requirement

An LLM has a larger configuration surface, and configuration control still applies to it. When it summarizes exposures, drafts an explanation of a loss figure, or parses treaty language, its model version, retrieval corpus, prompt, and governance tag become inputs to the result. Those inputs can be less visible than scenario settings. They still need to be versioned and cited. An LLM output in a risk workflow that cannot cite its configuration revision is not auditable, however accurate it appears.

Stella C. Dong’s 2025 study, Prudential Reliability of Large Language Models in Reinsurance, sets out a framework with clear rules for this governance. The framework calls for provenance metadata, including schema, seed, model version, and governance tag, in a lineage register with cryptographic hashes. The study reports that retrieval-grounded configurations reduced hallucination and interpretive drift by roughly 40% and nearly doubled transparency compared with ungrounded configurations. Those findings concern the governed configuration. They support treating provenance as part of the system’s reliability.

Non-determinism does not invalidate this requirement. Versioning an LLM’s inputs allows a stored output to be attributed to a known, recoverable configuration state. That is a narrower claim than deterministic replay. It is also essential to an audit.

Dong’s framework identifies probabilistic reasoning, opaque data lineage, and hallucination as complications for reproducibility, explainability, and validation. Controls already in place for conventional models therefore need to be checked before they are used for an LLM deployment. The new configuration surface needs clear governance before its outputs enter the risk workflow.

Where deterministic models and LLMs each belong in this stack

The decision path should remain inspectable, with deterministic compute holding authority over the loss number, frequency estimate, or severity distribution. Statistical models with known weights, quantile regression, and ensemble methods belong in that calculation layer. The LLM has a different role to perform. It can analyze gaps in an existing scoring model, surface patterns for examination, or draft an explanation that an administrator or underwriter can understand.

Each LLM contribution must cite the configuration revision of the model output it addresses, as well as preserve its own generation provenance. Otherwise, an explanation can become detached from the number it claims to explain. The final step then breaks the audit trail. A traceable calculation followed by an unattributable narrative is not an end-to-end auditable workflow.

In practice, citation belongs in the delivered artifact. The explanation document, the PDF sent to an administrator, and the API response should expose the configuration hash as a field. The explanation layer receives that revision as a required input.

The constraint concerns authority. A non-inspectable system might produce a plausible answer, but plausibility does not reveal its decision path. When a regulator or counterparty asks why a number is what it is, the platform needs evidence.

What breaks when configuration is treated as a setting rather than a versioned artifact

Diagram: Versioned vs. Unversioned Configuration: What Breaks. Visualizes: Show a before/after (or two-path) contrast illustrating what happens when configuration is treated as a setting versus a versioned artifact.

Unversioned configuration creates a predictable reconstruction problem. When a loss figure is disputed, the team must search memory and logs for settings that should have been preserved with the run. That search may produce a plausible account without establishing the exact inputs. A dispute requires more than a plausible reconstruction. The design gap is the absence of a stored artifact against which the account can be tested.

The same gap undermines counterfactual analysis for a different reason. A comparison is intended to isolate a defined change, but silently drifting configurations introduce other differences that were never controlled. Even if both estimates look reasonable, the platform cannot show why they differ. The comparison has lost its basis for attribution. The decision it supports is consequently harder to defend.

Adding an LLM compounds this uncertainty. If neither the calculation nor the explanation is pinned to a known configuration, the platform cannot establish which system state the narrative describes. An explanation that makes sense may hide the missing link. The failure is not necessarily an obviously incorrect sentence, but an account that cannot be tied to the computation it purports to explain.

These are foreseeable consequences of missing provenance. Write-once configuration requires design work upfront, while reconstruction consumes effort every time a disputed result or review exposes the gap. The stakes can increase even when the technical omission stays the same. That asymmetry is why preserving configuration deserves attention before the platform’s outputs begin informing consequential decisions.

How to build this into a risk platform from the start — and how to retrofit it

For a new build, the design should begin with the configuration schema before model selection. Every scenario setting needs a field with a name and a type, and the configuration hash must be computed at commit time and stored immutably alongside the run record. The output contract then requires that hash. If an LLM explanation layer is added, it receives the revision as a required input and surfaces it in every output.

A technical audit should identify configuration held in environment variables, database rows, operator memory, and hardcoded defaults, then establish which inputs materially affect outputs. Those inputs can be extracted into a versioned artifact without changing the underlying model logic. The useful diagnostic is concrete and historical. What stored artifact would reproduce the AAL figure from eighteen months ago?

This retrofit approach is illustrated by the inherited platform that Johnson took into production. Hands-on technical leadership added write-once configuration and output citation without throwing away the existing build. Configuration discipline can often be introduced at the seams around existing logic, preserving what already works while closing the provenance gap.

Before an LLM enters that workflow, its model version, retrieval corpus, prompt template, and governance tag also need to be inventoried and versioned. For a team unsure where the gaps lie, a one-week technical audit is a practical starting point. It produces a configuration inventory, identifies the highest-risk omissions, and provides a roadmap that does not depend on rebuilding the model.

City administrators, underwriters, and regulators need to know that a disputed number will lead to a recoverable account of its inputs. The hash is how the platform keeps that promise.