Input and data transform
Reads the claims, exposure and benchmark files and lines them up on one basis.
It builds the exposure and claim figures every other layer uses, so nothing downstream re-derives them.
actuarial-ai-experience-study
An experience study where the arithmetic is deterministic, the model is let in only where a person presses a button, and everything that was found, asked and decided is written down before any of it becomes a report.
1 · 2 · 3 run by themselves, in about twelve seconds 4 · 5 only when you press, with the cost shown first 6 · 7 recorded and traceable, file to report
Scroll — the layers stack as you go.
Reads the claims, exposure and benchmark files and lines them up on one basis.
It builds the exposure and claim figures every other layer uses, so nothing downstream re-derives them.
Turns those figures into actual-to-expected views: by factor and year, termination, recovery, and actual against assumption.
One definition of A/E behind all four, so two screens cannot disagree.
Twelve statistical checks over the A/E views: outliers, trends, dispersion, shape, and calibration against the line's own experience.
Each finding shows its evidence and the bar it was judged against. This layer needs no model at all — it is pure calculation.
Writes plain-English interpretation of what the screen found, in five short pieces.
It reads the statistical findings rather than the raw data, so every claim it makes can be traced back to a check.
Answers questions you type. The figures are matched from the numbers first, then worded, so an answer quotes the screen rather than inventing.
The thread is forgotten when you close it; what was decided is what gets kept.
Keeps what was found, what was asked and what was decided, each with the date it happened, in one file beside the app.
So the next review can be compared with this one, rather than argued with again.
Puts the deliverable together from everything above: findings, interpretation, charts and history, with the method and version printed on it.
The download carries the charts as files.
pip install -r requirements.txt cp config.toml.example config.toml # set bundle_dir to your data folder streamlit run app.py
The synthetic portfolio it reads is generated by
the data generator;
no policyholder data is involved. The model endpoint is configured under
[llm], limits are read from the server's own report at runtime, and keys come from the
environment only. With the endpoint down, layers 1, 2, 3, 6 and 7 keep working and the two model
layers say so.
Termination by year is hidden rather than deleted. There is no assumed lapse basis in the bundle, and a lapse figure sitting beside priced A/E views reads as the same kind of evidence when it is not one, so the screen stays parked until the bundle carries a basis for it. The frames are calculated either way, and a test checks the switch in both positions so the parked screen cannot rot unnoticed.
All seven layers exist and are tested as of 2026-11-07. The drawing of record is
docs/modules/BB_stack_1_to_7.svg in the repository, with the rejected alternatives
kept alongside it.
actuarial-ai-experience-study the seven layers, one drawing back to the front page