An architecture concept · Insurance edition

The Compile‑Once Enterprise

Use the large language model to build software, then let plain code run it. Every business function becomes a small, tested program bound to one domain of data. Departments install them like apps and combine them into bigger jobs. The model is called when something changes, never when someone asks a routine question.

Concept by Muthukumar Subramanian · Agentic AI Architect · linkedin.com/in/muthu4all
$137Binsured natural catastrophe losses in 2024
135US corporate verdicts over $10M in 2024, a record
100+systems typically wired around one policy admin system
High-risklife and health pricing AI under the EU AI Act
01

What's hurting insurers right now

These are the pressures we hear about in claims, underwriting and IT. Each one is a volume problem, a data problem or a proof problem, and capsules are built for all three.

Catastrophe volumeSurges after every storm

Swiss Re put insured natural catastrophe losses at $137 billion in 2024, with losses trending towards $145 billion in 2025. Claims volumes arrive in waves, not in averages.

With Compile-Once: triage, coverage and exposure capsules scale with the surge at near-zero cost per call, so adjusters spend their time on the complex losses.

Social inflationNuclear verdicts

Marathon Strategies counted 135 US corporate verdicts over $10 million in 2024, totalling $31.3 billion. Liability reserves set early can be wrong by multiples.

With Compile-Once: litigation-signal and reserve-adequacy capsules flag claims for early senior review. The reserve decision stays with a person.

FraudOrganised and repeat claims

The Coalition Against Insurance Fraud estimates fraud costs $308.6 billion a year in the US (2022 study; the method is debated). Rings reuse identities, addresses, repairers and photos.

With Compile-Once: duplicate-claim and network-link capsules run on every claim, every time, with the evidence attached for the special investigations unit.

Legacy coreThe policy admin bottleneck

Infosys estimates a policy administration system has more than 100 surrounding systems, and Majesco's 2026 research found most carriers, leaders included, still run legacy policy admin.

With Compile-Once: the core stays put. Data Spheres read it through contracts, and new functions arrive as capsules instead of core change requests.

RegulationExplain every automated decision

The EU AI Act lists AI for risk assessment and pricing in life and health insurance as high-risk (Annex III, 5(c)). Supervisors want documentation, testing and human oversight.

With Compile-Once: each capsule ships with a manifest, tests, an owner and version history. Rules are readable code, which is easier to explain than a prompt.

ReportingIFRS 17 granularity

IFRS 17, effective from 1 January 2023, pushed insurers to report contract groups at a level of detail many source systems were never designed for.

With Compile-Once: reconciliation and data-quality capsules run continuously against the Policy and Billing spheres, not in a quarter-end scramble.

Five parts, one rule

The rule: the large language model works at build time only. Everything a user touches at run time is ordinary software that can be tested, versioned, audited and switched off.

Data · bounded

Data Sphere

One domain of the company's data, reached through a contract: a connection reference, a schema and the rules for that data. Data keeps flowing in from the systems that already exist.

Insurer: Policy, Claims, Customer, Billing, Documents, Underwriting, Risk signals, Partners.
Build · LLM

The Forge

The only place a model runs. It reads a sphere's contract and a request in plain words, writes a program and its tests, runs them in a sandbox and checks what data the program may touch. A named owner approves.

Insurer: "Show open claims over $50,000 with no adjuster notes" becomes a tested program in an afternoon.
Run · code

Capsule

One business function as a small, sealed program bound to one sphere. Search, query, rules, calculation, matching or a recommendation. Same input, same answer, every time, in milliseconds.

Insurer: Coverage Check, Reserve Estimator, Duplicate Claim Finder, Repairer Match.
Share

Capsule Exchange

An app store inside the company. Every capsule is listed with its sphere, owner, tests, version and usage. Teams install what they need instead of raising a ticket.

Insurer: a capsule built for Claims serves Finance and Compliance the next morning.
Compose

Constellation

Several capsules across spheres combined into a bigger job. The Forge writes the composition and its tests once; each run is plain code.

Insurer: first notice of loss triaged in seconds: policy, cover, documents, fraud, reserve, repairer.

What a capsule looks like

Every capsule ships with a manifest. It says what the program does, which sphere it may read, how it was tested and who owns it. Notice the line that says the model is not called at run time.

