SAM quarterly return: life policy movements
Insurance South Africa
Works out sheets M1.1 and M2.1 of the SAM quarterly return, the number of policies and recurring premiums for individual business, from a life insurer’s policy listings. It checks each policy’s status, dates and premiums against its movement, that the movements explain the change from the start of the quarter to the end, and that the start matches last quarter’s end.
From the Prudential Authority’s Quarterly Solo Quantitative Reporting Template v3, sheets M1.1 and M2.1, and their formulas for the end of the quarter
- 23validation rules
- 13pipeline stages
- 12individual lines of business
- 3 minto build and check
See it in Quantemplate
The pipeline

The test run’s checks

The M1.1 and M2.1 output

What it checks
23 rules 12 Fail 11 Warning
- Fields and codesA policy number given once, a product that’s in the products table and is individual business, and a valid premium type, in-force flags and movement code 7 Fail 7
- DatesThe quarter end and other dates are dates, movements fall in the quarter, and policies in force haven’t passed their maturity date 2 Fail, 3 Warning 5
- Status and movementsEach policy is in force at the start and end of the quarter as its movement says 0 Fail, 3 Warning 3
- PremiumsPremiums are numbers, paid-up and single premium policies have no recurring premium, and premium changes are recorded 1 Fail, 3 Warning 4
- TotalsPolicies and premiums at the end follow from the movements, and the start matches last quarter’s end 2 Fail, 2 Warning 4
A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.
How the pipeline works
- Stages 1–2 Read policies Remove blank rows, detect the header, add each file’s name and stack the listings
- Stages 3–6 Products and counts Match each policy to its product and line of business, and count the rows for each policy number
- Stages 7–8 Check policies Work out each policy’s share of every M1.1 and M2.1 column, and run the 19 policy checks. Output: every policy
- Stages 9–11 Movements Total the policies by line of business and premium type, and bring in last quarter’s figures
- Stages 12–13 M1.1 and M2.1 Check that the movements explain the end of the quarter and that the start matches last quarter, and run the 4 total checks. Output: one row per line of business and premium type, with premiums in R’000
The policy listing’s columns
Each policy administration system gives a policy listing for the quarter as a CSV file, with one row per policy. A policy number appears once across all the files.
Column |
What it holds |
|---|---|
Policy Number |
The policy’s number |
Product Code |
Your product code, as in the products dataset |
Premium Type |
RECURRING or SINGLE |
Quarter End |
The last day of the quarter, as yyyy-mm-dd, such as 2026-09-30 |
In Force at Start |
Y if the policy was in force at the start of the quarter, otherwise N |
Start Premium |
The annual recurring premium in rand at the start of the quarter. Blank for a single premium policy or one not in force |
Movement |
What changed the policy in the quarter, as one of the codes below. Blank for no movement |
Movement Date |
The date of the movement, as yyyy-mm-dd |
In Force at End |
Y if the policy is in force at the end of the quarter, otherwise N |
End Premium |
The annual recurring premium in rand at the end of the quarter |
Maturity Date |
The policy’s maturity or end date, as yyyy-mm-dd. Blank for a policy with none |
Each movement code counts towards a column of M1.1 and M2.1. Codes and the Y and N flags can be in any case: the pipeline trims them and puts them in capitals.
Movement |
Column on M1.1 and M2.1 |
|---|---|
NEW |
New policies |
DEATH, DISABILITY, HEALTH |
Death claims, disability terminations and health terminations |
MATURITY, SURRENDER, LAPSE |
Maturities, surrenders and lapses |
TRANSFER IN, TRANSFER OUT |
Transfers in terms of the Act: a transfer in is added and a transfer out is taken off |
EXPIRY |
Policies expired |
PREMIUM CHANGE |
Premium increases or decreases, on M2.1 only |
PAID-UP |
Paid-ups, on M2.1 only |
OTHER |
Other movements: the change from the start of the quarter to the end |
What’s in the download
- The 23 rules as JSON, and a table of every rule with its formula, notes and source
- A table of 16 products, each mapped to its SAM line of business and its row on M1.1 and M2.1, and last quarter’s figures at the end of the quarter
- Two fictional policy listings for the quarter ending 30 September 2026, from a made-up insurer’s legacy and core systems, which pass every rule, and the M1.1 and M2.1 figures they give
- The same listings with a case for each rule, and the rows each rule should flag on them
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline, and the Python scripts that generate everything in the download
The PA’s quarterly template isn’t included. Download the current version from the PA’s insurer returns page.
Build it
- Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
- With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the SAM life policy movements pipeline from the sam-life-movements folder. Test it with the test policy listings and the clean ones and compare the results with the expected ones.
- Claude creates the products and previous quarter datasets, uploads the two test listings, builds the 13 stages and checks the test listings and the clean ones. This takes around 3 minutes.
The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.
Using your own policy data
- Upload each system’s policy listing to stage 1 under a test file’s name, such as
swartberg-legacy-policies-test.csv, which replaces it. Or upload it under its own name, tick it in stage 1’s inputs and untick the test files. - Replace the data of the SAM Life Products dataset with your own products, each with its SAM line of business, template row and whether it’s individual or group business. Drag your file onto the dataset to replace its data.
- Each quarter, replace the data of SAM Previous Quarter Movements with last quarter’s M1.1 and M2.1 figures at the end of the quarter, as filed, with the premiums in R’000.
- Check the validation report’s Fail rules first: they mark policies that can’t be placed and movements that don’t add up. Warnings are worth checking before you file.
- The M1.1 and M2.1 output has one row per line of business and premium type, with its template row. Copy each row’s figures to that row of the template: recurring business to columns E to R of M1.1, single premium business to columns S to AD, and recurring premiums to M2.1.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It covers individual business only. Group products fail rule F04. The group scheme movements template works out sheets M1.2 and M2.2 for them.
- Each policy has one movement a quarter. A policy with two, such as one taken out and lapsed in the same quarter, can be given as
OTHER. That keeps the totals right but counts neither movement on the template. - The PA publishes no completion guide or rule list for these sheets. The movement codes and checks follow the template’s columns and formulas, and Quantemplate’s own checks go further.
- It produces the figures, ready to copy into the PA’s template. It doesn’t fill in or submit the template, or check the filing deadline.
- The insurer in the test data, Swartberg Life, is made up. No insurer of that name turned up when we searched in December 2026.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.