← Mario SeddikInternal / Deployed in client environment

Agent harness for actuarial modeling

AI agents that build, change, run and check models on the industry's closed actuarial platforms, the way a trained modeler does.

EnvironmentInternal and client deployment
ClientLife and annuity insurersLife and annuity insurers whose models live on closed platforms that only trained modelers could operate.
UsersThe practice's modeling team first; runs in a client environment
StatusDeployed in client environment; in use inside the practice
Runs onPython, SQLite and ONNX Runtime
My roleI designed and built it, from the harness to the evals, with the practice's modeling team as its first users.

The problem

Why it was hard

No API, only a desktop app
Models locked in proprietary files
Reserves must reconcile to the engine
Locked-down corporate machines

The idea

Give the agent a modeler's hands. Each change it makes is checked, logged and reversible, and the platform's own engine is the referee.

The solution

Decoders open the vendor platforms' closed files, guarded primitives make every write reversible, and an agent harness with evals operates the platforms the way a trained modeler does.

CLOSED PLATFORMS DECODERS AND PRIMITIVES AGENT HARNESS OUTCOMES indexed writes build + run rollback Moody's AXIS Proprietary binary stores, no API FIS Prophet Embedded workspace database Vendor documentation Help topics as a knowledge base Storage decoders Record stores, indexes, grids Master definitions SQLite catalog of grids and symbols Formula parser Model-wide dependency graph Guarded write primitives Journaled, byte-identical rollback Headless engine runner Compile and run without the GUI MCP server and CLI Tools the agents call Agent skills Modeling procedures, distilled Hybrid retrieval BM25 + vector, ONNX Runtime Model tiering Frontier reviews, mid-tier builds, small routes Eval suites Recall, catch rate, routing Built models and datasets From specs and raw client files Cross-platform conversion AXIS to Prophet, reconciled in layers Modeler review Every change checked, every write reversible
Solution architecture at component level. Boxes are the parts of the system, arrows the flow between them; the tinted column is the AI layer.

How it was built

  1. 01Mapped the model files

    Worked out how each platform stores products, assumptions, tables and formulas, down to its own definition store.

  2. 02Read and write tools

    Typed tools for cells, products, rate tables, reserve methods and treaties, with every write journaled and reversible.

  3. 03Headless runs

    Drove the vendor engine without its interface, so agents can run a model and read the results.

  4. 04MCP servers and a CLI

    Exposed the tools to agents through MCP servers, and to people through a command line.

  5. 05Skills from the help library

    Agents worked through the vendor's full help library and kept what they learned as reusable skills, searchable with hybrid retrieval.

  6. 06Evals against the engine

    Scored the agent's reading of a model against what the engine computes, including a formula dependency graph checked against the vendor compiler.

The stack

BusinessPricingValuationProduct developmentM&A
TechnologyPythonSQLiteFormula dependency graphHybrid retrieval (BM25 + vector)ONNX Runtime
AIMCP serversAgent skillsSkill distillationGuardrailsEvals

Impact

Modeling work that used to depend on a trained person at a desk now gets done by agents, with the person checking rather than typing.

A day with it

  1. 9:00

    A product spec arrives. The agent builds the model in the platform, cell by cell.

  2. 11:00

    The modeler reviews a log of each change and can roll any of it back.

  3. 14:00

    The engine runs and the results are checked against expected cash flows.

  4. Next day

    The model passes validation and goes into production for the client.

Mario Seddik