Massachusetts private passenger auto statistical plan

Insurance United States

Checks a Massachusetts private passenger auto insurer’s statistical records before they go to Commonwealth Automobile Reinsurers (CAR): liability, PIP and physical damage premium and loss records against the statistical plan’s codes and CAR’s statistical edits, from classes, dates and limits codes to coverage codes, VINs and losses within their limits.

From CAR’s Statistical Edit Package, revised 1 January 2026 for accounting year 2026, and its Massachusetts Private Passenger Automobile Statistical Plan, with revisions through March 2025.

Massachusetts private passenger auto statistical plan
Rules, test data and a pipeline snapshot. Zip, 175 KB.
Download the template

See it in Quantemplate

The pipeline

The pipeline’s 24 stages in Quantemplate, from ‘Prepare liability records’ to ‘Physical damage records checked’. Liability, PIP and physical damage each have prepare, union, vehicles, matches, two joins, check and checked stages, and the Uploads tab lists the three test files.

The test run’s checks

The validation report for the ‘Check liability records’ stage on the test file. Each rule from L01, the company code is three digits, to L21, the VIN is 5 to 17 letters or digits, is listed with the rows that failed it, usually one, and a few are warnings.

The output

A preview of the ‘Liability records checked’ output, 71 rows, scrolled to the worked-out columns: the bodily injury, uninsured auto, combined single limit, medical payments and liability loss limits from each record’s limits codes, whether the VIN edit applies, and how many premium records each vehicle has and how many match the record’s territory and CAR identification code.

What it checks

143 rules 126 Fail 17 Warning

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. 15 rules are checks of our own, where CAR’s edit needs a file it doesn’t publish: ZIP code, territory and producer code formats, the VIN’s check digit, and a loss’s territory and CAR identification code against its vehicle’s premium records. Every rule, its formula and the CAR edit it follows are listed in VALIDATIONS.md in the download.

How the pipeline works

  1. Stages 1–2 Prepare liability records Detect headers, tidy the codes, and work out dates as months, codes with their leading zeros, the class type, the VIN’s check digit and each loss’s policy limit
  2. Stages 3–6 Match losses to premiums Count each vehicle’s premium records, and those with the loss’s territory and CAR identification code, and join the counts to each record
  3. Stages 7–8 Check liability records Run the 48 liability rules and publish every record with its results
  4. Stages 9–16 PIP records The same eight stages for the PIP file, with each loss’s limit after its deductible, and its 44 rules
  5. Stages 17–24 Physical damage records The same eight stages for physical damage, with the coverage groups CAR’s edits apply to, and its 51 rules

The input files

Three CSV files, one for each subline, with a header row and a row for each 150-character record. Premium and loss records go in the same file: the transaction type code says which each row is. The columns are the field names in the statistical plan, and each field is as it’s coded in the record.

File
What it holds
Liability, 41 columns
Subline 621. The common fields, such as Transaction Type Code, Classification Code and Vehicle Identification Number, then the bodily injury, property damage, medical payments, uninsured and underinsured auto limits codes, Liability Limits Code, Limits Identifier Code, the premiums, Reporting Date, Type of Loss Code and Loss Amount
PIP, 34 columns
Subline 625. The common fields, then PIP Coverage Code, PIP Deductible Code, Type of Claimant Code and PIP (No-Fault) Premium Amount
Physical damage, 40 columns
Subline 628. The common fields, then the other than collision, collision and loss coverage codes, the anti-theft, OEM, value, high-theft and extra-risk codes, the two premiums and Catastrophe Code

Dates are coded as in the plan: a month code (1 to 9, 0 for October, - for November and & for December) and a two-digit year, such as 126 for January 2026. The accident date adds the day, as in 21526 for 15 February 2026, and the accounting date is a month code and the year’s last digit, as in 66 for June 2026. Codes keep their leading zeros, though the pipeline also accepts them when Quantemplate reads a column as numbers and drops the zeros. The README in the download lists every column.

What’s in the download

CAR’s documents aren’t included. Download the statistical plan and the Statistical Edit Package from CAR’s manuals page.

Build it

  1. Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the Massachusetts CAR private passenger statistical plan pipeline from the mass-car-pp-stat-plan folder. Test it with the test files and the good files and compare the results with the expected ones.
  3. Claude creates the three upload datasets, builds the 24 stages and checks the test files and the good ones. This takes around 5 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 data

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits