System Architecture

Deterministic computation meets AI narration

Every number is traceable, auditable, and reproducible. The engine handles the maths. The LLM handles the narrative.

"Give AI facts to explain, not problems to solve. The engine handles the maths. The LLM handles the narrative. Every number is traceable, auditable, and reproducible."
โ€” Architecture principle
01 โ€” User Inputs

Three categories of inputs define a retirement scenario. Everything the simulation needs comes from the user โ€” no hidden assumptions.

๐Ÿ“Š

Portfolio Weights

Asset class allocations across equities, bonds, real estate, commodities, and cash.

๐Ÿ’ฐ

Cash Flows

Income streams, pension, CPF, SRS, annuities, planned withdrawals & expenses.

โš™๏ธ

Parameters

Retirement age, horizon, inflation, tax rules, risk tolerance, asset correlations, expected returns.

โ†“
02 โ€” Computation Engine

All calculations are deterministic and reproducible. Given the same inputs, the engine produces identical outputs every time โ€” no AI involved at this stage.

๐Ÿ”„

Monte Carlo Simulation

600,000 scenarios with correlated asset returns, inflation modelling, and cash flow projections.

Deterministic
๐Ÿ”ฅ

What-If Heat Maps

Two-dimensional optimisation across allocation ร— withdrawal rates showing full solution space.

Deterministic
โ†“
03 โ€” Pre-Calculated Results

The engine packages results into a structured data object. This is the single source of truth โ€” success probabilities, percentile outcomes, risk metrics, cash flow tables, and chart data. No opinions. Only facts.

๐Ÿ“‹

PublishMyPlan

Structured data package: success probabilities, percentile outcomes, risk metrics, cash flow tables, charts.

Facts, not opinions
โ†‘ Deterministic & Auditable ยท AI Narration โ†“
04 โ€” AI Narrative Layer

Pre-calculated results are passed to the LLM with strict guardrails. The prompt engineering enforces a clear boundary: explain these facts โ€” do not infer, do not hallucinate, do not add data.

๐Ÿ“

Prompt Engineering

Strict instructions: explain these facts, do not infer, do not hallucinate, do not add data.

Guardrailed
๐Ÿค–

LLM API

Claude Opus receives pre-calculated results + prompt. Returns narrative report with enhanced explanations.

AI-Powered
โ†“
05 โ€” Client Deliverable

The final report combines deterministic charts, tables, and data with AI-generated narrative insights โ€” institutional quality, retail accessible.

๐Ÿ“„

AI-Enhanced Retirement Report

Professional wealth management report combining deterministic charts, tables & data with AI-generated narrative insights โ€” institutional quality, retail accessible.

Computation + AI Narration