Regulation 28: investment limits
Pensions South Africa
Checks a retirement fund’s asset schedule and measures the fund against every Regulation 28 limit, with the exposure, headroom and status of each limit line.
From Regulation 28 of the Pension Funds Act, as amended in July 2022: Table 1 and subregulation 28(3)
- 18validation rules
- 19pipeline stages
- 46limits checked
- 3 minto build and check
See it in Quantemplate
The pipeline

The flow

The checked output

What it checks
18 rules 15 Fail 3 Warning
- Mandatory fieldsFund, valuation date, holding ID, issuer, asset class and market value aren’t blank 6 Fail 6
- CodesAsset classes are in Table 1, Y or N flags are valid, there are no crypto-assets, and market caps are given where a limit depends on them 6 Fail 6
- DatesThe valuation date is a quarter end 1 Fail 1
- ValuesNo negative market values, and each holding ID appears once in each fund 2 Fail 2
- LimitsAsset class, per-issuer and combined limits aren’t exceeded 0 Fail, 3 Warning 3
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 reg28-validations.txt in the download.
How the pipeline works
- Stage 1 Prepare Clean the asset schedule and turn values into numbers
- Stages 2–5 Classify and check Add each holding’s Table 1 items and per-issuer limit, then run 15 data rules
- Stages 6–14 Exposures The fund’s total assets, and its exposure under each limit a holding counts towards
- Stages 15–16 Limit lines One line per fund and limit, with combined limits added up
- Stages 17–19 Compliance Exposure, limit, headroom and status for each line, then the 3 limit checks
What’s in the download
- The 18 rules in plain English, and the definition of every stage and rule
- Two reference tables: each asset class’s Table 1 limits, and every limit’s percentage
- Two fictional funds’ asset schedules, clean and with rows built to fail and limits breached
- The 132 limit lines the clean schedule should produce, and the rows each rule should flag on the broken one
- 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 Regulation 28 investment limits pipeline from the reg28-investment-limits folder. Test it with the broken and clean asset schedules and compare the results with the expected ones.
- Claude creates the two reference datasets, uploads the asset schedule, builds the 19 stages and checks both 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 the same columns as the test file, with market values in rand. Several funds can share one file.
- List holdings in collective investment schemes as their underlying assets. Hedge funds and private equity funds are listed as themselves, as subregulation 28(4)(c) allows.
- Check the two reference tables against the current regulation. If the Reserve Bank changes its limit on foreign assets, change the 28(3)(i) line in the limits table.
- Breaches are warnings, so they don’t block Auto Export. Set the three 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 Regulation 28. Review them against your own reading of it.
- It measures the fund against each limit. It doesn’t produce Table 2’s infrastructure report or fill in the reporting schedules that go to the Financial Sector Conduct Authority.
- Housing loans are checked at 65% whatever the date of the loan guarantee, although that limit only applies to guarantees from 3 January 2023.
- Exemptions granted to a fund aren’t applied. Change the limits table if your fund has one.
- The funds 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.