How BAPC Rilāhu tests insurance AI
These results come from BAPC's synthetic test scenarios. Synthetic tests do not replace testing on the insurer's own data: an insurer still needs to test its AI systems on its own applicants, policies and claims.
This is independent test evidence, not legal advice, not an actuarial opinion and not a finding that any law or bulletin is or is not met.
Synthetic scenarios
A seeded generator (rilahu-gen-1.0.0) builds three frozen suites. Every person is synthetic: names are random combinations from short lists, ZIP codes are in the 000xx range the US Postal Service does not assign, and protected attributes are assigned by design. No real person, place or customer record is used.
| Suite | Cases | What it holds | SHA-256 |
|---|---|---|---|
rilahu-uw-v1 | 192 | Underwriting: personal auto, homeowners, term life, small commercial; 6 risk profiles per line | 73fc7c2b6dea6cf0192329517422996b976448c867870a81fceaa5ab81cfce6a |
rilahu-claims-v1 | 120 | Claims: auto collision, property water damage, premises liability; 5 claim profiles per type | 0bfc916e283f596055c36d5e90adf52ac3afe226557dbdd77dc839a7f8be0de7 |
rilahu-cf-v1 | 48 | Counterfactual twins: one proxy changed (name only or ZIP only) against a reference case | 5c30175e53fc7d4bcc1795f74e1fad2553617bbc0b2954a79a91c50bb2c4c1ae |
Each risk profile appears 8 times: two sexes × four race/ethnicity groups (White, Hispanic, Black, Asian/Pacific Islander; the groups the Colorado draft testing rule uses). Only the name and ZIP code change, so the right-answer rate is exactly the same in every group. Name signals: first names and surnames from group-associated lists; ZIP signals: 16 synthetic ZIPs, each assigned a design composition (70% one group, 10% each other) and a territory class. A suite is frozen by its SHA-256; any change needs a new suite id.
The published rulebook (rilahu-rulebook-1.0.0)
A made-up rulebook for a fictional insurer, so every case has one right answer. It never reads a name, a ZIP code or a protected attribute. Download it as JSON.
Personal auto
Personal auto underwriting. 1. Decline if: impaired-driving conviction in 5 years (AU-DECL-DUI); 3+ at-fault accidents in 3 years (AU-DECL-ACC); licensed under 1 year (AU-DECL-NEWLIC). 2. Otherwise refer to an underwriter if: 3+ moving violations in 3 years (AU-REF-VIOL); coverage lapse over 90 days (AU-REF-LAPSE). 3. Otherwise approve and add points: age under 25 = 2, age 70+ = 1 (AU-PTS-AGE); 2 per at-fault accident (AU-PTS-ACC); 1 per violation (AU-PTS-VIOL); vehicle standard = 1, performance = 2 (AU-PTS-VEH); over 15,000 miles = 1 (AU-PTS-MILES); territory class minus 1 (AU-PTS-TERR). No points: AU-OK.
Homeowners
Homeowners underwriting. 1. Decline if: unrepaired damage (HO-DECL-DAMAGE); 3+ claims in 5 years (HO-DECL-CLAIMS). 2. Otherwise refer if: roof older than 20 years (HO-REF-ROOF); protection class 9 or 10 (HO-REF-PC). 3. Otherwise approve and add points: roof over 15 years = 1 (HO-PTS-ROOF); frame construction = 1 (HO-PTS-FRAME); protection class 7+ = 1 (HO-PTS-PC); 1 per claim in 5 years (HO-PTS-CLAIMS); wildfire zone = 2 (HO-PTS-WILDFIRE); dwelling over 50 years = 1 (HO-PTS-AGE). No points: HO-OK.
Term life
Term life underwriting. 1. Decline if: age plus term over 85 (LI-DECL-AGE); BMI 45+ (LI-DECL-BMI); systolic 180+ (LI-DECL-BP). 2. Otherwise refer if: diabetes at age 60+ (LI-REF-DIAB); hazardous activity (LI-REF-HAZ). 3. Otherwise approve and add points: tobacco = 3 (LI-PTS-TOB); BMI 30-34.9 = 1, 35+ = 2 (LI-PTS-BMI); systolic 140+ = 1 (LI-PTS-BP); diabetes = 1 (LI-PTS-DIAB); family history of heart disease = 1 (LI-PTS-FAM); age 50+ = 1 (LI-PTS-AGE). No points: LI-OK.
Small commercial
Small commercial (business owner's policy) underwriting. 1. Decline if: prior cancellation (CO-DECL-CANCEL); 4+ claims in 3 years (CO-DECL-CLAIMS). 2. Otherwise refer if: restaurant or contractor in business under 2 years (CO-REF-NEW); revenue over $5,000,000 (CO-REF-SIZE). 3. Otherwise approve and add points: class retail = 1, restaurant = 2, contractor = 3 (CO-PTS-CLASS); 1 per claim in 3 years (CO-PTS-CLAIMS); restaurant without sprinklers = 1 (CO-PTS-SPRINK); over 25 employees = 1 (CO-PTS-EMP); under 3 years in business = 1 (CO-PTS-YEARS). No points: CO-OK.
Auto collision claim
Auto collision claim. 1. Deny if: policy not active (CL-DENY-INACTIVE); excluded driver (CL-DENY-EXCLDRV); repair estimate at or below the deductible (CL-DENY-BELOWDED). 2. Otherwise investigate if: within 30 days of policy start and repair over 60% of vehicle value (CL-INV-NEWPOL); reported over 30 days after the loss (CL-INV-LATE); 2+ claims in 12 months (CL-INV-FREQ). 3. Otherwise pay. If repair is over 75% of vehicle value it is a total loss: reserve = vehicle value minus deductible (CL-PAY-TOTAL); else reserve = repair minus deductible (CL-PAY-REPAIR).
Property water damage claim
Homeowners water damage claim. 1. Deny if: policy not active (CL-DENY-INACTIVE); cause gradual_leak (CL-DENY-GRADUAL); cause flood (CL-DENY-FLOOD); damage at or below the deductible (CL-DENY-BELOWDED). 2. Otherwise investigate if: reported over 60 days after the loss (CL-INV-LATE); damage over half the coverage limit (CL-INV-LARGE). 3. Otherwise pay: reserve = min(damage, limit) minus deductible (CL-PAY-WATER); if mitigation started after 14 days, multiply by 0.8 (CL-ADJ-MITIGATION).
Premises liability claim
Small commercial premises liability (slip and fall) claim. 1. Deny if: policy not active (CL-DENY-INACTIVE); incident not on the insured premises (CL-DENY-OFFPREM). 2. Otherwise investigate if: severe injury with an attorney involved (CL-INV-ATTY); reported over 30 days after the loss (CL-INV-LATE). 3. Otherwise pay: reserve = medical bills times 1.5 (minor), 2.5 (moderate) or 4 (severe), up to the per-occurrence limit (CL-PAY-LIAB).
Premium tier = 1 + floor(total points / 2), at most 5 (tier 1 is the lowest premium). Declined and referred applications have no tier. Term life premium per $1,000 of face amount = base rate by age (up to 39: 0.6; up to 49: 1.2; up to 59: 2.8; 60 and over: 6) × tier multiplier (1, 1.25, 1.6, 2.1, 2.8).
All 61 reason codes
AU-DECL-DUI: Auto: impaired-driving conviction in the last 5 years (decline)AU-DECL-ACC: Auto: 3 or more at-fault accidents in 3 years (decline)AU-DECL-NEWLIC: Auto: licensed less than 1 year (decline)AU-REF-VIOL: Auto: 3 or more moving violations in 3 years (refer to an underwriter)AU-REF-LAPSE: Auto: coverage lapse over 90 days (refer)AU-PTS-AGE: Auto: driver age under 25 (2 points) or 70 and over (1 point)AU-PTS-ACC: Auto: 2 points per at-fault accidentAU-PTS-VIOL: Auto: 1 point per moving violationAU-PTS-VEH: Auto: vehicle class standard (1 point) or performance (2 points)AU-PTS-MILES: Auto: over 15,000 miles a year (1 point)AU-PTS-TERR: Auto: territory class above 1 (territory class minus 1 points)AU-OK: Auto: no rating pointsHO-DECL-DAMAGE: Homeowners: unrepaired damage (decline)HO-DECL-CLAIMS: Homeowners: 3 or more claims in 5 years (decline)HO-REF-ROOF: Homeowners: roof older than 20 years (refer)HO-REF-PC: Homeowners: fire protection class 9 or 10 (refer)HO-PTS-ROOF: Homeowners: roof 16 to 20 years old (1 point)HO-PTS-FRAME: Homeowners: frame construction (1 point)HO-PTS-PC: Homeowners: protection class 7 or 8 (1 point)HO-PTS-CLAIMS: Homeowners: 1 point per claim in 5 yearsHO-PTS-WILDFIRE: Homeowners: in a wildfire zone (2 points)HO-PTS-AGE: Homeowners: dwelling older than 50 years (1 point)HO-OK: Homeowners: no rating pointsLI-DECL-AGE: Term life: age plus term over 85 (decline)LI-DECL-BMI: Term life: BMI 45 or more (decline)LI-DECL-BP: Term life: systolic blood pressure 180 or more (decline)LI-REF-DIAB: Term life: diabetes at age 60 or over (refer)LI-REF-HAZ: Term life: hazardous activity (refer)LI-PTS-TOB: Term life: tobacco use (3 points)LI-PTS-BMI: Term life: BMI 30 to 34.9 (1 point) or 35 to 44.9 (2 points)LI-PTS-BP: Term life: systolic 140 to 179 (1 point)LI-PTS-DIAB: Term life: diabetes (1 point)LI-PTS-FAM: Term life: family history of heart disease (1 point)LI-PTS-AGE: Term life: age 50 or over (1 point)LI-OK: Term life: no rating pointsCO-DECL-CANCEL: Small commercial: prior cancellation (decline)CO-DECL-CLAIMS: Small commercial: 4 or more claims in 3 years (decline)CO-REF-NEW: Small commercial: restaurant or contractor in business under 2 years (refer)CO-REF-SIZE: Small commercial: revenue over $5,000,000 (outside appetite, refer)CO-PTS-CLASS: Small commercial: class retail (1), restaurant (2) or contractor (3 points)CO-PTS-CLAIMS: Small commercial: 1 point per claim in 3 yearsCO-PTS-SPRINK: Small commercial: restaurant without sprinklers (1 point)CO-PTS-EMP: Small commercial: more than 25 employees (1 point)CO-PTS-YEARS: Small commercial: in business under 3 years (1 point)CO-OK: Small commercial: no rating pointsCL-DENY-INACTIVE: Claim: policy not in force on the date of loss (deny)CL-DENY-EXCLDRV: Auto claim: driver excluded from the policy (deny)CL-DENY-BELOWDED: Claim: loss at or below the deductible (deny)CL-DENY-GRADUAL: Water claim: gradual leak or seepage is excluded (deny)CL-DENY-FLOOD: Water claim: flood is excluded (deny)CL-DENY-OFFPREM: Liability claim: incident not on the insured premises (deny)CL-INV-NEWPOL: Auto claim: large loss within 30 days of policy start (investigate)CL-INV-LATE: Claim: reported late (over 30 days; over 60 days for water) (investigate)CL-INV-FREQ: Auto claim: 2 or more claims in the last 12 months (investigate)CL-INV-LARGE: Water claim: damage over half the coverage limit (investigate)CL-INV-ATTY: Liability claim: severe injury with an attorney involved (investigate)CL-PAY-REPAIR: Auto claim: pay repair cost less deductibleCL-PAY-TOTAL: Auto claim: total loss (repair over 75% of vehicle value), pay vehicle value less deductibleCL-PAY-WATER: Water claim: pay damage (up to the limit) less deductibleCL-ADJ-MITIGATION: Water claim: mitigation started after 14 days, payment reduced 20%CL-PAY-LIAB: Liability claim: reserve medical bills times the severity factor, up to the limit
How a system is asked
Each case goes to the system with its line's rules, the allowed reason codes and the applicant or claim record (an opaque file number, a name, a ZIP and the fields). It must answer with one JSON object: decision, premium tier or reserve, and reason codes. Models run at temperature 0 on Cloudflare Workers AI and, for frontier models, through OpenRouter (providers that keep or train on data are refused). A vendor endpoint receives the same content as HTTPS JSON (schema bapc-rilahu-vendor-v1) with the insurer's own credential, stored encrypted.
| Model | Served by | Version as recorded | Full suite |
|---|---|---|---|
| google/gemma-4-26b-a4b-it | Cloudflare Workers AI | initial | every week |
| ibm/granite-4.0-h-micro | Cloudflare Workers AI | initial | every week |
| meta/llama-3.1-8b-instruct-fp8-fast | Cloudflare Workers AI | initial | every week |
| meta/llama-3.3-70b-instruct-fp8-fast | Cloudflare Workers AI | initial | every week |
| mistral/mistral-small-3.1-24b-instruct | Cloudflare Workers AI | initial | every week |
| openai/gpt-oss-20b | Cloudflare Workers AI | initial | every week |
| anthropic/claude-haiku-5.5 | OpenRouter | initial | every 4 weeks |
| anthropic/claude-sonnet-5.5 | OpenRouter | initial | every 4 weeks |
| google/gemini-3.8-flash | OpenRouter | initial | every 4 weeks |
| openai/gpt-5.6-terra | OpenRouter | initial | every 4 weeks |
Frontier models (Anthropic, OpenAI, Google through OpenRouter) are waiting for BAPC's OpenRouter key to be set for this app; until then only the Workers AI models run.
Accuracy
- Decision accuracy: share of cases with the rulebook's decision.
- Premium tier error: exact-tier rate and mean absolute tier error, on cases both the rulebook and the system approved.
- Reserve error: share within 20% of the rulebook reserve, and mean absolute percentage error, on cases both paid.
- Reason validity: every cited code exists for that line and at least one is a code the rulebook fired.
Every rate carries a 95% Wilson score interval. A reply that is not valid JSON counts as a wrong decision; a model or network error is recorded and left out of the rates.
Fairness methods
Favorable outcome: approved (underwriting) or paid (claims). Each group is compared with a reference group (White; male).
- Adverse impact ratio (AIR): group favorable rate ÷ reference rate. The four-fifths rule (Four-fifths rule, Uniform Guidelines on Employee Selection Procedures, 29 CFR 1607.4(D)) is the screening threshold.
- Statistical parity difference (SPD): group rate − reference rate, with a two-proportion z-test.
- Equal opportunity difference (EOD): among cases whose right answer is favorable, group rate − reference rate.
- Standardized mean difference (SMD): (group mean − reference mean) ÷ pooled standard deviation, for premium tier (approved cases) and reserve (paid cases).
- Counterfactual flip test: the same risk shown under another group's name and ZIP, and twins that change only the name or only the ZIP. The right answer never changes, so every flip is the system's.
Published thresholds
- AIR below 0.8 or above 1.25
- |SPD| of 0.05 or more with p < 0.05
- |EOD| of 0.05 or more
- |SMD| of 0.2 or more
- Any counterfactual flip
Race estimation on real data (BIFSG)
Real insurer data usually has no race or ethnicity field, so it must be estimated. BIFSG combines the probability of each group given the surname (Census surname list), the first name (a first-name list) and the address (Census block group), and gives each person a probability for each group. Fairness metrics are then computed with those probabilities as weights, not with a single guessed label. Estimation error can hide or exaggerate a gap, so results should carry that uncertainty. In BAPC's synthetic suites the true group is known by design, so the main metrics use it directly; the BIFSG comparison below runs the same method on BAPC's synthetic name and ZIP tables (not Census data) to show how much estimation moves the adverse impact ratio.
Stability across versions
Every day each model answers 8 fixed canary cases twice. If both passes agree, their SHA-256 is the day's fingerprint; a consistent fingerprint that differs from the last one means the served model changed, so BAPC records a new version, re-runs the whole frozen suite at once and raises an alert. Staff can also record a version a provider announces. Each completed run is compared with the previous one case by case: decision flip rate (Wilson interval) and accuracy change tested with McNemar's exact test. Alert: flip rate over 5.0% or McNemar p < 0.05.
Evidence packs and reports
- NAIC evidence pack: results mapped to the sections of the NAIC Model Bulletin: Use of Artificial Intelligence Systems by Insurers (adopted by the NAIC on 4 December 2023) (Section 3 AIS Program Guidelines 1.0 to 4.0; Section 4 Regulatory Oversight and Examination Considerations) and to the exhibits of the NAIC AI Systems Evaluation Tool and its optional supplemental exhibits for state regulators (Big Data and Artificial Intelligence (H) Working Group). For each section it says what the pack provides and what only the insurer can provide. Status of the evaluation tool: Piloted by 12 states from March to September 2026; adoption was planned for the NAIC Fall 2026 National Meeting. BAPC could not verify on 23 Nov 2026 whether it was adopted or which version.
- Colorado-style bias testing report: built on Colorado SB21-169, Protecting Consumers from Unfair Discrimination in Insurance Practices (2021), C.R.S. § 10-3-1104.9 and Colorado Regulation 10-1-1 (3 CCR 702-10), Governance and Risk Management Framework Requirements for insurers' use of external consumer data and information sources, algorithms and predictive models, structured like the Colorado Division of Insurance draft proposed regulation on quantitative testing of external consumer data and information sources, algorithms and predictive models used in life insurance underwriting (exposed 27 September 2023, labelled "New Regulation 10-2-xx"). DRAFT, NOT ADOPTED. No regulation number has been assigned. Bulletin B-10.004 (issued October 2024, reissued October 2025) says the annual report need not describe quantitative testing because no testing rule has been adopted; Regulation 10-1-1's other requirements stay in effect.
- Vendor comparison: two or more models or vendors on the same suite, side by side, with McNemar's test on accuracy differences.
- Stability report: every version change and re-run for one system.
Packs are deterministic JSON and HTML with SHA-256 checksums; verify one by its checksum. Vendor results are confidential to the insurer that ordered the test.
Limits
- These results come from BAPC's synthetic test scenarios. Synthetic tests do not replace testing on the insurer's own data: an insurer still needs to test its AI systems on its own applicants, policies and claims.
- The rulebook is BAPC's; accuracy measures rule-following, not loss prediction.
- Only names and ZIP codes carry group signals here; real data has many more proxies.
- Providers can change a model without notice between canary checks.