# capsule.yaml · generated by the Forge, approved by a person
capsule:      open-claims-no-notes
version:      1.0.0
sphere:       claims            # may read only this sphere
contract:     claims.v9
kind:         query
request:      "Open claims over $50,000 with no adjuster notes"
inputs:       { min_amount: number = 50000 }
outputs:      [claim_id, policy_id, amount, adjuster]
access:       read-only
tests:        31 passed         # golden, edge and permission cases
owner:        Claims Operations
built_by:     forge · model call at build time
runtime_llm:  none
p95_latency:  38 ms
rollback:     previous version kept for 90 days

Why a manifest matters

Auditors and regulators ask the same questions about any automated decision: what does it do, what data does it use, who approved it and can you reproduce it. A capsule answers all four from one file.

When a rule changes, nobody edits the program by hand. The owner asks the Forge for version 1.1. The Forge rewrites it, reruns all the old tests plus new ones and keeps 1.0 ready to roll back.

When the claims system changes its schema, the contract version moves from v9 to v10. Every capsule bound to that sphere is regenerated and retested before the new contract goes live.

Build time vs run time

Most enterprise AI today calls a model on every request. This design spends model calls once per change and runs everything else as code. Figures are illustrative.

A model on every requestCompile once, run as code
Model callsOne or more per question, every timeOne burst per new function or change
Same question twiceAnswers can differSame input, same answer
SpeedSecondsMilliseconds
Cost at volumeGrows with every user and every callNear zero per call after the build
AuditPrompts, outputs and model versions to keepA versioned program, its tests and its owner
Data exposureRecords sent to a model at run timeProgram reads its own sphere; no records leave for a model
Offline or on a phoneUsually notYes, for many capsules
ChangeEdit the prompt and hopeRequest a new version; tests decide

Edges to design for

The idea is strong because its limits are clear. These are the parts a real programme would have to get right.

Some questions are open

"Explain this complaint to me" has no fixed answer. Route open questions to a model on purpose and keep routine ones on capsules. Most volume in an insurer is routine.

Some capsules carry a small model

Reading a scanned claim form needs character recognition. The Forge writes the code around a small, local, versioned model; it is bounded and tested like everything else.

Generated code still needs owners

Tests, security review and a named person per capsule. A capsule without an owner is retired, however useful it looks.

Contracts drift

Schemas change, rules change, regulations change. Every contract change triggers regeneration and retesting of the capsules bound to it.

Catalogue sprawl

Thousands of capsules can become a new kind of mess. The Exchange needs curation: usage data, duplicates merged, unused capsules retired.

The software team changes shape

Fewer people hand-writing functions, more people owning contracts, governing the Forge and curating the Exchange. That shift needs planning and reskilling.

For insurance leaders

Planning 2027 in insurance? Let's map your first Data Sphere.

Start with one sphere, usually Claims or Policy, and one backlog that hurts. In eight weeks you can see what changes when routine functions become tested capsules and the model only builds.

Talk to Muthukumar on LinkedIn →
Muthukumar Subramanian · Agentic AI Architect · 25 years across legacy systems and agentic AI
  1. WEEKS 1–2Pick one sphere and one painful backlog. Write the contract: connection, schema, rules, owners.
  2. WEEKS 3–6Forge 10 to 20 capsules from real requests, each with tests, an owner and a manifest.
  3. WEEKS 7–8Measure runtime cost, latency, backlog movement and audit readiness. Decide the next sphere.
  4. ILLUSTRATIVEThe plan is an example, not a quote or a promise of results.

Sources

  1. Swiss Re Institute, sigma 1/2025: natural catastrophes, insured losses 2024 and 2025 trend
  2. Marathon Strategies, Corporate Verdicts Go Thermonuclear, 2025 edition
  3. Coalition Against Insurance Fraud, The Impact of Insurance Fraud on the U.S. Economy (2022) · critique: Rutgers Center for Risk and Responsibility (2024)
  4. Infosys, The pros and cons of core modernization in insurance · Carrier Management on Majesco 2026 research
  5. EU AI Act, Annex III (high-risk AI systems), point 5(c)
  6. IFRS Foundation, IFRS 17 Insurance Contracts