Insurer investment limits: Botswana, Kenya, Malawi and Rwanda
Insurance Africa
Checks a life insurer’s asset schedule and measures the insurer against its country’s investment limits, with the exposure, headroom and any excess on each limit line.
From the investment limits for life insurers in Botswana (IPR 2L), Kenya (Capital Adequacy Guidelines, 2017), Malawi (Investment Directive, 2025) and Rwanda (Regulation 68/2023)
- 26validation rules
- 23pipeline stages
- 69limits checked
- 3 minto build and check
See it in Quantemplate
The pipeline

The flow

The checked output

What it checks
26 rules 22 Fail 4 Warning
- Insurer detailsEach insurer has a name, one of the four countries, its total assets and, in Botswana, its net liabilities plus BPCT 4 Fail 4
- Mandatory fieldsInsurer, country, valuation date, holding ID, issuer, asset class, asset country and market value aren’t blank 8 Fail 8
- CodesThe country is one of the four, the asset class is allowed there for the asset’s country, Y or N flags are valid, and market caps are given where a limit depends on them 5 Fail 5
- DatesThe valuation date is a quarter end 1 Fail 1
- ValuesNo negative market values, and each holding ID appears once for each insurer 2 Fail 2
- Insurer totalsEvery insurer in the schedule has insurer details, and its total assets cover the schedule 2 Fail 2
- LimitsAsset class, per-issuer, combined and foreign limits aren’t exceeded 0 Fail, 4 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 is listed in plain English in insurer-validations.txt in the download.
How the pipeline works
- Stages 1–2 Prepare Clean the asset schedule and insurer details, turn values into numbers, and check the insurer details
- Stages 3–6 Classify and check Add each holding’s limits for its country, asset class and where the asset is, then run 16 holding rules
- Stages 7–9 Insurer totals Total each insurer’s schedule and check it against the insurer details
- Stages 10–20 Exposures The insurer’s exposure under each limit a holding counts towards, then one line per insurer and limit
- Stages 21–23 Compliance Basis, exposure, limit, headroom, status and excess for each line, then the 4 limit checks
What’s in the download
- The 26 rules in plain English, and the definition of every stage and rule
- Two reference tables: each asset class’s limits in each country, and every limit’s basis and percentage
- Four fictional life insurers’ asset schedules and insurer details, one in each country, clean and with rows built to fail and limits breached
- The 93 limit lines the clean files should produce, and the rows each rule should flag on the broken ones
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
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 insurer investment limits pipeline from the insurer-investment-limits folder. Test it with the broken and clean files and compare the results with the expected ones.
- Claude creates the two reference datasets, uploads the asset schedule and insurer details, builds the 23 stages and checks both sets of test files. 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 asset schedule
- Give your asset schedule and insurer details the same columns as the test files, with values in the insurer’s own currency. Several insurers, from any of the four countries, can share one file.
- Give each insurer’s total assets from its balance sheet, not the total of the schedule. Most limits are a percentage of it. Botswana’s limits are a percentage of net liabilities plus BPCT instead, except the one on assets outside Botswana, so give that too for Botswana insurers.
- Set Asset Country to where each asset is. The pipeline works out whether it’s in the insurer’s own country, elsewhere in the East African Community (for Rwanda) or elsewhere.
- Set Related Party to Y for holdings in the insurer’s group or connected companies. In Botswana, give loans to related parties the asset class Related party loan. Give Botswana’s listed shares the issuer’s market cap in millions of pula, which decides whether the 10% or 15% per-company limit applies.
- Limits on one bank, company or counterparty add up holdings by issuer, so give a group’s companies the same issuer where the rules treat them as one. In Malawi, list holdings in collective investment schemes as their underlying assets.
- Breaches are warnings, so they don’t block Auto Export. Set the four limit checks to Fail if a breach should stop the data going further.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- The rules are written from the text of each country’s regulations. Review them against your own reading, and check for later changes.
- It measures the insurer against each limit. It doesn’t produce the returns that go to each country’s regulator.
- In Botswana, the limits decide which assets count as admissible when working out excess assets, so the excess on a Botswana line is the amount to leave out. Deposits and government debt in Botswana have no limit by kind, so only the limit per bank is checked there. Item 3.9’s limit per natural person, equipment (item 3.10), the exception for foreign shares the Botswana Stock Exchange designates and exemptions the regulator grants aren’t applied.
- In Kenya, only the four limits in paragraph 10(2) of the Capital Adequacy Guidelines are checked. Draft investment regulations the Insurance Regulatory Authority published in 2026 may change them.
- In Malawi, shares in state-owned enterprises are checked as listed equity, and the 36-month transition, the treatment of private placements and the exemption for breaches caused by market movements aren’t applied.
- In Rwanda, holdings outside the country count towards their asset class limits as well as the limits on investment outside Rwanda. Derivatives need the National Bank of Rwanda’s approval, so they have no asset class.
- Namibia isn’t included, because its insurance rules changed in May 2026 and no investment limits under the new law were found. Zimbabwe sets minimums only.
- The insurers and their holdings 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.