New Zealand Quarterly Insurer Report
Insurance New Zealand
Checks a licensed insurer’s Quarterly Insurer Report to the Reserve Bank of New Zealand before it’s submitted: the Reserve Bank’s own number, sign and zero tests on every field, that every total and figure the workbook works out agrees, and that the PCR, solvency ratios and target capital follow the Interim Solvency Standard.
From the Reserve Bank’s Quarterly Insurer Report workbook, version 1.8 (2 March 2026), and the Interim Solvency Standard 2023
- 20validation rules
- 20pipeline stages
- 9,650report fields
- 4 minto build and check
See it in Quantemplate
The pipeline

The test run’s solvency checks

The solvency output

What it checks
20 rules 15 Fail 5 Warning
- FieldsEach value’s field id is one of the report’s fields 1 Fail 1
- FormatThe insurer and dates are given and suit version 1.8, the financial year start is the same throughout the report, numbers are numbers, and no field is given twice 6 Fail 6
- FormulasEvery field the workbook works out by adding, subtracting or scaling other fields agrees with its parts 1 Fail 1
- Reserve Bank testsAmounts that must or should be zero or more, zero or less, or zero, failing or warning as the Reserve Bank’s tests do 3 Fail, 3 Warning 6
- SolvencyThe PCR, its adjustment for licence conditions, the solvency ratios and target capital 4 Fail 4
- Opening figuresNet assets, the solvency margin, solvency capital and the PCR at the start of the year agree with the previous year end’s report 0 Fail, 2 Warning 2
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 Prepare Clean each file, read the dates, add the keys the checks use, and stack the files
- Stages 3–6 Reference data The fields and sums tables, joined onto every value
- Stages 7–9 Totals and periods Add up the parts of every field the workbook works out, count repeated fields, and find each report’s year starts and fixed capital amount
- Stages 10–14 Solvency One row per insurer, report date and solvency entity, with the previous year end’s figures, then the 6 solvency checks
- Stages 15–18 Check rows Bring the sums, counts and periods onto every value and run the 14 row checks
- Stages 19–20 Outputs Every value with the figures its checks compare, and each insurer’s solvency figures
The input file
The input is one CSV file with a row for each value of the report, by the Reserve Bank’s field id. Fields left empty can be left out.
Column |
What it holds |
|---|---|
Entity |
The insurer’s name |
Report date |
The date the report is as at, written yyyy-mm-dd |
Financial year start |
The start of the financial year the year-to-date figures cover, written yyyy-mm-dd |
Field ID |
The Reserve Bank’s id for the field, such as QIR.007272 for net assets in the financial accounts |
Value |
The amount in NZ$ thousands, the percentage as a decimal, such as 1.85 for 185%, or the text the workbook’s drop-down gives |
The NZ QIR Fields dataset lists the report’s 9,650 fields, as the workbook’s hidden RBNZ processing sheet does, with each field’s sheet, cell, labels and the Reserve Bank’s tests on it. Its rows follow version 1.8 of the workbook, dated 2 March 2026, for report dates from 1 March 2026.
The NZ QIR Sums dataset says which fields the workbook works out from which: 11,006 links, each with a weight, covering totals by row and by class, figures carried between sheets, and fixed factors such as the MCR at 80% of the PCR.
What’s in the download
- The 20 rules as JSON, and a table of every rule with its formula, notes and source
- Two reference tables: the report’s 9,650 fields with the Reserve Bank’s tests on each, and which fields the workbook works out from which
- Four fictional insurers’ reports at two quarter ends each, every figure as the workbook works it out, and a test file with a case for each rule
- The rows each rule should flag on the test file
- 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 read the Reserve Bank’s workbook and generate everything in the download
The Reserve Bank’s workbook isn’t included. Each rule’s source is listed in VALIDATIONS.md, and the workbook is on the Reserve Bank’s insurance data upgrade 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 NZ QIR pipeline from the nz-qir folder. Test it with the test file and the good file and compare the results with the expected ones.
- Claude creates the two reference datasets, uploads the test file, builds the 20 stages and checks the test file and the good one. This takes around 4 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 report
- The workbook’s RBNZ processing sheet has each field’s id in column E and its value in column D. Copy those two columns, leave out the fields with no value, and add the insurer’s name, the report date and the financial year start to every row.
- Give amounts in NZ$ thousands, as digits with a minus sign if negative, and percentages as decimals, as the workbook holds them.
- Several insurers and report dates can share a file, or have one each. Upload each file and add it to stage 1’s inputs. Stage 2 stacks stage 1’s outputs with Linked Stages on, so nothing after it needs changing.
- To check the opening figures, include the report at the end of the previous financial year in the same run.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It checks the number and percent fields of the financial insurance, financial accounts, reconciliations and solvency sheets: 8,625 fields. The solvency projection, the foreign insurers’ solvency sheet, the overview of classes, and text and date fields are accepted but not checked.
- 725 of the solvency sheet’s fields are worked out with more than adding up, such as the risk capital charges’ factors and lookups, so they’re treated as given. The PCR, its adjustment and the ratios built on them are checked on their own. The Reserve Bank’s bespoke tests aren’t run.
- Fields follow version 1.8 of the workbook. A later version can change them, and its fields can be read again with the package’s
nz_fields.py. - The Annual Insurer Report isn’t covered.
- The opening figures are only compared with the previous financial year end’s report when the same run has it.
- The Reserve Bank’s tests pass within 1, in NZ$ thousands. The workbook’s formulas pass within half a thousand for each part added up and half for the field, and the solvency ratios within 0.005.
- The insurers and their figures are made up.
- 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.