From 0f3407bbad6a13943ece23ec0d3989dfb1ce1a07 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Nov 2026 23:49:58 -0500 Subject: [PATCH] Local vPIC decoder with reviewed rule fixes Decode VINs with mcp.vin's own copy of NHTSA's vPIC decode (release 2026_11) instead of the live API, and fix NHTSA's rule rows where they are wrong. - scripts/import-vpic.py: read the monthly vPIC PostgreSQL dump without a database server and write data/vpic.db (96.5 MB); stop when NHTSA's decode functions change. - lib/vpic-local.mjs: a faithful interpreter of spvindecode. On NHTSA's pristine rules it agrees with spvindecode on every element of 25,073 of 25,073 VINs. - lib/nhtsa.mjs: decode locally first; fall back to the live API when the WMI or model is unknown, the model year is newer than the release, or the dataset is missing. decode_source names the source, release and fallback reason. - data-src/vpic-rule-fixes.jsonl: 26 reviewed rule fixes (34 row edits) for the 33 confirmed decode errors outside seats and GVWR. The build applies an entry only when NHTSA's rows are unchanged; otherwise it reports it for review. Fixed values are marked corrected (basis mcp_vin_rule_fix) with NHTSA's official value, the reason and the evidence. docs/vpic-rule-fixes.md is the readable diff. - Accent fix: a test-vehicle fill no longer asserts the transmission or speeds when EPA lists both manual and automatic for the model and year. - scripts/vpic-refresh.sh: monthly refresh on the storage server (build, fix check, parity with spvindecode, diff, xz). It has no cron job and does not deploy. Co-Authored-By: Claude Opus 5.5 --- data-src/vpic-rule-fixes.jsonl | 26 + docs/data-sources.md | 132 +++- docs/vpic-rule-fixes.md | 498 ++++++++++++++++ lib/decode-checks.mjs | 111 +++- lib/decode-report.mjs | 15 +- lib/nhtsa.mjs | 244 ++++---- lib/reports.mjs | 21 +- lib/vpic-local.mjs | 959 ++++++++++++++++++++++++++++++ lib/vpic-parse.mjs | 100 ++++ package.json | 2 +- public/app.js | 16 +- public/car-sheet.js | 2 +- public/decode-checks.js | 28 +- public/index.html | 2 +- public/llms-full.txt | 8 +- scripts/check-vpic-rule-fixes.mjs | 71 +++ scripts/import-vpic.py | 692 +++++++++++++++++++++ scripts/make-vpic-fixture.mjs | 151 +++++ scripts/vpic-parity.mjs | 152 +++++ scripts/vpic-refresh.sh | 105 ++++ scripts/vpic-rule-diff.mjs | 102 ++++ tests/decode-checks.test.mjs | 4 +- tests/fixtures/vpic-mini.json | 1 + tests/vpic-local.test.mjs | 204 +++++++ tests/vpic_import_test.py | 122 ++++ 25 files changed, 3605 insertions(+), 163 deletions(-) create mode 100644 data-src/vpic-rule-fixes.jsonl create mode 100644 docs/vpic-rule-fixes.md create mode 100644 lib/vpic-local.mjs create mode 100644 lib/vpic-parse.mjs create mode 100644 scripts/check-vpic-rule-fixes.mjs create mode 100755 scripts/import-vpic.py create mode 100644 scripts/make-vpic-fixture.mjs create mode 100644 scripts/vpic-parity.mjs create mode 100755 scripts/vpic-refresh.sh create mode 100644 scripts/vpic-rule-diff.mjs create mode 100644 tests/fixtures/vpic-mini.json create mode 100644 tests/vpic-local.test.mjs create mode 100644 tests/vpic_import_test.py diff --git a/data-src/vpic-rule-fixes.jsonl b/data-src/vpic-rule-fixes.jsonl new file mode 100644 index 0000000..196bee5 --- /dev/null +++ b/data-src/vpic-rule-fixes.jsonl @@ -0,0 +1,26 @@ +{"id": "rf-001", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "5J8TB3H3*EL", "model_year": 2014, "make": "ACURA", "model": "RDX", "field": "DriveType", "vpic_value": "AWD/All-Wheel Drive", "correct_value": "FWD", "test_vehicles": 2}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 845254, "schema_id": 9925, "schema": "Acura RDX Schema for 2014", "keys": "TB[34]H[35]", "element": "DriveType", "attribute_id": "3", "value": "AWD/All-Wheel Drive"}, "set": {"keys": "TB3H[35]", "attribute_id": "1", "value": "FWD/Front-Wheel Drive"}}], "reason": "Position 6 separates the drives: vPIC's own row TB4H[35] gives AWD, and both NHTSA test RDXs with TB3 were front-drive (EPA lists the 2014 RDX 2WD and 4WD). The row TB[34]H[35] gave AWD to both; it now covers TB3 only, as front-wheel drive.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08300/v08357R001.pdf", "test_no": 8357}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08300/v08359R001.pdf", "test_no": 8359}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "5J8TB3H35EL005547", "fields": {"DriveType": {"official_value": "AWD/All-Wheel Drive", "fixed_value": "FWD/Front-Wheel Drive"}}}, {"vin": "5J8TB3H37EL006151", "fields": {"DriveType": {"official_value": "AWD/All-Wheel Drive", "fixed_value": "FWD/Front-Wheel Drive"}}}]} +{"id": "rf-002", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "3GN7DLRR*RS", "model_year": 2024, "make": "CHEVROLET", "model": "Equinox", "field": "DriveType", "vpic_value": "FWD/Front-Wheel Drive", "correct_value": "AWD/4WD", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1942055, "schema_id": 25558, "schema": "Chevrolet Equinox EV Schema for 3GN (MY2024)", "keys": "7D[8K-S]*[PR]", "element": "DriveType", "attribute_id": "1", "value": "FWD/Front-Wheel Drive"}, "set": {"keys": "7D[8K-S]*P"}}, {"action": "add", "table": "pattern", "new": {"id": -101, "schema_id": 25558, "schema": "Chevrolet Equinox EV Schema for 3GN (MY2024)", "keys": "7D[8K-S]*R", "element": "DriveType", "attribute_id": "3", "value": "AWD/All-Wheel Drive"}}], "reason": "Position 8 separates the drives: vPIC's own OtherEngineInfo rows read 'GEN 3, FWD, 10-MOD' for P and 'GEN 3, FWD, EAWD, 10-MOD' for R. The drive row 7D[8K-S]*[PR] gave front drive to both; it now covers P, and R gets all-wheel drive (NHTSA's AWD test Equinox EV has R; the two front-drive ones have P).", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15000/v15092R001.pdf", "test_no": 15092}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "3GN7DLRR1RS241049", "fields": {"DriveType": {"official_value": "FWD/Front-Wheel Drive", "fixed_value": "AWD/All-Wheel Drive"}}}]} +{"id": "rf-003", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "KMHM34AC*PA", "model_year": 2023, "make": "HYUNDAI", "model": "Ioniq 6", "field": "DriveType", "vpic_value": "RWD/Rear-Wheel Drive", "correct_value": "AWD/4WD", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -102, "schema_id": 24962, "schema": "Hyundai IONIQ 6 Schema for KMH (MY2023)", "keys": "M[235]4*C", "element": "DriveType", "attribute_id": "3", "value": "AWD/All-Wheel Drive"}}], "premise": [{"table": "spec_pattern", "row": {"id": 227577, "spec_schema_pattern_id": 12925, "spec_schema_id": 3567, "applies_to": "Ioniq 6 2023, where BodyClass=Sedan/Saloon", "element": "DriveType", "attribute_id": "4", "value": "RWD/Rear-Wheel Drive"}}], "reason": "vPIC's vehicle-spec row gives rear drive to every 2023 Ioniq 6 sedan, but EPA lists RWD and AWD versions. NHTSA's AWD test car has C at position 8, the two RWD ones A. A pattern row for C (all-wheel drive) now outranks the spec value; A and B keep vPIC's rear drive.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15000/v15029R001.pdf", "test_no": 15029}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "KMHM34AC7PA022456", "fields": {"DriveType": {"official_value": "RWD/Rear-Wheel Drive", "fixed_value": "AWD/All-Wheel Drive"}}}]} +{"id": "rf-004", "release": "2026_11", "case": "wrong_row", "errors": [{"pattern": "JN8AY2NC*J9", "model_year": 2018, "make": "NISSAN", "model": "Armada", "field": "DriveType", "vpic_value": "4x2", "correct_value": "AWD/4WD", "test_vehicles": 1}], "edits": [{"action": "delete", "table": "pattern", "row": {"id": 1249451, "schema_id": 15607, "schema": "Nissan/Infiniti MPV Schema for JN8/5N1/3N8/KNM - 2018", "keys": "AY2N", "element": "DriveType", "attribute_id": "7", "value": "4x2"}}], "reason": "The row AY2N (4x2 for every 2018 Armada) overrode vPIC's own position-8 drive rows, which give 4WD to C and 4x2 to D. NHTSA's test Armadas agree with position 8 (C: 4WD; D: rear drive). Removing the row lets the position-8 rows decide.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10300/v10312R001.pdf", "test_no": 10312}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "JN8AY2NC0J9555172", "fields": {"DriveType": {"official_value": "4x2", "fixed_value": "4WD/4-Wheel Drive/4x4"}}}]} +{"id": "rf-005", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "JN8AF5MV*CT", "model_year": 2012, "make": "NISSAN", "model": "Juke", "field": "DriveType", "vpic_value": "4x2", "correct_value": "AWD/4WD", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 58028, "schema_id": 2849, "schema": "Nissan/Infiniti MPV JN8/5N1 Schema - 2012", "keys": "****[B-FNPRT-WY]", "element": "DriveType", "attribute_id": "7", "value": "4x2"}, "set": {"keys": "****[DFNPRTU]"}}], "reason": "Two of vPIC's rows overlapped at position 8: ****[B-FNPRT-WY] (4x2) and ****[VWBCEY] (4WD) both covered B, C, E, V, W and Y, and the 4x2 row won. NHTSA's AWD test Juke has V and the front-drive ones R. The 4x2 row now leaves out the 4WD row's letters.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07600/v07626R001.pdf", "test_no": 7626}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "JN8AF5MV4CT106612", "fields": {"DriveType": {"official_value": "4x2", "fixed_value": "4WD/4-Wheel Drive/4x4"}}}]} +{"id": "rf-006", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "5TDZA3EH*BS", "model_year": 2011, "make": "TOYOTA", "model": "Highlander", "field": "DriveType", "vpic_value": "4WD/4-Wheel Drive/4x4", "correct_value": "4x2", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 85981, "schema_id": 3146, "schema": "Toyota Schema for Highlander/Highlander Limited/Highlander Hybrid/Highlander Hybrid Limited MPVs for JTE/5TD - 2011", "keys": "Z***H", "element": "DriveType", "attribute_id": "2", "value": "4WD/4-Wheel Drive/4x4"}, "set": {"attribute_id": "7", "value": "4x2"}}], "reason": "Position 4 encodes the drive in Toyota's 2011 rows (B and D: 4WD, Y: 4x2; the Sienna and Sequoia rows give Z 4x2), but Z***H said 4WD. NHTSA's test Highlander with Z was two-wheel drive, and EPA lists no 4WD Highlander with the decoded engine.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07100/v07181R001.pdf", "test_no": 7181}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "5TDZA3EH9BS009588", "fields": {"DriveType": {"official_value": "4WD/4-Wheel Drive/4x4", "fixed_value": "4x2"}}}, {"vin": "5TDZA3EH9BS008764", "fields": {"DriveType": {"official_value": "4WD/4-Wheel Drive/4x4", "fixed_value": "4x2"}}}]} +{"id": "rf-007", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "4T3BA3BB*DU", "model_year": 2013, "make": "TOYOTA", "model": "Venza", "field": "DriveType", "vpic_value": "4x2", "correct_value": "AWD/4WD", "test_vehicles": 1}, {"pattern": "4T3ZA3BB*DU", "model_year": 2013, "make": "TOYOTA", "model": "Venza", "field": "DriveType", "vpic_value": "4WD/4-Wheel Drive/4x4", "correct_value": "FWD", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 114068, "schema_id": 3433, "schema": "Toyota Schema for Venza MPV for 4T3-(2012-2013)", "keys": "B***B", "element": "DriveType", "attribute_id": "7", "value": "4x2"}, "set": {"attribute_id": "3", "value": "AWD/All-Wheel Drive"}}, {"action": "modify", "table": "pattern", "row": {"id": 114071, "schema_id": 3433, "schema": "Toyota Schema for Venza MPV for 4T3-(2012-2013)", "keys": "Z***B", "element": "DriveType", "attribute_id": "2", "value": "4WD/4-Wheel Drive/4x4"}, "set": {"attribute_id": "1", "value": "FWD/Front-Wheel Drive"}}], "reason": "The two Venza drive rows were swapped: B***B said 4x2 and Z***B 4WD, but NHTSA's 2013 Venza LE AWD test car has B and the Venza LE FWD has Z (Toyota uses B for 4WD and Z for 2WD in its other rows).", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07900/v07969R001.pdf", "test_no": 7969}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07900/v07970R001.pdf", "test_no": 7970}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "4T3BA3BB8DU035697", "fields": {"DriveType": {"official_value": "4x2", "fixed_value": "AWD/All-Wheel Drive"}}}, {"vin": "4T3ZA3BB8DU064650", "fields": {"DriveType": {"official_value": "4WD/4-Wheel Drive/4x4", "fixed_value": "FWD/Front-Wheel Drive"}}}]} +{"id": "rf-008", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "1V2BR2CA*JC", "model_year": 2018, "make": "VOLKSWAGEN", "model": "Atlas", "field": "DriveType", "vpic_value": "AWD/All-Wheel Drive", "correct_value": "FWD", "test_vehicles": 2}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -103, "schema_id": 15825, "schema": "Volkswagen MPV Schema for WVG/1V2/3VV - 2018", "keys": "B**CA", "element": "DriveType", "attribute_id": "1", "value": "FWD/Front-Wheel Drive"}}], "premise": [{"table": "spec_pattern", "row": {"id": 14854, "spec_schema_pattern_id": 1710, "spec_schema_id": 439, "applies_to": "Atlas 2018, where Trim=Launch Model", "element": "DriveType", "attribute_id": "3", "value": "AWD/All-Wheel Drive"}}], "reason": "vPIC keys the 2018 Atlas drive on positions 4, 7 and 8 (G, H, K, L, M, N, R with CA: AWD) but has no row for B with CA, so the vehicle-spec value for 'Launch Model' (AWD) filled it. Volkswagen's own record of 1V2BR2CA3JC513174 reads 'ATLAS S 3.6 LAUNCH FWD' and both NHTSA test Atlases with B were front-drive; EPA lists FWD and 4Motion Atlases. A row B**CA now gives front-wheel drive.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10135R001.pdf", "test_no": 10135}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10136R001.pdf", "test_no": 10136}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "1V2BR2CA3JC513174", "fields": {"DriveType": {"official_value": "AWD/All-Wheel Drive", "fixed_value": "FWD/Front-Wheel Drive"}}}, {"vin": "1V2BR2CA9JC514037", "fields": {"DriveType": {"official_value": "AWD/All-Wheel Drive", "fixed_value": "FWD/Front-Wheel Drive"}}}]} +{"id": "rf-009", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "19UUA9F5*CA", "model_year": 2012, "make": "ACURA", "model": "TL", "field": "DisplacementL", "vpic_value": "3.47406 L", "correct_value": "3.7 L", "test_vehicles": 2}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 848911, "schema_id": 9486, "schema": "Acura TL Schema for 2012", "keys": "UA9F[257]", "element": "DisplacementCI", "attribute_id": "212", "value": "212"}, "set": {"attribute_id": "224", "value": 224}}], "reason": "UA9F is the 2012 TL SH-AWD, whose engine vPIC itself names J37A4 (3.7 L); vPIC's own rows give that engine 224 cubic inches (UA9E5, and the RL's KB2F rows), but UA9F[257] said 212 (the 3.5 L), which converts to 3.47 L. Both NHTSA test TL SH-AWDs recorded 3.7 L.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07500/v07569R001.pdf", "test_no": 7569}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07800/v07869R001.pdf", "test_no": 7869}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "19UUA9F50CA003096", "fields": {"DisplacementCC": {"official_value": "3474.057568", "fixed_value": "3670.702336"}, "DisplacementCI": {"official_value": "212", "fixed_value": "224"}, "DisplacementL": {"official_value": "3.474057568", "fixed_value": "3.670702336"}}}, {"vin": "19UUA9F51CA010431", "fields": {"DisplacementCC": {"official_value": "3474.057568", "fixed_value": "3670.702336"}, "DisplacementCI": {"official_value": "212", "fixed_value": "224"}, "DisplacementL": {"official_value": "3.474057568", "fixed_value": "3.670702336"}}}]} +{"id": "rf-010", "release": "2026_11", "case": "wrong_row", "errors": [{"pattern": "1GCHTAEA*F1", "model_year": 2015, "make": "CHEVROLET", "model": "Colorado", "field": "EngineCylinders", "vpic_value": "6", "correct_value": "4", "test_vehicles": 1}], "edits": [{"action": "delete", "table": "pattern", "row": {"id": 1698453, "schema_id": 10453, "schema": "Chevrolet Colorado schema for 1GB/1GC - 2015", "keys": "*TA", "element": "EngineCylinders", "attribute_id": "6", "value": "6"}}], "reason": "The Colorado row *TA (positions 5-6) gave 6 cylinders whatever the engine; GM encodes the engine at position 8, where vPIC's own engine rows give A (LCV, 2.5 L) 4 cylinders. NHTSA's test Colorado with engine code A had 4 cylinders, and EPA lists no 2.5 L six. Removing the row lets the engine-code row decide.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v09000/v09080R001.pdf", "test_no": 9080}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "1GCHTAEA5F1158421", "fields": {"EngineCylinders": {"official_value": "6", "fixed_value": "4"}}}]} +{"id": "rf-011", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "WMWXM5C5*ET", "model_year": 2014, "make": "MINI", "model": "Hardtop", "field": "EngineCylinders", "vpic_value": "4", "correct_value": "3", "test_vehicles": 3}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 19118, "schema_id": 2452, "schema": "MINI Schema for WMW - 2014", "keys": "XM5C", "element": "EngineCylinders", "attribute_id": "4", "value": "4"}, "set": {"attribute_id": "3", "value": 3}}], "reason": "XM5C is the 2014 Cooper with the 1.5 L engine (vPIC's own displacement row for XM5C), which EPA lists only as a three-cylinder; the row said 4. All three NHTSA test cars with this pattern had 3 cylinders.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08755R001.pdf", "test_no": 8755}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08758R001.pdf", "test_no": 8758}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08786R001.pdf", "test_no": 8786}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "WMWXM5C53ET932798", "fields": {"EngineCylinders": {"official_value": "4", "fixed_value": "3"}}}, {"vin": "WMWXM5C59ET932711", "fields": {"EngineCylinders": {"official_value": "4", "fixed_value": "3"}}}, {"vin": "WMWXM5C51ET934114", "fields": {"EngineCylinders": {"official_value": "4", "fixed_value": "3"}}}]} +{"id": "rf-012", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "3N1AB61E*7L", "model_year": 2007, "make": "NISSAN", "model": "Sentra", "field": "EngineCylinders", "vpic_value": "6", "correct_value": "4", "test_vehicles": 1}, {"pattern": "3N1AB61E*7L", "model_year": 2007, "make": "NISSAN", "model": "Sentra", "field": "DisplacementL", "vpic_value": "3.5 L", "correct_value": "2 L", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 810114, "schema_id": 2662, "schema": "Nissan/Infiniti Passenger Car & Incomplete Vehicle Schema for JN1/1N4/3N1/JNK/JN3/JNX - 2007", "keys": "AB61", "element": "EngineCylinders", "attribute_id": "6", "value": "6"}, "set": {"attribute_id": "4", "value": 4}}, {"action": "modify", "table": "pattern", "row": {"id": 45999, "schema_id": 2662, "schema": "Nissan/Infiniti Passenger Car & Incomplete Vehicle Schema for JN1/1N4/3N1/JNK/JN3/JNX - 2007", "keys": "AB61", "element": "DisplacementL", "attribute_id": "3.5", "value": "3.5"}, "set": {"attribute_id": "2.0", "value": "2.0"}}], "reason": "The rows gave the 2007 Sentra pattern AB61 the 3.5 L VQ35DE six (vPIC's own rows give the other Sentra patterns BB61 and CB61 2.5 L). NHTSA's test Sentra had a 2.0 L four, and EPA lists no 3.5 L or six-cylinder 2007 Sentra. Not changed: the AB61 engine-model row (VQ35DE) is wrong too but was not in the reviewed list.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v05800/v05876R001.pdf", "test_no": 5876}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "3N1AB61E97L600687", "fields": {"DisplacementCC": {"official_value": "3500.0", "fixed_value": "2000.0"}, "DisplacementCI": {"official_value": "213.58310433156", "fixed_value": "122.04748818946"}, "DisplacementL": {"official_value": "3.5", "fixed_value": "2.0"}, "EngineCylinders": {"official_value": "6", "fixed_value": "4"}}}]} +{"id": "rf-013", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "3VWSG71K*5M", "model_year": 2005, "make": "VOLKSWAGEN", "model": "Jetta", "field": "EngineCylinders", "vpic_value": "6", "correct_value": "5", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 191406, "schema_id": 4291, "schema": "Volkswagen Schema for WVW/WVG/3VW/9BW - 2005", "keys": "*G*1K", "element": "EngineCylinders", "attribute_id": "6", "value": "6"}, "set": {"attribute_id": "5", "value": 5}}], "reason": "*G*1K is the 2005 Jetta 2.5 (vPIC's own displacement for it is 2480 cc), the five-cylinder; the row said 6. NHTSA's test Jetta had 5 cylinders and EPA lists only 5 for this model-year.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v05300/v05374R014.pdf", "test_no": 5374}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "3VWSG71K55M606750", "fields": {"EngineCylinders": {"official_value": "6", "fixed_value": "5"}}}]} +{"id": "rf-014", "release": "2026_11", "case": "missing_rule", "errors": [{"pattern": "1G4GA5GR*EF", "model_year": 2014, "make": "BUICK", "model": "LaCrosse", "field": "ElectrificationLevel / FuelTypeSecondary", "vpic_value": "gasoline, no electrification", "correct_value": "mild hybrid", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -104, "schema_id": 3708, "schema": "GM Passenger Car Engine Schema - 2014", "keys": "****R", "element": "ElectrificationLevel", "attribute_id": "1", "value": "Mild HEV (Hybrid Electric Vehicle)"}}, {"action": "add", "table": "pattern", "new": {"id": -105, "schema_id": 3708, "schema": "GM Passenger Car Engine Schema - 2014", "keys": "****R", "element": "FuelTypeSecondary", "attribute_id": "2", "value": "Electric"}}], "premise": [{"table": "pattern", "row": {"id": 148957, "schema_id": 3708, "schema": "GM Passenger Car Engine Schema - 2014", "keys": "****R", "element": "EngineModel", "attribute_id": "LUK - DI, ALUM, BAS, ECOTEC", "value": "LUK - DI, ALUM, BAS, ECOTEC"}}], "reason": "GM's engine code R in 2014 is the LUK engine, which vPIC itself describes as 'BAS' (belt alternator starter: eAssist, a mild hybrid), but no row flagged it as electrified. NHTSA's test LaCrosse eAssist has R; EPA lists no non-hybrid 2014 LaCrosse with this engine. Added for code R, keyed like vPIC's LUK row: mild hybrid, with electric as the secondary fuel (as vPIC codes 507 of its 524 mild-hybrid rows).", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08400/v08447R001.pdf", "test_no": 8447}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "1G4GA5GR0EF111886", "fields": {"ElectrificationLevel": {"official_value": "", "fixed_value": "Mild HEV (Hybrid Electric Vehicle)"}, "FuelTypeSecondary": {"official_value": "", "fixed_value": "Electric"}}}]} +{"id": "rf-015", "release": "2026_11", "case": "missing_rule", "errors": [{"pattern": "2G4GR5ER*C9", "model_year": 2012, "make": "BUICK", "model": "Regal", "field": "ElectrificationLevel / FuelTypeSecondary", "vpic_value": "gasoline, no electrification", "correct_value": "mild hybrid", "test_vehicles": 3}, {"pattern": "2G4GT5GR*C9", "model_year": 2012, "make": "BUICK", "model": "Regal", "field": "ElectrificationLevel / FuelTypeSecondary", "vpic_value": "gasoline, no electrification", "correct_value": "mild hybrid", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -106, "schema_id": 4235, "schema": "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", "keys": "[GP]***R", "element": "ElectrificationLevel", "attribute_id": "1", "value": "Mild HEV (Hybrid Electric Vehicle)"}}, {"action": "add", "table": "pattern", "new": {"id": -107, "schema_id": 4235, "schema": "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", "keys": "[GP]***R", "element": "FuelTypeSecondary", "attribute_id": "2", "value": "Electric"}}], "premise": [{"table": "pattern", "row": {"id": 187121, "schema_id": 4235, "schema": "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", "keys": "[GP]***R", "element": "EngineModel", "attribute_id": "LUK - ALUM, BAS, Ecotec.", "value": "LUK - ALUM, BAS, Ecotec."}}], "reason": "In 2012 vPIC keys the LUK engine (described 'BAS': eAssist, a mild hybrid) on [GP]***R in the Buick schema, but no row flagged it as electrified. All four NHTSA test Regals with these patterns are eAssist cars, and EPA lists the 2012 Regal eAssist separately as a hybrid. Added on the same keys: mild hybrid, with electric as the secondary fuel (as vPIC codes 507 of its 524 mild-hybrid rows).", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07742R001.pdf", "test_no": 7742}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07743R001.pdf", "test_no": 7743}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v09800/v09865R001.pdf", "test_no": 9865}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07740R001.pdf", "test_no": 7740}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "2G4GR5ER3C9162798", "fields": {"ElectrificationLevel": {"official_value": "", "fixed_value": "Mild HEV (Hybrid Electric Vehicle)"}, "FuelTypeSecondary": {"official_value": "", "fixed_value": "Electric"}}}, {"vin": "2G4GR5ER6C9123753", "fields": {"ElectrificationLevel": {"official_value": "", "fixed_value": "Mild HEV (Hybrid Electric Vehicle)"}, "FuelTypeSecondary": {"official_value": "", "fixed_value": "Electric"}}}, {"vin": "2G4GR5ER6C9135532", "fields": {"ElectrificationLevel": {"official_value": "", "fixed_value": "Mild HEV (Hybrid Electric Vehicle)"}, "FuelTypeSecondary": {"official_value": "", "fixed_value": "Electric"}}}, {"vin": "2G4GT5GR7C9137725", "fields": {"ElectrificationLevel": {"official_value": "", "fixed_value": "Mild HEV (Hybrid Electric Vehicle)"}, "FuelTypeSecondary": {"official_value": "", "fixed_value": "Electric"}}}]} +{"id": "rf-016", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "1GYKNDRS*LZ", "model_year": 2020, "make": "CADILLAC", "model": "XT5", "field": "TransmissionSpeeds", "vpic_value": "8", "correct_value": "9", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "spec_pattern", "row": {"id": 158109, "spec_schema_pattern_id": 7039, "spec_schema_id": 1661, "applies_to": "XT5 2020, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]", "element": "TransmissionSpeeds", "attribute_id": "8", "value": "8"}, "set": {"attribute_id": "9", "value": 9}}], "reason": "vPIC's vehicle-spec row for the 2020 XT5 carried over the 8-speed of earlier years; EPA lists only 9-speed automatics for the 2020 XT5, and NHTSA's test XT5 recorded 9.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10961R001.pdf", "test_no": 10961}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "1GYKNDRS7LZ121480", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "9"}}}]} +{"id": "rf-017", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "1GKKNKLA*LZ", "model_year": 2020, "make": "GMC", "model": "Acadia", "field": "TransmissionSpeeds", "vpic_value": "6", "correct_value": "9", "test_vehicles": 1}, {"pattern": "1GKKNKLS*LZ", "model_year": 2020, "make": "GMC", "model": "Acadia", "field": "TransmissionSpeeds", "vpic_value": "6", "correct_value": "9", "test_vehicles": 1}, {"pattern": "1GKKNRLS*LZ", "model_year": 2020, "make": "GMC", "model": "Acadia", "field": "TransmissionSpeeds", "vpic_value": "6", "correct_value": "9", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "spec_pattern", "row": {"id": 160578, "spec_schema_pattern_id": 7152, "spec_schema_id": 1701, "applies_to": "Acadia 2020, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]", "element": "TransmissionSpeeds", "attribute_id": "6", "value": "6"}, "set": {"attribute_id": "9", "value": 9}}], "reason": "vPIC's vehicle-spec row for the 2020 Acadia carried over the 6-speed of 2019; EPA lists only 9-speed automatics for every 2020 Acadia, and all three NHTSA test Acadias recorded 9.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10992R001.pdf", "test_no": 10992}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10991R001.pdf", "test_no": 10991}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10988R001.pdf", "test_no": 10988}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "1GKKNKLA0LZ154500", "fields": {"TransmissionSpeeds": {"official_value": "6", "fixed_value": "9"}}}, {"vin": "1GKKNKLS5LZ158230", "fields": {"TransmissionSpeeds": {"official_value": "6", "fixed_value": "9"}}}, {"vin": "1GKKNRLS4LZ156199", "fields": {"TransmissionSpeeds": {"official_value": "6", "fixed_value": "9"}}}]} +{"id": "rf-018", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "3C4NJCBB*NT", "model_year": 2022, "make": "JEEP", "model": "Compass", "field": "TransmissionSpeeds", "vpic_value": "8", "correct_value": "6", "test_vehicles": 2}, {"pattern": "3C4NJDBB*NT", "model_year": 2022, "make": "JEEP", "model": "Compass", "field": "TransmissionSpeeds", "vpic_value": "8", "correct_value": "9", "test_vehicles": 1}], "edits": [{"action": "delete", "table": "spec_pattern", "row": {"id": 220100, "spec_schema_pattern_id": 11605, "spec_schema_id": 2764, "applies_to": "Compass 2022, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]", "element": "TransmissionSpeeds", "attribute_id": "8", "value": "8"}}, {"action": "add", "table": "pattern", "new": {"id": -108, "schema_id": 27458, "schema": "Jeep Compass Schema for 3C4 (MY2022)", "keys": "*JC[ABC]", "element": "TransmissionSpeeds", "attribute_id": "6", "value": "6"}}, {"action": "add", "table": "pattern", "new": {"id": -109, "schema_id": 27458, "schema": "Jeep Compass Schema for 3C4 (MY2022)", "keys": "*JD[A-F]", "element": "TransmissionSpeeds", "attribute_id": "9", "value": "9"}}], "reason": "vPIC's vehicle-spec row gave every 2022 Compass 8 speeds; EPA lists none: the FWD Compass has a 6-speed and the 4WD a 9-speed. vPIC's own drive rows separate them (*JC[ABC] FWD, *JD[A-F] 4WD), and NHTSA's test cars agree (two FWD with 6, one 4WD with 9). The 8-speed spec value is removed and the speeds are keyed like the drive rows.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14063R001.pdf", "test_no": 14063}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14064R001.pdf", "test_no": 14064}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14062R001.pdf", "test_no": 14062}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "3C4NJCBB9NT139265", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "6"}}}, {"vin": "3C4NJCBB2NT137471", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "6"}}}, {"vin": "3C4NJDBB4NT125070", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "9"}}}]} +{"id": "rf-019", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "KNDRH4LG*M5", "model_year": 2021, "make": "KIA", "model": "Sorento", "field": "TransmissionSpeeds", "vpic_value": "8", "correct_value": "6", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -110, "schema_id": 22058, "schema": "Kia Sorento Schema for KND (MY2021)", "keys": "R[GH]4*G", "element": "TransmissionSpeeds", "attribute_id": "6", "value": "6"}}], "premise": [{"table": "spec_pattern", "row": {"id": 205396, "spec_schema_pattern_id": 9685, "spec_schema_id": 2118, "applies_to": "Sorento 2021, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]", "element": "TransmissionSpeeds", "attribute_id": "8", "value": "8"}}], "reason": "vPIC's vehicle-spec row gives every 2021 Sorento 8 speeds, right for the 2.5 L versions but not the Hybrid, which EPA lists with a 6-speed. vPIC's own rows key the hybrid on R[GH]4*G (HEV, 1.6 T-GDI); NHTSA's test Sorento Hybrid recorded 6. A row on those keys now gives the hybrid 6 speeds.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11500/v11581R001.pdf", "test_no": 11581}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "KNDRH4LG8M5019632", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "6"}}}]} +{"id": "rf-020", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "KNDPU3AG*P7", "model_year": 2023, "make": "KIA", "model": "Sportage", "field": "TransmissionSpeeds", "vpic_value": "8", "correct_value": "6", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -111, "schema_id": 23965, "schema": "Kia Sportage HEV/PHEV Schema for KND (MY2023)", "keys": "P***G", "element": "TransmissionSpeeds", "attribute_id": "6", "value": "6"}}], "premise": [{"table": "spec_pattern", "row": {"id": 228109, "spec_schema_pattern_id": 14329, "spec_schema_id": 2796, "applies_to": "Sportage 2023, where Trim=LX", "element": "TransmissionSpeeds", "attribute_id": "8", "value": "8"}}], "reason": "vPIC's vehicle-spec row gives the 2023 Sportage LX 8 speeds, right for the 2.5 L versions but not the Hybrid, which EPA lists with a 6-speed. vPIC's own rows key the hybrid on P***G (HEV); NHTSA's test Sportage Hybrid LX recorded 6. A row on those keys now gives the hybrid 6 speeds.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14279R001.pdf", "test_no": 14279}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "KNDPU3AG6P7044652", "fields": {"TransmissionSpeeds": {"official_value": "8", "fixed_value": "6"}}}]} +{"id": "rf-021", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "55SWF8EB*KU", "model_year": 2019, "make": "MERCEDES-BENZ", "model": "C-Class", "field": "TransmissionSpeeds", "vpic_value": "7", "correct_value": "9", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1387095, "schema_id": 20155, "schema": "Mercedes-Benz Cars Schema for 55S - 2019", "keys": "WF8E", "element": "TransmissionSpeeds", "attribute_id": "7", "value": "7"}, "set": {"attribute_id": "9", "value": "9"}}], "reason": "WF8E (2019 C 300 4MATIC sedan) said 7 speeds, as for 2017 and earlier; vPIC's own WF4K row (another 2019 C300-4M) says 9, EPA lists only 9-speed C 300s for 2019, and NHTSA's test car had 9.", "evidence": [{"url": "https://static.nhtsa.gov/odi/ctr/9999/TRTR-645887-2019-001.pdf"}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "55SWF8EB6KU299112", "fields": {"TransmissionSpeeds": {"official_value": "7", "fixed_value": "9"}}}]} +{"id": "rf-022", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "W1KWF8DB*MR", "model_year": 2021, "make": "MERCEDES-BENZ", "model": "C-Class", "field": "TransmissionSpeeds", "vpic_value": "7", "correct_value": "9", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1563116, "schema_id": 21794, "schema": "Mercedes-Benz Schema for PC W1K/WDD (MY2021)", "keys": "WF8D", "element": "TransmissionSpeeds", "attribute_id": "7", "value": "7"}, "set": {"attribute_id": "9", "value": "9"}}], "reason": "WF8D (2021 C 300 sedan) said 7 speeds, as for 2017 and earlier; EPA lists only 9-speed C 300s for 2021, and NHTSA's test car had 9.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11300/v11382R001.pdf", "test_no": 11382}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "W1KWF8DB0MR613651", "fields": {"TransmissionSpeeds": {"official_value": "7", "fixed_value": "9"}}}]} +{"id": "rf-023", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "JTNABAAE*PA", "model_year": 2023, "make": "TOYOTA", "model": "GR Corolla", "field": "TransmissionStyle", "vpic_value": "Continuously Variable Transmission (CVT)", "correct_value": "Manual", "test_vehicles": 1}], "edits": [{"action": "add", "table": "pattern", "new": {"id": -112, "schema_id": 24841, "schema": "TOYOTA GR COROLLA Schema for JTN (MY2023)", "keys": "AB[AB]AE", "element": "TransmissionStyle", "attribute_id": "3", "value": "Manual/Standard"}}], "premise": [{"table": "spec_pattern", "row": {"id": 232715, "spec_schema_pattern_id": 13085, "spec_schema_id": 3699, "applies_to": "Corolla,GR COROLLA 2023, where BodyClass=Hatchback/Liftback/Notchback", "element": "TransmissionStyle", "attribute_id": "7", "value": "Continuously Variable Transmission (CVT)"}}], "reason": "vPIC's vehicle-spec row gives every 2023 Corolla and GR Corolla hatchback a CVT. The GR Corolla is sold only with a 6-speed manual (EPA's only 2023 GR Corolla listing), and NHTSA's test GR Corolla was a manual. vPIC's own GR Corolla rows are keyed AB[AB]AE; a row on those keys now gives manual.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15300/v15365R001.pdf", "test_no": 15365}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "JTNABAAE3PA004901", "fields": {"TransmissionStyle": {"official_value": "Continuously Variable Transmission (CVT)", "fixed_value": "Manual/Standard"}}}]} +{"id": "rf-024", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "3VW7M7BU*NM", "model_year": 2022, "make": "VOLKSWAGEN", "model": "Jetta", "field": "TransmissionSpeeds", "vpic_value": "6", "correct_value": "8", "test_vehicles": 1}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1757073, "schema_id": 23458, "schema": "Volkswagen PC Schema for WVW/3VW/1VW (MY2022)", "keys": "[CBE7G]M7BU", "element": "TransmissionSpeeds", "attribute_id": "6", "value": "6"}, "set": {"attribute_id": "8", "value": "8"}}], "reason": "[CBE7G]M7BU is a 2022 Jetta automatic (vPIC's own style row); every 2022 Jetta automatic is an 8-speed (EPA; vPIC's own SM7BU row) and the 6-speed is the manual. The row said 6; NHTSA's test car recorded 8.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14084R001.pdf", "test_no": 14084}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "3VW7M7BU3NM000863", "fields": {"TransmissionSpeeds": {"official_value": "6", "fixed_value": "8"}}}]} +{"id": "rf-025", "release": "2026_11", "case": "wrong_value", "errors": [{"pattern": "2C3CDZAG*LH", "model_year": 2020, "make": "DODGE", "model": "Challenger", "field": "BodyClass", "vpic_value": "Sedan/Saloon", "correct_value": "Coupe", "test_vehicles": 2}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1499555, "schema_id": 21285, "schema": "Chrysler/Dodge Passenger Car Schema for 2C3 - 2020", "keys": "*DZ[AJBCLFGK]", "element": "BodyClass", "attribute_id": "13", "value": "Sedan/Saloon"}, "set": {"attribute_id": "3", "value": "Coupe"}}], "reason": "*DZ is the Challenger (vPIC's own model rows), a two-door coupe; the body row said sedan. Both NHTSA test cars with this pattern are 2020 Challenger SXT 2-door coupes.", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11100/v11136R001.pdf", "test_no": 11136}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11100/v11137R001.pdf", "test_no": 11137}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "2C3CDZAG4LH135102", "fields": {"BodyClass": {"official_value": "Sedan/Saloon", "fixed_value": "Coupe"}}}, {"vin": "2C3CDZAG1LH113574", "fields": {"BodyClass": {"official_value": "Sedan/Saloon", "fixed_value": "Coupe"}}}]} +{"id": "rf-026", "release": "2026_11", "case": "narrower_key", "errors": [{"pattern": "LPSED3KA*NL", "model_year": 2022, "make": "POLESTAR", "model": "Polestar 2", "field": "BodyClass", "vpic_value": "Sedan/Saloon", "correct_value": "Hatchback/Liftback", "test_vehicles": 1}, {"pattern": "LPSEG3KA*NL", "model_year": 2022, "make": "POLESTAR", "model": "Polestar 2", "field": "BodyClass", "vpic_value": "Sedan/Saloon", "correct_value": "Hatchback/Liftback", "test_vehicles": 2}], "edits": [{"action": "modify", "table": "pattern", "row": {"id": 1690761, "schema_id": 23067, "schema": "POLESTAR PERFORMANCE AB - PC Schema for LPS (MY2022-MY2024)", "keys": "**3KA", "element": "BodyClass", "attribute_id": "13", "value": "Sedan/Saloon"}, "set": {"keys": "**3KA|[PR]"}}, {"action": "add", "table": "pattern", "new": {"id": -113, "schema_id": 23067, "schema": "POLESTAR PERFORMANCE AB - PC Schema for LPS (MY2022-MY2024)", "keys": "**3KA|N", "element": "BodyClass", "attribute_id": "5", "value": "Hatchback/Liftback/Notchback"}}], "reason": "The Polestar 2 is a five-door liftback (tailgate), not a sedan; NHTSA's three 2022 test cars with these patterns are titled 5-door hatchbacks. The body row **3KA covers model years 2022-2024; it is split by the model-year character (position 10): 2022 (N) gets hatchback/liftback, 2023 and 2024 (P, R) keep NHTSA's sedan, because NHTSA's vehicle-spec rows for those years are keyed on the sedan body and changing it would drop their other values (2023-2024 were not in the reviewed list).", "evidence": [{"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14214R001.pdf", "test_no": 14214}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14215R001.pdf", "test_no": 14215}, {"url": "https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14216R001.pdf", "test_no": 14216}], "reviewed": {"on": "2026-11-18", "by": "mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}, "checks": [{"vin": "LPSED3KA4NL072951", "fields": {"BodyClass": {"official_value": "Sedan/Saloon", "fixed_value": "Hatchback/Liftback/Notchback"}}}, {"vin": "LPSEG3KA0NL074235", "fields": {"BodyClass": {"official_value": "Sedan/Saloon", "fixed_value": "Hatchback/Liftback/Notchback"}}}, {"vin": "LPSEG3KA1NL067732", "fields": {"BodyClass": {"official_value": "Sedan/Saloon", "fixed_value": "Hatchback/Liftback/Notchback"}}}]} diff --git a/docs/data-sources.md b/docs/data-sources.md index b73788e..1a2bb85 100644 --- a/docs/data-sources.md +++ b/docs/data-sources.md @@ -5,7 +5,7 @@ provider. Hosting, maintenance and upstream availability remain operational cons | Source | Use | Scope | | --- | --- | --- | -| [NHTSA vPIC](https://vpic.nhtsa.dot.gov/api/) | VIN decoding, manufacturer-submitted attributes and Canadian specifications | US-oriented coverage; Canadian dimensions describe model variants. | +| [NHTSA vPIC](https://vpic.nhtsa.dot.gov/api/) | VIN decoding (NHTSA's decoder run locally on NHTSA's monthly vPIC database, with reviewed rule fixes; the live API as fallback), manufacturer-submitted attributes and Canadian specifications | US-oriented coverage; Canadian dimensions describe model variants. | | [FuelEconomy.gov](https://www.fueleconomy.gov/feg/ws/) | Explicit EPA test configurations, emissions, price assumptions and voluntary owner MPG | Configuration-level data; owner reports are not a representative fleet sample. | | [NHTSA datasets](https://www.nhtsa.gov/nhtsa-datasets-and-apis) | Manufacturer communications and defect investigations | Dated local snapshots; model-year associations do not establish VIN applicability or repair completion. | | [Federal Reserve G.19](https://www.federalreserve.gov/releases/g19/20261007/) | New-car loan benchmark context | August 2026 observations from the October 7 release; manually refreshed, not a lender offer. | @@ -516,11 +516,134 @@ The National Safety Council's [Check To Protect FAQ](https://www.checktoprotect. - **Not shown.** Crash results (injury measures, crush, post-test observations) are extracted into a research dataset only; NCAP star ratings are not in these reports and are not derived. +## VIN decoding: NHTSA's decoder, run locally (added 18 November 2026) + +VINs are decoded by mcp.vin's own copy of NHTSA's vPIC decoder instead of NHTSA's live API, so decoding does not +depend on vpic.nhtsa.dot.gov and the rules can be corrected where they are wrong. Code: `lib/vpic-local.mjs` (the +interpreter), `lib/nhtsa.mjs` (local first, live fallback), `scripts/import-vpic.py` (the dataset), +`data-src/vpic-rule-fixes.jsonl` (rule fixes), `docs/vpic-rule-fixes.md` (what they change). + +- **Data.** NHTSA publishes its whole vPIC database every month ("Standalone vPIC database", + `https://vpic.nhtsa.dot.gov/downloads/vPICList_lite_YYYY_MM.plain.zip`, PostgreSQL edition: table data plus + NHTSA's decode functions). `scripts/import-vpic.py` reads the dump without a database server and writes + `data/vpic.db`: only the decode tables (patterns and schemas per WMI and model-year range, elements and their lookup + lists, make/model, engine-model patterns, unit conversions, vehicle-spec patterns, defaults, check-digit + exceptions, error codes, and the 8.8 million-row valid-character table folded to one string per WMI and year). + Release 2026_11: 96.5 MB (17.8 MB as `.xz`), built in about 5 minutes. The file is not in git; it is built on the + storage server and copied to the web server (deploy steps below). NHTSA's decode functions are fingerprinted: + when a release changes any of them the build stops until the interpreter has been reviewed against the new code. +- **Interpreter.** `lib/vpic-local.mjs` reproduces `spvindecode`, `spvindecode_core` and `spvindecode_errorcode` + step by step (model-year passes, pattern ranking, engine-model patterns, conversions, vehicle-spec patterns, + defaults, error codes 1-14 and 400, check digit) and returns the live API's `DecodeVinValues` shape (the same 154 + keys). It is pure lookup: no network. About 4 ms per VIN on a phone, 2 ms on the storage server. +- **Parity with NHTSA.** With NHTSA's own rules (the `pristine` view) the interpreter gives exactly what NHTSA's + decode function gives: on the PostgreSQL edition of release 2026_11, every element of every decode agreed for all + 25,073 VINs compared (see "Parity" below). Against the live API (4,073 cached answers, no new calls): + 3,449 agree on all 154 keys; every other difference is the live API's data, not the algorithm: names whose case or + spelling differ with the same ids, a plant name, the valid-character cache on 4 VINs (the PostgreSQL edition agrees + with us), and the order of multi-valued notes (the live API's order follows no column). +- **Fallback to the live API** (`decode_source.fallback_reason`): the dataset is missing or unreadable, the local + decode failed, the WMI is not in the release (`wmi_unknown`: a manufacturer registered since), nothing decoded the + model (`no_model`: patterns submitted since), or the model year is later than the release's year + (`model_year_newer_than_release`: 2027+ for release 2026_11). The last one is measured: patterns of a model year + still being submitted change most between releases; in release 2026_11, 9.9% of the patterns of schemas starting + with model year 2027 (93% for 2028) changed in the 30 days before the dump, against 2.8% for 2026 and under 1% for + 2025 and older. If the live API then fails, the local decode is returned with `live_api: "failed"`. Batch decodes + send only the VINs that need it in one live request and match answers by VIN. `VPIC_LOCAL_DB=off` turns the local + decoder off (tests); a path replaces `data/vpic.db`. +- **Provenance.** Every decode carries `decode_source`: `source` (`mcp_vin_vpic_local` or `nhtsa_vpic_api`), + `vpic_release` (`2026_11`, or `live`), `rules` (`nhtsa_with_mcp_vin_rule_fixes` or `nhtsa`), the number of rule + fixes in the dataset, whether one changed this VIN, and the fallback reason. The report's + `provenance.specifications` names the decoder and release. + +### Rule fixes (owner decision 18 November 2026) + +Where NHTSA's rules are wrong, mcp.vin fixes the rules themselves, not the decode output: a fix is an edit of NHTSA's +own rule rows (change a pattern's value, narrow its VIN keys, remove a wrong row, add a narrower row on NHTSA's own +keys), so the interpreter stays a plain interpreter and the fixed rules decode every VIN they cover, not only the +VINs that were checked. + +- **The changeset.** `data-src/vpic-rule-fixes.jsonl`: one reviewed entry per fix with the release it was written + against, each original NHTSA row exactly (table, id, schema, keys, element, value), the edit, any NHTSA row the fix + relies on (`premise`), the kind of fix (`wrong_value`, `narrower_key`, `wrong_row`, `missing_rule`), the decode + errors it corrects, the reason, the NHTSA lab reports, and regression `checks` (NHTSA test VINs with the official + and the fixed value of every field the fix changes). Where a VIN pattern does not encode a field, the fix removes + NHTSA's value rather than asserting another (none of the current 26 needed that: in every case the VIN positions, + or NHTSA's own neighbouring rows, separate the versions). +- **Build.** `scripts/import-vpic.py` applies the changeset to a fresh copy of each release. An entry is applied only + when every row it names is still exactly as written (and its new rows do not collide with NHTSA's); otherwise + nothing of it is applied and the build reports it (`RULE FIX NEEDS REVIEW`, exit status 4, `needs_review` in + `rule_fix_entry`). Each applied edit is recorded with the original row in `rule_fix`. +- **NHTSA's rules stay available.** The interpreter can decode on NHTSA's pristine rules (`rules: 'pristine'`, the + recorded edits undone in memory). Parity is always proven on the pristine view, and it is the same as a file built + without fixes (25,073 VINs compared, 0 differences). +- **What a reader sees.** When a fix changes a value for a VIN, the decode is decoded twice and every differing field + is listed in `vpic_rule_fixes.changed` (`field`, `official_value`, `value`, `fix_ids`) with the fixes' reasons and + evidence. The report's `vehicle`, `engine` and `transmission` carry the fixed value; `raw_nhtsa` stays NHTSA's + official decode; `decode_checks` marks the field `corrected` with basis `mcp_vin_rule_fix` ("mcp.vin rule fix") + and keeps NHTSA's value as `original`. Live-API decodes (fallbacks) get no rule fixes and say so + (`sources.rule_fixes.status: "not_applied"`). +- **The current fixes.** 26 fixes, 34 row edits, written for the 33 confirmed errors of the decode audit of 17 + November 2026 whose field is not seats or GVWR (drive 9, transmission speeds 11, cylinders 4, engine size 2, + electrification 3, transmission type 1, body 3): see `docs/vpic-rule-fixes.md` (generated by + `scripts/vpic-rule-diff.mjs`), which doubles as the error report for NHTSA. Every changed value was checked + against the 2,418 NHTSA test vehicles: the fixes change 44 of them, and every changed value agrees with the + vehicle's lab record where the record states it. On a sample of 25,073 VINs (synthesised from the release's + patterns, plus cached decodes) they change 67 VINs. +- **Monthly refresh check.** `scripts/check-vpic-rule-fixes.mjs` decodes each fix's test VINs: `ok`, + `needs_review` (NHTSA changed a row the fix names), `official_changed` (NHTSA's rules no longer give the value the + fix was written against: NHTSA may have fixed it) or `fix_not_effective`. + +### Monthly refresh + +Run on the storage server (it holds PostgreSQL for the parity check; the phone is not used), detached: + + setsid nohup scripts/vpic-refresh.sh 2026_12 /root/vpic-local > /root/vpic-local/refresh-2026_12.log 2>&1 & + +It downloads the release, builds `vpic.db` with the rule fixes, checks the fixes, restores the dump into PostgreSQL +and compares our interpreter (NHTSA's rules) with `spvindecode` on 20,000 VINs synthesised from the release's +patterns plus the NHTSA test vehicles when `data/decode-evidence.db` is present (25 VINs per statement: larger +statements run out of PostgreSQL lock memory; failed VINs are retried alone and listed if they never run clean). The +run fails if the comparison covered fewer VINs than PostgreSQL decoded. It then writes the readable rule diff and +`vpic.db.xz`, and ends with `SUMMARY.txt` and `DONE` (or `FAILED`). Review the summary: parity must be complete, and every fix +not `ok` needs a decision (rewrite it against the new rows, or drop it when NHTSA fixed the error). Then, with the +owner's go: copy `vpic.db.xz` to the web server, `xz -d` it next to the old file and rename it to `data/vpic.db` +(the server reopens the file within a minute when it changes; no restart needed), and commit the regenerated +`docs/vpic-rule-fixes.md`. There is no cron job. + +### Parity + +Measured on release 2026_11 on 18 November 2026 (`scripts/vpic-parity.mjs`). The interpreter has two flavours of the +few places where NHTSA's two editions differ: `semantics: 'mssql'` (the default, used by the site) behaves like the +live API, which runs on SQL Server (NULLs sort last in descending orderings, decimal arithmetic truncates like SQL +Server's decimal type), and `semantics: 'pg'` behaves like the PostgreSQL edition. The decode rules are the same. + +- **NHTSA's PostgreSQL edition (`spvindecode`, NHTSA's own decode function), `pg` semantics, NHTSA's rules.** + 25,073 VINs: 20,000 synthesised from the release's patterns (WMI, model keys, model-year code, plant, serial; 95% + with a correct check digit), 4,073 VINs from cached live decodes, and about 1,000 mutated copies of those to reach + the error codes. Every element of every decode agrees: 25,073 of 25,073, both for a file built without fixes and + for the fixed file read on NHTSA's rules (`rules: 'pristine'`); 0 local failures. In the first pass PostgreSQL itself + could not decode 6,528 VINs ("out of shared memory": 200 VINs in one statement fill its lock table); all of them ran + clean at 25 VINs per statement, so none is left out. The refresh's own check (2,096 VINs) agreed on all. +- **The live API, `mssql` semantics** (4,073 cached answers, no new calls). 3,449 agree on all 154 keys. Every + difference on the other 624 is the live database or presentation, not the algorithm: + - the same lookup value with a name in different case or spelling: 440 field values (fuel injection type 163, + battery type 115, model 85, entertainment system 39, and 38 in 11 other fields); + - the order of multi-valued text: 184 (notes 114, other restraint info 42, other engine info 28); the live API's + order follows no column, and the values are the same; + - a plant name that differs between the cached live answers and the release: 28 (26 Jeep VINs read "Toledo + Assembly Complex-North" live and "Toledo North Assembly" in the release, 2 differ in case); + - the error code of 4 VINs, from the live API's valid-character cache: 3 get error 4 here and 0 live, 1 gets 0 + here and 3 live. NHTSA's PostgreSQL edition of the same release agrees with us on all 4. +- **Speed.** About 4.4 ms per VIN on the phone and 2 to 5 ms on the storage server (depending on load), against + several hundred ms for a live API call. + ## Decode checks (`decode_checks`, added 17 November 2026) The VIN decode (NHTSA vPIC) describes a VIN *pattern*, not the vehicle, and is sometimes wrong. `decode_checks` -checks it field by field and never overwrites it: the report's `vehicle`, `engine` and `transmission` blocks stay -vPIC's; the checks sit beside them, and the matchers (fuel economy, EPA test cars, parts content, NHTSA test-vehicle +checks it field by field and never hides NHTSA's value: the report's `vehicle`, `engine` and `transmission` blocks are +the decode (NHTSA's rules plus mcp.vin's reviewed rule fixes, above), `raw_nhtsa` and each field's `original` are +NHTSA's official values; the checks sit beside them, and the matchers (fuel economy, EPA test cars, parts content, NHTSA test-vehicle tires and capacities) use the checked values. Code: `lib/decode-checks.mjs`, `lib/decode-epa.mjs`, `lib/manufacturer-description.mjs`, `lib/decode-report.mjs`. @@ -536,7 +659,8 @@ tires and capacities) use the checked values. Code: `lib/decode-checks.mjs`, `li transmission type 63%, speeds 72%, seats 67% of these vehicles. In the same audit the lab record was wrong about as often as vPIC on some fields (13 cylinder misprints), which is why no single lab value corrects anything. - **Evidence, strongest first** (`precedence`): `owner` (values the reader states; reserved for the owner - choices), `manufacturer_vin_record` (the manufacturer's description of this VIN), `nhtsa_test_vehicle_pattern` + choices), `manufacturer_vin_record` (the manufacturer's description of this VIN), `mcp_vin_rule_fix` (a reviewed + fix of NHTSA's rule for this VIN pattern, above: `corrected`, with NHTSA's value kept), `nhtsa_test_vehicle_pattern` (NHTSA lab records of test vehicles with the same VIN pattern), `vpic_decode`, `assumption` (EPA lists only one value for the model year). - **Manufacturer's description of the VIN.** Some makers' VIN recall lookups name the vehicle in the reply the diff --git a/docs/vpic-rule-fixes.md b/docs/vpic-rule-fixes.md new file mode 100644 index 0000000..d5fd01c --- /dev/null +++ b/docs/vpic-rule-fixes.md @@ -0,0 +1,498 @@ +# mcp.vin fixes to NHTSA's vPIC decoding rules + +Generated by `scripts/vpic-rule-diff.mjs` from `data/vpic.db` (NHTSA vPIC release **2026_11**, built 2026-11-18T04:30:15Z). Do not edit by hand. + +NHTSA's vPIC decoder turns a VIN into vehicle attributes with rule tables: each `pattern` row says that VINs of a WMI and model-year range whose characters match `keys` (VIN positions 4-8, then `|` and positions 10-17; `*` any character, `[...]` a set) have a value for one element (drive type, cylinders, ...). Vehicle-spec rows add values for a make, model and year from already decoded values (for example every "Launch Model" trim). + +mcp.vin decodes VINs with NHTSA's own algorithm over NHTSA's monthly database, with the rule edits below applied at build time (`data-src/vpic-rule-fixes.jsonl`, `scripts/import-vpic.py`). Each edit names the exact NHTSA row it changes; when a new release changes that row, the edit is not applied and is reported for review. Every value a fix changes is shown with NHTSA's official value beside it. + +The errors were found by comparing vPIC's decode of NHTSA's own crash-test and compliance-test vehicles with NHTSA's lab record of each vehicle (decode audit 2026-11-17), checked against EPA's configuration list; the evidence links are NHTSA's lab reports. + +**26** fixes (26 applied, 0 need review), **34** row edits, correcting **33** decode errors. + +| Kind of fix | Fixes | +|---|---| +| wrong value: the row covers the right VINs and states the wrong value | 12 | +| narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added | 10 | +| wrong row: a row overrides NHTSA's own more specific rows; it is removed | 2 | +| missing rule: NHTSA describes the engine but no row states the field; a row is added on NHTSA's own keys | 2 | + +## Summary + +| Fix | Vehicle | Field | NHTSA decodes | Correct | Status | +|---|---|---|---|---|---| +| [rf-001](#rf-001) | 2014 ACURA RDX (`5J8TB3H3*EL`) | DriveType | AWD/All-Wheel Drive | FWD | applied | +| [rf-002](#rf-002) | 2024 CHEVROLET Equinox (`3GN7DLRR*RS`) | DriveType | FWD/Front-Wheel Drive | AWD/4WD | applied | +| [rf-003](#rf-003) | 2023 HYUNDAI Ioniq 6 (`KMHM34AC*PA`) | DriveType | RWD/Rear-Wheel Drive | AWD/4WD | applied | +| [rf-004](#rf-004) | 2018 NISSAN Armada (`JN8AY2NC*J9`) | DriveType | 4x2 | AWD/4WD | applied | +| [rf-005](#rf-005) | 2012 NISSAN Juke (`JN8AF5MV*CT`) | DriveType | 4x2 | AWD/4WD | applied | +| [rf-006](#rf-006) | 2011 TOYOTA Highlander (`5TDZA3EH*BS`) | DriveType | 4WD/4-Wheel Drive/4x4 | 4x2 | applied | +| [rf-007](#rf-007) | 2013 TOYOTA Venza (`4T3BA3BB*DU`) | DriveType | 4x2 | AWD/4WD | applied | +| [rf-007](#rf-007) | 2013 TOYOTA Venza (`4T3ZA3BB*DU`) | DriveType | 4WD/4-Wheel Drive/4x4 | FWD | applied | +| [rf-008](#rf-008) | 2018 VOLKSWAGEN Atlas (`1V2BR2CA*JC`) | DriveType | AWD/All-Wheel Drive | FWD | applied | +| [rf-009](#rf-009) | 2012 ACURA TL (`19UUA9F5*CA`) | DisplacementL | 3.47406 L | 3.7 L | applied | +| [rf-010](#rf-010) | 2015 CHEVROLET Colorado (`1GCHTAEA*F1`) | EngineCylinders | 6 | 4 | applied | +| [rf-011](#rf-011) | 2014 MINI Hardtop (`WMWXM5C5*ET`) | EngineCylinders | 4 | 3 | applied | +| [rf-012](#rf-012) | 2007 NISSAN Sentra (`3N1AB61E*7L`) | EngineCylinders | 6 | 4 | applied | +| [rf-012](#rf-012) | 2007 NISSAN Sentra (`3N1AB61E*7L`) | DisplacementL | 3.5 L | 2 L | applied | +| [rf-013](#rf-013) | 2005 VOLKSWAGEN Jetta (`3VWSG71K*5M`) | EngineCylinders | 6 | 5 | applied | +| [rf-014](#rf-014) | 2014 BUICK LaCrosse (`1G4GA5GR*EF`) | ElectrificationLevel / FuelTypeSecondary | gasoline, no electrification | mild hybrid | applied | +| [rf-015](#rf-015) | 2012 BUICK Regal (`2G4GR5ER*C9`) | ElectrificationLevel / FuelTypeSecondary | gasoline, no electrification | mild hybrid | applied | +| [rf-015](#rf-015) | 2012 BUICK Regal (`2G4GT5GR*C9`) | ElectrificationLevel / FuelTypeSecondary | gasoline, no electrification | mild hybrid | applied | +| [rf-016](#rf-016) | 2020 CADILLAC XT5 (`1GYKNDRS*LZ`) | TransmissionSpeeds | 8 | 9 | applied | +| [rf-017](#rf-017) | 2020 GMC Acadia (`1GKKNKLA*LZ`) | TransmissionSpeeds | 6 | 9 | applied | +| [rf-017](#rf-017) | 2020 GMC Acadia (`1GKKNKLS*LZ`) | TransmissionSpeeds | 6 | 9 | applied | +| [rf-017](#rf-017) | 2020 GMC Acadia (`1GKKNRLS*LZ`) | TransmissionSpeeds | 6 | 9 | applied | +| [rf-018](#rf-018) | 2022 JEEP Compass (`3C4NJCBB*NT`) | TransmissionSpeeds | 8 | 6 | applied | +| [rf-018](#rf-018) | 2022 JEEP Compass (`3C4NJDBB*NT`) | TransmissionSpeeds | 8 | 9 | applied | +| [rf-019](#rf-019) | 2021 KIA Sorento (`KNDRH4LG*M5`) | TransmissionSpeeds | 8 | 6 | applied | +| [rf-020](#rf-020) | 2023 KIA Sportage (`KNDPU3AG*P7`) | TransmissionSpeeds | 8 | 6 | applied | +| [rf-021](#rf-021) | 2019 MERCEDES-BENZ C-Class (`55SWF8EB*KU`) | TransmissionSpeeds | 7 | 9 | applied | +| [rf-022](#rf-022) | 2021 MERCEDES-BENZ C-Class (`W1KWF8DB*MR`) | TransmissionSpeeds | 7 | 9 | applied | +| [rf-023](#rf-023) | 2023 TOYOTA GR Corolla (`JTNABAAE*PA`) | TransmissionStyle | Continuously Variable Transmission (CVT) | Manual | applied | +| [rf-024](#rf-024) | 2022 VOLKSWAGEN Jetta (`3VW7M7BU*NM`) | TransmissionSpeeds | 6 | 8 | applied | +| [rf-025](#rf-025) | 2020 DODGE Challenger (`2C3CDZAG*LH`) | BodyClass | Sedan/Saloon | Coupe | applied | +| [rf-026](#rf-026) | 2022 POLESTAR Polestar 2 (`LPSED3KA*NL`) | BodyClass | Sedan/Saloon | Hatchback/Liftback | applied | +| [rf-026](#rf-026) | 2022 POLESTAR Polestar 2 (`LPSEG3KA*NL`) | BodyClass | Sedan/Saloon | Hatchback/Liftback | applied | + +## rf-001 + +**2014 ACURA RDX**: DriveType. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 845254 in schema 9925 "Acura RDX Schema for 2014", keys `TB[34]H[35]` | keys `TB[34]H[35]` → `TB3H[35]`; DriveType AWD/All-Wheel Drive → **FWD/Front-Wheel Drive** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `5J8TB3H3*EL` DriveType: NHTSA decodes "AWD/All-Wheel Drive", correct "FWD" (2 NHTSA test vehicles) + +Position 6 separates the drives: vPIC's own row TB4H[35] gives AWD, and both NHTSA test RDXs with TB3 were front-drive (EPA lists the 2014 RDX 2WD and 4WD). The row TB[34]H[35] gave AWD to both; it now covers TB3 only, as front-wheel drive. + +NHTSA lab reports: [test 8357](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08300/v08357R001.pdf), [test 8359](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08300/v08359R001.pdf). + +## rf-002 + +**2024 CHEVROLET Equinox**: DriveType. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1942055 in schema 25558 "Chevrolet Equinox EV Schema for 3GN (MY2024)", keys `7D[8K-S]*[PR]` | keys `7D[8K-S]*[PR]` → `7D[8K-S]*P`; DriveType = FWD/Front-Wheel Drive (unchanged) | +| new row in schema 25558 "Chevrolet Equinox EV Schema for 3GN (MY2024)", keys `7D[8K-S]*R` | **added**: DriveType = AWD/All-Wheel Drive | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `3GN7DLRR*RS` DriveType: NHTSA decodes "FWD/Front-Wheel Drive", correct "AWD/4WD" (1 NHTSA test vehicle) + +Position 8 separates the drives: vPIC's own OtherEngineInfo rows read 'GEN 3, FWD, 10-MOD' for P and 'GEN 3, FWD, EAWD, 10-MOD' for R. The drive row 7D[8K-S]*[PR] gave front drive to both; it now covers P, and R gets all-wheel drive (NHTSA's AWD test Equinox EV has R; the two front-drive ones have P). + +NHTSA lab reports: [test 15092](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15000/v15092R001.pdf). + +## rf-003 + +**2023 HYUNDAI Ioniq 6**: DriveType. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 24962 "Hyundai IONIQ 6 Schema for KMH (MY2023)", keys `M[235]4*C` | **added**: DriveType = AWD/All-Wheel Drive | +| vehicle-spec row 227577 (Ioniq 6 2023, where BodyClass=Sedan/Saloon) | unchanged: DriveType = RWD/Rear-Wheel Drive (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `KMHM34AC*PA` DriveType: NHTSA decodes "RWD/Rear-Wheel Drive", correct "AWD/4WD" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row gives rear drive to every 2023 Ioniq 6 sedan, but EPA lists RWD and AWD versions. NHTSA's AWD test car has C at position 8, the two RWD ones A. A pattern row for C (all-wheel drive) now outranks the spec value; A and B keep vPIC's rear drive. + +NHTSA lab reports: [test 15029](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15000/v15029R001.pdf). + +## rf-004 + +**2018 NISSAN Armada**: DriveType. wrong row: a row overrides NHTSA's own more specific rows; it is removed. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1249451 in schema 15607 "Nissan/Infiniti MPV Schema for JN8/5N1/3N8/KNM - 2018", keys `AY2N` | **removed** (DriveType = 4x2) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `JN8AY2NC*J9` DriveType: NHTSA decodes "4x2", correct "AWD/4WD" (1 NHTSA test vehicle) + +The row AY2N (4x2 for every 2018 Armada) overrode vPIC's own position-8 drive rows, which give 4WD to C and 4x2 to D. NHTSA's test Armadas agree with position 8 (C: 4WD; D: rear drive). Removing the row lets the position-8 rows decide. + +NHTSA lab reports: [test 10312](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10300/v10312R001.pdf). + +## rf-005 + +**2012 NISSAN Juke**: DriveType. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 58028 in schema 2849 "Nissan/Infiniti MPV JN8/5N1 Schema - 2012", keys `****[B-FNPRT-WY]` | keys `****[B-FNPRT-WY]` → `****[DFNPRTU]`; DriveType = 4x2 (unchanged) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `JN8AF5MV*CT` DriveType: NHTSA decodes "4x2", correct "AWD/4WD" (1 NHTSA test vehicle) + +Two of vPIC's rows overlapped at position 8: ****[B-FNPRT-WY] (4x2) and ****[VWBCEY] (4WD) both covered B, C, E, V, W and Y, and the 4x2 row won. NHTSA's AWD test Juke has V and the front-drive ones R. The 4x2 row now leaves out the 4WD row's letters. + +NHTSA lab reports: [test 7626](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07600/v07626R001.pdf). + +## rf-006 + +**2011 TOYOTA Highlander**: DriveType. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 85981 in schema 3146 "Toyota Schema for Highlander/Highlander Limited/Highlander Hybrid/Highlander Hybrid Limited MPVs for JTE/5TD - 2011", keys `Z***H` | DriveType 4WD/4-Wheel Drive/4x4 → **4x2** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `5TDZA3EH*BS` DriveType: NHTSA decodes "4WD/4-Wheel Drive/4x4", correct "4x2" (1 NHTSA test vehicle) + +Position 4 encodes the drive in Toyota's 2011 rows (B and D: 4WD, Y: 4x2; the Sienna and Sequoia rows give Z 4x2), but Z***H said 4WD. NHTSA's test Highlander with Z was two-wheel drive, and EPA lists no 4WD Highlander with the decoded engine. + +NHTSA lab reports: [test 7181](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07100/v07181R001.pdf). + +## rf-007 + +**2013 TOYOTA Venza**: DriveType. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 114068 in schema 3433 "Toyota Schema for Venza MPV for 4T3-(2012-2013)", keys `B***B` | DriveType 4x2 → **AWD/All-Wheel Drive** | +| row 114071 in schema 3433 "Toyota Schema for Venza MPV for 4T3-(2012-2013)", keys `Z***B` | DriveType 4WD/4-Wheel Drive/4x4 → **FWD/Front-Wheel Drive** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `4T3BA3BB*DU` DriveType: NHTSA decodes "4x2", correct "AWD/4WD" (1 NHTSA test vehicle) +- `4T3ZA3BB*DU` DriveType: NHTSA decodes "4WD/4-Wheel Drive/4x4", correct "FWD" (1 NHTSA test vehicle) + +The two Venza drive rows were swapped: B***B said 4x2 and Z***B 4WD, but NHTSA's 2013 Venza LE AWD test car has B and the Venza LE FWD has Z (Toyota uses B for 4WD and Z for 2WD in its other rows). + +NHTSA lab reports: [test 7969](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07900/v07969R001.pdf), [test 7970](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07900/v07970R001.pdf). + +## rf-008 + +**2018 VOLKSWAGEN Atlas**: DriveType. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 15825 "Volkswagen MPV Schema for WVG/1V2/3VV - 2018", keys `B**CA` | **added**: DriveType = FWD/Front-Wheel Drive | +| vehicle-spec row 14854 (Atlas 2018, where Trim=Launch Model) | unchanged: DriveType = AWD/All-Wheel Drive (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `1V2BR2CA*JC` DriveType: NHTSA decodes "AWD/All-Wheel Drive", correct "FWD" (2 NHTSA test vehicles) + +vPIC keys the 2018 Atlas drive on positions 4, 7 and 8 (G, H, K, L, M, N, R with CA: AWD) but has no row for B with CA, so the vehicle-spec value for 'Launch Model' (AWD) filled it. Volkswagen's own record of 1V2BR2CA3JC513174 reads 'ATLAS S 3.6 LAUNCH FWD' and both NHTSA test Atlases with B were front-drive; EPA lists FWD and 4Motion Atlases. A row B**CA now gives front-wheel drive. + +NHTSA lab reports: [test 10135](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10135R001.pdf), [test 10136](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10136R001.pdf). + +## rf-009 + +**2012 ACURA TL**: DisplacementL. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 848911 in schema 9486 "Acura TL Schema for 2012", keys `UA9F[257]` | DisplacementCI 212 → **224** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `19UUA9F5*CA` DisplacementL: NHTSA decodes "3.47406 L", correct "3.7 L" (2 NHTSA test vehicles) + +UA9F is the 2012 TL SH-AWD, whose engine vPIC itself names J37A4 (3.7 L); vPIC's own rows give that engine 224 cubic inches (UA9E5, and the RL's KB2F rows), but UA9F[257] said 212 (the 3.5 L), which converts to 3.47 L. Both NHTSA test TL SH-AWDs recorded 3.7 L. + +NHTSA lab reports: [test 7569](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07500/v07569R001.pdf), [test 7869](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07800/v07869R001.pdf). + +## rf-010 + +**2015 CHEVROLET Colorado**: EngineCylinders. wrong row: a row overrides NHTSA's own more specific rows; it is removed. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1698453 in schema 10453 "Chevrolet Colorado schema for 1GB/1GC - 2015", keys `*TA` | **removed** (EngineCylinders = 6) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `1GCHTAEA*F1` EngineCylinders: NHTSA decodes "6", correct "4" (1 NHTSA test vehicle) + +The Colorado row *TA (positions 5-6) gave 6 cylinders whatever the engine; GM encodes the engine at position 8, where vPIC's own engine rows give A (LCV, 2.5 L) 4 cylinders. NHTSA's test Colorado with engine code A had 4 cylinders, and EPA lists no 2.5 L six. Removing the row lets the engine-code row decide. + +NHTSA lab reports: [test 9080](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v09000/v09080R001.pdf). + +## rf-011 + +**2014 MINI Hardtop**: EngineCylinders. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 19118 in schema 2452 "MINI Schema for WMW - 2014", keys `XM5C` | EngineCylinders 4 → **3** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `WMWXM5C5*ET` EngineCylinders: NHTSA decodes "4", correct "3" (3 NHTSA test vehicles) + +XM5C is the 2014 Cooper with the 1.5 L engine (vPIC's own displacement row for XM5C), which EPA lists only as a three-cylinder; the row said 4. All three NHTSA test cars with this pattern had 3 cylinders. + +NHTSA lab reports: [test 8755](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08755R001.pdf), [test 8758](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08758R001.pdf), [test 8786](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08700/v08786R001.pdf). + +## rf-012 + +**2007 NISSAN Sentra**: EngineCylinders, DisplacementL. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 810114 in schema 2662 "Nissan/Infiniti Passenger Car & Incomplete Vehicle Schema for JN1/1N4/3N1/JNK/JN3/JNX - 2007", keys `AB61` | EngineCylinders 6 → **4** | +| row 45999 in schema 2662 "Nissan/Infiniti Passenger Car & Incomplete Vehicle Schema for JN1/1N4/3N1/JNK/JN3/JNX - 2007", keys `AB61` | DisplacementL 3.5 → **2.0** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `3N1AB61E*7L` EngineCylinders: NHTSA decodes "6", correct "4" (1 NHTSA test vehicle) +- `3N1AB61E*7L` DisplacementL: NHTSA decodes "3.5 L", correct "2 L" (1 NHTSA test vehicle) + +The rows gave the 2007 Sentra pattern AB61 the 3.5 L VQ35DE six (vPIC's own rows give the other Sentra patterns BB61 and CB61 2.5 L). NHTSA's test Sentra had a 2.0 L four, and EPA lists no 3.5 L or six-cylinder 2007 Sentra. Not changed: the AB61 engine-model row (VQ35DE) is wrong too but was not in the reviewed list. + +NHTSA lab reports: [test 5876](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v05800/v05876R001.pdf). + +## rf-013 + +**2005 VOLKSWAGEN Jetta**: EngineCylinders. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 191406 in schema 4291 "Volkswagen Schema for WVW/WVG/3VW/9BW - 2005", keys `*G*1K` | EngineCylinders 6 → **5** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `3VWSG71K*5M` EngineCylinders: NHTSA decodes "6", correct "5" (1 NHTSA test vehicle) + +*G*1K is the 2005 Jetta 2.5 (vPIC's own displacement for it is 2480 cc), the five-cylinder; the row said 6. NHTSA's test Jetta had 5 cylinders and EPA lists only 5 for this model-year. + +NHTSA lab reports: [test 5374](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v05300/v05374R014.pdf). + +## rf-014 + +**2014 BUICK LaCrosse**: ElectrificationLevel / FuelTypeSecondary. missing rule: NHTSA describes the engine but no row states the field; a row is added on NHTSA's own keys. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 3708 "GM Passenger Car Engine Schema - 2014", keys `****R` | **added**: ElectrificationLevel = Mild HEV (Hybrid Electric Vehicle) | +| new row in schema 3708 "GM Passenger Car Engine Schema - 2014", keys `****R` | **added**: FuelTypeSecondary = Electric | +| row 148957 in schema 3708 "GM Passenger Car Engine Schema - 2014", keys `****R` | unchanged: EngineModel = LUK - DI, ALUM, BAS, ECOTEC (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `1G4GA5GR*EF` ElectrificationLevel / FuelTypeSecondary: NHTSA decodes "gasoline, no electrification", correct "mild hybrid" (1 NHTSA test vehicle) + +GM's engine code R in 2014 is the LUK engine, which vPIC itself describes as 'BAS' (belt alternator starter: eAssist, a mild hybrid), but no row flagged it as electrified. NHTSA's test LaCrosse eAssist has R; EPA lists no non-hybrid 2014 LaCrosse with this engine. Added for code R, keyed like vPIC's LUK row: mild hybrid, with electric as the secondary fuel (as vPIC codes 507 of its 524 mild-hybrid rows). + +NHTSA lab reports: [test 8447](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v08400/v08447R001.pdf). + +## rf-015 + +**2012 BUICK Regal**: ElectrificationLevel / FuelTypeSecondary. missing rule: NHTSA describes the engine but no row states the field; a row is added on NHTSA's own keys. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 4235 "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", keys `[GP]***R` | **added**: ElectrificationLevel = Mild HEV (Hybrid Electric Vehicle) | +| new row in schema 4235 "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", keys `[GP]***R` | **added**: FuelTypeSecondary = Electric | +| row 187121 in schema 4235 "Buick Lacrosse, Regal and Verano schema for 1G4/2G4 - 2012", keys `[GP]***R` | unchanged: EngineModel = LUK - ALUM, BAS, Ecotec. (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `2G4GR5ER*C9` ElectrificationLevel / FuelTypeSecondary: NHTSA decodes "gasoline, no electrification", correct "mild hybrid" (3 NHTSA test vehicles) +- `2G4GT5GR*C9` ElectrificationLevel / FuelTypeSecondary: NHTSA decodes "gasoline, no electrification", correct "mild hybrid" (1 NHTSA test vehicle) + +In 2012 vPIC keys the LUK engine (described 'BAS': eAssist, a mild hybrid) on [GP]***R in the Buick schema, but no row flagged it as electrified. All four NHTSA test Regals with these patterns are eAssist cars, and EPA lists the 2012 Regal eAssist separately as a hybrid. Added on the same keys: mild hybrid, with electric as the secondary fuel (as vPIC codes 507 of its 524 mild-hybrid rows). + +NHTSA lab reports: [test 7742](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07742R001.pdf), [test 7743](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07743R001.pdf), [test 9865](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v09800/v09865R001.pdf), [test 7740](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v00000/v07700/v07740R001.pdf). + +## rf-016 + +**2020 CADILLAC XT5**: TransmissionSpeeds. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| vehicle-spec row 158109 (XT5 2020, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]) | TransmissionSpeeds 8 → **9** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `1GYKNDRS*LZ` TransmissionSpeeds: NHTSA decodes "8", correct "9" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row for the 2020 XT5 carried over the 8-speed of earlier years; EPA lists only 9-speed automatics for the 2020 XT5, and NHTSA's test XT5 recorded 9. + +NHTSA lab reports: [test 10961](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10961R001.pdf). + +## rf-017 + +**2020 GMC Acadia**: TransmissionSpeeds. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| vehicle-spec row 160578 (Acadia 2020, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]) | TransmissionSpeeds 6 → **9** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `1GKKNKLA*LZ` TransmissionSpeeds: NHTSA decodes "6", correct "9" (1 NHTSA test vehicle) +- `1GKKNKLS*LZ` TransmissionSpeeds: NHTSA decodes "6", correct "9" (1 NHTSA test vehicle) +- `1GKKNRLS*LZ` TransmissionSpeeds: NHTSA decodes "6", correct "9" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row for the 2020 Acadia carried over the 6-speed of 2019; EPA lists only 9-speed automatics for every 2020 Acadia, and all three NHTSA test Acadias recorded 9. + +NHTSA lab reports: [test 10992](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10992R001.pdf), [test 10991](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10991R001.pdf), [test 10988](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10900/v10988R001.pdf). + +## rf-018 + +**2022 JEEP Compass**: TransmissionSpeeds. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| vehicle-spec row 220100 (Compass 2022, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]) | **removed** (TransmissionSpeeds = 8) | +| new row in schema 27458 "Jeep Compass Schema for 3C4 (MY2022)", keys `*JC[ABC]` | **added**: TransmissionSpeeds = 6 | +| new row in schema 27458 "Jeep Compass Schema for 3C4 (MY2022)", keys `*JD[A-F]` | **added**: TransmissionSpeeds = 9 | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `3C4NJCBB*NT` TransmissionSpeeds: NHTSA decodes "8", correct "6" (2 NHTSA test vehicles) +- `3C4NJDBB*NT` TransmissionSpeeds: NHTSA decodes "8", correct "9" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row gave every 2022 Compass 8 speeds; EPA lists none: the FWD Compass has a 6-speed and the 4WD a 9-speed. vPIC's own drive rows separate them (*JC[ABC] FWD, *JD[A-F] 4WD), and NHTSA's test cars agree (two FWD with 6, one 4WD with 9). The 8-speed spec value is removed and the speeds are keyed like the drive rows. + +NHTSA lab reports: [test 14063](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14063R001.pdf), [test 14064](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14064R001.pdf), [test 14062](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14062R001.pdf). + +## rf-019 + +**2021 KIA Sorento**: TransmissionSpeeds. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 22058 "Kia Sorento Schema for KND (MY2021)", keys `R[GH]4*G` | **added**: TransmissionSpeeds = 6 | +| vehicle-spec row 205396 (Sorento 2021, where BodyClass=Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]) | unchanged: TransmissionSpeeds = 8 (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `KNDRH4LG*M5` TransmissionSpeeds: NHTSA decodes "8", correct "6" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row gives every 2021 Sorento 8 speeds, right for the 2.5 L versions but not the Hybrid, which EPA lists with a 6-speed. vPIC's own rows key the hybrid on R[GH]4*G (HEV, 1.6 T-GDI); NHTSA's test Sorento Hybrid recorded 6. A row on those keys now gives the hybrid 6 speeds. + +NHTSA lab reports: [test 11581](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11500/v11581R001.pdf). + +## rf-020 + +**2023 KIA Sportage**: TransmissionSpeeds. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 23965 "Kia Sportage HEV/PHEV Schema for KND (MY2023)", keys `P***G` | **added**: TransmissionSpeeds = 6 | +| vehicle-spec row 228109 (Sportage 2023, where Trim=LX) | unchanged: TransmissionSpeeds = 8 (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `KNDPU3AG*P7` TransmissionSpeeds: NHTSA decodes "8", correct "6" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row gives the 2023 Sportage LX 8 speeds, right for the 2.5 L versions but not the Hybrid, which EPA lists with a 6-speed. vPIC's own rows key the hybrid on P***G (HEV); NHTSA's test Sportage Hybrid LX recorded 6. A row on those keys now gives the hybrid 6 speeds. + +NHTSA lab reports: [test 14279](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14279R001.pdf). + +## rf-021 + +**2019 MERCEDES-BENZ C-Class**: TransmissionSpeeds. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1387095 in schema 20155 "Mercedes-Benz Cars Schema for 55S - 2019", keys `WF8E` | TransmissionSpeeds 7 → **9** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `55SWF8EB*KU` TransmissionSpeeds: NHTSA decodes "7", correct "9" (1 NHTSA test vehicle) + +WF8E (2019 C 300 4MATIC sedan) said 7 speeds, as for 2017 and earlier; vPIC's own WF4K row (another 2019 C300-4M) says 9, EPA lists only 9-speed C 300s for 2019, and NHTSA's test car had 9. + +NHTSA lab reports: [report](https://static.nhtsa.gov/odi/ctr/9999/TRTR-645887-2019-001.pdf). + +## rf-022 + +**2021 MERCEDES-BENZ C-Class**: TransmissionSpeeds. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1563116 in schema 21794 "Mercedes-Benz Schema for PC W1K/WDD (MY2021)", keys `WF8D` | TransmissionSpeeds 7 → **9** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `W1KWF8DB*MR` TransmissionSpeeds: NHTSA decodes "7", correct "9" (1 NHTSA test vehicle) + +WF8D (2021 C 300 sedan) said 7 speeds, as for 2017 and earlier; EPA lists only 9-speed C 300s for 2021, and NHTSA's test car had 9. + +NHTSA lab reports: [test 11382](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11300/v11382R001.pdf). + +## rf-023 + +**2023 TOYOTA GR Corolla**: TransmissionStyle. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| new row in schema 24841 "TOYOTA GR COROLLA Schema for JTN (MY2023)", keys `AB[AB]AE` | **added**: TransmissionStyle = Manual/Standard | +| vehicle-spec row 232715 (Corolla,GR COROLLA 2023, where BodyClass=Hatchback/Liftback/Notchback) | unchanged: TransmissionStyle = Continuously Variable Transmission (CVT) (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `JTNABAAE*PA` TransmissionStyle: NHTSA decodes "Continuously Variable Transmission (CVT)", correct "Manual" (1 NHTSA test vehicle) + +vPIC's vehicle-spec row gives every 2023 Corolla and GR Corolla hatchback a CVT. The GR Corolla is sold only with a 6-speed manual (EPA's only 2023 GR Corolla listing), and NHTSA's test GR Corolla was a manual. vPIC's own GR Corolla rows are keyed AB[AB]AE; a row on those keys now gives manual. + +NHTSA lab reports: [test 15365](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15300/v15365R001.pdf). + +## rf-024 + +**2022 VOLKSWAGEN Jetta**: TransmissionSpeeds. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1757073 in schema 23458 "Volkswagen PC Schema for WVW/3VW/1VW (MY2022)", keys `[CBE7G]M7BU` | TransmissionSpeeds 6 → **8** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `3VW7M7BU*NM` TransmissionSpeeds: NHTSA decodes "6", correct "8" (1 NHTSA test vehicle) + +[CBE7G]M7BU is a 2022 Jetta automatic (vPIC's own style row); every 2022 Jetta automatic is an 8-speed (EPA; vPIC's own SM7BU row) and the 6-speed is the manual. The row said 6; NHTSA's test car recorded 8. + +NHTSA lab reports: [test 14084](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14000/v14084R001.pdf). + +## rf-025 + +**2020 DODGE Challenger**: BodyClass. wrong value: the row covers the right VINs and states the wrong value. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1499555 in schema 21285 "Chrysler/Dodge Passenger Car Schema for 2C3 - 2020", keys `*DZ[AJBCLFGK]` | BodyClass Sedan/Saloon → **Coupe** | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `2C3CDZAG*LH` BodyClass: NHTSA decodes "Sedan/Saloon", correct "Coupe" (2 NHTSA test vehicles) + +*DZ is the Challenger (vPIC's own model rows), a two-door coupe; the body row said sedan. Both NHTSA test cars with this pattern are 2020 Challenger SXT 2-door coupes. + +NHTSA lab reports: [test 11136](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11100/v11136R001.pdf), [test 11137](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v11100/v11137R001.pdf). + +## rf-026 + +**2022 POLESTAR Polestar 2**: BodyClass. narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added. Written against release 2026_11; applied to 2026_11. + +| NHTSA rule row | Edit | +|---|---| +| row 1690761 in schema 23067 "POLESTAR PERFORMANCE AB - PC Schema for LPS (MY2022-MY2024)", keys `**3KA` | keys `**3KA` → `**3KA\|[PR]`; BodyClass = Sedan/Saloon (unchanged) | +| new row in schema 23067 "POLESTAR PERFORMANCE AB - PC Schema for LPS (MY2022-MY2024)", keys `**3KA\|N` | **added**: BodyClass = Hatchback/Liftback/Notchback | + +VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11): + +- `LPSED3KA*NL` BodyClass: NHTSA decodes "Sedan/Saloon", correct "Hatchback/Liftback" (1 NHTSA test vehicle) +- `LPSEG3KA*NL` BodyClass: NHTSA decodes "Sedan/Saloon", correct "Hatchback/Liftback" (2 NHTSA test vehicles) + +The Polestar 2 is a five-door liftback (tailgate), not a sedan; NHTSA's three 2022 test cars with these patterns are titled 5-door hatchbacks. The body row **3KA covers model years 2022-2024; it is split by the model-year character (position 10): 2022 (N) gets hatchback/liftback, 2023 and 2024 (P, R) keep NHTSA's sedan, because NHTSA's vehicle-spec rows for those years are keyed on the sedan body and changing it would drop their other values (2023-2024 were not in the reviewed list). + +NHTSA lab reports: [test 14214](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14214R001.pdf), [test 14215](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14215R001.pdf), [test 14216](https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v14200/v14216R001.pdf). + +## Noticed, not changed + +- Row 810115 in schema 2662 "Nissan/Infiniti Passenger Car & Incomplete Vehicle Schema for JN1/1N4/3N1/JNK/JN3/JNX - 2007", keys `AB61`: EngineModel = VQ35DE. The 2007 Sentra pattern AB61 names the VQ35DE (3.5 L V6) engine; the car has a 2.0 L four (fixed rows rf-012 give it 4 cylinders and 2.0 L). The engine-model row was not in the reviewed list, so it is left as NHTSA has it. diff --git a/lib/decode-checks.mjs b/lib/decode-checks.mjs index 9f8eaa8..04141d6 100644 --- a/lib/decode-checks.mjs +++ b/lib/decode-checks.mjs @@ -1,7 +1,9 @@ /** - * Checks on the VIN decode, field by field. The official decode (NHTSA vPIC) is never overwritten: each checked - * field says whether an independent record confirms it, corrects it, doubts it or fills a blank, keeps vPIC's - * value visible, and says why. The report's matchers (fuel economy, EPA test cars, NHTSA test-vehicle tires and + * Checks on the VIN decode, field by field. The official value (what NHTSA's own vPIC rules decode) is never lost: + * each checked field says whether an independent record confirms it, corrects it, doubts it or fills a blank, keeps + * vPIC's value visible (`original`), and says why. When an mcp.vin rule fix changed a value (decoded.vpic_rule_fixes, + * set by the local decoder), `original` is NHTSA's official value and the fix is the correcting record. + * The report's matchers (fuel economy, EPA test cars, NHTSA test-vehicle tires and * capacities) use the checked values: a corrected or filled value, and nothing for a doubtful one (they widen to * the range of configurations). * @@ -14,6 +16,9 @@ * owner what the reader states about their own vehicle (passed in by the caller) * manufacturer_vin_record the manufacturer's own description of this exact VIN, from the recall-lookup reply * the site already fetches (lib/manufacturer-description.mjs) + * mcp_vin_rule_fix an mcp.vin rule fix: a reviewed edit of NHTSA's vPIC rule tables + * (data-src/vpic-rule-fixes.jsonl), applied when data/vpic.db is built, and only while + * NHTSA's rule row is still the one the fix was written against * nhtsa_test_vehicle_pattern NHTSA's lab records of tested vehicles with the same VIN pattern * (data/decode-evidence.db, scripts/import-decode-evidence.py) * vpic_decode the official decode @@ -33,9 +38,10 @@ import {existsSync} from 'node:fs'; import {fileURLToPath} from 'node:url'; import {epaOffers} from './decode-epa.mjs'; import {vinDrive, vinTransmission, vinPowertrain} from './fueleconomy-match.mjs'; +import {parseDecodedResult} from './vpic-parse.mjs'; export const DECODE_EVIDENCE_FILE = fileURLToPath(new URL('../data/decode-evidence.db', import.meta.url)); -export const PRECEDENCE = ['owner', 'manufacturer_vin_record', 'nhtsa_test_vehicle_pattern', 'vpic_decode', 'assumption']; +export const PRECEDENCE = ['owner', 'manufacturer_vin_record', 'mcp_vin_rule_fix', 'nhtsa_test_vehicle_pattern', 'vpic_decode', 'assumption']; export const STATUSES = ['confirmed', 'corrected', 'doubtful', 'filled', 'unverified', 'unknown']; export const FIELDS = [ @@ -48,13 +54,16 @@ export const FIELDS = [ {key: 'seats', label: 'Seats', decoded: 'raw_nhtsa.Seats', epa: false, matcher: false}, // GVWR varies with options inside one VIN pattern: one test vehicle with another class is a note, not a doubt. {key: 'gvwr_class', label: 'GVWR class', decoded: 'dimensions.gvwr', epa: false, matcher: false, minDoubt: 2, noCorrect: true}, + // Listed only when an mcp.vin rule fix (or the owner) names it. + {key: 'body', label: 'Body style', decoded: 'vehicle.body_class', epa: false, matcher: false, optional: true}, ]; const FIELD = Object.fromEntries(FIELDS.map(f => [f.key, f])); const DRIVE_LABEL = {all: 'all-wheel or four-wheel drive', front: 'front-wheel drive', rear: 'rear-wheel drive', two: 'two-wheel drive'}; const TRANS_LABEL = {auto: 'automatic', manual: 'manual', cvt: 'CVT (continuously variable)', am: 'dual-clutch or automated manual', single: 'single-speed'}; const POWER_LABEL = {ev: 'battery-electric', phev: 'plug-in hybrid', hev: 'hybrid', mhev: 'mild hybrid', hybrid: 'hybrid (full, mild or plug-in not stated)', diesel: 'diesel', gas: 'gasoline', ffv: 'flex-fuel', cng: 'natural gas'}; -const TIER_LABEL = {owner: 'you', manufacturer_vin_record: 'the manufacturer\'s record of this VIN', nhtsa_test_vehicle_pattern: 'NHTSA test vehicles with the same VIN pattern', +const TIER_LABEL = {owner: 'you', manufacturer_vin_record: 'the manufacturer\'s record of this VIN', mcp_vin_rule_fix: 'an mcp.vin rule fix (a reviewed correction of NHTSA\'s vPIC rules)', + nhtsa_test_vehicle_pattern: 'NHTSA test vehicles with the same VIN pattern', vpic_decode: 'the official decode (NHTSA vPIC)', assumption: 'EPA\'s list for this model and year'}; const CLASS_ORDER = ['1A', '1B', '1C', '1D', '2E', '2F', '2G', '2H', '3', '4', '5', '6', '7', '8']; const CLASS_MAX_LB = {'1A': 3000, '1B': 4000, '1C': 5000, '1D': 6000, '2E': 7000, '2F': 8000, '2G': 9000, '2H': 10000, 3: 14000, 4: 16000, 5: 19500, 6: 26000, 7: 33000, 8: Infinity}; @@ -108,9 +117,26 @@ export function vpicValues(decoded) { speeds: {code: tr.kind && tr.kind !== 'cvt' && num(t.speeds) ? num(t.speeds) : null, text: t.speeds ?? null}, seats: {code: seats && seats > 0 ? seats : null, text: raw.Seats ?? null}, gvwr_class: {code: classes ? (classes.length === 1 ? classes[0] : classes) : null, text: decoded?.dimensions?.gvwr ?? null}, + body: {code: decoded?.vehicle?.body_class || null, text: decoded?.vehicle?.body_class ?? null}, }; } +/** Flat vPIC fields and the check each one feeds (a rule fix that changes one of them is that check's record). */ +const RAW_CHECK = {DriveType: 'drive', DisplacementL: 'engine_size', DisplacementCC: 'engine_size', DisplacementCI: 'engine_size', EngineCylinders: 'cylinders', + FuelTypePrimary: 'powertrain', FuelTypeSecondary: 'powertrain', ElectrificationLevel: 'powertrain', TransmissionStyle: 'transmission', + TransmissionSpeeds: 'speeds', Seats: 'seats', GVWR: 'gvwr_class', GVWR_to: 'gvwr_class', BodyClass: 'body'}; + +/** + * The decode NHTSA's own rules give: the decode with every value an mcp.vin rule fix changed set back to the official + * one (decoded.vpic_rule_fixes.changed). Returns the decode itself when no fix changed anything. + */ +export function officialDecode(decoded, changed = decoded?.vpic_rule_fixes?.changed) { + if (!decoded || !Array.isArray(changed) || !changed.length) return decoded; + const raw = {...(decoded.raw || {})}; + for (const c of changed) if (c && typeof c.field === 'string') raw[c.field] = c.official_value ?? ''; + return {...parseDecodedResult(raw), decode_source: decoded.decode_source}; +} + /** Do two normalized values of a field describe the same vehicle? (a more general value agrees with a specific one) */ export function same(field, a, b) { if (a === null || a === undefined || b === null || b === undefined) return null; @@ -198,6 +224,24 @@ export function epaListsCombination(values, epa) { return epa.configs.some(c => fits(c, want)); } +/** + * Does EPA list both a manual and an automatic (automatic, CVT or dual-clutch) for the versions of the model and year + * this decode fits (drive, engine, fuel)? When no version fits, every version of the model and year counts. + */ +export function epaListsManualAndAutomatic(values, epa) { + if (!epa?.available || !epa.configs?.length) return null; + const want = {}; + for (const f of ['drive', 'engine_size', 'cylinders', 'powertrain']) { + const v = values?.[f]; + if (v !== null && v !== undefined) want[TUPLE[f]] = f === 'engine_size' && v === 0 ? null : v; + } + let configs = epa.configs.filter(c => fits(c, want)); + if (!configs.length) configs = epa.configs; + const kinds = new Set(configs.map(c => c.transmission).filter(Boolean)); + if (!kinds.size) return null; + return kinds.has('manual') && (kinds.has('auto') || kinds.has('cvt') || kinds.has('am')); +} + // ---- NHTSA test-vehicle evidence ---- let evidenceDb = null, evidenceDbFile = null; @@ -292,15 +336,30 @@ const MANUFACTURER_FIELDS = {drive: 'drive', engine_size: 'engine_size_l', cylin * `manufacturer`: the recall-status `manufacturer_description` block, or {available:false, reason}, or null when * the manufacturer was not checked (the VIN page builds before the manufacturer replies). */ -export function checkDecode(decoded, {vin = null, evidence = null, epa = null, manufacturer = null, owner = null} = {}) { - const vp = vpicValues(decoded); +export function checkDecode(decoded, {vin = null, evidence = null, epa = null, manufacturer = null, owner = null, ruleFixes = undefined} = {}) { + // mcp.vin rule fixes that changed a value for this VIN (the local decoder lists them on the decode): `vp` is what + // NHTSA's own rules give (the official decode), `dv` the decode with the fixes. + const fixes = ruleFixes === undefined ? decoded?.vpic_rule_fixes : ruleFixes; + const changed = Array.isArray(fixes?.changed) ? fixes.changed : []; + const vp = vpicValues(officialDecode(decoded, changed)); + const dv = changed.length ? vpicValues(decoded) : vp; + const fixEntries = new Map((Array.isArray(fixes?.fixes) ? fixes.fixes : []).map(f => [f.id, f])); + const fixFor = k => { + if (!changed.length || vp[k].code === dv[k].code) return null; + const rows = changed.filter(c => RAW_CHECK[c.field] === k); + const ids = [...new Set((rows.length ? rows : changed).flatMap(c => c.fix_ids || []))].sort(); + return {code: dv[k].code, ids, rows: rows.map(c => ({field: c.field, official_value: c.official_value, value: c.value})), + entries: ids.map(id => fixEntries.get(id)).filter(Boolean)}; + }; const ownerV = ownerValues(owner); const mfrParsed = manufacturer?.available ? manufacturer.parsed || {} : {}; const vehicles = evidence?.available ? evidence.vehicles : []; const vpicDriveText = String(vp.drive.text || ''); const fields = []; - const vpicTuple = Object.fromEntries(Object.keys(TUPLE).map(f => [f, vp[f].code])); + // The combination the decode gives (with any rule fix): EPA cross-checks read this. + const vpicTuple = Object.fromEntries(Object.keys(TUPLE).map(f => [f, dv[f].code])); const comboListed = epaListsCombination(vpicTuple, epa); + const bothGearboxes = epaListsManualAndAutomatic(vpicTuple, epa); for (const f of FIELDS) { const k = f.key, v = vp[k]; @@ -309,6 +368,8 @@ export function checkDecode(decoded, {vin = null, evidence = null, epa = null, m // Tier values const ownerCode = ownerV[k] ?? null; const mfrCode = MANUFACTURER_FIELDS[k] ? mfrParsed[MANUFACTURER_FIELDS[k]] ?? null : null; + const fix = fixFor(k); + if (f.optional && ownerCode === null && !fix) continue; // Pattern evidence, grouped by agreement const ev = []; for (const veh of vehicles) { @@ -344,6 +405,10 @@ export function checkDecode(decoded, {vin = null, evidence = null, epa = null, m // Candidates in precedence order if (ownerCode !== null) out.candidates.push({tier: 'owner', value: ownerCode, value_label: label(k, ownerCode)}); if (mfrCode !== null) out.candidates.push({tier: 'manufacturer_vin_record', value: mfrCode, value_label: label(k, mfrCode), words: manufacturer.parsed_from?.[MANUFACTURER_FIELDS[k]] ?? null}); + if (fix) { + out.candidates.push({tier: 'mcp_vin_rule_fix', value: fix.code, value_label: label(k, fix.code), fix_ids: fix.ids}); + out.evidence.rule_fix = {changed: fix.rows, fixes: fix.entries.map(e => ({id: e.id, case: e.case, reason: e.reason, evidence: e.evidence, written_against: e.written_against, reviewed: e.reviewed}))}; + } for (const g of groups) out.candidates.push({tier: 'nhtsa_test_vehicle_pattern', value: g.value, value_label: label(k, g.value), vehicles: g.items.length}); if (v.code !== null) out.candidates.push({tier: 'vpic_decode', value: v.code, value_label: label(k, v.code)}); @@ -356,7 +421,12 @@ export function checkDecode(decoded, {vin = null, evidence = null, epa = null, m if (ownerCode !== null) fromTier('owner', ownerCode, 'you'); else if (mfrCode !== null) fromTier('manufacturer_vin_record', mfrCode, 'the manufacturer\'s record of this VIN'); - else if (groups.length > 1 && f.minDoubt) { + else if (fix) { + if (fix.code === null) decide('corrected', null, 'mcp_vin_rule_fix', 'mcp_vin_rule_fix', `An mcp.vin rule fix removes the official decode's ${label(k, v.code)}: this VIN pattern does not settle it.`); + else fromTier('mcp_vin_rule_fix', fix.code, 'an mcp.vin rule fix (a reviewed correction of NHTSA\'s vPIC rules)'); + const reasons = fix.entries.map(e => e.reason).filter(Boolean); + if (reasons.length) out.note = `${out.note} ${reasons.join(' ')}`; + } else if (groups.length > 1 && f.minDoubt) { decide(v.code === null ? 'unknown' : 'unverified', v.code, v.code === null ? null : 'vpic_decode', 'pattern_varies_note', `NHTSA tested vehicles with this VIN pattern that differ: ${groups.map(g => `${label(k, g.value)} (${g.items.length})`).join(', ')}.`); } else if (groups.length > 1) { const list = groups.map(g => `${label(k, g.value)} (${g.items.length})`).join(', '); @@ -365,7 +435,11 @@ export function checkDecode(decoded, {vin = null, evidence = null, epa = null, m const p = patternCode, n = groups[0].items.length; const tv = n === 1 ? 'NHTSA\'s test vehicle with the same VIN pattern' : `${n} NHTSA test vehicles with the same VIN pattern`; if (v.code === null) { - if (nStrong >= 1 && epaP !== false) decide('filled', p, 'nhtsa_test_vehicle_pattern', 'test_vehicle_fill', `From ${tv}: ${label(k, p)}. The official decode leaves this blank${v.either ? ' ("2WD/4WD": either)' : ''}.`); + if ((k === 'transmission' || (k === 'speeds' && dv.transmission.code === null)) && bothGearboxes === true) { + // A sample, not a decode: the pattern covers both gearboxes (2020 Accent 3KPC24A6*LE: test cars were + // manuals, EPA lists a manual and a CVT), so neither the gearbox nor its speed count is filled. + decide('unverified', null, 'nhtsa_test_vehicle_pattern', 'test_vehicle_not_settled', `${cap(tv)} had ${k === 'speeds' ? `a ${label(k, p)} gearbox` : `a ${label(k, p)} transmission`}, but EPA lists both manual and automatic transmissions for this model and year, and the official decode leaves it blank: ${k === 'speeds' ? 'the speed count belongs to the gearbox, so it is not settled either' : 'this VIN\'s transmission is not settled'}.`); + } else if (nStrong >= 1 && epaP !== false) decide('filled', p, 'nhtsa_test_vehicle_pattern', 'test_vehicle_fill', `From ${tv}: ${label(k, p)}. The official decode leaves this blank${v.either ? ' ("2WD/4WD": either)' : ''}.`); else decide(v.either ? 'doubtful' : 'unknown', null, null, null, v.either ? 'The official decode says "2WD/4WD" (either).' : null); } else if (same(k, p, v.code)) { // The test vehicles may state it more precisely (front for vPIC's 4x2): used when two agree or EPA lists it. @@ -422,9 +496,9 @@ export function checkDecode(decoded, {vin = null, evidence = null, epa = null, m Object.assign(byKey[relax[0]], {status: 'doubtful', basis: 'vpic_decode', rule: 'epa_combination', note: `EPA lists no configuration of this model and year with the decoded ${describeTuple(vpicTuple)}; it does with any ${FIELD[relax[0]].label.toLowerCase()}.`}); } } - impossible(byKey, vp, vehicles, decoded); + impossible(byKey, dv, vehicles, decoded); for (const x of fields) x.matching = matchingUse(x); - return finish(fields, {vin, evidence, epa, manufacturer, owner: ownerV}); + return finish(fields, {vin, evidence, epa, manufacturer, owner: ownerV, fixes, changed, decoded}); } const cap = s => s.charAt(0).toUpperCase() + s.slice(1); @@ -442,7 +516,7 @@ const cap = s => s.charAt(0).toUpperCase() + s.slice(1); */ function matchingUse(x) { if (!FIELD[x.field].matcher) return null; - if (x.status === 'corrected') return 'checked_value'; + if (x.status === 'corrected') return x.shown_value === null ? 'widened' : 'checked_value'; if (x.status === 'filled') return x.basis === 'nhtsa_test_vehicle_pattern' && ['drive', 'transmission'].includes(x.field) ? 'official_value' : 'checked_value'; if (x.status === 'confirmed') return x.shown_value !== x.original_value ? 'checked_value' : 'official_value'; if (x.status === 'doubtful') return ['engine_size', 'cylinders'].includes(x.field) && x.rule === 'epa_not_listed' ? 'official_value' : 'widened'; @@ -491,7 +565,7 @@ function impossible(byKey, vp, vehicles, decoded) { } } -function finish(fields, {vin, evidence, epa, manufacturer, owner}) { +function finish(fields, {vin, evidence, epa, manufacturer, owner, fixes = null, changed = [], decoded = null}) { const counts = Object.fromEntries(STATUSES.map(s => [s, fields.filter(f => f.status === s).length])); const mfr = manufacturer === null ? {status: 'not_checked', note: 'The manufacturer\'s record of this VIN is read from its recall lookup, which the full report adds; this view was built without it.'} : manufacturer.available ? {status: 'used', text: manufacturer.text, source: manufacturer.source?.provider ?? null, retrieved_at: manufacturer.source?.retrieved_at ?? null} @@ -502,11 +576,16 @@ function finish(fields, {vin, evidence, epa, manufacturer, owner}) { return { pattern: patternKey(vin), fields, counts, summary: issues.length ? issues.map(f => `${f.label}: ${f.status}${f.shown ? ` (${f.shown})` : ''}`).join('; ') : 'No field of the decode is corrected, doubtful or filled.', - sources: {owner: Object.keys(owner || {}).length ? {status: 'used', fields: Object.keys(owner)} : {status: 'not_given'}, manufacturer_record: mfr, test_vehicle_pattern: tv, + sources: {owner: Object.keys(owner || {}).length ? {status: 'used', fields: Object.keys(owner)} : {status: 'not_given'}, manufacturer_record: mfr, + rule_fixes: changed.length ? {status: 'used', ids: [...new Set(changed.flatMap(c => c.fix_ids || []))].sort(), release: fixes?.release ?? null, + changed: changed.map(c => ({field: c.field, official_value: c.official_value, value: c.value}))} + : decoded?.decode_source?.source === 'nhtsa_vpic_api' ? {status: 'not_applied', reason: 'live_api_decode', note: 'NHTSA\'s live API decoded this VIN; mcp.vin\'s rule fixes apply to the local decoder only.'} + : {status: 'none_for_vin'}, + test_vehicle_pattern: tv, epa: epa?.available ? {status: 'used', model_names: epa.models?.slice(0, 4) ?? []} : {status: 'not_available', reason: epa?.reason ?? null}}, precedence: PRECEDENCE, precedence_labels: Object.fromEntries(PRECEDENCE.map(t => [t, TIER_LABEL[t]])), - note: 'Checks on the official VIN decode (NHTSA vPIC), which describes a VIN pattern rather than this vehicle. The original value is always kept. Corrected: the manufacturer\'s record of this VIN, two or more NHTSA test vehicles with the same VIN pattern, or one test vehicle plus EPA\'s list of configurations, gives another value. Doubtful: a source disagrees without settling it, or EPA lists no such configuration; the matchers then use the range. Filled: the decode was blank. Fuel economy, EPA test cars and NHTSA test-vehicle tires use the checked values.', + note: 'Checks on the official VIN decode (NHTSA vPIC), which describes a VIN pattern rather than this vehicle. The original value is always kept. Corrected: the manufacturer\'s record of this VIN, an mcp.vin rule fix (a reviewed correction of NHTSA\'s vPIC rules, with the official value kept), two or more NHTSA test vehicles with the same VIN pattern, or one test vehicle plus EPA\'s list of configurations, gives another value. Doubtful: a source disagrees without settling it, or EPA lists no such configuration; the matchers then use the range. Filled: the decode was blank. Fuel economy, EPA test cars and NHTSA test-vehicle tires use the checked values.', }; } diff --git a/lib/decode-report.mjs b/lib/decode-report.mjs index ed7a271..003e3f9 100644 --- a/lib/decode-report.mjs +++ b/lib/decode-report.mjs @@ -28,16 +28,25 @@ export function compactDecodeChecks(dc) { ...(f.status === 'doubtful' ? {candidates: (f.candidates || []).map(c => ({tier: c.tier, value: c.value_label}))} : {}), ...(f.matching ? {matching: f.matching} : {}), ...((f.evidence?.test_vehicles || []).length ? {test_reports: f.evidence.test_vehicles.slice(0, 2).map(t => t.report_url).filter(Boolean)} : {}), + ...(f.evidence?.rule_fix ? {rule_fixes: (f.evidence.rule_fix.fixes || []).map(x => x.id), + fix_reports: (f.evidence.rule_fix.fixes || []).flatMap(x => (x.evidence || []).map(e => e.url)).filter(Boolean).slice(0, 2)} : {}), })); return {pattern: dc.pattern, summary: dc.summary, counts: dc.counts, fields, - sources: {manufacturer_record: dc.sources?.manufacturer_record?.status ?? null, test_vehicles: dc.sources?.test_vehicle_pattern?.vehicles ?? 0, epa: dc.sources?.epa?.status ?? null}, + sources: {manufacturer_record: dc.sources?.manufacturer_record?.status ?? null, rule_fixes: dc.sources?.rule_fixes?.status ?? null, + test_vehicles: dc.sources?.test_vehicle_pattern?.vehicles ?? 0, epa: dc.sources?.epa?.status ?? null}, precedence: dc.precedence, ...(dc.rematched ? {rematched: true} : {}), note: dc.note}; } -/** The decode as lib/nhtsa.mjs returned it, rebuilt from a report. */ +/** + * The decode as lib/nhtsa.mjs returned it, rebuilt from a report: raw_nhtsa is NHTSA's official decode, so the values + * an mcp.vin rule fix changed (vpic_rule_fixes) are put back, and the fixes stay listed for the checks. + */ export function decodedFromReport(report) { + const raw = {...(report.raw_nhtsa || {})}; + for (const c of report.vpic_rule_fixes?.changed || []) if (c && typeof c.field === 'string') raw[c.field] = c.value ?? ''; return {vehicle: report.vehicle, engine: report.engine, transmission: report.transmission, dimensions: report.dimensions, - plant: report.plant, safety: report.safety_equipment, raw: report.raw_nhtsa || {}}; + plant: report.plant, safety: report.safety_equipment, raw, decode_source: report.decode_source ?? null, + ...(report.vpic_rule_fixes ? {vpic_rule_fixes: report.vpic_rule_fixes} : {})}; } /** What the manufacturer record status is, from a recall-status result. */ diff --git a/lib/nhtsa.mjs b/lib/nhtsa.mjs index 456555a..edb2681 100644 --- a/lib/nhtsa.mjs +++ b/lib/nhtsa.mjs @@ -2,9 +2,18 @@ * NHTSA (National Highway Traffic Safety Administration) API integration. * All endpoints are free and require no API key. * Docs: https://vpic.nhtsa.dot.gov/api/ + * + * VIN decoding runs locally first: lib/vpic-local.mjs is NHTSA's own decode algorithm over the monthly vPIC + * standalone database (data/vpic.db, scripts/import-vpic.py), whose rule tables carry mcp.vin's reviewed rule fixes + * (data-src/vpic-rule-fixes.jsonl). The live vPIC API is the fallback (see localFallbackReason). Every decode carries + * `decode_source` (which one was used, the vPIC release and whether rule fixes were applied) and, when a rule fix + * changed a value for this VIN, `vpic_rule_fixes`: each changed field with NHTSA's official value, the fix, its reason + * and evidence. `raw` holds the values of the decode used (fixed rules locally, NHTSA's own on the live API). */ import { compactName, lookupRecallLabels } from './recall-labels.mjs'; +import { decodeLocal, VPIC_DB_FILE } from './vpic-local.mjs'; +import { clean, num, parseDecodedResult } from './vpic-parse.mjs'; const VPIC_BASE = 'https://vpic.nhtsa.dot.gov/api/vehicles'; const RECALLS_BASE = 'https://api.nhtsa.gov/recalls/recallsByVehicle'; @@ -20,111 +29,78 @@ function timeoutSignal(ms = FETCH_TIMEOUT) { return AbortSignal.timeout(ms); } -/** - * Convert empty strings and "Not Applicable" to null, trim whitespace. - */ -function clean(value) { - if (value === undefined || value === null) return null; - if (typeof value === 'string') { - const trimmed = value.trim(); - if (trimmed === '' || trimmed === 'Not Applicable') return null; - return trimmed; +export const DECODE_SOURCE_LOCAL = 'mcp_vin_vpic_local'; +export const DECODE_SOURCE_LIVE = 'nhtsa_vpic_api'; + +/** The local dataset file: VPIC_LOCAL_DB=off turns the local decoder off (tests), a path replaces data/vpic.db. */ +function localFile(opts) { + if (opts && 'vpicFile' in opts) return opts.vpicFile; + const env = process.env.VPIC_LOCAL_DB; + if (env === 'off') return null; + return env || VPIC_DB_FILE; +} + +function localDecode(vin, opts = {}) { + const file = localFile(opts); + if (!file) return { available: false, reason: 'local_decoder_off' }; + try { + return decodeLocal(vin, { file, ...(opts.now ? { now: opts.now } : {}) }); + } catch (err) { + return { available: false, reason: 'decode_failed', error: err.message }; } - return value; } /** - * Parse a numeric string, returning null if not a valid number. + * Why the live API decodes this VIN instead of the local copy, or null when the local decode is used: + * the dataset is missing or unreadable, or the local decode failed; + * wmi_unknown the WMI is not in the release (error 7): a manufacturer registered since; + * no_model nothing decoded the model: the patterns may have been submitted since the release; + * model_year_newer_than_release + * the model year is later than the release's year (2027+ for release 2026_11). Patterns + * of a model year still being submitted change most between releases: in release 2026_11, + * 9.9% of the patterns of schemas starting with model year 2027 (93% for 2028) changed in + * the 30 days before the dump, against 2.8% for 2026 and under 1% for 2025 and older. */ -function num(value) { - const cleaned = clean(value); - if (cleaned === null) return null; - const n = Number(cleaned); - return Number.isNaN(n) ? null : n; +export function localFallbackReason(local) { + if (!local) return 'dataset_not_indexed'; + if (!local.available) return local.reason || 'decode_failed'; + const v = local.values || {}; + const codes = String(v.ErrorCode ?? '').split(',').map(c => c.trim()); + if (codes.includes('7')) return 'wmi_unknown'; + if (!v.Model) return 'no_model'; + const releaseYear = Number(String(local.release || '').slice(0, 4)); + const year = Number(v.ModelYear); + if (!Number.isInteger(releaseYear) || releaseYear < 2000) return 'release_unknown'; + if (Number.isInteger(year) && year > releaseYear) return 'model_year_newer_than_release'; + return null; } -/** - * Parse a NHTSA decoded result into categorized fields. - */ -function parseDecodedResult(r) { - return { - vehicle: { - year: num(r.ModelYear), - make: clean(r.Make), - make_id: num(r.MakeID), - model: clean(r.Model), - model_id: num(r.ModelID), - trim: clean(r.Trim), - body_class: clean(r.BodyClass), - doors: num(r.Doors), - vehicle_type: clean(r.VehicleType), - }, - engine: { - type: clean(r.EngineModel), - cylinders: num(r.EngineCylinders), - displacement_cc: num(r.DisplacementCC), - displacement_l: num(r.DisplacementL), - hp: num(r.EngineHP), - fuel_type: clean(r.FuelTypePrimary), - fuel_injection: clean(r.FuelInjectionType), - turbo: clean(r.Turbo), - ev_type: clean(r.ElectrificationLevel), - battery_kwh: num(r.BatteryKWh), - }, - transmission: { - type: clean(r.TransmissionStyle), - speeds: num(r.TransmissionSpeeds), - drive_type: clean(r.DriveType), - }, - dimensions: { - gvwr: clean(r.GVWR), - gvwr_to: clean(r.GVWR_to), - curb_weight: num(r.CurbWeightLB), - wheel_base: num(r.WheelBaseShort), - track_width: num(r.TrackWidth), - }, - plant: { - city: clean(r.PlantCity), - state: clean(r.PlantState), - country: clean(r.PlantCountry), - company: clean(r.PlantCompanyName), - }, - safety: { - abs: clean(r.ABS), - esc: clean(r.ESC), - traction_control: clean(r.TractionControl), - tpms: clean(r.TPMS), - airbags_front: clean(r.AirBagLocFront), - airbags_side: clean(r.AirBagLocSide), - airbags_curtain: clean(r.AirBagLocCurtain), - airbags_knee: clean(r.AirBagLocKnee), - forward_collision_warning: clean(r.ForwardCollisionWarning), - lane_departure_warning: clean(r.LaneDepartureWarning), - lane_keeping: clean(r.LaneKeepSystem), - adaptive_cruise: clean(r.AdaptiveCruiseControl), - backup_camera: clean(r.RearVisibilitySystem) || clean(r.BackupCamera), - parking_assist: clean(r.ParkAssist), - blind_spot: clean(r.BlindSpotMon), - auto_emergency_braking: clean(r.CIB) || clean(r.AutomaticEmergencyBraking), - pedestrian_detection: clean(r.PedestrianAutomaticEmergencyBraking), - daytime_running_lights: clean(r.DaytimeRunningLight), - headlamp_type: clean(r.AdaptiveHeadlights), - pretensioner: clean(r.Pretensioner), - seat_belt_type: clean(r.SeatBeltsAll), - }, - raw: { ...r }, - }; +function localSource(local, extra = {}) { + const fixes = local.rule_fixes_in_dataset ?? 0; + return { source: DECODE_SOURCE_LOCAL, label: 'mcp.vin decoder: NHTSA\'s vPIC decode run on NHTSA\'s monthly vPIC database', vpic_release: local.release ?? null, + vpic_release_name: local.release_name ?? null, dataset_built_at: local.built_at ?? null, + rules: fixes ? 'nhtsa_with_mcp_vin_rule_fixes' : 'nhtsa', rule_fixes_in_dataset: fixes, + rule_fixes_changed_this_vin: !!local.rule_fixes, fallback_reason: null, ...extra }; +} +function liveSource(reason, local) { + return { source: DECODE_SOURCE_LIVE, label: 'NHTSA vPIC API (DecodeVinValues), live', vpic_release: 'live', rules: 'nhtsa', + rule_fixes_in_dataset: 0, rule_fixes_changed_this_vin: false, fallback_reason: reason, + local_vpic_release: local?.available ? local.release ?? null : null, + note: 'Decoded by NHTSA\'s live API: mcp.vin\'s rule fixes apply to the local decoder only.' }; } -/** - * Decode a single VIN using the NHTSA vPIC API. - * @param {string} vin - 17-character VIN - * @returns {object|null} Parsed vehicle data or null on error - */ -export async function decodeVin(vin) { +/** A parsed decode with its source and, when a rule fix changed a value for this VIN, what NHTSA's own rules give. */ +function finishDecode(raw, source, ruleFixes = null) { + const parsed = parseDecodedResult(raw); + parsed.decode_source = source; + if (ruleFixes) parsed.vpic_rule_fixes = ruleFixes; + return parsed; +} + +async function liveDecodeRaw(vin, fetchImpl) { try { const url = `${VPIC_BASE}/DecodeVinValues/${encodeURIComponent(vin)}?format=json`; - const res = await fetch(url, { signal: timeoutSignal() }); + const res = await fetchImpl(url, { signal: timeoutSignal() }); if (!res.ok) { console.error(`[nhtsa] decodeVin HTTP ${res.status} for ${vin}`); @@ -133,34 +109,48 @@ export async function decodeVin(vin) { const data = await res.json(); const results = data?.Results; - if (!results || results.length === 0) { + if (!Array.isArray(results) || results.length === 0 || !results[0] || typeof results[0] !== 'object') { console.error(`[nhtsa] decodeVin no results for ${vin}`); return null; } - - return parseDecodedResult(results[0]); + return results[0]; } catch (err) { console.error(`[nhtsa] decodeVin error for ${vin}:`, err.message); return null; } } +/** The answer for one VIN given its local decode and (when it was needed) the live API's raw result. */ +function chooseDecode(vin, local, reason, liveRaw) { + if (!reason) return finishDecode(local.values, localSource(local), local.rule_fixes); + if (liveRaw) return finishDecode(liveRaw, liveSource(reason, local)); + if (local?.available) { + return finishDecode(local.values, localSource(local, { fallback_reason: reason, live_api: 'failed', + note: 'The live vPIC API was asked because of the fallback reason and did not answer; this is the local decode.' }), local.rule_fixes); + } + return null; +} + /** - * Batch decode up to 50 VINs in a single request. - * @param {string[]} vins - Array of VINs (max 50) - * @returns {object[]} Array of parsed results (null entries for failures) + * Decode a single VIN: locally (data/vpic.db) when the dataset is there, else or on a fallback reason with the live + * NHTSA vPIC API. Options (tests): {vpicFile, fetch, now}. + * @param {string} vin - 17-character VIN + * @returns {object|null} Parsed vehicle data or null on error */ -export async function batchDecode(vins) { - if (!Array.isArray(vins) || vins.length === 0) return []; - - const batch = vins.slice(0, 50); +export async function decodeVin(vin, opts = {}) { + const local = localDecode(vin, opts); + const reason = localFallbackReason(local); + const liveRaw = reason ? await liveDecodeRaw(vin, opts.fetch || globalThis.fetch) : null; + return chooseDecode(vin, local, reason, liveRaw); +} +async function liveBatchRaw(vins, fetchImpl) { try { const url = `${VPIC_BASE}/DecodeVINValuesBatch/`; // Format: "vin1,;vin2,;vin3," - const body = new URLSearchParams({ DATA: batch.map(v => `${v},`).join(';'), format: 'json' }).toString(); + const body = new URLSearchParams({ DATA: vins.map(v => `${v},`).join(';'), format: 'json' }).toString(); - const res = await fetch(url, { + const res = await fetchImpl(url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body, @@ -169,29 +159,47 @@ export async function batchDecode(vins) { if (!res.ok) { console.error(`[nhtsa] batchDecode HTTP ${res.status}`); - return batch.map(() => null); + return vins.map(() => null); } const data = await res.json(); const results = data?.Results; - if (!results || results.length === 0) { + if (!Array.isArray(results) || results.length === 0) { console.error(`[nhtsa] batchDecode no results`); - return batch.map(() => null); + return vins.map(() => null); } - - return results.map(r => { - try { - return parseDecodedResult(r); - } catch { - return null; - } - }); + // Match each answer to its VIN; fall back to position only when the API omits the VIN and the counts agree. + const byVin = new Map(results.filter(r => r && typeof r === 'object' && r.VIN).map(r => [String(r.VIN).trim().toUpperCase(), r])); + return vins.map((v, i) => byVin.get(String(v).trim().toUpperCase()) ?? (results.length === vins.length && results[i] && typeof results[i] === 'object' && !results[i].VIN ? results[i] : null)); } catch (err) { console.error(`[nhtsa] batchDecode error:`, err.message); - return batch.map(() => null); + return vins.map(() => null); } } +/** + * Batch decode up to 50 VINs: each locally when it can be, the rest in one live batch request. + * @param {string[]} vins - Array of VINs (max 50) + * @returns {object[]} Array of parsed results (null entries for failures) + */ +export async function batchDecode(vins, opts = {}) { + if (!Array.isArray(vins) || vins.length === 0) return []; + + const batch = vins.slice(0, 50); + const locals = batch.map(v => localDecode(v, opts)); + const reasons = locals.map(localFallbackReason); + const needLive = batch.filter((_, i) => reasons[i]); + const liveRaws = needLive.length ? await liveBatchRaw(needLive, opts.fetch || globalThis.fetch) : []; + let j = 0; + return batch.map((vin, i) => { + try { + return chooseDecode(vin, locals[i], reasons[i], reasons[i] ? liveRaws[j++] : null); + } catch { + return null; + } + }); +} + /** * recallsByVehicle returns ReportReceivedDate day-first (DD/MM/YYYY), e.g. * "15/10/2024" and "29/03/2018" (checked against NHTSA's flat-file RCDATE diff --git a/lib/reports.mjs b/lib/reports.mjs index 1eb9ce4..932bfa6 100644 --- a/lib/reports.mjs +++ b/lib/reports.mjs @@ -10,7 +10,7 @@ import { withBuildDates } from './recall-build-dates.mjs'; import { extraReportBlocks, compactExtraBlocks } from './more-sources.mjs'; import { fuelForOtherBlocks } from './transmission-choice.mjs'; import { lookupTestVehicleData, vinProfile } from './tire-placards.mjs'; -import { decodeChecksFor, checkedDecode, fixTestVehicleRow } from './decode-checks.mjs'; +import { decodeChecksFor, checkedDecode, fixTestVehicleRow, officialDecode } from './decode-checks.mjs'; import { withManufacturerRecord, compactDecodeChecks } from './decode-report.mjs'; /** @@ -121,10 +121,14 @@ async function assembleReport(vin) { fuel_economy: fuel || { available: false }, tire_placard: testVehicle.tire_placard, test_vehicle_specs: testVehicle.test_vehicle_specs, - photos, raw_nhtsa: decoded.raw, + // raw_nhtsa: NHTSA's official decode (what NHTSA's own rules give); the blocks above carry any mcp.vin rule fix, + // listed in vpic_rule_fixes with the official value and marked field by field in decode_checks. + photos, raw_nhtsa: officialDecode(decoded).raw, + decode_source: decoded.decode_source ?? null, + ...(decoded.vpic_rule_fixes ? { vpic_rule_fixes: decoded.vpic_rule_fixes } : {}), ...extraReportBlocks(used, fuelForOtherBlocks(fuel)), // the transmission assumption stays in fuel_economy decode_checks: decodeChecks || { available: false, reason: 'check_failed', note: 'The decode checks could not run; the official decode is shown unchecked.' }, - provenance: { assembled_at: new Date().toISOString(), specifications: 'NHTSA vPIC manufacturer-submitted VIN data', recalls: 'NHTSA make/model/year campaigns, not VIN repair status', complaints: 'NHTSA owner reports; not confirmed defects or incidence rates', fuel: 'FuelEconomy.gov configuration: exact, closest (with what differs) or the range across the configurations the VIN fits', decode_checks: 'Field-by-field checks on the official decode: the manufacturer\'s description of this VIN (when its recall lookup returns one), NHTSA lab records of test vehicles with the same VIN pattern, and EPA\'s configurations for the model year; vPIC\'s value is kept beside any correction', tire_placard: 'Door-placard values of a vehicle NHTSA tested in a crash or compliance test (closest match by model year and version, stated per vehicle), not this VIN', test_vehicle_specs: 'Capacities and weights (and an FMVSS 135 stopping distance when indexed) of a vehicle NHTSA tested in a crash or compliance test (closest match, stated per vehicle; a fuel tank from another year or version is a best guess), not this VIN', photos: 'Representative stock imagery, not this exact vehicle' }, + provenance: { assembled_at: new Date().toISOString(), specifications: specificationsProvenance(decoded), recalls: 'NHTSA make/model/year campaigns, not VIN repair status', complaints: 'NHTSA owner reports; not confirmed defects or incidence rates', fuel: 'FuelEconomy.gov configuration: exact, closest (with what differs) or the range across the configurations the VIN fits', decode_checks: 'Field-by-field checks on the official decode: the manufacturer\'s description of this VIN (when its recall lookup returns one), NHTSA lab records of test vehicles with the same VIN pattern, and EPA\'s configurations for the model year; vPIC\'s value is kept beside any correction', tire_placard: 'Door-placard values of a vehicle NHTSA tested in a crash or compliance test (closest match by model year and version, stated per vehicle), not this VIN', test_vehicle_specs: 'Capacities and weights (and an FMVSS 135 stopping distance when indexed) of a vehicle NHTSA tested in a crash or compliance test (closest match, stated per vehicle; a fuel tank from another year or version is a best guess), not this VIN', photos: 'Representative stock imagery, not this exact vehicle' }, }; const transientFuelFailure = ['upstream_error', 'invalid_response'].includes(fuel?.reason) || fuel?.incomplete === true; @@ -132,6 +136,17 @@ async function assembleReport(vin) { return report; } +/** Where the specifications came from: the local decoder (vPIC release, rule fixes) or NHTSA's live API. */ +export function specificationsProvenance(decoded) { + const src = decoded?.decode_source; + if (src?.source === 'mcp_vin_vpic_local') { + const fixes = src.rule_fixes_in_dataset ? `, with ${src.rule_fixes_in_dataset} reviewed mcp.vin fixes of NHTSA's rules (a value a fix changed is marked in decode_checks and listed in vpic_rule_fixes with NHTSA's official value)` : ''; + return `NHTSA vPIC manufacturer-submitted VIN data, decoded by mcp.vin's copy of NHTSA's vPIC decoder on NHTSA's vPIC database release ${src.vpic_release}${fixes}`; + } + if (src?.source === 'nhtsa_vpic_api') return 'NHTSA vPIC manufacturer-submitted VIN data, decoded by NHTSA\'s live vPIC API'; + return 'NHTSA vPIC manufacturer-submitted VIN data'; +} + // ---- MCP output ---- // MCP clients put tool results straight into a model's context. A common car // can have thousands of NHTSA complaints (2,013 for a 2003 Accord, about 1.8 MB diff --git a/lib/vpic-local.mjs b/lib/vpic-local.mjs new file mode 100644 index 0000000..5adb33a --- /dev/null +++ b/lib/vpic-local.mjs @@ -0,0 +1,959 @@ +/** + * mcp.vin's own VIN decoder: NHTSA's vPIC decode algorithm (spvindecode / spvindecode_core / spvindecode_errorcode + * from the standalone vPIC database, release in data/vpic.db) reproduced in JavaScript over the compact SQLite copy + * that scripts/import-vpic.py builds from NHTSA's monthly dump. No network. + * + * decodeLocal(vin) returns the same flat key/value shape as the live API's DecodeVinValues (`values`), plus the + * per-element items (source, pattern id, schema, keys) for provenance, the pass that won and the release. + * + * Rule tables (`rules`): + * 'fixed' (default) NHTSA's tables with mcp.vin's reviewed rule fixes applied at build time + * (data-src/vpic-rule-fixes.jsonl; scripts/import-vpic.py records each edited row in rule_fix). + * When a fix changed something for this VIN, `rule_fixes` lists every field whose value differs + * from the decode on NHTSA's own rules, with the official value, the fix, reason and evidence. + * 'pristine' NHTSA's own rules exactly (the rule_fix records undone in memory), for parity with + * spvindecode and for the official values. The interpreter is the same either way: a fix is data. + * + * `semantics`: + * 'mssql' (default) behave like the live API (SQL Server): NULLs sort last in DESC orderings, decimal arithmetic + * truncates like SQL Server's decimal type, and the VIN-descriptor model-year table is used. + * 'pg' behave exactly like the PostgreSQL port in the dump (vpic.spvindecode), for parity tests: + * NULLs first in DESC, PostgreSQL numeric arithmetic, and the descriptor table is never read + * (the port computes the descriptor before it has the VIN). + * Missing dataset: {available:false, reason:'dataset_not_indexed'}; any unexpected shape fails closed with + * {available:false, reason:'decode_failed'}. + */ +import Database from 'better-sqlite3'; +import {existsSync, statSync} from 'node:fs'; +import {fileURLToPath} from 'node:url'; + +export const VPIC_DB_FILE = fileURLToPath(new URL('../data/vpic.db', import.meta.url)); +/** The keys (and order) of the live API's DecodeVinValues answer, 2026-11: element codes plus VIN and three ids. */ +export const LIVE_VALUE_KEYS = Object.freeze([ + 'ABS', 'ActiveSafetySysNote', 'AdaptiveCruiseControl', 'AdaptiveDrivingBeam', 'AdaptiveHeadlights', + 'AdditionalErrorText', 'AirBagLocCurtain', 'AirBagLocFront', 'AirBagLocKnee', 'AirBagLocSeatCushion', + 'AirBagLocSide', 'AutoReverseSystem', 'AutomaticPedestrianAlertingSound', 'AxleConfiguration', 'Axles', 'BasePrice', + 'BatteryA', 'BatteryA_to', 'BatteryCells', 'BatteryInfo', 'BatteryKWh', 'BatteryKWh_to', 'BatteryModules', + 'BatteryPacks', 'BatteryType', 'BatteryV', 'BatteryV_to', 'BedLengthIN', 'BedType', 'BlindSpotIntervention', + 'BlindSpotMon', 'BodyCabType', 'BodyClass', 'BrakeSystemDesc', 'BrakeSystemType', 'BusFloorConfigType', 'BusLength', + 'BusType', 'CAN_AACN', 'CIB', 'CashForClunkers', 'ChargerLevel', 'ChargerPowerKW', 'CombinedBrakingSystem', + 'CoolingType', 'CurbWeightLB', 'CustomMotorcycleType', 'DaytimeRunningLight', 'DestinationMarket', 'DisplacementCC', + 'DisplacementCI', 'DisplacementL', 'Doors', 'DriveType', 'DriverAssist', 'DynamicBrakeSupport', 'EDR', 'ESC', + 'EVDriveUnit', 'ElectrificationLevel', 'EngineConfiguration', 'EngineCycles', 'EngineCylinders', 'EngineHP', + 'EngineHP_to', 'EngineKW', 'EngineManufacturer', 'EngineModel', 'EntertainmentSystem', 'ErrorCode', 'ErrorText', + 'ForwardCollisionWarning', 'FuelInjectionType', 'FuelTankMaterial', 'FuelTankType', 'FuelTypePrimary', + 'FuelTypeSecondary', 'GCWR', 'GCWR_to', 'GVWR', 'GVWR_to', 'KeylessIgnition', 'LaneCenteringAssistance', + 'LaneDepartureWarning', 'LaneKeepSystem', 'LowerBeamHeadlampLightSource', 'Make', 'MakeID', 'Manufacturer', + 'ManufacturerId', 'Model', 'ModelID', 'ModelYear', 'MotorcycleChassisType', 'MotorcycleSuspensionType', + 'NCSABodyType', 'NCSAMake', 'NCSAMapExcApprovedBy', 'NCSAMapExcApprovedOn', 'NCSAMappingException', 'NCSAModel', + 'NCSANote', 'NonLandUse', 'Note', 'OtherBusInfo', 'OtherEngineInfo', 'OtherMotorcycleInfo', + 'OtherRestraintSystemInfo', 'OtherTrailerInfo', 'ParkAssist', 'PedestrianAutomaticEmergencyBraking', 'PlantCity', + 'PlantCompanyName', 'PlantCountry', 'PlantState', 'PossibleValues', 'Pretensioner', 'RearAutomaticEmergencyBraking', + 'RearCrossTrafficAlert', 'RearVisibilitySystem', 'SAEAutomationLevel', 'SAEAutomationLevel_to', 'SeatBeltsAll', + 'SeatRows', 'Seats', 'SemiautomaticHeadlampBeamSwitching', 'Series', 'Series2', 'SteeringLocation', 'SuggestedVIN', + 'TPMS', 'TopSpeedMPH', 'TrackWidth', 'TractionControl', 'TrailerBodyType', 'TrailerLength', 'TrailerType', + 'TransmissionSpeeds', 'TransmissionStyle', 'Trim', 'Trim2', 'Turbo', 'VIN', 'ValveTrainDesign', 'VehicleDescriptor', + 'VehicleType', 'WheelBaseLong', 'WheelBaseShort', 'WheelBaseType', 'WheelSizeFront', 'WheelSizeRear', + 'WheelieMitigation', 'Wheels', 'Windows', +]); +const MULTI_VALUE = new Set([121, 129, 150, 154, 155, 114, 169, 186]); // never ranked: every value kept +const SPEC_REPEATABLE = new Set([1, 114, 121, 129, 150, 154, 155, 169, 186]); +const NOT_PATTERN_ELEMENTS = new Set([26, 27, 29, 39]); +const OFFROAD_BODY = new Set(['69', '84', '86', '88', '97', '105', '113', '124', '126', '127']); +const INCOMPLETE_BODY = new Set(['65', '107', '70', '74', '63', '72', '112', '62', '64', '76', '78', '71', '77', '67', '116', '75']); +const PATTERN_SOURCES = new Set(['Pattern', 'EngineModelPattern', 'Formula Pattern']); +const VALID_CHARS = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789'; +const TRANSLIT = {A: 1, B: 2, C: 3, D: 4, E: 5, F: 6, G: 7, H: 8, J: 1, K: 2, L: 3, M: 4, N: 5, P: 7, R: 9, S: 2, T: 3, U: 4, V: 5, W: 6, X: 7, Y: 8, Z: 9}; +const WEIGHTS = [8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2]; + +// ---------------------------------------------------------------- dataset + +const handles = new Map(); +const RECHECK_MS = 60_000; +function fileId(file) { try { const st = statSync(file); return `${st.ino}:${st.size}:${st.mtimeMs}`; } catch { return null; } } +function open(file) { + let h = handles.get(file); + if (h) { + // A monthly refresh replaces the file (scripts/import-vpic.py writes a new file and renames it): reopen then. + if (Date.now() - h.checkedAt < RECHECK_MS) return h; + h.checkedAt = Date.now(); + const id = fileId(file); + if (id === h.fileId) return h; + try { h.db.close(); } catch { /* already closed */ } + handles.delete(file); + h = null; + } + if (!existsSync(file)) return null; + const db = new Database(file, {readonly: true, fileMustExist: true}); + db.pragma('mmap_size = 268435456'); // reads through the page cache, not one syscall per page + db.pragma('cache_size = -16000'); + const meta = Object.fromEntries(db.prepare('SELECT key, value FROM meta').all().map(r => [r.key, r.value])); + if (meta.schema_version !== '1') { db.close(); throw new Error(`vpic.db schema ${meta.schema_version} not supported`); } + const elements = new Map(db.prepare('SELECT * FROM element').all().map(e => [e.id, e])); + const errorCodes = db.prepare('SELECT * FROM error_code ORDER BY id').all(); + const conversions = db.prepare('SELECT * FROM conversion').all(); + const engineModels = db.prepare('SELECT id, name FROM engine_model ORDER BY id').all(); + const lookupAll = db.prepare('SELECT id, name FROM lookup WHERE tbl = ?'); + const lookups = new Map(); + const fixes = loadRuleFixes(db); + h = { + db, meta, elements, errorCodes, conversions, engineModels, fileId: fileId(file), checkedAt: Date.now(), ...fixes, + errorWeight: new Map(errorCodes.map(e => [e.id, e.weight])), + /** One lookup list (make, model, drivetype, ...) held in memory after first use: id -> name. */ + lookup(tbl, id) { + let m = lookups.get(tbl); + if (!m) { m = new Map(lookupAll.all(tbl).map(r => [r.id, r.name])); lookups.set(tbl, m); } + return m.has(id) ? {name: m.get(id)} : undefined; + }, + q: { + wmi: db.prepare('SELECT * FROM wmi WHERE wmi = ?'), + wvs: db.prepare('SELECT ws.schema_id, ws.year_from, ws.year_to, ws.wmi_id, s.to_be_qced, s.valid_chars FROM wmi_vinschema ws JOIN vinschema s ON s.id = ws.schema_id WHERE ws.wmi_id = ?'), + patterns: db.prepare('SELECT id, keys, element_id, attribute_id, changed_us FROM pattern WHERE schema_id = ? ORDER BY id'), + makeModel: db.prepare('SELECT make_id FROM make_model WHERE model_id = ?'), + wmiMake: db.prepare('SELECT make_id FROM wmi_make WHERE wmi_id = ?'), + emp: db.prepare('SELECT * FROM engine_model_pattern WHERE engine_model_id = ? ORDER BY id'), + specPatterns: db.prepare(`SELECT DISTINCT sp.id AS id, s.to_be_qced AS tbq + FROM spec_schema s JOIN spec_schema_pattern sp ON s.id = sp.schema_id + JOIN spec_pattern p ON sp.id = p.spec_schema_pattern_id + JOIN spec_schema_model m ON m.schema_id = s.id + LEFT JOIN spec_schema_year y ON y.schema_id = s.id + JOIN wmi_make wm ON wm.make_id = s.make_id JOIN wmi w ON w.id = wm.wmi_id + WHERE w.wmi = ? AND s.vehicle_type_id = ? AND m.model_id = ? AND (y.year = ? OR y.id IS NULL) AND p.is_key = 1 + AND coalesce(s.to_be_qced, 0) = 0`), + specRows: db.prepare('SELECT p.*, sp.schema_id FROM spec_pattern p JOIN spec_schema_pattern sp ON sp.id = p.spec_schema_pattern_id WHERE p.spec_schema_pattern_id = ? ORDER BY p.id'), + defaults: db.prepare('SELECT * FROM default_value WHERE vehicle_type_id = ? AND default_value IS NOT NULL ORDER BY id'), + exception: db.prepare('SELECT 1 FROM vin_exception WHERE vin = ?'), + descriptor: db.prepare('SELECT model_year FROM vin_descriptor WHERE descriptor = ?'), + yearChars: db.prepare('SELECT chars FROM wmi_year_chars WHERE wmi = ? AND year = ?'), + }, + patternCache: new Map(), + pristineCache: new Map(), + }; + handles.set(file, h); + return h; +} + +/** The applied rule fixes recorded by the build (none in a file built without them, or before they existed). */ +function loadRuleFixes(db) { + const out = {fixBySchema: new Map(), fixBySpec: new Map(), fixEntries: new Map(), fixCount: 0}; + const has = t => !!db.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?").get(t); + if (!has('rule_fix') || !has('rule_fix_entry')) return out; + const specSchema = db.prepare('SELECT schema_id FROM spec_schema_pattern WHERE id = ?'); + for (const r of db.prepare('SELECT * FROM rule_fix ORDER BY fix_id, edit_no').all()) { + out.fixCount++; + if (r.tbl === 'pattern') { + if (!out.fixBySchema.has(r.schema_id)) out.fixBySchema.set(r.schema_id, []); + out.fixBySchema.get(r.schema_id).push(r); + } else if (r.tbl === 'spec_pattern') { + r.spec_schema_id = specSchema.get(r.spec_schema_pattern_id)?.schema_id ?? null; + if (!out.fixBySpec.has(r.spec_schema_pattern_id)) out.fixBySpec.set(r.spec_schema_pattern_id, []); + out.fixBySpec.get(r.spec_schema_pattern_id).push(r); + } else throw new Error(`rule_fix table ${r.tbl}`); + } + for (const e of db.prepare("SELECT * FROM rule_fix_entry WHERE status = 'applied'").all()) { + out.fixEntries.set(e.fix_id, {id: e.fix_id, case: e.fix_case, written_against: e.written_against, reason: e.reason, + evidence: JSON.parse(e.evidence), errors: JSON.parse(e.errors), reviewed: JSON.parse(e.reviewed)}); + } + return out; +} + +/** Release metadata of the local dataset, or null when it is missing. */ +export function vpicLocalInfo({file = VPIC_DB_FILE} = {}) { + try { + const h = open(file); + if (!h) return null; + let fixes = null; + try { fixes = h.meta.rule_fixes ? JSON.parse(h.meta.rule_fixes) : null; } catch { fixes = null; } + return {release: h.meta.release, release_name: h.meta.release_name, built_at: h.meta.built_at, nhtsa_dump_started: h.meta.nhtsa_dump_started || null, + rule_fixes: fixes ? {applied: fixes.applied, needs_review: fixes.needs_review, edits: h.fixCount} : {applied: 0, needs_review: 0, edits: 0}}; + } catch { return null; } +} + +/** Close cached handles (tests). */ +export function closeVpicLocal() { for (const h of handles.values()) h.db.close(); handles.clear(); } + +function schemaPatterns(h, schemaId, ctx) { + const fixes = h.fixBySchema.get(schemaId); + if (fixes) { + if (ctx.rules === 'pristine') return pristinePatterns(h, schemaId, fixes); + for (const f of fixes) ctx.touched.add(f.fix_id); + } + let rows = h.patternCache.get(schemaId); + if (rows) { h.patternCache.delete(schemaId); h.patternCache.set(schemaId, rows); return rows; } + rows = h.q.patterns.all(schemaId); + h.patternCache.set(schemaId, rows); + if (h.patternCache.size > 96) h.patternCache.delete(h.patternCache.keys().next().value); + return rows; +} + +/** A schema's rows as NHTSA published them: the recorded edits undone (modified rows restored, removed rows back, added rows gone). */ +function pristinePatterns(h, schemaId, fixes) { + let rows = h.pristineCache.get(schemaId); + if (rows) return rows; + const byId = new Map(h.q.patterns.all(schemaId).map(r => [r.id, r])); + for (const f of fixes) { + if (f.action === 'add') byId.delete(f.row_id); + else byId.set(f.row_id, {id: f.row_id, keys: f.orig_keys, element_id: f.element_id, attribute_id: f.orig_attribute_id, changed_us: f.orig_changed_us}); + } + rows = [...byId.values()].sort((a, b) => a.id - b.id); + h.pristineCache.set(schemaId, rows); + return rows; +} + +/** A vehicle-spec pattern's rows for the chosen rule view. */ +function specRows(h, specPatternId, ctx) { + const rows = h.q.specRows.all(specPatternId); + const fixes = h.fixBySpec.get(specPatternId); + if (!fixes) return rows; + if (ctx.rules !== 'pristine') { for (const f of fixes) ctx.touched.add(f.fix_id); return rows; } + const byId = new Map(rows.map(r => [r.id, r])); + for (const f of fixes) { + byId.set(f.row_id, {id: f.row_id, spec_schema_pattern_id: f.spec_schema_pattern_id, is_key: f.is_key, element_id: f.element_id, + attribute_id: f.orig_attribute_id, changed_us: f.orig_changed_us, schema_id: f.spec_schema_id}); + } + return [...byId.values()].sort((a, b) => a.id - b.id); +} + +// ---------------------------------------------------------------- small NHTSA functions + +/** fVinWMI: positions 1-3, plus 12-14 when position 3 is '9' (small manufacturers). */ +export function vinWmi(vin) { + let wmi = vin.length > 3 ? vin.slice(0, 3) : vin; + if (wmi.charAt(2) === '9' && vin.length >= 14) wmi += vin.slice(11, 14); + return wmi; +} + +/** fVinDescriptor: positions 1-11 (1-14 for '9' WMIs) with the check digit as '*'. */ +export function vinDescriptor(vin) { + let v = (vin.trim() + '*****************').slice(0, 17); + v = v.slice(0, 8) + '*' + v.slice(9); + return (v.charAt(2) === '9' ? v.slice(0, 14) : v.slice(0, 11)).toUpperCase(); +} + +const isCarLt = w => !!w && ([2, 7].includes(w.vehicle_type_id) || (w.vehicle_type_id === 3 && w.truck_type_id === 1)); + +/** fVinModelYear2: model year from position 10; negative when inconclusive (two 30-year cycles possible). */ +export function vinModelYear(vin, wmiRow, now = new Date()) { + vin = vin.toUpperCase(); + let my = null, conclusive = false; + if (vin.length >= 10) { + const c = vin.charAt(9), a = c.charCodeAt(0); + if (c >= 'A' && c <= 'H') my = 2010 + a - 65; + if (c >= 'J' && c <= 'N') my = 2010 + a - 65 - 1; + if (c === 'P') my = 2023; + if (c >= 'R' && c <= 'T') my = 2010 + a - 65 - 3; + if (c >= 'V' && c <= 'Y') my = 2010 + a - 65 - 4; + if (c >= '1' && c <= '9') my = 2031 + a - 49; + } + if (my !== null) { + const carLt = isCarLt(wmiRow); + const p7 = vin.charAt(6); + if (carLt && /^[0-9]$/.test(p7)) { my -= 30; conclusive = true; } + if (carLt && /^[A-Z]$/.test(p7)) conclusive = true; + if (my > now.getUTCFullYear() + 2) { my -= 30; conclusive = true; } + } + if (!conclusive) my = my === null ? null : -my; + return my; +} + +function checkDigitValue(ch) { + if (ch >= '0' && ch <= '9') return ch.charCodeAt(0) - 48; + return TRANSLIT[ch] ?? -1; +} +const RX_DEFAULT = /[a-h,j-n,p,r-z,0-9]/i, RX_MY = /[a-h,j-n,p,r-t,v-y,1-9]/i, RX_NUM = /[0-9]/i; +/** fVINCheckDigit (variant 1, used when correcting one position) and fVINCheckDigit2 (variant 2, decode). */ +export function vinCheckDigit(vin, {variant = 2, carMpvLt = false} = {}) { + if (vin.length !== 17) return ''; + let sum = 0; + for (let i = 1; i <= 17; i++) { + const ch = vin.charAt(i - 1); + let rx = RX_DEFAULT; + if (i === 10) rx = RX_MY; + else if (variant === 1 && (i === 13 || i === 14)) rx = vin.charAt(2) === '9' ? RX_DEFAULT : RX_NUM; + else if (variant === 2 && i === 13 && vin.charAt(2) !== '9' && carMpvLt) rx = RX_NUM; + else if (variant === 2 && i === 14 && vin.charAt(2) !== '9') rx = RX_NUM; + else if (i >= 15) rx = RX_NUM; + if (!rx.test(ch)) return '?'; + sum += checkDigitValue(ch.toUpperCase()) * WEIGHTS[i - 1]; + } + const rem = sum - 11 * Math.floor(sum / 11); + return rem === 10 ? 'X' : String(rem); +} + +/** fValidCharsInRegEx */ +function validCharsInRegex(cls) { + const s = cls.toUpperCase(); + if (!s.includes('-') && !s.includes('^')) return s.replace(/\]/g, '').replace(/\[/g, ''); + let rx; + try { rx = new RegExp(`^${s}$`); } catch { return ''; } + let out = ''; + for (const c of VALID_CHARS) if (rx.test(c)) out += c; + return out; +} +const keyCharsCache = new Map(); +/** fValidCharsInKey (strict): Map key position -> Set of explicit characters. */ +function validCharsInKey(key) { + let m = keyCharsCache.get(key); + if (m) return m; + m = new Map(); + const add = (p, c) => { if (!m.has(p)) m.set(p, new Set()); m.get(p).add(c); }; + let ind = 0, inside = false, start = 0; + for (let i = 1; i <= key.length; i++) { + const s = key.charAt(i - 1); + if (s === '[' && !inside) { inside = true; start = i; continue; } + if (!inside) { + ind++; + if (s === '#') { for (const d of '0123456789') add(ind, d); continue; } + if (s === '*') continue; + add(ind, s); + continue; + } + if (s === ']' && inside) { + ind++; + for (const c of validCharsInRegex(key.slice(start - 1, i))) if (c !== '*' && c !== '|') add(ind, c); + inside = false; start = 0; + } + } + if (keyCharsCache.size > 50000) keyCharsCache.clear(); + keyCharsCache.set(key, m); + return m; +} + +/** sqlwild_to_regex: the PostgreSQL port's regex for keys with a [class]. */ +function keysRegex(keys) { + let out = ''; + for (const ch of keys) { + if (ch === '*') out += '.'; + else if (ch === '[' || ch === ']') out += ch; + else if (ch === '|') out += '\\|'; + else if (/[\\.^$+?{}()]/.test(ch)) out += '\\' + ch; + else out += ch; + } + out = out.split('1-A').join('1A'); + return `^${out}.*`; +} +const regexCache = new Map(); +/** Does a pattern's keys match the VIN keys (positions 4-8 '|' 10-17)? LIKE ('*' and '_' one character, prefix) or regex. */ +function keysMatch(keys, varKeys) { + if (keys.includes('[')) { + let rx = regexCache.get(keys); + if (rx === undefined) { + try { rx = new RegExp(keysRegex(keys)); } catch { rx = null; } + if (regexCache.size > 50000) regexCache.clear(); + regexCache.set(keys, rx); + } + return rx ? rx.test(varKeys) : false; + } + return likePrefix(keys, varKeys, true); +} +/** `text LIKE replace(keys,'*','_') || '%'` */ +function likePrefix(keys, text) { + if (keys.length > text.length) return false; + for (let i = 0; i < keys.length; i++) { + const k = keys.charCodeAt(i); + if (k === 42 || k === 95) continue; // '*' -> '_', and '_' itself + if (k === 37) return true; // '%' (not used by NHTSA's keys, but LIKE semantics) + if (k !== text.charCodeAt(i)) return false; + } + return true; +} + +/** Do a pattern's keys match this VIN (positions 4-8, '|', 10-17)? (tests and rule-fix tooling) */ +export function keysMatchVin(keys, vin) { + const v = String(vin || '').toUpperCase(); + let varKeys = v.substr(3, 5); + if (v.length > 9) varKeys += '|' + v.substr(9, 8); + return keysMatch(String(keys || ''), varKeys); +} + +// ---------------------------------------------------------------- numbers (unit conversions) + +function parseDecimal(text) { + const m = /^\s*([+-]?)(\d*)(?:\.(\d*))?\s*$/.exec(String(text ?? '')); + if (!m || (m[2] === '' && (m[3] === undefined || m[3] === ''))) return null; + const int = m[2] || '0', frac = m[3] ?? ''; + return {neg: m[1] === '-', digits: BigInt(int + frac), scale: frac.length, hasPoint: m[3] !== undefined, intDigits: m[2].replace(/^0+/, '').length}; +} +function fmt(neg, digits, scale) { + let s = digits.toString().padStart(scale + 1, '0'); + if (scale > 0) s = s.slice(0, s.length - scale) + '.' + s.slice(s.length - scale); + return (neg && digits !== 0n ? '-' : '') + s; +} +/** PostgreSQL numeric weight (base 10000 digit groups) and first group of a decimal. */ +function pgWeight(d) { + const abs = d.digits.toString().padStart(d.scale + 1, '0'); + const intPart = abs.slice(0, abs.length - d.scale).replace(/^0+/, ''), frac = abs.slice(abs.length - d.scale); + if (intPart.length) { + const groups = Math.ceil(intPart.length / 4); + const first = intPart.slice(0, intPart.length - (groups - 1) * 4); + return {weight: groups - 1, first: Number(first)}; + } + const padded = frac.padEnd(Math.ceil(frac.length / 4) * 4, '0'); + for (let j = 0; j < padded.length / 4; j++) { + const g = Number(padded.slice(j * 4, j * 4 + 4)); + if (g !== 0) return {weight: -(j + 1), first: g}; + } + return {weight: 0, first: 0}; +} +const pow10 = n => 10n ** BigInt(n); +function divRound(num, den, roundHalfAway) { + const q = num / den, r = num % den; + if (!roundHalfAway || r === 0n) return q; + return 2n * (r < 0n ? -r : r) >= (den < 0n ? -den : den) ? q + ((num < 0n) !== (den < 0n) ? -1n : 1n) : q; +} +/** Evaluate one of vPIC's conversion formulas ("#x# / 0.016387064") the way the database would. */ +export function convert(formula, x, semantics = 'mssql') { + const f = /^\s*#x#\s*([*/])\s*(\d*\.?\d*)\s*$/.exec(String(formula || '')); + if (!f) return {ok: false, value: null, reason: 'unknown_formula'}; + const a = parseDecimal(x), b = parseDecimal(f[2]); + if (!a || !b) return {ok: true, value: '0', reason: 'not_a_number'}; // the SQL fails; NHTSA's code stores '0' + const neg = a.neg !== b.neg; + const sa = BigInt(a.neg ? -1 : 1) * a.digits, sb = b.digits; + if (semantics === 'pg') { + const aInt = !a.hasPoint, bInt = !b.hasPoint; + if (f[1] === '*') { + if (aInt && bInt) return {ok: true, value: (sa * sb).toString()}; + return {ok: true, value: fmt(neg, (a.digits * b.digits), a.scale + b.scale)}; + } + if (sb === 0n) return {ok: true, value: '0', reason: 'division_by_zero'}; + if (aInt && bInt) return {ok: true, value: (sa / sb).toString()}; + const w1 = pgWeight(a), w2 = pgWeight(b); + let qweight = w1.weight - w2.weight; + if (w1.first <= w2.first) qweight--; + let rscale = 16 - qweight * 4; + rscale = Math.min(Math.max(rscale, a.scale, b.scale, 0), 1000); + // a/b = (A/10^sa)/(B/10^sb) -> scaled by 10^rscale + const num = a.digits * pow10(b.scale + rscale), den = b.digits * pow10(a.scale); + return {ok: true, value: fmt(neg, divRound(num, den, true), rscale)}; + } + // SQL Server decimal rules: an integer literal is int (decimal(10,0) next to a decimal); a decimal literal's + // precision is its digit count. Multiplication is exact; division keeps max(6, s1 + p2 + 1) decimals, truncated. + const prec = d => (!d.hasPoint ? 10 : Math.max(d.intDigits + d.scale, d.scale, 1)); + const aInt = !a.hasPoint, bInt = !b.hasPoint; + if (f[1] === '*') { + if (aInt && bInt) return {ok: true, value: (sa * sb).toString()}; + return {ok: true, value: fmt(neg, a.digits * b.digits, a.scale + b.scale)}; + } + if (sb === 0n) return {ok: true, value: '0', reason: 'division_by_zero'}; + if (aInt && bInt) return {ok: true, value: (sa / sb).toString()}; + let scale = Math.max(6, a.scale + prec(b) + 1); + const p = prec(a) - a.scale + b.scale + scale; + if (p > 38) scale = Math.max(6, scale - (p - 38)); + const num = a.digits * pow10(b.scale + scale), den = b.digits * pow10(a.scale); + return {ok: true, value: fmt(neg, num / den, scale)}; +} + +// ---------------------------------------------------------------- ordering helpers + +/** DESC comparison of nullable numbers: pg puts NULL first, SQL Server last. */ +function descNull(a, b, semantics) { + if (a === b) return 0; + if (a === null || a === undefined) return semantics === 'pg' ? -1 : 1; + if (b === null || b === undefined) return semantics === 'pg' ? 1 : -1; + return b - a; +} +const cmpStr = (a, b) => (a < b ? -1 : a > b ? 1 : 0); + +// ---------------------------------------------------------------- the decode + +class Items { + constructor(pass) { this.pass = pass; this.list = []; this.seq = 0; } + add(o) { const it = {id: ++this.seq, pass: this.pass, changed: null, patternId: null, keys: null, schemaId: null, wmiId: null, tbq: null, ...o}; this.list.push(it); return it; } + byElement(el) { return this.list.filter(i => i.elementId === el); } + has(el) { return this.list.some(i => i.elementId === el); } +} + +function core(h, ctx, pass, modelYear, vin, modelYearSource, conclusive, error12) { + const {semantics, nowUs, stats} = ctx; + let returnCode = ''; + const varWmi = vinWmi(vin); + let varKeys = ''; + if (vin.length > 3) { varKeys = vin.substr(3, 5); if (vin.length > 9) varKeys += '|' + vin.substr(9, 8); } + const items = new Items(pass); + let correctedVin = null, errorBytes = null, unusedPositions = null; + const wmiRow = h.q.wmi.get(varWmi) || null; + const isPublic = wmiRow && wmiRow.public_us !== null && wmiRow.public_us <= nowUs; + const inYear = r => modelYear === null || (modelYear >= r.year_from && modelYear <= (r.year_to ?? 2999)); + let varModelId = null; + + if (!isPublic) { + returnCode += ' 7 '; correctedVin = ''; errorBytes = ''; + } else { + const wvs = h.q.wvs.all(wmiRow.id); + // 1. patterns of every schema linked to the WMI for the model year (one item per link), ordered by pattern id + const found = []; + for (const link of wvs) { + if (!inYear(link) || link.to_be_qced) continue; + for (const p of schemaPatterns(h, link.schema_id, ctx)) { + if (NOT_PATTERN_ELEMENTS.has(p.element_id)) continue; + const e = h.elements.get(p.element_id); + if (!e || e.decode === null || e.is_private === 1) continue; + if (!keysMatch(p.keys, varKeys)) continue; + found.push({p, link}); + } + } + found.sort((x, y) => x.p.id - y.p.id || x.link.year_from - y.link.year_from); + for (const {p, link} of found) { + items.add({changed: p.changed_us, patternId: p.id, keys: p.keys.toUpperCase(), schemaId: link.schema_id, wmiId: link.wmi_id, elementId: p.element_id, + attributeId: p.attribute_id, value: 'XXX', source: 'Pattern', priority: link.year_from, tbq: link.to_be_qced}); + } + // 2. engine model -> its patterns (chosen before ranking: priority, newest, last inserted) + const engines = items.byElement(18).sort((a, b) => b.priority - a.priority || descNull(a.changed, b.changed, semantics) || b.id - a.id); + if (engines.length) { + const em = engines[0]; + const name = String(em.attributeId ?? '').replace(/^ +| +$/g, '').toLowerCase(); + for (const m of h.engineModels) { + if (String(m.name ?? '').replace(/^ +| +$/g, '').toLowerCase() !== name) continue; + for (const p of h.q.emp.all(m.id)) { + if (!h.elements.has(p.element_id)) continue; + items.add({changed: p.changed_us, patternId: em.patternId, keys: em.keys, schemaId: em.schemaId, wmiId: wmiRow.id, elementId: p.element_id, + attributeId: p.attribute_id, value: 'XXX', source: 'EngineModelPattern', priority: 50}); + } + } + } + // 3. vehicle type, manufacturer, model year + if (wmiRow.vehicle_type_id !== null) { + const vt = h.lookup('vehicletype', String(wmiRow.vehicle_type_id)); + if (vt) items.add({changed: wmiRow.changed_us, keys: varWmi.toUpperCase(), wmiId: wmiRow.id, elementId: 39, attributeId: String(wmiRow.vehicle_type_id), + value: String(vt.name).toUpperCase(), source: 'VehType', priority: 100}); + } + let mfrId = null, mfrName = null; + if (wmiRow.manufacturer_id !== null) { + const m = h.lookup('manufacturer', String(wmiRow.manufacturer_id)); + if (m) { mfrId = String(wmiRow.manufacturer_id); mfrName = String(m.name).toUpperCase(); } + } + items.add({keys: varWmi.toUpperCase(), wmiId: wmiRow.id, elementId: 27, attributeId: mfrId, value: mfrName, source: 'Manu. Name', priority: 100}); + items.add({keys: varWmi.toUpperCase(), wmiId: wmiRow.id, elementId: 157, attributeId: mfrId, value: mfrId, source: 'Manu. Id', priority: 100}); + if (modelYear !== null) items.add({keys: modelYearSource, elementId: 29, attributeId: String(modelYear), value: String(modelYear), source: 'ModelYear', priority: 100}); + // 4. formula patterns ('#' = any digit; the value is the VIN's digits there) + const formulaKeys = varKeys.replace(/[0-9]/g, '#'); + const schemaIds = new Set(wvs.filter(inYear).map(l => l.schema_id)); + const formulas = []; + for (const sid of schemaIds) { + for (const p of schemaPatterns(h, sid, ctx)) { + if (!p.keys.includes('#') || NOT_PATTERN_ELEMENTS.has(p.element_id) || !h.elements.has(p.element_id)) continue; + if (!likePrefix(p.keys, formulaKeys)) continue; + formulas.push({p, sid}); + } + } + formulas.sort((x, y) => x.p.id - y.p.id); + for (const {p, sid} of formulas) { + const first = p.keys.indexOf('#') + 1, last = p.keys.length - [...p.keys].reverse().join('').indexOf('#'); + items.add({changed: p.changed_us, patternId: p.id, keys: p.keys, schemaId: sid, elementId: p.element_id, attributeId: p.attribute_id, + value: varKeys.substr(first - 1, last - first + 1), source: 'Formula Pattern', priority: 100}); + } + // 5. one value per element (except the multi-value notes) + const groups = new Map(); + for (const it of items.list) { + if (MULTI_VALUE.has(it.elementId)) continue; + if (!groups.has(it.elementId)) groups.set(it.elementId, []); + groups.get(it.elementId).push(it); + } + const drop = new Set(); + for (const [, g] of groups) { + if (g.length < 2) continue; + g.sort((a, b) => { + const r = b.priority - a.priority || descNull(a.changed, b.changed, semantics); + if (r) return r; + const ka = (a.keys ?? '').replace(/\*/g, ''), kb = (b.keys ?? '').replace(/\*/g, ''); + if (ka.length !== kb.length) return ka.length - kb.length; + const sa = (a.keys ?? '').replace(/[[\]]/g, ''), sb = (b.keys ?? '').replace(/[[\]]/g, ''); + if (sa !== sb) { if (stats) stats.collationTies = (stats.collationTies || 0) + 1; return ctx.collate(sa, sb); } + return a.id - b.id; + }); + for (const it of g.slice(1)) drop.add(it); + } + items.list = items.list.filter(it => !drop.has(it)); + // 6. make from the model (or the WMI's only make) + const model = items.byElement(28)[0]; + if (model) { + varModelId = Number.parseInt(model.attributeId, 10); + if (!Number.isInteger(varModelId) || String(varModelId) !== String(model.attributeId).trim()) throw new Error(`model attribute ${model.attributeId}`); + for (const mm of h.q.makeModel.all(varModelId)) { + const mk = h.lookup('make', String(mm.make_id)); + if (!mk) continue; + items.add({patternId: model.patternId, keys: model.keys, schemaId: model.schemaId, elementId: 26, attributeId: String(mm.make_id), value: String(mk.name).toUpperCase(), + source: 'pattern - model', priority: 1000}); + } + } else { + const makes = h.q.wmiMake.all(wmiRow.id).map(r => ({id: r.make_id, mk: h.lookup('make', String(r.make_id))})).filter(r => r.mk); + if (makes.length === 1) items.add({changed: wmiRow.changed_us, keys: varWmi, wmiId: wmiRow.id, elementId: 26, attributeId: String(makes[0].id), + value: String(makes[0].mk.name).toUpperCase(), source: 'Make', priority: -100}); + } + // 7. unit conversions (displacement L / CC / CI), first missing target wins + const convRows = []; + for (const it of items.list) for (const c of h.conversions) if (c.from_element_id === it.elementId && h.elements.has(c.to_element_id)) convRows.push({it, c}); + convRows.sort((x, y) => y.it.priority - x.it.priority || descNull(x.it.changed, y.it.changed, semantics) || x.c.id - y.c.id); + for (const {it, c} of convRows) { + if (items.has(c.to_element_id)) continue; + const formula = c.formula.split('#x#').join(it.attributeId ?? ''); + const r = convert(c.formula, it.attributeId, semantics); + if (!r.ok) { if (stats) stats.unknownFormula = (stats.unknownFormula || 0) + 1; continue; } + items.add({patternId: it.patternId, keys: it.keys, schemaId: it.schemaId, wmiId: it.wmiId, elementId: c.to_element_id, attributeId: r.value, value: r.value, + source: `Conversion ${c.id}: ${formula}`.slice(0, 50), priority: 100}); + } + // 8. vehicle-spec patterns of the make/model/year whose key values all match the decode so far + const vtItem = items.byElement(39)[0]; + const tVehicleType = vtItem ? Number(vtItem.attributeId) : null; + if (tVehicleType !== null && varModelId !== null) { + const cand = h.q.specPatterns.all(varWmi, tVehicleType, varModelId, modelYear); + const keep = []; + for (const sp of cand) { + const rows = specRows(h, sp.id, ctx); + let total = 0; const matched = new Set(); + for (const r of rows.filter(r => r.is_key === 1)) { + const hits = items.list.filter(d => d.elementId === r.element_id && String(d.attributeId ?? '').toLowerCase() === String(r.attribute_id ?? '').toLowerCase() && d.attributeId !== null && r.attribute_id !== null); + if (!hits.length) total += 1; else { total += hits.length; hits.forEach(d => matched.add(d.id)); } + } + if (total === matched.size) keep.push({sp, rows}); + } + const present = new Set(items.list.filter(d => !SPEC_REPEATABLE.has(d.elementId)).map(d => d.elementId)); + const byEl = new Map(); + const seen = new Set(); + for (const {sp, rows} of keep) { + for (const r of rows) { + if (r.is_key !== 0 || present.has(r.element_id)) continue; + const sig = `${r.schema_id}|${sp.id}|${r.element_id}|${r.attribute_id}|${r.changed_us}|${sp.tbq}`; + if (seen.has(sig)) continue; + seen.add(sig); + const row = {schemaId: r.schema_id, specPatternId: sp.id, elementId: r.element_id, attributeId: r.attribute_id, changed: r.changed_us, tbq: sp.tbq, rowId: r.id}; + const cur = byEl.get(r.element_id); + if (!cur) byEl.set(r.element_id, [row]); else cur.push(row); + } + } + for (const [el, rows] of byEl) { + rows.sort((a, b) => descNull(a.changed, b.changed, semantics) || a.rowId - b.rowId); + if (rows.length > 1 && rows[0].changed === rows[1].changed && rows[0].attributeId !== rows[1].attributeId && stats) stats.specTies = (stats.specTies || 0) + 1; + const r = rows[0]; + items.add({changed: r.changed, patternId: r.specPatternId, keys: '', schemaId: r.schemaId, elementId: el, attributeId: r.attributeId, value: 'XXX', source: 'Vehicle Specs', priority: -100, tbq: r.tbq}); + } + } + // 9. error codes from the characters the WMI's patterns allow + if (!items.list.some(i => i.patternId !== null)) { + returnCode += ' 8 '; correctedVin = ''; errorBytes = ''; + } else { + const e = errorCodeStep(h, vin, varWmi, modelYear, wvs, items); + returnCode = e.returnCode; correctedVin = e.correctedVin; errorBytes = e.errorBytes; unusedPositions = e.unusedPositions; + } + } + const body = items.byElement(5); + if (body.some(i => i.attributeId === '64')) returnCode += ' 9 '; + let isOffRoad = false; + if (body.some(i => OFFROAD_BODY.has(i.attributeId))) { returnCode += ' 10 '; isOffRoad = true; } + if (modelYear === null) returnCode += ' 11 '; + const vehicleType = items.byElement(39)[0]?.attributeId ?? null; + const isException = !!h.q.exception.get(vin); + let startPos = 13, carMpvLt = false; + if (vin.charAt(2) === '9') startPos = 15; + else if (isCarLt(wmiRow)) { startPos = 13; carMpvLt = true; } else startPos = 14; + let invalid = ''; + for (let j = 1; j <= vin.length; j++) { + if (j === 9 && (isOffRoad || isException)) continue; + let chr = vin.charAt(j - 1); + const bad = (j !== 9 && j < startPos && !/^[0-9ABCDEFGHJKLMNPRSTUVWXYZ*]$/.test(chr)) || (j !== 9 && j >= startPos && !/^[0-9*]$/.test(chr)) + || (j === 9 && !/^[0-9X*]$/.test(chr)) || (j === 10 && !/^[1-9ABCDEFGHJKLMNPRSTVWXY]$/.test(chr)); + if (bad) { + if (chr === '') chr = '_'; + if (correctedVin === '') correctedVin = vin; + invalid += `, ${j}:${chr}`; + if (correctedVin !== null) correctedVin = correctedVin.slice(0, j - 1) + '!' + correctedVin.slice(j, j + 100); + } + } + if (invalid) returnCode += ' 400 '; + if (error12) returnCode += ' 12 '; + // defaults for the vehicle type, for elements nothing decoded + if (vehicleType !== null && /^\d+$/.test(vehicleType)) { + const present = new Set(items.list.map(i => i.elementId)); + const seen = new Set(); + for (const dv of h.q.defaults.all(Number(vehicleType))) { + if (present.has(dv.element_id)) continue; + const e = h.elements.get(dv.element_id); + if (!e) continue; + const value = e.data_type === 'lookup' && dv.default_value === '0' ? 'Not Applicable' : 'XXX'; + const sig = `${dv.changed_us}|${dv.element_id}|${dv.default_value}|${value}`; + if (seen.has(sig)) continue; + seen.add(sig); + items.add({changed: dv.changed_us, elementId: dv.element_id, attributeId: dv.default_value, value, source: 'Default', priority: 10}); + } + } + if (vin.length < 17) returnCode += ' 6 '; + else { + const cd = vin.charAt(8), calc = vinCheckDigit(vin, {variant: 2, carMpvLt}); + if (cd !== calc && !isException) returnCode += ' 1 '; + } + let errors = returnCode.split(' 9 ').join('').split(' 10 ').join('').split(' 12 ').join('').replace(/^ +| +$/g, ''); + if (errors === '' || errors === '14') returnCode = ' 0 ' + returnCode; + const hasModel = items.list.some(i => i.elementId === 28); + if (returnCode.includes(' 0 ') && !hasModel) returnCode += ' 14 '; + let info = null; + const errText = id => h.errorCodes.find(e => e.id === id)?.additional_text ?? ''; + if (returnCode.includes(' 4 ')) info = errText(4); + if (returnCode.includes(' 5 ')) info = errText(5); + const append = (txt, nullable = false) => { + if (nullable === null) { info = null; return; } + info = ((info ?? '') + txt).replace(/^ +| +$/g, '').slice(0, 500); + }; + if (returnCode.includes(' 14 ')) { if (unusedPositions === null) info = null; else append(` Unused position(s): ${unusedPositions}. `); } + if (invalid) append(` Invalid character(s): ${invalid.slice(2)}. `); + if (vehicleType === '10' || body.some(i => INCOMPLETE_BODY.has(i.attributeId))) append(' Incomplete Vehicle Warning - Please be advised that the vehicle may have been altered and may not be an accurate representation of the vehicle in its current condition. '); + if (!conclusive) append(' The Model Year decoded for this VIN may be incorrect. If you know the Model year, please enter it and decode again to get more accurate information. '); + const codes = h.errorCodes.filter(e => returnCode.includes(` ${e.id} `)); + let messages = codes.length ? codes.map(e => (e.name + (isOffRoad && e.id === 1 ? ' NOTE: Disregard if this is an off-road vehicle PIN, as check digit calculation may not be accurate.' + : isException && e.id === 0 ? ' NOTE: Check Digit Exception - The check digit was given an exception based on data from the OEM indicating an error on production.' : '')).replace(/^ +| +$/g, '')).join('; ') : null; + if (messages !== null) messages = messages.slice(0, 500); + const errorCodes = codes.length ? codes.map(e => e.id).join(',') : null; + for (const [el, val] of [[142, correctedVin], [143, errorCodes], [191, messages], [144, errorBytes], [156, info], [196, vinDescriptor(vin)]]) { + items.add({keys: '', elementId: el, attributeId: val, value: val, source: 'Corrections', priority: 999}); + } + return {pass, modelYear, items: items.list, returnCode}; +} + +/** spvindecode_errorcode: characters the WMI allows per position (error codes 2-5) and unused positions (14). */ +function errorCodeStep(h, vin, varWmi, modelYear, wvs, items) { + let returnCode = '', correctedVin = '', errorBytes = '', unusedPositions = null; + vin = vin.replace(/^ +| +$/g, ''); + if (varWmi.length < 3) return {returnCode: ' 6 ', correctedVin, errorBytes, unusedPositions}; + let enc = modelYear === null ? null : h.q.yearChars.get(varWmi, modelYear)?.chars ?? null; + const allowed = new Map(); // position -> sorted string + if (enc !== null) { + enc.split(',').forEach((s, i) => { if (s) allowed.set(i + 4, s); }); + } else if (modelYear !== null) { + const acc = new Map(); + for (const l of wvs) { + if (!(modelYear >= l.year_from && modelYear <= (l.year_to ?? 2999)) || !l.valid_chars) continue; + l.valid_chars.split(',').forEach((s, i) => { if (!s) return; const p = i + 4; if (!acc.has(p)) acc.set(p, new Set()); for (const c of s) acc.get(p).add(c); }); + } + for (const [p, set] of acc) allowed.set(p, [...set].sort((a, b) => (a === '_' ? -1 : b === '_' ? 1 : cmpStr(a, b))).join('')); + } + const n = varWmi.length === 6 ? 11 : 14; + let corrected = '', replacements = '', cntErrors = 0, lastErrorPos = 0, lastReplacements = ''; + for (let i = 4; i <= n && i <= vin.length; i++) { + const c = vin.charAt(i - 1); + let r; + if (i === 9 || i === 10) r = c; + else { + const ok = allowed.get(i); + if (ok) { + if (ok.includes(c)) r = c; + else { r = '!'; replacements += `(${i}:${ok})`; cntErrors++; lastErrorPos = i; lastReplacements = ok; } + } else r = c; + } + corrected += r; + } + corrected = varWmi.length === 3 ? varWmi + corrected : varWmi.slice(0, 3) + corrected + varWmi.slice(-3); + if (vin.length > corrected.length) corrected += vin.substr(corrected.length, 3); + if (cntErrors === 1) { + if (lastReplacements.length === 1) { + returnCode += ' 2 '; + correctedVin = vin.slice(0, lastErrorPos - 1) + lastReplacements + vin.substr(lastErrorPos, 17 - lastErrorPos); + errorBytes = replacements; + } else { + let good = 0, newRepl = '', corrected1 = null; + for (const c of lastReplacements) { + const tmp = vin.slice(0, lastErrorPos - 1) + c + vin.substr(lastErrorPos, 17 - lastErrorPos); + if (tmp.charAt(8) === vinCheckDigit(tmp, {variant: 1})) { good++; newRepl += c; corrected1 = tmp; } + } + if (good === 1) { returnCode += ' 3 '; correctedVin = corrected1; errorBytes = `(${lastErrorPos}:${newRepl})`; } + else { returnCode += ' 4 '; correctedVin = corrected; errorBytes = `(${lastErrorPos}:${lastReplacements})`; } + } + } + if (cntErrors > 1) { returnCode += ' 5 '; correctedVin = corrected; errorBytes = replacements; } + // positions 4-8 and 11 that no decoded pattern names explicitly + const used = new Map(); + for (const it of items.list) { + if (!/pattern/i.test(it.source) || !it.keys) continue; + for (const [p, set] of validCharsInKey(it.keys)) { + if (!used.has(p)) used.set(p, new Set()); + for (const c of set) if (c !== '|') used.get(p).add(c); + } + } + const ubound = Math.min(11, vin.length); + const unused = []; + for (let i = 4; i <= ubound; i++) { + if (![4, 5, 6, 7, 8, 11].includes(i)) continue; + if (!used.get(i - 3)?.has(vin.charAt(i - 1))) unused.push(i); + } + if (unused.length) { returnCode += ' 14 '; unusedPositions = unused.join(','); } + return {returnCode, correctedVin, errorBytes, unusedPositions}; +} + +function errorValue(h, codes) { + if (codes === null || codes === undefined) return 0; + const set = new Set(String(codes).split(',')); + let w = 0, any = false; + for (const e of h.errorCodes) if (set.has(String(e.id))) { w += e.weight ?? 0; any = true; } + return any ? w : 0; +} + +/** The value the API shows for an item: lookups resolved the way felementattributevalue does. */ +function itemValue(h, it) { + let v = it.value; + if (v === 'XXX') { + const e = h.elements.get(it.elementId); + if (e && e.value_table) { + const row = it.attributeId === null ? null : h.lookup(e.value_table, String(it.attributeId)); + v = row ? row.name : null; + } else v = it.attributeId; + } + return v === null || v === undefined ? null : String(v).replace(/[\t\r\n]/g, ' '); +} + +/** + * Decode a VIN with the local vPIC copy. Options: {file, rules: 'fixed'|'pristine', semantics: 'mssql'|'pg', year, now, stats}. + * Returns {available:true, vin, release, rules, pass, model_year, conclusive, elements: [...], values: {Code: text}, + * rule_fixes} or {available:false, reason}. `rule_fixes` is null unless a fix changed a value for this VIN; then + * {changed: [{field, official_value, value, fix_ids}], fixes: [{id, case, reason, evidence, ...}]}, where + * official_value is what NHTSA's own rules give (the same decode with rules 'pristine'). + */ +export function decodeLocal(vinInput, {file = VPIC_DB_FILE, rules = 'fixed', semantics = 'mssql', year = null, now = new Date(), stats = null, collate = null} = {}) { + let h; + try { h = open(file); } catch (err) { return {available: false, reason: 'dataset_unreadable', error: err.message}; } + if (!h) return {available: false, reason: 'dataset_not_indexed'}; + if (rules !== 'fixed' && rules !== 'pristine') return {available: false, reason: 'decode_failed', error: `rules ${rules}`}; + try { + const vin = String(vinInput ?? '').replace(/^ +| +$/g, '').toUpperCase(); + if (vin.length > 17) return {available: false, reason: 'vin_too_long'}; + return h.db.transaction(() => { // one read lock per decode + const opts = {semantics, year, now, stats, collate}; + const d = decodeIn(h, vin, {...opts, rules}); + d.rule_fixes = null; + if (rules === 'fixed' && d.touched.size) d.rule_fixes = ruleFixDiff(h, d, decodeIn(h, vin, {...opts, rules: 'pristine'})); + delete d.touched; + return d; + })(); + } catch (err) { + return {available: false, reason: 'decode_failed', error: err.message}; + } +} + +/** Element codes a fixed element feeds through unit conversions (DisplacementCI -> DisplacementL, DisplacementCC). */ +function fedCodes(h, elementId) { + const codes = new Set([h.elements.get(elementId)?.code]); + for (const c of h.conversions) if (c.from_element_id === elementId) codes.add(h.elements.get(c.to_element_id)?.code); + return codes; +} + +/** Every field the fixed rules decode differently from NHTSA's own rules, with the fixes that were in reach. */ +function ruleFixDiff(h, fixed, pristine) { + const changed = []; + const touched = [...fixed.touched].filter(id => h.fixEntries.has(id)).sort(); + const edits = [...h.fixBySchema.values(), ...h.fixBySpec.values()].flat().filter(f => fixed.touched.has(f.fix_id)); + for (const k of LIVE_VALUE_KEYS) { + const a = pristine.values[k] ?? '', b = fixed.values[k] ?? ''; + if (a === b) continue; + let ids = [...new Set(edits.filter(f => fedCodes(h, f.element_id).has(k)).map(f => f.fix_id))].sort(); + if (!ids.length) ids = touched; // a knock-on change (a fixed value selected other vehicle-spec rows) + changed.push({field: k, official_value: a, value: b, fix_ids: ids}); + } + if (!changed.length) return null; + const used = [...new Set(changed.flatMap(c => c.fix_ids))].sort(); + return {release: h.meta.release, changed, fixes: used.map(id => h.fixEntries.get(id)).filter(Boolean), + note: 'mcp.vin rule fixes (reviewed edits of NHTSA\'s vPIC rule tables) changed these values; official_value is what NHTSA\'s own rules decode.'}; +} + +function decodeIn(h, vin, {rules, semantics, year, now, stats, collate}) { + { + const ctx = {rules, touched: new Set(), semantics, nowUs: now.getTime() * 1000, stats, collate: collate || cmpStr}; + const vLimit = now.getUTCFullYear() + 2; + const passes = []; + let conclusive = false, rmy = null, omy = null, dmy = null; + const wmiRow = h.q.wmi.get(vinWmi(vin)) || null; + if (semantics !== 'pg') { + const d = h.q.descriptor.get(vinDescriptor(vin)); + dmy = d ? d.model_year : null; + } + if (dmy !== null && dmy >= 1980 && dmy <= vLimit) { + conclusive = true; + const e12 = year !== null && year !== dmy; + passes.push(core(h, ctx, 1, dmy, vin, vinDescriptor(vin), conclusive, e12)); + } else { + rmy = vinModelYear(vin, wmiRow, now); + conclusive = true; + if (rmy !== null && rmy < 0) { omy = -rmy - 30; rmy = -rmy; conclusive = false; } + if (conclusive && rmy !== null) { + let alt = null; + if (rmy >= 1980 && rmy <= vLimit - 30) alt = rmy + 30; + else if (rmy >= 2010 && rmy <= vLimit) alt = rmy - 30; + if (alt !== null && alt !== rmy && wmiRow) { + const links = h.q.wvs.all(wmiRow.id); + const cnt = y => links.filter(l => y >= l.year_from && y <= (l.year_to ?? 2999)).length; + if (cnt(rmy) === 0 && cnt(alt) > 0) rmy = alt; + } + } + let do34 = true; + const myLabel = '***X*|Y'; + if (year !== null && year >= 1980 && year <= vLimit) { + if (year === rmy || year === omy) do34 = true; + else { + const p2 = core(h, ctx, 2, year, vin, String(year), true, true); + passes.push(p2); + do34 = p2.returnCode.includes(' 8 ') && rmy !== null; + } + } + if (do34) { + passes.push(core(h, ctx, 3, rmy, vin, year !== null && year >= 1980 && year <= vLimit && year !== rmy && year !== omy ? String(year) : myLabel, conclusive, + year !== null && rmy !== null && year !== rmy)); + if (omy !== null) passes.push(core(h, ctx, 4, omy, vin, myLabel, conclusive, year !== null && year !== omy)); + } + } + // best pass: fewest/lightest errors, then the heaviest decoded elements, then most pattern values, then year + const scored = passes.map(p => { + const ec = p.items.find(i => i.elementId === 143); + const ev = ec ? errorValue(h, ec.value) : null; + const wEls = new Map(); + for (const i of p.items) { + const e = h.elements.get(i.elementId); + if (e && e.weight !== null && (i.value ?? '') !== '') wEls.set(i.elementId, e.weight); + } + const ew = wEls.size ? [...wEls.values()].reduce((a, b) => a + b, 0) : null; + const pc = p.items.filter(i => PATTERN_SOURCES.has(i.source) && !['', 'Not Applicable'].includes(i.value ?? '')).length || null; + const myItem = p.items.find(i => i.elementId === 29); + const my = myItem ? Number(myItem.value) + (year !== null && Number(myItem.value) === year ? 10000 : 0) : null; + return {p, ev, ew, pc, my}; + }); + scored.sort((a, b) => descNull(a.ev, b.ev, semantics) || descNull(a.ew, b.ew, semantics) || descNull(a.pc, b.pc, semantics) || descNull(a.my, b.my, semantics)); + const best = scored[0].p; + const kept = best.items.filter(i => i.tbq !== true && i.tbq !== 1); + // output: public elements with a decode role + const elements = []; + for (const it of kept) { + const e = h.elements.get(it.elementId); + if (!e || !e.decode || e.is_private === 1) continue; + elements.push({element_id: e.id, code: e.code, name: e.name, value: itemValue(h, it), attribute_id: it.attributeId, source: it.source, + pattern_id: it.patternId, schema_id: it.schemaId, keys: it.keys, priority: it.priority, changed_us: it.changed, seq: it.id}); + } + return {available: true, vin, release: h.meta.release, release_name: h.meta.release_name, built_at: h.meta.built_at, semantics, rules, + rule_fixes_in_dataset: rules === 'fixed' ? h.fixEntries.size : 0, + pass: best.pass, model_year: best.modelYear, conclusive, passes: passes.length, elements, values: flatValues(h, vin, kept), touched: ctx.touched}; + } +} + +/** + * DecodeVinValues shape: the live API's keys, '' when nothing decoded. A multi-valued element (notes) lists its + * distinct values joined by ', ' as the live API does; the live API's order of those values is not stable (it + * follows no column), so they are given in decode order. + */ +function flatValues(h, vin, items) { + const byCode = new Map(); + for (const it of items) { + const e = h.elements.get(it.elementId); + if (!e || !e.code || e.is_private === 1 || !e.decode) continue; + if (!byCode.has(e.code)) byCode.set(e.code, []); + byCode.get(e.code).push(it); + } + const attr = el => items.find(i => i.elementId === el)?.attributeId ?? ''; + const out = {}; + for (const k of LIVE_VALUE_KEYS) { + if (k === 'VIN') { out.VIN = vin; continue; } + if (k === 'MakeID') { out.MakeID = String(attr(26) ?? ''); continue; } + if (k === 'ManufacturerId') { out.ManufacturerId = String(attr(27) ?? ''); continue; } + if (k === 'ModelID') { out.ModelID = String(attr(28) ?? ''); continue; } + const vals = []; + for (const it of byCode.get(k) || []) { + const v = itemValue(h, it); + if (v !== null && v !== '' && !vals.includes(v)) vals.push(v); + } + out[k] = vals.join(', '); + } + return out; +} diff --git a/lib/vpic-parse.mjs b/lib/vpic-parse.mjs new file mode 100644 index 0000000..b56ce4b --- /dev/null +++ b/lib/vpic-parse.mjs @@ -0,0 +1,100 @@ +/** + * The flat vPIC decode (DecodeVinValues keys) parsed into the report's categories. Shared by lib/nhtsa.mjs (every + * decode) and lib/decode-checks.mjs (the official values behind an mcp.vin rule fix). + */ + +/** + * Convert empty strings and "Not Applicable" to null, trim whitespace. + */ +export function clean(value) { + if (value === undefined || value === null) return null; + if (typeof value === 'string') { + const trimmed = value.trim(); + if (trimmed === '' || trimmed === 'Not Applicable') return null; + return trimmed; + } + return value; +} + +/** + * Parse a numeric string, returning null if not a valid number. + */ +export function num(value) { + const cleaned = clean(value); + if (cleaned === null) return null; + const n = Number(cleaned); + return Number.isNaN(n) ? null : n; +} + +/** + * Parse a NHTSA decoded result into categorized fields. + */ +export function parseDecodedResult(r) { + return { + vehicle: { + year: num(r.ModelYear), + make: clean(r.Make), + make_id: num(r.MakeID), + model: clean(r.Model), + model_id: num(r.ModelID), + trim: clean(r.Trim), + body_class: clean(r.BodyClass), + doors: num(r.Doors), + vehicle_type: clean(r.VehicleType), + }, + engine: { + type: clean(r.EngineModel), + cylinders: num(r.EngineCylinders), + displacement_cc: num(r.DisplacementCC), + displacement_l: num(r.DisplacementL), + hp: num(r.EngineHP), + fuel_type: clean(r.FuelTypePrimary), + fuel_injection: clean(r.FuelInjectionType), + turbo: clean(r.Turbo), + ev_type: clean(r.ElectrificationLevel), + battery_kwh: num(r.BatteryKWh), + }, + transmission: { + type: clean(r.TransmissionStyle), + speeds: num(r.TransmissionSpeeds), + drive_type: clean(r.DriveType), + }, + dimensions: { + gvwr: clean(r.GVWR), + gvwr_to: clean(r.GVWR_to), + curb_weight: num(r.CurbWeightLB), + wheel_base: num(r.WheelBaseShort), + track_width: num(r.TrackWidth), + }, + plant: { + city: clean(r.PlantCity), + state: clean(r.PlantState), + country: clean(r.PlantCountry), + company: clean(r.PlantCompanyName), + }, + safety: { + abs: clean(r.ABS), + esc: clean(r.ESC), + traction_control: clean(r.TractionControl), + tpms: clean(r.TPMS), + airbags_front: clean(r.AirBagLocFront), + airbags_side: clean(r.AirBagLocSide), + airbags_curtain: clean(r.AirBagLocCurtain), + airbags_knee: clean(r.AirBagLocKnee), + forward_collision_warning: clean(r.ForwardCollisionWarning), + lane_departure_warning: clean(r.LaneDepartureWarning), + lane_keeping: clean(r.LaneKeepSystem), + adaptive_cruise: clean(r.AdaptiveCruiseControl), + backup_camera: clean(r.RearVisibilitySystem) || clean(r.BackupCamera), + parking_assist: clean(r.ParkAssist), + blind_spot: clean(r.BlindSpotMon), + auto_emergency_braking: clean(r.CIB) || clean(r.AutomaticEmergencyBraking), + pedestrian_detection: clean(r.PedestrianAutomaticEmergencyBraking), + daytime_running_lights: clean(r.DaytimeRunningLight), + headlamp_type: clean(r.AdaptiveHeadlights), + pretensioner: clean(r.Pretensioner), + seat_belt_type: clean(r.SeatBeltsAll), + }, + raw: { ...r }, + }; +} diff --git a/package.json b/package.json index 08364a0..f8fe3de 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dev": "node --watch server.mjs --http --port 3200", "import:test-vehicles": "python3 scripts/import-tire-placards.py", "import:decode-evidence": "python3 scripts/import-decode-evidence.py", - "test": "node scripts/render-tool-directory.mjs --check && node --test tests/*.test.mjs && python3 tests/investigations_test.py && python3 tests/communications_storage_test.py && python3 tests/recall_labels_test.py && python3 tests/epa_test_cars_test.py && python3 tests/theft_rates_test.py && python3 tests/aala_test.py && python3 tests/fueleconomy_test.py && python3 tests/tire_placards_test.py" + "test": "node scripts/render-tool-directory.mjs --check && VPIC_LOCAL_DB=off node --test tests/*.test.mjs && python3 tests/vpic_import_test.py && python3 tests/investigations_test.py && python3 tests/communications_storage_test.py && python3 tests/recall_labels_test.py && python3 tests/epa_test_cars_test.py && python3 tests/theft_rates_test.py && python3 tests/aala_test.py && python3 tests/fueleconomy_test.py && python3 tests/tire_placards_test.py" }, "keywords": [ "vin", diff --git a/public/app.js b/public/app.js index 8b5a204..4bd2f39 100644 --- a/public/app.js +++ b/public/app.js @@ -237,11 +237,11 @@ function renderOverview(r) { ['Make', v.make], ['Model', v.model], ['Trim', v.trim], - ['Body Class', v.body_class], + ['Body Class', v.body_class, 'body'], ['Doors', v.doors], ['Vehicle Type', v.vehicle_type], ]; - $('#overview-body').innerHTML = rows.map(([l, v]) => dataRow(l, v)).join(''); + $('#overview-body').innerHTML = rows.map(([l, v, f]) => checkedRow(r, l, v, f)).join(''); } // ── Engine Card ── @@ -636,13 +636,17 @@ function renderRaw(r) { return; } - const entries = Object.entries(raw).filter(([, v]) => v && v !== '' && v !== 'Not Applicable'); + // raw_nhtsa is NHTSA's official decode; a value an mcp.vin rule fix changed is listed with the fixed value beside it. + const fixedBy = new Map(((r.vpic_rule_fixes && r.vpic_rule_fixes.changed) || []).map(c => [c.field, c])); + const entries = Object.entries(raw).filter(([k, v]) => (v && v !== '' && v !== 'Not Applicable') || fixedBy.has(k)); entries.sort((a, b) => a[0].localeCompare(b[0])); const filterInput = ``; - const tableRows = entries.map(([k, v]) => - `${esc(k)}${esc(String(v))}` - ).join(''); + const tableRows = entries.map(([k, v]) => { + const fx = fixedBy.get(k); + const note = fx ? ` mcp.vin rule fix (${esc((fx.fix_ids || []).join(', '))}): ${esc(fx.value || 'blank')}` : ''; + return `${esc(k)}${esc(String(v || (fx ? 'blank' : '')))}${note}`; + }).join(''); $('#raw-body').innerHTML = `${filterInput}${tableRows}
FieldValue
`; } diff --git a/public/car-sheet.js b/public/car-sheet.js index 1d652f2..5e25387 100644 --- a/public/car-sheet.js +++ b/public/car-sheet.js @@ -107,7 +107,7 @@ const CarSheet = (() => { const bed = num(raw.BedLengthIN) ? `${fmt(raw.BedLengthIN, 1)} in${present(raw.BedType) ? ', ' + raw.BedType : ''}` : null; const rows = [ row('Year', v.year), row('Make', makeName(v.make)), row('Model', v.model), row('Trim', v.trim), - row('Body', v.body_class), row('Cab', raw.BodyCabType), row('Bed', bed), row('Doors', num(v.doors)), checked(r, 'Seats', seats, 'seats'), + checked(r, 'Body', v.body_class, 'body'), row('Cab', raw.BodyCabType), row('Bed', bed), row('Doors', num(v.doors)), checked(r, 'Seats', seats, 'seats'), // The regulatory class repeats the body style: screen only on paper when the body is known (one-page print). row('Vehicle type', present(v.vehicle_type) ? sentence(v.vehicle_type) : null).replace('
', present(v.body_class) ? '
' : '
'), row('Manufacturer', present(raw.Manufacturer) ? titleCase(raw.Manufacturer) : null), diff --git a/public/decode-checks.js b/public/decode-checks.js index 2efa2a1..5bdc0f9 100644 --- a/public/decode-checks.js +++ b/public/decode-checks.js @@ -11,7 +11,7 @@ const DecodeChecks = (() => { const esc = v => String(v ?? '').replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); const MARKED = ['corrected', 'doubtful', 'filled']; const WORD = { corrected: 'Corrected', doubtful: 'Doubtful', filled: 'Filled in', confirmed: 'Confirmed', unverified: 'Not checked', unknown: 'Unknown' }; - const TIER = { owner: 'you', manufacturer_vin_record: 'the manufacturer’s record of this VIN', nhtsa_test_vehicle_pattern: 'NHTSA test vehicles with this VIN pattern', vpic_decode: 'the official decode', assumption: 'EPA’s list for this model year' }; + const TIER = { owner: 'you', manufacturer_vin_record: 'the manufacturer’s record of this VIN', mcp_vin_rule_fix: 'an mcp.vin rule fix', nhtsa_test_vehicle_pattern: 'NHTSA test vehicles with this VIN pattern', vpic_decode: 'the official decode', assumption: 'EPA’s list for this model year' }; const fields = r => (r && r.decode_checks && Array.isArray(r.decode_checks.fields) ? r.decode_checks.fields : []); const check = (r, field) => fields(r).find(f => f.field === field) || null; @@ -40,7 +40,10 @@ const DecodeChecks = (() => { * it is empty and nothing was filled. */ function valueHtml(r, field, officialText) { - const c = check(r, field), off = officialText === null || officialText === undefined ? '' : String(officialText); + const c = check(r, field); + // The report's values carry mcp.vin's rule fixes: for a field a fix changed, NHTSA's official value is c.original. + const given = c && byRuleFix(c) ? originalText(c) : officialText; + const off = given === null || given === undefined ? '' : String(given); if (!c || !MARKED.includes(c.status)) return esc(off); const tag = `${esc(WORD[c.status])}`; if (c.status === 'corrected') return `${esc(c.shown)} ${tag}official decode: ${esc(off || c.original || 'blank')}`; @@ -49,6 +52,14 @@ const DecodeChecks = (() => { return `${esc(off || 'blank')} ${tag}${other ? `${esc(other)}` : ''}`; } + /** Did an mcp.vin rule fix (a reviewed correction of NHTSA's vPIC rules) change this field? */ + function byRuleFix(c) { return !!(c && c.evidence && c.evidence.rule_fix); } + /** NHTSA's official value of a checked field, as text. */ + function originalText(c) { + if (c.original === null || c.original === undefined || c.original === '') return ''; + return c.field === 'engine_size' && !Number.isNaN(Number(c.original)) ? `${Number(c.original).toFixed(1)} L` : String(c.original); + } + /** The checked value of a field for display: corrected or filled value, else null (keep vPIC's). */ function checkedValue(r, field) { const c = check(r, field); @@ -64,7 +75,9 @@ const DecodeChecks = (() => { const cs = names.map(n => check(r, n)).filter(c => c && MARKED.includes(c.status)); if (!cs.length) return null; const top = ['corrected', 'doubtful', 'filled'].find(s => cs.some(c => c.status === s)); - const off = officialText ? String(officialText) : ''; + // officialText is built from the report's values, which carry any rule fix: then name NHTSA's values field by field. + const fixed = names.map(n => check(r, n)).filter(byRuleFix); + const off = fixed.length ? fixed.map(c => `${c.label.toLowerCase()} ${originalText(c) || 'blank'}`).join(', ') : officialText ? String(officialText) : ''; const tag = `${esc(WORD[top])}`; if (top === 'doubtful') { const other = cs.filter(c => c.status === 'doubtful').flatMap(c => (c.candidates || []).filter(x => x.tier !== 'vpic_decode').map(x => `${c.label.toLowerCase()} ${x.value_label} (${TIER[x.tier] || x.tier})`)).join('; '); @@ -80,7 +93,11 @@ const DecodeChecks = (() => { const dc = r && r.decode_checks; if (!dc || !Array.isArray(dc.fields)) return '

The decode checks are not available for this VIN.

'; const rows = dc.fields.filter(f => f.status !== 'unknown').map(f => { - const tests = (f.evidence && f.evidence.test_vehicles || []).filter(t => t.report_url && /^https:\/\/(nrd-static\.nhtsa\.dot\.gov|static\.nhtsa\.gov)\//.test(t.report_url)).slice(0, 3) + // NHTSA lab reports behind the field: an mcp.vin rule fix's evidence first, then the test vehicles of the pattern. + const fixEv = (f.evidence && f.evidence.rule_fix && f.evidence.rule_fix.fixes || []).flatMap(x => x.evidence || []).map(e => ({ report_url: e && e.url, test_no: e && e.test_no })); + const seen = new Set(); + const tests = [...fixEv, ...(f.evidence && f.evidence.test_vehicles || [])] + .filter(t => t.report_url && /^https:\/\/(nrd-static\.nhtsa\.dot\.gov|static\.nhtsa\.gov)\//.test(t.report_url) && !seen.has(t.report_url) && seen.add(t.report_url)).slice(0, 3) .map(t => `${t.test_no ? 'test ' + esc(t.test_no) : 'report'}`).join(', '); const value = f.status === 'corrected' ? `${esc(f.shown)} official decode: ${esc(f.original ?? 'blank')}` : f.status === 'filled' ? `${esc(f.shown)} official decode: ${f.original !== null && f.original !== undefined && f.original !== '' ? `${esc(f.original)}${f.field === 'powertrain' ? ', electrification blank' : ''}` : 'blank'}` : esc(f.shown ?? f.original ?? '—'); @@ -93,7 +110,8 @@ const DecodeChecks = (() => { : mfr.status === 'not_checked' ? 'the manufacturer’s record (not yet loaded)' : mfr.status === 'not_supported' ? null : 'the manufacturer’s record (not available for this VIN)'; const tv = s.test_vehicle_pattern || {}; const tvText = tv.status === 'used' ? `${esc(tv.vehicles)} NHTSA test vehicle${tv.vehicles === 1 ? '' : 's'} with VIN pattern ${esc(dc.pattern)}` : `NHTSA test vehicles (none with VIN pattern ${esc(dc.pattern || '?')})`; - const used = [mfrText, tvText, s.epa && s.epa.status === 'used' ? 'EPA’s configurations for this model year' : null].filter(Boolean).join('; '); + const fixText = s.rule_fixes && s.rule_fixes.status === 'used' ? `mcp.vin’s reviewed fixes of NHTSA’s vPIC rules (${esc((s.rule_fixes.ids || []).join(', '))}${s.rule_fixes.release ? `, vPIC release ${esc(s.rule_fixes.release)}` : ''})` : null; + const used = [mfrText, fixText, tvText, s.epa && s.epa.status === 'used' ? 'EPA’s configurations for this model year' : null].filter(Boolean).join('; '); return `
    ${rows}

Checked against ${used}. ${esc(dc.note || '')}

${formHtml(r)}`; } diff --git a/public/index.html b/public/index.html index 930f275..6d5abd1 100644 --- a/public/index.html +++ b/public/index.html @@ -442,4 +442,4 @@
-
+
diff --git a/public/llms-full.txt b/public/llms-full.txt index 11fe454..eb236e7 100644 --- a/public/llms-full.txt +++ b/public/llms-full.txt @@ -23,7 +23,7 @@ VIN recall status is separate from model-year campaigns. Tesla and Ford provide | Source | Data Provided | |--------|--------------| -| NHTSA vPIC | Make, model, year, trim, body class, engine specs, transmission, drive type, weight, plant info, 140+ decoded fields | +| NHTSA vPIC | Make, model, year, trim, body class, engine specs, transmission, drive type, weight, plant info, 140+ decoded fields. Decoded by mcp.vin's copy of NHTSA's decoder on NHTSA's monthly vPIC database (release named in `decode_source`), with reviewed fixes of NHTSA's rules where they are wrong; NHTSA's live API only as a fallback | | NHTSA Recalls | Model-year campaigns with component, summary, consequence, and remedy for the exact model name; campaigns NHTSA files under related model names (hybrid, spelling, family names) listed separately in related_models as may or may not apply; manufacturer build-date range per campaign (manufactured_from, manufactured_to) and campaign units affected from NHTSA's recall flat file; not VIN repair status | | NHTSA Complaints | Consumer complaints with crash, fire, injury, and death statistics | | NHTSA Safety Ratings | NCAP star ratings for overall, frontal, side, and rollover crash tests | @@ -66,10 +66,12 @@ Response fields: - `fuel_economy` (object): FuelEconomy.gov configuration match: city/highway/combined MPG (MPGe for EVs, see unit), annual fuel cost, CO2 tailpipe g/mi, EV range (all-electric range; for plug-in hybrids total_range is gas plus electric), charge time; match: exact, closest (summary and match_basis say what differs), same_rating (several configurations fit and share one combined figure, which is given; city/highway only when they agree; configurations[] and separated_by say what differs) or multiple_configurations (available false, reason ambiguous_variant, with mpg_range, configurations[] each with its own figures and a plain-words label, separated_by, configuration_count; the VIN does not say which); not matched: not_found, no_matching_variant, heavy_duty_not_rated.. Transmission choice: when the configurations the VIN fits differ only partly by transmission (EPA lists both an automatic and a manual), the VIN does not say which, and the ratings differ, the automatic configuration's figures are given (one, or several by the usual rules) and marked: `assumed: {transmission: 'automatic'}`, `summary` starting "Assuming an automatic transmission (the VIN does not say)", `transmission_choice` {chosen, basis: assumed | request | owner_stated, label, options, classified, configuration_counts, efids_all}, and `alternatives` [{for_transmission: 'manual', ...the manual configuration's figures}]. CVT, dual-clutch and automated-manual transmissions count as automatic. With `?transmission=manual` (or the MCP `transmission` argument) the manual figures are given instead, with `stated: {transmission, by: 'request'}` and the automatic in `alternatives`. The decode's own transmission always wins. Saved vehicles carry `owner_details` ({transmission} or null), set with PUT /api/user/vins/{id}/details EPA rates configurations, not individual cars - `tire_placard` (object): Tire size (with load index and speed symbol) and front/rear recommended cold pressure (psi and kPa) printed in NHTSA crash-test reports or FMVSS 110/138/537 compliance test reports for a vehicle NHTSA tested, same vPIC make and model, closest match. `scope: "nhtsa_test_vehicle"`, `vin_specific: false`, `match_kind`, `max_year_gap` (2). `vehicles` lists the closest tested vehicles with `tested_as`, `tires`, `cold_pressure_psi`, `cold_pressure_kpa`, `source` (`nhtsa_crash_test` or `nhtsa_compliance_test`), `report_url`, `report_label`, `test_no` (null for a compliance report), `report_number` and `fmvss` (compliance reports), `other_reports`, `confidence` (`high` = two reports agree, `normal` = one report) and `match {kind, tested_model_year, vin_model_year, year_gap, differences, generation_check}`. Kinds, closest first: `exact` (same model year, no visible difference in trim, series, body, drive or electrification), `nearest_model_year` (another tested year within 2; both years on a tie; `generation_check` compares Transport Canada wheelbases: `same_wheelbase` or `unknown`; a year with a different wheelbase, likely another generation, is never used, and when only such years were tested `reason: "other_generation_only"`), `different_variant` (same year, differences listed; also `engine`, `wheel_size`, `gvwr_class`, `cab` from the two vPIC decodes). Only the closest kind present is returned; among equally close vehicles those that match the VIN's vPIC wheel size, engine and cab are kept, else all of them (the set). `accuracy {kind, tire_size_right_pct, cold_pressure_right_pct, basis}`: how often this kind of match gave the vehicle's own value in mcp.vin's leave-one-out test (each of 2,382 NHTSA test vehicles held out and looked up). An empty list means not tested or not indexed within reach (`reason: "no_close_match"`), never zero; `available: false` means the index was not checked. A test vehicle whose known powertrain class (battery-electric or not, from vPIC) differs from the VIN's is never used (`reason: "other_powertrain_only"`). Values are never estimated, blended or averaged. A vehicle may carry `corrections`: a misprint in NHTSA's report corrected because it has a clear mechanical cause (psi printed under a kPa heading, the tire's sidewall maximum printed in the pressure row, a digit glitch in a tire size, front and rear swapped) and an independent check confirmed the corrected value (the same report prints it elsewhere, or another report of the same test vehicle or of the same model generation and version does). Each is `{corrected: true, field, rule, printed, value, note, confirmed_by: [{check, detail, report, report_url}]}`; the vehicle's `tires` and `cold_pressure_*` are the corrected values, `printed` is what the report shows. A placard pressure is corrected only to a value printed in that report or another report of the same vehicle, never computed. Misprints that could not be confirmed stay excluded. The owner's own door placard governs; it can differ by year, trim and tire size. - `test_vehicle_specs` (object): Capacities and weights printed in the same reports, same closest-match rule and `match` object, preferring a tested vehicle with the VIN's electrification. Each vehicle: `fuel_tank` (usable standard tank: `litres`, `gallons`, `printed`; with `correction` when the report printed US gallons under a litres heading and the gallons reading is confirmed by another tested vehicle of the same generation or the measured weight), `fuel_tank_optional`, `payload_vehicle_capacity_weight`, `seating`, `gvwr`, `gawr_front`, `gawr_rear` (kg and lb; `printed` keeps the label's unit as printed; with `correction` when the label value was printed under the wrong unit, pounds under a kg heading or the reverse, and the corrected reading fits the measured weight and the other label values while the printed one does not) and `curb_weight_as_delivered` (total, front, rear, `front_percent`). Compliance-tested vehicles give `seating` as `{total}` only and may combine several reports of one test vehicle (`other_reports`; `field_reports` names the report of each value). `fuel_tank` summary: `shown`, `best_guess` (true unless the match is exact), `values` (one entry per distinct tank of the closest tested vehicles; never averaged), `optional_tank_listed`, `model_tank_sizes` (when this model's tested vehicles list more than one tank), or `reason: "different_electrification"` when the closest tested vehicle is a hybrid, plug-in or not where the VIN differs (no tank shown). The tank comes from the closest tested vehicle that lists one, with its own `match` and `report_url`. `values_differ` (when equally close tested vehicles print different values: `payload`, `seating`, `gvwr`, each a list of `{value, tested_as, model_year, report_url}`; show all, do not pick one). GVWR and GAWR are given only from a tested vehicle of the same version; otherwise the vehicle has `withheld {fields, reason: "different_version", note}` (another version's GVWR was right in about 4 of 10 test cases). `accuracy` (block) and `fuel_tank.accuracy`: right-percentages of this kind of match in the same leave-one-out test. `stopping_distance`: FMVSS 135 brake compliance test of the closest tested vehicle with one: `lightly_loaded` and `fully_loaded_gvwr` stop from 100 km/h (`m` as printed, `ft` converted), `maximum_speed_kmh`, `match`, report link; one vehicle's compliance test, not a rating; `shown: false, reason: "no_brake_test_in_reach"` when none is indexed. NHTSA's test vehicle, not this VIN; the owner's own labels and manual govern. -- `decode_checks` (object): Checks on the official decode (NHTSA vPIC), which describes a VIN pattern, not this vehicle. `pattern` (VIN positions 1-8, 10, 11), `fields[]` with `field` (drive, engine_size, cylinders, powertrain, transmission, speeds, seats, gvwr_class), `original` (vPIC's text, never changed), `original_value`, `shown`, `shown_value`, `status` (`confirmed`, `corrected`, `doubtful`, `filled`, `unverified`, `unknown`), `basis` (evidence tier), `rule`, `note`, `evidence` (`test_vehicles[]` with `test_no`, `report_url`, `value`, `source`; `epa` with `lists_decoded_value`, `model_names`), `candidates[]` (each tier's value, for doubts) and `matching` (`checked_value`, `widened` = the matchers return the range, `official_value`). `precedence`: `owner` > `manufacturer_vin_record` > `nhtsa_test_vehicle_pattern` > `vpic_decode` > `assumption`. `sources.manufacturer_record.status`: `used`, `not_checked` (the VIN page, drawn before the maker replies), `not_available`, `not_supported`. Corrected = the manufacturer's record of this VIN, two or more NHTSA test vehicles with the same pattern that agree, or one test vehicle plus EPA listing its value and not vPIC's. Doubtful = a source disagrees without settling it, EPA lists no such value or combination for the model year, vPIC says "2WD/4WD", or an impossible combination. Filled = vPIC blank; from a test vehicle or from EPA's only value for the model year. vPIC error rates measured on 2,454 NHTSA test vehicles: drive 0.8%, displacement 0.2%, cylinders 0.3%, electrification 0.3%, transmission 0.1-0.6%, speeds 3.4%, seats 4.8%, GVWR class 0.7%. MCP `decode_vin` returns a shorter form (per field status, official, checked, basis, rule, note, matching, up to two report links). +- `decode_checks` (object): Checks on the official decode (NHTSA vPIC), which describes a VIN pattern, not this vehicle. `pattern` (VIN positions 1-8, 10, 11), `fields[]` with `field` (drive, engine_size, cylinders, powertrain, transmission, speeds, seats, gvwr_class), `original` (vPIC's text, never changed), `original_value`, `shown`, `shown_value`, `status` (`confirmed`, `corrected`, `doubtful`, `filled`, `unverified`, `unknown`), `basis` (evidence tier), `rule`, `note`, `evidence` (`test_vehicles[]` with `test_no`, `report_url`, `value`, `source`; `epa` with `lists_decoded_value`, `model_names`), `candidates[]` (each tier's value, for doubts) and `matching` (`checked_value`, `widened` = the matchers return the range, `official_value`). `precedence`: `owner` > `manufacturer_vin_record` > `mcp_vin_rule_fix` > `nhtsa_test_vehicle_pattern` > `vpic_decode` > `assumption`. A field an mcp.vin rule fix changed is `corrected` with basis `mcp_vin_rule_fix`, `original` = NHTSA's official value, and `evidence.rule_fix` (`changed`, `fixes` with reason and NHTSA report links); `sources.rule_fixes.status`: `used`, `none_for_vin` or `not_applied` (a live-API decode). `sources.manufacturer_record.status`: `used`, `not_checked` (the VIN page, drawn before the maker replies), `not_available`, `not_supported`. Corrected = the manufacturer's record of this VIN, two or more NHTSA test vehicles with the same pattern that agree, or one test vehicle plus EPA listing its value and not vPIC's. Doubtful = a source disagrees without settling it, EPA lists no such value or combination for the model year, vPIC says "2WD/4WD", or an impossible combination. Filled = vPIC blank; from a test vehicle or from EPA's only value for the model year. vPIC error rates measured on 2,454 NHTSA test vehicles: drive 0.8%, displacement 0.2%, cylinders 0.3%, electrification 0.3%, transmission 0.1-0.6%, speeds 3.4%, seats 4.8%, GVWR class 0.7%. MCP `decode_vin` returns a shorter form (per field status, official, checked, basis, rule, note, matching, up to two report links). - `recall_status.manufacturer_description` (object): Where the maker's VIN recall reply names the vehicle (Volkswagen, Audi, Land Rover, Jaguar, Subaru, Honda/Acura): `text` (raw), `reply_field`, `model_year`, `truncated` (Land Rover and Jaguar cut at 40 characters), `parsed` (only what the text states: `engine_size_l`, `cylinders`, `powertrain`, `transmission`, `drive`, `body`, `doors`, `trim`), `not_parsed`, `source {provider, url, retrieved_at}`. `available: false` with `reason` (`not_in_reply`, `not_supplied_by_manufacturer`) otherwise. No extra request: the same reply as the recall status. - `photos` (object): URLs for front, rear, side, interior, and detail vehicle photos -- `raw_nhtsa` (object): Full 140+ field NHTSA decode +- `raw_nhtsa` (object): Full 140+ field NHTSA decode: NHTSA's official values (NHTSA's own rules), even where an mcp.vin rule fix changed a value in `vehicle`, `engine` or `transmission` +- `decode_source` (object): Which decoder answered. `source`: `mcp_vin_vpic_local` (NHTSA's decode algorithm run by mcp.vin on NHTSA's monthly vPIC database) or `nhtsa_vpic_api` (NHTSA's live API, a fallback); `vpic_release` (e.g. `2026_11`, or `live`); `rules` (`nhtsa_with_mcp_vin_rule_fixes` or `nhtsa`); `rule_fixes_in_dataset`; `rule_fixes_changed_this_vin`; `fallback_reason` (null, or why the live API was used: `wmi_unknown`, `no_model`, `model_year_newer_than_release`, `dataset_not_indexed`, `decode_failed`); `live_api: "failed"` when the fallback did not answer and the local decode is shown. +- `vpic_rule_fixes` (object, only when a fix changed this VIN): `changed[]` (`field` = vPIC field name, `official_value` = what NHTSA's own rules decode, `value` = mcp.vin's, `fix_ids`), `fixes[]` (`id`, `case`, `reason`, `evidence` = NHTSA lab report links, `written_against` release, `reviewed`), `release`. A rule fix is a reviewed edit of NHTSA's vPIC rule tables for a VIN pattern NHTSA decodes wrong (list: https://github.com/keptlive/vin-mcp/blob/main/docs/vpic-rule-fixes.md). Live-API decodes carry none. Rate limit: 30 requests/minute per IP diff --git a/scripts/check-vpic-rule-fixes.mjs b/scripts/check-vpic-rule-fixes.mjs new file mode 100644 index 0000000..8b60a7c --- /dev/null +++ b/scripts/check-vpic-rule-fixes.mjs @@ -0,0 +1,71 @@ +#!/usr/bin/env node +/** + * Check mcp.vin's rule fixes against a built data/vpic.db (run after every monthly refresh): + * needs_review the build did not apply the fix: NHTSA changed a row it names (see `problem`) + * official_changed NHTSA's own rules no longer decode the value the fix was written against for its test VINs + * (NHTSA may have fixed it, or changed something nearby): review the fix + * fix_not_effective the fixed rules do not give the fixed value for its test VINs (another row now outranks it) + * ok every test VIN decodes as reviewed: NHTSA's value on NHTSA's rules, ours on the fixed rules + * The test VINs and values are the `checks` of each entry in data-src/vpic-rule-fixes.jsonl (NHTSA test vehicles). + * + * Usage: node scripts/check-vpic-rule-fixes.mjs [--db data/vpic.db] [--changeset data-src/vpic-rule-fixes.jsonl] [--json] + * Exit 0 when every fix is ok, 1 otherwise. + */ +import Database from 'better-sqlite3'; +import {readFileSync} from 'node:fs'; +import {fileURLToPath} from 'node:url'; +import {decodeLocal} from '../lib/vpic-local.mjs'; + +export const CHANGESET_FILE = fileURLToPath(new URL('../data-src/vpic-rule-fixes.jsonl', import.meta.url)); + +/** One result per changeset entry: {id, status, problems[]}. `ids` limits the check to some entries. */ +export function checkRuleFixes({db, changeset = CHANGESET_FILE, ids = null} = {}) { + const entries = readFileSync(changeset, 'utf8').split('\n').filter(l => l.trim()).map(l => JSON.parse(l)).filter(e => !ids || ids.includes(e.id)); + const sdb = new Database(db, {readonly: true, fileMustExist: true}); + const has = !!sdb.prepare("SELECT 1 FROM sqlite_master WHERE name = 'rule_fix_entry'").get(); + const built = new Map(has ? sdb.prepare('SELECT fix_id, status, problem FROM rule_fix_entry').all().map(r => [r.fix_id, r]) : []); + sdb.close(); + const out = []; + for (const e of entries) { + const b = built.get(e.id); + if (!b) { out.push({id: e.id, status: 'needs_review', problems: ['not in this build (built without rule fixes, or from another changeset)']}); continue; } + if (b.status !== 'applied') { out.push({id: e.id, status: 'needs_review', problems: [b.problem || b.status]}); continue; } + const problems = []; + let status = 'ok'; + if (!Array.isArray(e.checks) || !e.checks.length) { out.push({id: e.id, status: 'no_checks', problems: ['the entry has no test VINs to check']}); continue; } + for (const c of e.checks) { + const fixed = decodeLocal(c.vin, {file: db}), pristine = decodeLocal(c.vin, {file: db, rules: 'pristine'}); + if (!fixed.available || !pristine.available) { problems.push(`${c.vin}: decode failed (${fixed.reason || pristine.reason})`); status = 'fix_not_effective'; continue; } + for (const [field, want] of Object.entries(c.fields || {})) { + const off = pristine.values[field], ours = fixed.values[field]; + if (off !== want.official_value) { + problems.push(`${c.vin} ${field}: NHTSA's rules now give ${JSON.stringify(off)}, the fix was written against ${JSON.stringify(want.official_value)}`); + if (status === 'ok') status = 'official_changed'; + } + if (ours !== want.fixed_value) { + problems.push(`${c.vin} ${field}: the fixed rules give ${JSON.stringify(ours)}, expected ${JSON.stringify(want.fixed_value)}`); + status = 'fix_not_effective'; + } + } + } + out.push({id: e.id, status, problems}); + } + return out; +} + +async function main() { + const args = process.argv.slice(2); + const opt = (n, d) => { const i = args.indexOf(n); return i < 0 ? d : args[i + 1]; }; + const db = opt('--db', fileURLToPath(new URL('../data/vpic.db', import.meta.url))); + const res = checkRuleFixes({db, changeset: opt('--changeset', CHANGESET_FILE)}); + const counts = {}; + for (const r of res) counts[r.status] = (counts[r.status] || 0) + 1; + if (args.includes('--json')) console.log(JSON.stringify({db, counts, results: res}, null, 1)); + else { + console.log(`rule fixes in ${db}: ${JSON.stringify(counts)}`); + for (const r of res.filter(r => r.status !== 'ok')) console.log(` ${r.id} ${r.status}: ${r.problems.join('; ')}`); + } + process.exit(res.every(r => r.status === 'ok') ? 0 : 1); +} + +if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) await main(); diff --git a/scripts/import-vpic.py b/scripts/import-vpic.py new file mode 100755 index 0000000..bd55f3e --- /dev/null +++ b/scripts/import-vpic.py @@ -0,0 +1,692 @@ +#!/usr/bin/env python3 +"""Build data/vpic.db: the part of NHTSA's standalone vPIC database that VIN decoding needs (lib/vpic-local.mjs). + +NHTSA publishes the whole vPIC database every month ("vPICList_lite_YYYY_MM", https://vpic.nhtsa.dot.gov/api/, +"Standalone vPIC database"). The PostgreSQL edition is a plain SQL dump: table data as COPY blocks plus NHTSA's +own decode functions (spvindecode). This script reads that dump directly -- no database server is needed -- and +writes a compact SQLite file holding the decode tables only: + + VIN patterns and schemas (per WMI and model-year range), WMIs, elements and their lookup lists, make/model, + engine-model patterns, unit conversions, vehicle-spec patterns, default values, check-digit exceptions, + VIN descriptors, error codes, and a compact form of the valid-character table used for error codes 2-5 and 14. + +Left out: rows no decode can read (patterns of private NCSA elements without a '#' formula, elements with no +decode role, the WMI rows 26/27/29/39 that the pattern step skips) and the 8.8 million-row valid-character +table, which is folded into one string per WMI and year. The valid characters each schema's patterns allow are +precomputed (the fallback NHTSA uses when the cached table has no row for a WMI and year), so the left-out +pattern rows still count there. + +NHTSA's decode functions are fingerprinted (SHA-256 of each function body in the dump). The interpreter was +written against the fingerprints in ALGORITHM_FINGERPRINTS below; when a new release changes any of them the +build stops (exit 3) unless --accept-algorithm-change is given, because the decode logic itself moved and +lib/vpic-local.mjs must be reviewed first. + +mcp.vin's rule fixes: after the NHTSA tables are written, the reviewed changeset data-src/vpic-rule-fixes.jsonl is +applied to them (edits of NHTSA's own rule rows: change a pattern's value or keys, remove a wrong row, add a narrower +row). Each entry names the exact original rows; an entry is applied only when every original row (and every row it +relies on, `premise`) is unchanged in this release, otherwise nothing of it is applied and it is reported as +needs_review. Applied edits are recorded in rule_fix (with the original row), so the interpreter can decode with +NHTSA's pristine rules too (parity tests, and the official value a fix changed). --no-rule-fixes leaves them out. + +Usage: + python3 scripts/import-vpic.py --dump /path/to/vPICList_lite_2026_11.plain.zip (or the unzipped .sql) + [--out data/vpic.db] [--release 2026_11] [--accept-algorithm-change] [--rule-fixes FILE | --no-rule-fixes] + python3 scripts/import-vpic.py --reapply-rule-fixes data/vpic.db [--rule-fixes FILE] + (undo the recorded fixes of an existing file and apply the changeset again, without the dump) +The file is built next to the target and renamed into place; a failure leaves the previous file untouched. +Exit status 4 when an entry of the changeset needs review (the file is still written, without that entry).""" +from pathlib import Path +import argparse, datetime as dt, hashlib, io, json, os, re, sqlite3, sys, time, zipfile + +ROOT = Path(__file__).resolve().parent.parent +TARGET = ROOT / 'data/vpic.db' +RULE_FIXES = ROOT / 'data-src/vpic-rule-fixes.jsonl' +SCHEMA_VERSION = 1 + +# SHA-256 of each decode function's text in the vPICList_lite_2026_11 dump (print with --print-fingerprints). +# lib/vpic-local.mjs reproduces exactly these; a different fingerprint means NHTSA changed the algorithm. +ALGORITHM_FINGERPRINTS = { + 'spvindecode': 'f7ca4420f5ea644e3e6f534bf629cb716b0ebba22d34290b35b6075dcd5205dc', + 'spvindecode_core': '629f4d73bd21da053ef914dbe2f5504c1fdc13a01d56b0d5d62d26edb546801e', + 'spvindecode_errorcode': '30f2ea18ae708c85e474eb27284acf1306c3162d1cdd5c455a2f66fd5c299c53', + 'felementattributevalue': '699b5d1f487725e492f07a4d904219231bc03415a6ccfbbaea33e1366745d9e5', + 'ferrorvalue': 'ea39e61e2b43db774dd47087e8173f2cf4ed9b992ff081bbc9a28a6c4ae2bd50', + 'fextractvalidcharsperwmiyear': 'aee612a4e4d684ecb280c6b6366f2510fd158027d1103cd9e2fcd14d4a7a2c18', + 'fvalidcharsinkey': 'df5cfb7175fbe48709fe292a074ea88cebc069dae43356d8cfeeee4fcc1c2866', + 'fvalidcharsinregex': 'e3e35908288f1db5f712279c8a201830e5508b5967ab84d12dbe927eca7d9787', + 'fvincheckdigit': '4a9250e784d7af06217385058a6025bf71833fdd43103589bb9cc49106f583a3', + 'fvincheckdigit2': '24ff35ba635ad0a9acd19674caca6cc4ff67655cad2ed03b750496ee13181eed', + 'fvindescriptor': '42ccb32d54ee910782879a04e3ea0e7f70ffcc05fd563eb86db660f787d71350', + 'fvinmodelyear2': '9e3bbe28adb479029d9c07afa7ce71f92306788be8fdb8c655b6c6d16883902f', + 'fvinwmi': '1cda913f7a2ea78b673040a9bef110214433d7d3dc481361e47d284d8e818a00', + 'sqlwild_to_regex': '09194d38e9c8cf652283b1c77ff1d2d833ebe7f46cf6df9c884e3e9d464659a2', +} +FUNCTIONS = ['spvindecode', 'spvindecode_core', 'spvindecode_errorcode', 'felementattributevalue', 'ferrorvalue', + 'fextractvalidcharsperwmiyear', 'fvalidcharsinkey', 'fvalidcharsinregex', 'fvincheckdigit', 'fvincheckdigit2', + 'fvindescriptor', 'fvinmodelyear2', 'fvinwmi', 'sqlwild_to_regex'] + +# Tables read from the dump: name -> columns kept (dump column names). +TABLES = { + 'pattern': ['id', 'vinschemaid', 'keys', 'elementid', 'attributeid', 'createdon', 'updatedon'], + 'wmi': ['id', 'wmi', 'manufacturerid', 'makeid', 'vehicletypeid', 'createdon', 'updatedon', 'publicavailabilitydate', 'trucktypeid'], + 'wmi_vinschema': ['wmiid', 'vinschemaid', 'yearfrom', 'yearto'], + 'vinschema': ['id', 'name', 'tobeqced'], + 'element': ['id', 'name', 'code', 'lookuptable', 'isprivate', 'groupname', 'datatype', 'decode', 'weight'], + 'make_model': ['makeid', 'modelid'], + 'wmi_make': ['wmiid', 'makeid'], + 'enginemodel': ['id', 'name'], + 'enginemodelpattern': ['id', 'enginemodelid', 'elementid', 'attributeid', 'createdon', 'updatedon'], + 'conversion': ['id', 'fromelementid', 'toelementid', 'formula'], + 'vehiclespecschema': ['id', 'makeid', 'vehicletypeid', 'tobeqced'], + 'vehiclespecschema_model': ['vehiclespecschemaid', 'modelid'], + 'vehiclespecschema_year': ['id', 'vehiclespecschemaid', 'year'], + 'vspecschemapattern': ['id', 'schemaid'], + 'vehiclespecpattern': ['id', 'vspecschemapatternid', 'iskey', 'elementid', 'attributeid', 'createdon', 'updatedon'], + 'defaultvalue': ['id', 'elementid', 'vehicletypeid', 'defaultvalue', 'createdon', 'updatedon'], + 'vinexception': ['vin', 'checkdigit'], + 'vindescriptor': ['descriptor', 'modelyear'], + 'errorcode': ['id', 'name', 'additionalerrortext', 'weight'], + 'wmiyearvalidchars': ['wmi', 'year', 'position', 'char'], +} +VALID_CHARS = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789' +POSITIONS = range(4, 15) # VIN positions the error-code step checks (4-14) + + +def unescape_copy(field): + """PostgreSQL COPY text format: \\N is NULL; backslash escapes.""" + if field == '\\N': + return None + if '\\' not in field: + return field + out, i, n = [], 0, len(field) + simple = {'b': '\b', 'f': '\f', 'n': '\n', 'r': '\r', 't': '\t', 'v': '\v', '\\': '\\'} + while i < n: + c = field[i] + if c != '\\' or i + 1 >= n: + out.append(c); i += 1; continue + d = field[i + 1] + if d in simple: + out.append(simple[d]); i += 2 + elif d in '01234567': + j = i + 1 + while j < n and j < i + 4 and field[j] in '01234567': + j += 1 + out.append(chr(int(field[i + 1:j], 8))); i = j + elif d == 'x': + j = i + 2 + while j < n and j < i + 4 and field[j] in '0123456789abcdefABCDEF': + j += 1 + out.append(chr(int(field[i + 2:j], 16))); i = j + else: + out.append(d); i += 2 + return ''.join(out) + + +TS = re.compile(r'^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,6}))?$') +EPOCH = dt.datetime(1970, 1, 1) + + +def ts_us(value): + """'2015-07-10 11:37:12.123' -> integer microseconds (naive timestamps compare as written).""" + if value is None: + return None + m = TS.match(value) + if not m: + raise ValueError(f'bad timestamp {value!r}') + y, mo, d, h, mi, s, frac = m.groups() + t = dt.datetime(int(y), int(mo), int(d), int(h), int(mi), int(s)) + us = int((frac or '').ljust(6, '0') or 0) + delta = t - EPOCH + return (delta.days * 86400 + delta.seconds) * 1_000_000 + us + + +def boolean(value): + return None if value is None else (1 if value == 't' else 0 if value == 'f' else int(value)) + + +def open_dump(path): + path = Path(path) + if path.suffix == '.zip': + z = zipfile.ZipFile(path) + names = sorted((i for i in z.infolist() if i.filename.endswith('.sql')), key=lambda i: -i.file_size) + if not names: + raise SystemExit('no .sql file in the zip') + return io.TextIOWrapper(z.open(names[0]), encoding='utf-8', newline='\n'), names[0].filename + return open(path, encoding='utf-8', newline='\n'), path.name + + +COPY_RE = re.compile(r'^COPY vpic\.(\w+) \((.*)\) FROM stdin;$') +FUNC_RE = re.compile(r'^CREATE FUNCTION vpic\.(\w+)\(') +STARTED_RE = re.compile(r'^-- Started on (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})') + + +def lookup_map(functions): + """felementattributevalue: element id -> lookup table, as NHTSA's function maps it (not element.lookuptable).""" + text = functions.get('felementattributevalue', '') + pairs = re.findall(r'WHEN (\d+) THEN\s+select name from vpic\.(\w+) where cast\(Id as character varying\) = AttributeId into v;', text, re.I) + out = {} + for el, tbl in pairs: + out[int(el)] = tbl.lower() + if len(out) < 60: + raise SystemExit(f'felementattributevalue: only {len(out)} lookups parsed; the function changed') + return out + + +def valid_chars_in_regex(cls): + """fValidCharsInRegEx: a bracket class -> the characters it allows (literal list when no range/negation).""" + s = cls.upper() + if '-' not in s and '^' not in s: + return s.replace(']', '').replace('[', '') + rx = re.compile('^' + s + '$') + return ''.join(c for c in VALID_CHARS if rx.match(c)) + + +def valid_chars_in_key(key): + """fValidCharsInKey (strict): [(key position, char)]; '*' allows nothing explicit, '#' any digit.""" + out, ind, inside, start = [], 0, False, 0 + for i, s in enumerate(key, 1): + if s == '[' and not inside: + inside, start = True, i + continue + if not inside: + ind += 1 + if s == '#': + out.extend((ind, d) for d in '0123456789') + elif s != '*': + out.append((ind, s)) + continue + if s == ']' and inside: + ind += 1 + for c in valid_chars_in_regex(key[start - 1:i]): + if c not in ('*', '|'): + out.append((ind, c)) + inside, start = False, 0 + return out + + +def sort_chars(chars): + return ''.join(sorted(set(chars), key=lambda c: (0 if c == '_' else 1, c))) + + +def encode_positions(by_pos): + """{vin position: set(chars)} -> 'c4,c5,...,c14' (positions 4-14; '' = no explicit characters).""" + return ','.join(sort_chars(by_pos.get(p, ())) for p in POSITIONS) + + +def build(dump, out, release, accept_change, print_fingerprints, rule_fixes=RULE_FIXES): + t0 = time.time() + out = Path(out) + out.parent.mkdir(parents=True, exist_ok=True) + tmp = out.with_name(out.name + '.tmp') + for f in (tmp, Path(str(tmp) + '-journal')): + if f.exists(): + f.unlink() + db = sqlite3.connect(tmp) + db.executescript(''' + PRAGMA journal_mode=OFF; PRAGMA synchronous=OFF; PRAGMA page_size=4096; + CREATE TABLE meta(key TEXT PRIMARY KEY, value TEXT); + CREATE TABLE element(id INTEGER PRIMARY KEY, name TEXT, code TEXT, lookup_table TEXT, is_private INTEGER, group_name TEXT, + data_type TEXT, decode TEXT, weight INTEGER, value_table TEXT); + CREATE TABLE lookup(tbl TEXT NOT NULL, id TEXT NOT NULL, name TEXT, PRIMARY KEY(tbl, id)) WITHOUT ROWID; + CREATE TABLE wmi(id INTEGER PRIMARY KEY, wmi TEXT NOT NULL UNIQUE, manufacturer_id INTEGER, make_id INTEGER, vehicle_type_id INTEGER, + truck_type_id INTEGER, changed_us INTEGER, public_us INTEGER); + CREATE TABLE wmi_vinschema(wmi_id INTEGER NOT NULL, schema_id INTEGER NOT NULL, year_from INTEGER NOT NULL, year_to INTEGER); + CREATE TABLE vinschema(id INTEGER PRIMARY KEY, name TEXT, to_be_qced INTEGER, valid_chars TEXT); + CREATE TABLE pattern(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL, keys TEXT NOT NULL, element_id INTEGER NOT NULL, + attribute_id TEXT NOT NULL, changed_us INTEGER); + CREATE TABLE make_model(model_id INTEGER NOT NULL, make_id INTEGER NOT NULL); + CREATE TABLE wmi_make(wmi_id INTEGER NOT NULL, make_id INTEGER NOT NULL); + CREATE TABLE engine_model(id INTEGER PRIMARY KEY, name TEXT); + CREATE TABLE engine_model_pattern(id INTEGER PRIMARY KEY, engine_model_id INTEGER NOT NULL, element_id INTEGER NOT NULL, + attribute_id TEXT, changed_us INTEGER); + CREATE TABLE conversion(id INTEGER PRIMARY KEY, from_element_id INTEGER NOT NULL, to_element_id INTEGER NOT NULL, formula TEXT NOT NULL); + CREATE TABLE spec_schema(id INTEGER PRIMARY KEY, make_id INTEGER, vehicle_type_id INTEGER, to_be_qced INTEGER); + CREATE TABLE spec_schema_model(schema_id INTEGER NOT NULL, model_id INTEGER NOT NULL); + CREATE TABLE spec_schema_year(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL, year INTEGER); + CREATE TABLE spec_schema_pattern(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL); + CREATE TABLE spec_pattern(id INTEGER PRIMARY KEY, spec_schema_pattern_id INTEGER NOT NULL, is_key INTEGER NOT NULL, element_id INTEGER NOT NULL, + attribute_id TEXT, changed_us INTEGER); + CREATE TABLE default_value(id INTEGER PRIMARY KEY, element_id INTEGER NOT NULL, vehicle_type_id INTEGER, default_value TEXT, changed_us INTEGER); + CREATE TABLE vin_exception(vin TEXT PRIMARY KEY) WITHOUT ROWID; + CREATE TABLE vin_descriptor(descriptor TEXT NOT NULL, model_year INTEGER); + CREATE TABLE error_code(id INTEGER PRIMARY KEY, name TEXT, additional_text TEXT, weight INTEGER); + CREATE TABLE wmi_year_chars(wmi TEXT NOT NULL, year INTEGER NOT NULL, chars TEXT NOT NULL, PRIMARY KEY(wmi, year)) WITHOUT ROWID; + CREATE TABLE stage_vc(wmi TEXT, year INTEGER, position INTEGER, ch TEXT); + ''') + counts = {t: 0 for t in TABLES} + elements = {} + pending_patterns = [] + schema_chars = {} + + def sink(table, r): + counts[table] = counts.get(table, 0) + 1 + if table == 'pattern': + # valid characters per schema: every pattern counts (NHTSA's fallback reads all of them) + sc = schema_chars.setdefault(int(r['vinschemaid']), {}) + for pos, ch in valid_chars_in_key(r['keys']): + vp = pos + 3 + if 4 <= vp <= 14: + sc.setdefault(vp, set()).add(ch) + pending_patterns.append((int(r['id']), int(r['vinschemaid']), r['keys'], int(r['elementid']), r['attributeid'], + ts_us(r['updatedon'] or r['createdon']))) + if len(pending_patterns) >= 50000: + flush_patterns() + elif table == 'wmi': + db.execute('INSERT INTO wmi VALUES (?,?,?,?,?,?,?,?)', (int(r['id']), r['wmi'], int_or_none(r['manufacturerid']), int_or_none(r['makeid']), + int_or_none(r['vehicletypeid']), int_or_none(r['trucktypeid']), ts_us(r['updatedon'] or r['createdon']), ts_us(r['publicavailabilitydate']))) + elif table == 'wmi_vinschema': + db.execute('INSERT INTO wmi_vinschema VALUES (?,?,?,?)', (int(r['wmiid']), int(r['vinschemaid']), int(r['yearfrom']), int_or_none(r['yearto']))) + elif table == 'vinschema': + db.execute('INSERT INTO vinschema(id, name, to_be_qced) VALUES (?,?,?)', (int(r['id']), r['name'], boolean(r['tobeqced']))) + elif table == 'element': + elements[int(r['id'])] = r + elif table == 'make_model': + db.execute('INSERT INTO make_model VALUES (?,?)', (int(r['modelid']), int(r['makeid']))) + elif table == 'wmi_make': + db.execute('INSERT INTO wmi_make VALUES (?,?)', (int(r['wmiid']), int(r['makeid']))) + elif table == 'enginemodel': + db.execute('INSERT INTO engine_model VALUES (?,?)', (int(r['id']), r['name'])) + elif table == 'enginemodelpattern': + db.execute('INSERT INTO engine_model_pattern VALUES (?,?,?,?,?)', (int(r['id']), int(r['enginemodelid']), int(r['elementid']), r['attributeid'], + ts_us(r['updatedon'] or r['createdon']))) + elif table == 'conversion': + db.execute('INSERT INTO conversion VALUES (?,?,?,?)', (int(r['id']), int(r['fromelementid']), int(r['toelementid']), r['formula'])) + elif table == 'vehiclespecschema': + db.execute('INSERT INTO spec_schema VALUES (?,?,?,?)', (int(r['id']), int_or_none(r['makeid']), int_or_none(r['vehicletypeid']), boolean(r['tobeqced']))) + elif table == 'vehiclespecschema_model': + db.execute('INSERT INTO spec_schema_model VALUES (?,?)', (int(r['vehiclespecschemaid']), int(r['modelid']))) + elif table == 'vehiclespecschema_year': + db.execute('INSERT INTO spec_schema_year VALUES (?,?,?)', (int(r['id']), int(r['vehiclespecschemaid']), int_or_none(r['year']))) + elif table == 'vspecschemapattern': + db.execute('INSERT INTO spec_schema_pattern VALUES (?,?)', (int(r['id']), int(r['schemaid']))) + elif table == 'vehiclespecpattern': + db.execute('INSERT INTO spec_pattern VALUES (?,?,?,?,?,?)', (int(r['id']), int(r['vspecschemapatternid']), boolean(r['iskey']), int(r['elementid']), + r['attributeid'], ts_us(r['updatedon'] or r['createdon']))) + elif table == 'defaultvalue': + db.execute('INSERT INTO default_value VALUES (?,?,?,?,?)', (int(r['id']), int(r['elementid']), int_or_none(r['vehicletypeid']), r['defaultvalue'], + ts_us(r['updatedon'] or r['createdon']))) + elif table == 'vinexception': + if boolean(r['checkdigit']): + db.execute('INSERT OR IGNORE INTO vin_exception VALUES (?)', (r['vin'],)) + elif table == 'vindescriptor': + db.execute('INSERT INTO vin_descriptor VALUES (?,?)', (r['descriptor'], int_or_none(r['modelyear']))) + elif table == 'errorcode': + db.execute('INSERT INTO error_code VALUES (?,?,?,?)', (int(r['id']), r['name'], r['additionalerrortext'], int_or_none(r['weight']))) + elif table == 'wmiyearvalidchars': + db.execute('INSERT INTO stage_vc VALUES (?,?,?,?)', (r['wmi'], int(r['year']), int_or_none(r['position']), r['char'])) + + def flush_patterns(): + db.executemany('INSERT INTO stage_pattern VALUES (?,?,?,?,?,?)', pending_patterns) + pending_patterns.clear() + + db.execute('CREATE TABLE stage_pattern(id INTEGER PRIMARY KEY, schema_id INTEGER, keys TEXT, element_id INTEGER, attribute_id TEXT, changed_us INTEGER)') + # One pass over the dump. Which tables are lookups is known only from the functions, so every small (id, name) + # table is kept whole while streaming and the needed ones are written afterwards. + fh, source_name = open_dump(dump) + generic = {} + functions, header = read_dump(fh, sink, generic) + fh.close() + flush_patterns() + lmap = lookup_map(functions) + + fingerprints = {name: hashlib.sha256(functions.get(name, '').encode()).hexdigest() for name in FUNCTIONS} + if print_fingerprints: + print(json.dumps(fingerprints, indent=2)) + changed = [n for n in FUNCTIONS if ALGORITHM_FINGERPRINTS.get(n) and ALGORITHM_FINGERPRINTS[n] != fingerprints[n]] + missing = [n for n in FUNCTIONS if not functions.get(n)] + if missing: + raise SystemExit(f'decode functions missing from the dump: {missing}') + if changed and not accept_change: + print(f'NHTSA changed decode functions {changed}: review lib/vpic-local.mjs against the new source, then rerun with ' + f'--accept-algorithm-change and update ALGORITHM_FINGERPRINTS.', file=sys.stderr) + db.close(); tmp.unlink() + sys.exit(3) + + # Elements (+ the lookup table NHTSA's value function uses for each) + for eid, r in elements.items(): + db.execute('INSERT INTO element VALUES (?,?,?,?,?,?,?,?,?,?)', (eid, r['name'], r['code'], r['lookuptable'], boolean(r['isprivate']), r['groupname'], + r['datatype'], r['decode'], int_or_none(r['weight']), lmap.get(eid))) + needed_tables = sorted(set(lmap.values())) + missing_tables = [] + for tbl in needed_tables: + rows = generic.get(tbl) + if rows is None: + missing_tables.append(tbl) + continue + db.executemany('INSERT OR IGNORE INTO lookup VALUES (?,?,?)', [(tbl, r['id'], r['name']) for r in rows]) + # Views (vncsa*) map private NCSA elements only; nothing public reads them. + missing_tables = [t for t in missing_tables if not t.startswith('vncsa')] + if missing_tables: + raise SystemExit(f'lookup tables missing from the dump: {missing_tables}') + + # Patterns the decode can read. Kept: every '#' formula pattern (that step has no element filter), and others + # whose element the pattern step accepts (not 26/27/29/39, has a decode role, not private). + readable = {eid for eid, r in elements.items() if eid not in (26, 27, 29, 39) and r['decode'] is not None and boolean(r['isprivate']) != 1} + db.execute('INSERT INTO pattern SELECT * FROM stage_pattern WHERE instr(keys, \'#\') > 0 OR element_id IN (%s)' % ','.join(map(str, sorted(readable)))) + kept = db.execute('SELECT count(*) FROM pattern').fetchone()[0] + db.execute('DROP TABLE stage_pattern') + db.executemany('UPDATE vinschema SET valid_chars = ? WHERE id = ?', [(encode_positions(sc), sid) for sid, sc in schema_chars.items()]) + + # wmi-year valid characters (NHTSA's cache table), one string per WMI and year + cur = db.execute('SELECT DISTINCT wmi, year, position, ch FROM stage_vc ORDER BY wmi, year') + batch, key, acc = [], None, {} + for wmi, year, pos, ch in cur: + if (wmi, year) != key: + if key is not None: + batch.append((key[0], key[1], encode_positions(acc))) + key, acc = (wmi, year), {} + if pos is not None and ch is not None and 4 <= pos <= 14: + acc.setdefault(pos, set()).add(ch) + if key is not None: + batch.append((key[0], key[1], encode_positions(acc))) + db.execute('DROP TABLE stage_vc') + db.executemany('INSERT INTO wmi_year_chars VALUES (?,?,?)', batch) + + db.executescript(''' + CREATE INDEX ix_pattern_schema ON pattern(schema_id); + CREATE INDEX ix_wvs_wmi ON wmi_vinschema(wmi_id); + CREATE INDEX ix_make_model ON make_model(model_id); + CREATE INDEX ix_wmi_make ON wmi_make(wmi_id); + CREATE INDEX ix_emp ON engine_model_pattern(engine_model_id); + CREATE INDEX ix_em_name ON engine_model(name); + CREATE INDEX ix_ssm ON spec_schema_model(model_id); + CREATE INDEX ix_ssy ON spec_schema_year(schema_id); + CREATE INDEX ix_ssp ON spec_schema_pattern(schema_id); + CREATE INDEX ix_sp ON spec_pattern(spec_schema_pattern_id); + CREATE INDEX ix_dv ON default_value(vehicle_type_id); + CREATE INDEX ix_vd ON vin_descriptor(descriptor); + ''') + built = dt.datetime.now(dt.timezone.utc).replace(microsecond=0).isoformat().replace('+00:00', 'Z') + m = re.search(r'(\d{4})_(\d{2})', source_name) + rel = release or (f'{m.group(1)}_{m.group(2)}' if m else None) + if not rel: + raise SystemExit('cannot tell the release from the file name; pass --release YYYY_MM') + meta = { + 'schema_version': str(SCHEMA_VERSION), 'release': rel, 'release_name': f'vPICList_lite_{rel}', + 'source_file': source_name, 'nhtsa_dump_started': header.get('started') or '', 'built_at': built, + 'source_url': 'https://vpic.nhtsa.dot.gov/api/ (Standalone vPIC database, PostgreSQL edition)', + 'algorithm_fingerprints': json.dumps(fingerprints, sort_keys=True), 'algorithm_changed': json.dumps(changed), + 'counts': json.dumps({**counts, 'pattern_kept': kept, 'wmi_year_chars': len(batch)}, sort_keys=True), + } + db.executemany('INSERT INTO meta VALUES (?,?)', sorted(meta.items())) + fixes = apply_rule_fixes(db, rule_fixes, rel) + db.commit() + db.execute('VACUUM') + db.close() + os.replace(tmp, out) + size = out.stat().st_size + print(json.dumps({'out': str(out), 'bytes': size, 'mb': round(size / 1e6, 1), 'release': rel, 'seconds': round(time.time() - t0), + 'patterns': counts['pattern'], 'patterns_kept': kept, 'wmi_year_chars': len(batch), 'algorithm_changed': changed, + 'rule_fixes': fixes['summary']})) + report_fixes(fixes) + return fixes + + +# ---------------------------------------------------------------- mcp.vin rule fixes + +FIX_TABLES = ''' + CREATE TABLE IF NOT EXISTS rule_fix_entry(fix_id TEXT PRIMARY KEY, written_against TEXT, fix_case TEXT, status TEXT NOT NULL, problem TEXT, + reason TEXT, evidence TEXT, errors TEXT, reviewed TEXT, edits TEXT, premise TEXT); + CREATE TABLE IF NOT EXISTS rule_fix(fix_id TEXT NOT NULL, edit_no INTEGER NOT NULL, action TEXT NOT NULL, tbl TEXT NOT NULL, row_id INTEGER NOT NULL, + schema_id INTEGER, spec_schema_pattern_id INTEGER, element_id INTEGER NOT NULL, is_key INTEGER, + orig_keys TEXT, orig_attribute_id TEXT, orig_changed_us INTEGER, new_keys TEXT, new_attribute_id TEXT, new_changed_us INTEGER, + PRIMARY KEY(fix_id, edit_no)); +''' + + +def lookup_name(db, element_id, attribute_id): + vt = db.execute('SELECT value_table FROM element WHERE id = ?', (element_id,)).fetchone() + if not vt or not vt[0]: + return attribute_id + r = db.execute('SELECT name FROM lookup WHERE tbl = ? AND id = ?', (vt[0], str(attribute_id))).fetchone() + return r[0] if r else None + + +def check_row(db, table, want, el_id): + """Is the original row still exactly there? None when it is, else what differs.""" + if table == 'pattern': + r = db.execute('SELECT schema_id, keys, element_id, attribute_id, changed_us FROM pattern WHERE id = ?', (want['id'],)).fetchone() + if not r: + return f"pattern row {want['id']} is gone" + got = {'schema_id': r[0], 'keys': r[1], 'element_id': r[2], 'attribute_id': r[3]} + exp = {'schema_id': want['schema_id'], 'keys': want['keys'], 'element_id': el_id, 'attribute_id': str(want['attribute_id'])} + elif table == 'spec_pattern': + r = db.execute('SELECT spec_schema_pattern_id, is_key, element_id, attribute_id, changed_us FROM spec_pattern WHERE id = ?', (want['id'],)).fetchone() + if not r: + return f"spec_pattern row {want['id']} is gone" + got = {'spec_schema_pattern_id': r[0], 'is_key': r[1], 'element_id': r[2], 'attribute_id': r[3]} + exp = {'spec_schema_pattern_id': want['spec_schema_pattern_id'], 'is_key': 0, 'element_id': el_id, 'attribute_id': str(want['attribute_id'])} + else: + return f'unsupported table {table}' + diff = {k: [exp[k], got[k]] for k in exp if exp[k] != got[k]} + return f"{table} row {want['id']} changed: " + json.dumps(diff) if diff else None + + +def apply_rule_fixes(db, path, release): + """Apply the reviewed changeset to NHTSA's tables in `db`; record each applied edit with its original row.""" + db.executescript(FIX_TABLES) + out = {'entries': [], 'summary': {'file': str(path) if path else None, 'entries': 0, 'applied': 0, 'needs_review': 0, 'edits_applied': 0}} + if not path: + db.execute("INSERT OR REPLACE INTO meta VALUES ('rule_fixes', ?)", (json.dumps(out['summary']),)) + return out + path = Path(path) + if not path.exists(): + raise SystemExit(f'rule-fix changeset {path} not found (use --no-rule-fixes to build without it)') + codes = {c: i for c, i in db.execute('SELECT code, id FROM element')} + seen = set() + for n, line in enumerate(path.read_text().splitlines(), 1): + if not line.strip(): + continue + try: + e = json.loads(line) + except ValueError: + raise SystemExit(f'{path}:{n}: not JSON') + fid = e.get('id') + if not isinstance(fid, str) or not re.fullmatch(r'rf-\d{3,}', fid) or fid in seen: + raise SystemExit(f'{path}:{n}: bad or duplicate id {fid!r}') + seen.add(fid) + for k in ('release', 'case', 'errors', 'edits', 'reason', 'evidence', 'reviewed'): + if not e.get(k): + raise SystemExit(f'{path}:{n} ({fid}): missing {k}') + problems, plan = [], [] + for p in e.get('premise', []): + el = codes.get(p['row'].get('element')) + problems.append(check_row(db, p['table'], p['row'], el) if el else f"premise element {p['row'].get('element')} unknown") + for i, ed in enumerate(e['edits'], 1): + act, tbl = ed.get('action'), ed.get('table') + src = ed.get('row') if act in ('modify', 'delete') else ed.get('new') + el = codes.get((src or {}).get('element')) + if not src or el is None or act not in ('modify', 'delete', 'add') or tbl not in ('pattern', 'spec_pattern') or (act == 'add' and tbl != 'pattern'): + raise SystemExit(f'{path}:{n} ({fid}) edit {i}: unsupported edit') + if act in ('modify', 'delete'): + problems.append(check_row(db, tbl, src, el)) + cur = db.execute(f'SELECT * FROM {tbl} WHERE id = ?', (src['id'],)).fetchone() + if act == 'modify': + new_attr = str(ed['set'].get('attribute_id', src['attribute_id'])) + new_keys = ed['set'].get('keys', src.get('keys')) + name = lookup_name(db, el, new_attr) + if name is None or ('value' in ed['set'] and name.lower() != str(ed['set']['value']).lower()): + problems.append(f"edit {i}: attribute {new_attr} of {src['element']} is {name!r} in this release, not {ed['set'].get('value')!r}") + plan.append((i, act, tbl, src, el, cur, new_keys, new_attr)) + else: + plan.append((i, act, tbl, src, el, cur, None, None)) + else: + if db.execute('SELECT 1 FROM pattern WHERE id = ?', (src['id'],)).fetchone() or src['id'] >= 0: + problems.append(f"edit {i}: new row id {src['id']} must be negative and unused") + if not db.execute('SELECT 1 FROM vinschema WHERE id = ?', (src['schema_id'],)).fetchone(): + problems.append(f"edit {i}: schema {src['schema_id']} is gone") + other = db.execute('SELECT id, attribute_id FROM pattern WHERE schema_id = ? AND keys = ? AND element_id = ?', (src['schema_id'], src['keys'], el)).fetchone() + if other: + problems.append(f"edit {i}: NHTSA now has its own row {other[0]} for {src['keys']} {src['element']} (value {other[1]})") + name = lookup_name(db, el, src['attribute_id']) + if name is None or name.lower() != str(src.get('value', name)).lower(): + problems.append(f"edit {i}: attribute {src['attribute_id']} of {src['element']} is {name!r} in this release, not {src.get('value')!r}") + plan.append((i, act, tbl, src, el, None, src['keys'], str(src['attribute_id']))) + problems = [p for p in problems if p] + status = 'needs_review' if problems else 'applied' + db.execute('INSERT INTO rule_fix_entry VALUES (?,?,?,?,?,?,?,?,?,?,?)', (fid, e['release'], e['case'], status, '; '.join(problems) or None, e['reason'], + json.dumps(e['evidence']), json.dumps(e['errors']), json.dumps(e['reviewed']), json.dumps(e['edits']), json.dumps(e.get('premise', [])))) + out['entries'].append({'id': fid, 'status': status, 'problems': problems, 'written_against': e['release'], 'errors': e['errors']}) + out['summary']['entries'] += 1 + out['summary'][status] += 1 + if problems: + continue + reviewed_us = int(dt.datetime.fromisoformat(e['reviewed']['on']).replace(tzinfo=dt.timezone.utc).timestamp() * 1e6) + for i, act, tbl, src, el, cur, new_keys, new_attr in plan: + if tbl == 'pattern': + if act == 'modify': + db.execute('UPDATE pattern SET keys = ?, attribute_id = ? WHERE id = ?', (new_keys, new_attr, src['id'])) + rec = (cur[1], None, cur[2], cur[4], cur[5], new_keys, new_attr, cur[5]) + elif act == 'delete': + db.execute('DELETE FROM pattern WHERE id = ?', (src['id'],)) + rec = (cur[1], None, cur[2], cur[4], cur[5], None, None, None) + else: + db.execute('INSERT INTO pattern VALUES (?,?,?,?,?,?)', (src['id'], src['schema_id'], new_keys, el, new_attr, reviewed_us)) + rec = (src['schema_id'], None, None, None, None, new_keys, new_attr, reviewed_us) + schema_id, spp, ok, oa, oc, nk, na, nc = rec + is_key = None + else: + if act == 'modify': + db.execute('UPDATE spec_pattern SET attribute_id = ? WHERE id = ?', (new_attr, src['id'])) + schema_id, spp, ok, oa, oc, nk, na, nc = None, cur[1], None, cur[4], cur[5], None, new_attr, cur[5] + else: + db.execute('DELETE FROM spec_pattern WHERE id = ?', (src['id'],)) + schema_id, spp, ok, oa, oc, nk, na, nc = None, cur[1], None, cur[4], cur[5], None, None, None + is_key = cur[2] + db.execute('INSERT INTO rule_fix VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', (fid, i, act, tbl, src['id'], schema_id, spp, el, is_key, ok, oa, oc, nk, na, nc)) + out['summary']['edits_applied'] += 1 + db.execute("INSERT OR REPLACE INTO meta VALUES ('rule_fixes', ?)", (json.dumps(out['summary']),)) + return out + + +def revert_rule_fixes(db): + """Undo every recorded edit (back to NHTSA's rows), then forget the fixes.""" + db.executescript(FIX_TABLES) + for fid, n, act, tbl, rid, schema_id, spp, el, is_key, ok, oa, oc, nk, na, nc in db.execute('SELECT * FROM rule_fix ORDER BY fix_id DESC, edit_no DESC').fetchall(): + if tbl == 'pattern': + if act == 'modify': + db.execute('UPDATE pattern SET keys = ?, attribute_id = ? WHERE id = ?', (ok, oa, rid)) + elif act == 'delete': + db.execute('INSERT INTO pattern VALUES (?,?,?,?,?,?)', (rid, schema_id, ok, el, oa, oc)) + else: + db.execute('DELETE FROM pattern WHERE id = ?', (rid,)) + else: + if act == 'modify': + db.execute('UPDATE spec_pattern SET attribute_id = ? WHERE id = ?', (oa, rid)) + else: + db.execute('INSERT INTO spec_pattern VALUES (?,?,?,?,?,?)', (rid, spp, is_key, el, oa, oc)) + db.execute('DROP TABLE rule_fix') + db.execute('DROP TABLE rule_fix_entry') + + +def report_fixes(fixes): + for e in fixes['entries']: + if e['status'] != 'applied': + print(f"RULE FIX NEEDS REVIEW {e['id']} (written against {e['written_against']}; " + f"{', '.join(x['pattern'] + ' ' + x['field'] for x in e['errors'])}): {'; '.join(e['problems'])}", file=sys.stderr) + + +def reapply(path_db, rule_fixes): + """Re-apply the changeset to an existing file (copy, revert, apply, rename into place).""" + import shutil + src = Path(path_db) + tmp = src.with_name(src.name + '.tmp') + shutil.copyfile(src, tmp) + try: + db = sqlite3.connect(tmp) + rel = db.execute("SELECT value FROM meta WHERE key = 'release'").fetchone()[0] + revert_rule_fixes(db) + fixes = apply_rule_fixes(db, rule_fixes, rel) + db.commit() + db.execute('VACUUM') + db.close() + except BaseException: + tmp.unlink(missing_ok=True) + raise + os.replace(tmp, src) + print(json.dumps({'out': str(src), 'release': rel, 'rule_fixes': fixes['summary']})) + report_fixes(fixes) + return fixes + + +SMALL_TABLE_LIMIT = 100000 + + +def read_dump(fh, sink, generic): + """Stream the dump: COPY rows of wanted tables go to sink(table, row); every other small (id, name) table is kept + whole in `generic` (lookup lists); returns the decode functions' text and the dump header.""" + functions, header = {}, {} + func_name, func_lines = None, [] + copy_table, copy_cols, keep_idx, gen = None, None, None, None + for raw in fh: + line = raw.rstrip('\n') + if copy_table is not None: + if line == '\\.': + copy_table = None + continue + parts = line.split('\t') + if len(parts) != len(copy_cols): + raise SystemExit(f'{copy_table}: {len(parts)} fields, expected {len(copy_cols)}') + if keep_idx is not None: + sink(copy_table, {c: unescape_copy(parts[i]) for c, i in keep_idx}) + if gen is not None and len(gen) < SMALL_TABLE_LIMIT: + gen.append({'id': unescape_copy(parts[copy_cols.index('id')]), 'name': unescape_copy(parts[copy_cols.index('name')])}) + continue + if func_name is not None: + func_lines.append(line) + if re.fullmatch(r'\$\w*\$;', line): + functions[func_name] = '\n'.join(func_lines) + func_name = None + continue + m = COPY_RE.match(line) + if m: + copy_table = m.group(1) + copy_cols = [c.strip().strip('"') for c in m.group(2).split(',')] + want = TABLES.get(copy_table) + keep_idx = None + if want: + missing = [c for c in want if c not in copy_cols] + if missing: + raise SystemExit(f'{copy_table}: dump lacks columns {missing}') + keep_idx = [(c, copy_cols.index(c)) for c in want] + gen = None + if 'id' in copy_cols and 'name' in copy_cols and copy_table not in ('pattern', 'wmiyearvalidchars', 'vinschema'): + gen = generic.setdefault(copy_table, []) + continue + m = FUNC_RE.match(line) + if m: + func_name, func_lines = m.group(1), [line] + continue + m = STARTED_RE.match(line) + if m and 'started' not in header: + header['started'] = m.group(1) + return functions, header + + +def int_or_none(v): + return None if v is None or v == '' else int(v) + + +def main(): + ap = argparse.ArgumentParser(description=__doc__.split('\n')[0]) + ap.add_argument('--dump', help='vPICList_lite_YYYY_MM.plain.zip or the .sql inside it') + ap.add_argument('--out', default=str(TARGET)) + ap.add_argument('--release', default=None, help='YYYY_MM (default: from the file name)') + ap.add_argument('--accept-algorithm-change', action='store_true') + ap.add_argument('--print-fingerprints', action='store_true') + ap.add_argument('--rule-fixes', default=str(RULE_FIXES), help='reviewed changeset to apply (default data-src/vpic-rule-fixes.jsonl)') + ap.add_argument('--no-rule-fixes', action='store_true', help="NHTSA's tables only") + ap.add_argument('--reapply-rule-fixes', metavar='DB', help='re-apply the changeset to an existing vpic.db (no dump needed)') + a = ap.parse_args() + fixes_path = None if a.no_rule_fixes else a.rule_fixes + if a.reapply_rule_fixes: + fixes = reapply(a.reapply_rule_fixes, fixes_path) + elif a.dump: + fixes = build(a.dump, a.out, a.release, a.accept_algorithm_change, a.print_fingerprints, fixes_path) + else: + ap.error('--dump or --reapply-rule-fixes is required') + sys.exit(4 if fixes['summary']['needs_review'] else 0) + + +if __name__ == '__main__': + main() diff --git a/scripts/make-vpic-fixture.mjs b/scripts/make-vpic-fixture.mjs new file mode 100644 index 0000000..267ee6e --- /dev/null +++ b/scripts/make-vpic-fixture.mjs @@ -0,0 +1,151 @@ +#!/usr/bin/env node +/** + * Cut a small test fixture out of data/vpic.db: every row the decode of the given VINs can read (their WMIs and + * in-year schemas with all their patterns, the vehicle-spec schemas of their make/model/year, the lookups those rows + * name, defaults, error codes, conversions, valid characters) plus the rule fixes in those schemas, and the expected + * decode of each VIN on fixed and on pristine rules. The fixture is checked before it is written: each VIN must + * decode from the cut-down tables exactly as from the full file. + * + * Usage: node scripts/make-vpic-fixture.mjs [--db data/vpic.db] [--out tests/fixtures/vpic-mini.json] VIN... + * tests/vpic-local.test.mjs builds a temporary SQLite file from the fixture (buildFixtureDb below). + */ +import Database from 'better-sqlite3'; +import {mkdtempSync, rmSync, writeFileSync} from 'node:fs'; +import {tmpdir} from 'node:os'; +import {join} from 'node:path'; +import {fileURLToPath} from 'node:url'; +import {decodeLocal, closeVpicLocal, vinWmi, vinDescriptor} from '../lib/vpic-local.mjs'; + +/** Write the fixture's tables to a new SQLite file. */ +export function buildFixtureDb(fixture, file) { + const db = new Database(file); + for (const sql of fixture.schema) db.exec(sql); + for (const [t, {columns, rows}] of Object.entries(fixture.tables)) { + const ins = db.prepare(`INSERT INTO ${t} (${columns.join(',')}) VALUES (${columns.map(() => '?').join(',')})`); + db.transaction(() => { for (const r of rows) ins.run(r); })(); + } + db.close(); + return file; +} + +function cut(dbFile, vins) { + const db = new Database(dbFile, {readonly: true, fileMustExist: true}); + const all = (sql, ...p) => db.prepare(sql).all(...p); + const sel = {}; + const add = (t, rows) => { const s = sel[t] || (sel[t] = new Map()); for (const r of rows) s.set(JSON.stringify(r), r); }; + const years = new Map(); + for (const vin of vins) { const d = decodeLocal(vin, {file: dbFile}); years.set(vin, d.available ? Number(d.values.ModelYear) || null : null); } + const lookups = new Set(); + const look = (tbl, id) => { if (tbl && id !== null && id !== undefined) lookups.add(`${tbl}\u0000${id}`); }; + const elements = all('SELECT * FROM element'); + const vt = new Map(elements.map(e => [e.id, e.value_table])); + const schemaIds = new Set(), wmiIds = new Set(), modelIds = new Set(), makeIds = new Set(); + for (const vin of vins) { + const w = db.prepare('SELECT * FROM wmi WHERE wmi = ?').get(vinWmi(vin)); + add('vin_descriptor', all('SELECT * FROM vin_descriptor WHERE descriptor = ?', vinDescriptor(vin))); + add('vin_exception', all('SELECT * FROM vin_exception WHERE vin = ?', vin)); + if (!w) continue; + add('wmi', [w]); wmiIds.add(w.id); + look('manufacturer', String(w.manufacturer_id)); look('vehicletype', String(w.vehicle_type_id)); look('make', String(w.make_id)); + const y = years.get(vin); + // every link: the model-year step counts the WMI's links for the year and for year +- 30 + for (const l of all('SELECT * FROM wmi_vinschema WHERE wmi_id = ?', w.id)) { + add('wmi_vinschema', [l]); + add('vinschema', all('SELECT * FROM vinschema WHERE id = ?', l.schema_id)); + if (y !== null && y >= l.year_from && y <= (l.year_to ?? 2999)) schemaIds.add(l.schema_id); + } + for (const r of all('SELECT * FROM wmi_make WHERE wmi_id = ?', w.id)) { add('wmi_make', [r]); makeIds.add(r.make_id); look('make', String(r.make_id)); } + if (y !== null) add('wmi_year_chars', all('SELECT * FROM wmi_year_chars WHERE wmi = ? AND year IN (?, ?, ?)', vinWmi(vin), y, y - 30, y + 30)); + } + const engineNames = new Set(); + for (const sid of schemaIds) { + const rows = all('SELECT * FROM pattern WHERE schema_id = ?', sid); + add('pattern', rows); + for (const p of rows) { + look(vt.get(p.element_id), p.attribute_id); + if (p.element_id === 28) modelIds.add(Number(p.attribute_id)); + if (p.element_id === 18) engineNames.add(String(p.attribute_id ?? '').trim().toLowerCase()); + } + } + // rule fixes: the original rows of removed patterns come back in the pristine view, so their lookups are needed too + const hasFix = !!db.prepare("SELECT 1 FROM sqlite_master WHERE name = 'rule_fix'").get(); + const fixIds = new Set(); + if (hasFix) for (const f of all('SELECT * FROM rule_fix')) if (f.tbl === 'pattern' && schemaIds.has(f.schema_id)) { fixIds.add(f.fix_id); look(vt.get(f.element_id), f.orig_attribute_id); } + for (const id of modelIds) { look('model', String(id)); for (const r of all('SELECT * FROM make_model WHERE model_id = ?', id)) { add('make_model', [r]); makeIds.add(r.make_id); look('make', String(r.make_id)); } } + const ems = all('SELECT * FROM engine_model').filter(m => engineNames.has(String(m.name ?? '').trim().toLowerCase())); + add('engine_model', ems); + for (const m of ems) { const rows = all('SELECT * FROM engine_model_pattern WHERE engine_model_id = ?', m.id); add('engine_model_pattern', rows); rows.forEach(p => look(vt.get(p.element_id), p.attribute_id)); } + // vehicle-spec schemas of the makes, models and years + const vinYears = new Set([...years.values()].filter(y => y !== null)); + for (const ss of all('SELECT * FROM spec_schema')) { + if (!makeIds.has(ss.make_id)) continue; + const models = all('SELECT * FROM spec_schema_model WHERE schema_id = ?', ss.id); + if (!models.some(m => modelIds.has(m.model_id))) continue; + const yrs = all('SELECT * FROM spec_schema_year WHERE schema_id = ?', ss.id); + if (yrs.length && !yrs.some(r => vinYears.has(r.year))) continue; + add('spec_schema', [ss]); add('spec_schema_model', models); add('spec_schema_year', yrs); + const sps = all('SELECT * FROM spec_schema_pattern WHERE schema_id = ?', ss.id); + add('spec_schema_pattern', sps); + for (const sp of sps) { + const rows = all('SELECT * FROM spec_pattern WHERE spec_schema_pattern_id = ?', sp.id); + add('spec_pattern', rows); rows.forEach(r => look(vt.get(r.element_id), r.attribute_id)); + if (hasFix) for (const f of all("SELECT * FROM rule_fix WHERE tbl = 'spec_pattern' AND spec_schema_pattern_id = ?", sp.id)) { fixIds.add(f.fix_id); look(vt.get(f.element_id), f.orig_attribute_id); } + } + } + const dvs = all('SELECT * FROM default_value'); + add('default_value', dvs); dvs.forEach(r => look(vt.get(r.element_id), r.default_value)); + add('element', elements); add('error_code', all('SELECT * FROM error_code')); add('conversion', all('SELECT * FROM conversion')); + add('meta', all('SELECT * FROM meta')); + if (hasFix && fixIds.size) { + const ids = [...fixIds]; + add('rule_fix', all(`SELECT * FROM rule_fix WHERE fix_id IN (${ids.map(() => '?').join(',')})`, ...ids)); + add('rule_fix_entry', all(`SELECT * FROM rule_fix_entry WHERE fix_id IN (${ids.map(() => '?').join(',')})`, ...ids)); + } + for (const k of lookups) { const [tbl, id] = k.split('\u0000'); add('lookup', all('SELECT * FROM lookup WHERE tbl = ? AND id = ?', tbl, id)); } + const schema = all("SELECT sql FROM sqlite_master WHERE sql IS NOT NULL AND name NOT LIKE 'sqlite_%' ORDER BY type DESC, name") + .map(r => r.sql).filter(s => /^CREATE TABLE/i.test(s) && !/stage_/.test(s)).concat(all("SELECT sql FROM sqlite_master WHERE type = 'index' AND sql IS NOT NULL").map(r => r.sql)); + const tables = {}; + for (const [t, m] of Object.entries(sel)) { + const rows = [...m.values()]; + if (!rows.length) continue; + const columns = Object.keys(rows[0]); + tables[t] = {columns, rows: rows.map(r => columns.map(c => r[c]))}; + } + db.close(); + return {schema, tables}; +} + +async function main() { + const args = process.argv.slice(2); + const opt = (n, d) => { const i = args.indexOf(n); if (i < 0) return d; const v = args[i + 1]; args.splice(i, 2); return v; }; + const dbFile = opt('--db', fileURLToPath(new URL('../data/vpic.db', import.meta.url))); + const out = opt('--out', fileURLToPath(new URL('../tests/fixtures/vpic-mini.json', import.meta.url))); + const vins = args.map(v => v.toUpperCase()); + if (!vins.length) { console.error('usage: make-vpic-fixture.mjs [--db file] [--out file] VIN...'); process.exit(2); } + const now = new Date('2026-11-18T00:00:00Z'); + const fixture = {note: 'Cut from NHTSA vPIC release tables by scripts/make-vpic-fixture.mjs; regenerate, do not edit.', now: now.toISOString(), vins, ...cut(dbFile, vins), expected: {}}; + const dir = mkdtempSync(join(tmpdir(), 'vpic-fixture-')); + try { + const small = buildFixtureDb(fixture, join(dir, 'vpic.db')); + for (const vin of vins) { + const exp = {}; + for (const rules of ['fixed', 'pristine']) { + const full = decodeLocal(vin, {file: dbFile, rules, now}), mini = decodeLocal(vin, {file: small, rules, now}); + if (JSON.stringify(full.values) !== JSON.stringify(mini.values) || JSON.stringify(full.rule_fixes) !== JSON.stringify(mini.rule_fixes)) { + const diff = Object.keys(full.values || {}).filter(k => full.values[k] !== mini.values?.[k]).map(k => `${k}: ${full.values[k]} / ${mini.values?.[k]}`); + throw new Error(`${vin} (${rules}) decodes differently from the fixture: ${diff.join('; ') || mini.reason || 'rule_fixes differ'}`); + } + exp[rules] = {values: full.values, rule_fixes: full.rule_fixes}; + } + fixture.expected[vin] = exp; + } + } finally { + closeVpicLocal(); + rmSync(dir, {recursive: true, force: true}); + } + const text = JSON.stringify(fixture); + writeFileSync(out, text + '\n'); + console.log(JSON.stringify({out, bytes: text.length, vins: vins.length, rows: Object.fromEntries(Object.entries(fixture.tables).map(([t, v]) => [t, v.rows.length]))})); +} + +if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) await main(); diff --git a/scripts/vpic-parity.mjs b/scripts/vpic-parity.mjs new file mode 100644 index 0000000..d12dacd --- /dev/null +++ b/scripts/vpic-parity.mjs @@ -0,0 +1,152 @@ +#!/usr/bin/env node +/** + * Parity of lib/vpic-local.mjs with NHTSA's own decoder (vpic.spvindecode in the PostgreSQL edition of the release), + * on NHTSA's pristine rules (the fixed file read with rules 'pristine'). Used by scripts/vpic-refresh.sh. + * + * node scripts/vpic-parity.mjs sample --db vpic.db --out vins.txt [--n 20000] [--seed 1] [--evidence data/decode-evidence.db] + * VINs synthesised from the release's own patterns (WMI + model keys + year + valid characters; 95% with a + * correct check digit), single-character mutations of those, and the NHTSA test-vehicle VINs when --evidence + * is given. No VIN anyone looked up on the site. + * node scripts/vpic-parity.mjs compare --db vpic.db --pg DIR --out result.json + * DIR holds CSV rows (vin, element id, value, source, pattern id, keys, schema id) from spvindecode, as + * scripts/vpic-refresh.sh writes them. Every element of every VIN is compared; prints a summary, exit 1 on any + * disagreement. + */ +import Database from 'better-sqlite3'; +import {readFileSync, readdirSync, writeFileSync} from 'node:fs'; +import {fileURLToPath} from 'node:url'; +import {decodeLocal, vinCheckDigit} from '../lib/vpic-local.mjs'; + +const args = process.argv.slice(2); +const cmd = args[0]; +const opt = (n, d) => { const i = args.indexOf(n); return i < 0 ? d : args[i + 1]; }; + +function sample() { + const dbFile = opt('--db'), outFile = opt('--out'), N = Number(opt('--n', 20000)), evidence = opt('--evidence', null); + let seed = Number(opt('--seed', 1)); + const rnd = () => { seed |= 0; seed = (seed + 0x6D2B79F5) | 0; let t = Math.imul(seed ^ (seed >>> 15), 1 | seed); t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; + const pick = a => a[Math.floor(rnd() * a.length)]; + const VALID = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789'; + const YEAR = y => 'ABCDEFGHJKLMNPRSTVWXY123456789'[(y - 1980) % 30]; + const db = new Database(dbFile, {readonly: true}); + const links = db.prepare('SELECT w.wmi, w.vehicle_type_id vt, w.truck_type_id tt, ws.schema_id, ws.year_from, ws.year_to FROM wmi_vinschema ws JOIN wmi w ON w.id = ws.wmi_id').all(); + const pats = db.prepare('SELECT keys FROM pattern WHERE schema_id = ? AND element_id = 28'); + const anyPats = db.prepare('SELECT keys FROM pattern WHERE schema_id = ? LIMIT 200'); + const chars = db.prepare('SELECT chars FROM wmi_year_chars WHERE wmi = ? AND year = ?'); + const maxYear = new Date().getUTCFullYear() + 1; + const fillKey = keys => { + const out = []; + for (let i = 0; i < keys.length; i++) { + const c = keys[i]; + if (c === '[') { + const j = keys.indexOf(']', i); + let rx; try { rx = new RegExp(`^${keys.slice(i, j + 1)}$`); } catch { rx = null; } + const ok = rx ? [...VALID].filter(x => rx.test(x)) : []; + out.push(ok.length ? pick(ok) : pick([...VALID])); + i = j; + } else if (c === '*' || c === '_') out.push(null); + else if (c === '#') out.push(pick([...'0123456789'])); + else out.push(c); + } + return out; + }; + const synth = link => { + const yTo = Math.min(link.year_to ?? maxYear, maxYear), yFrom = Math.max(link.year_from, 1981); + if (yTo < yFrom) return null; + const y = yFrom + Math.floor(rnd() * (yTo - yFrom + 1)); + let ps = pats.all(link.schema_id); + if (!ps.length) ps = anyPats.all(link.schema_id); + const filled = fillKey(ps.length ? pick(ps).keys : '*****'); + const enc = chars.get(link.wmi, y)?.chars?.split(',') || []; + const allowedAt = p => (enc[p - 4] ? [...enc[p - 4]].filter(c => VALID.includes(c)) : []); + const v = new Array(17).fill(null); + for (let i = 0; i < 3; i++) v[i] = link.wmi[i]; + let p = 4; + for (const c of filled) { + if (p === 9) { p = 10; if (c === '|' || c === null) continue; } + if (c === '|') { p = 10; continue; } + if (p > 17) break; + v[p - 1] = c; p++; + } + v[9] = YEAR(y); + const carLt = [2, 7].includes(link.vt) || (link.vt === 3 && link.tt === 1); + if (carLt && v[6] === null) v[6] = y >= 2010 ? pick([...'ABCDEFGHJKLMNPRSTUVWXYZ']) : pick([...'0123456789']); + if (link.wmi.length === 6) { v[11] = link.wmi[3]; v[12] = link.wmi[4]; v[13] = link.wmi[5]; } + for (let i = 3; i < 17; i++) { + if (v[i] !== null || i === 8) continue; + const al = allowedAt(i + 1); + v[i] = i >= 11 ? pick([...'0123456789']) : al.length && rnd() < 0.9 ? pick(al) : pick([...VALID]); + } + v[8] = '0'; + const vin = v.join(''); + const cd = vinCheckDigit(vin, {variant: 2, carMpvLt: carLt}); + return vin.slice(0, 8) + (rnd() < 0.95 && cd.length === 1 && cd !== '?' ? cd : pick([...'0123456789X'])) + vin.slice(9); + }; + const out = new Set(); + if (evidence) for (const r of new Database(evidence, {readonly: true}).prepare('SELECT vin FROM vehicles').all()) if (/^[A-Z0-9]{17}$/.test(r.vin)) out.add(r.vin); + const base = out.size; + let tries = 0; + while (out.size < base + N && tries < N * 5) { tries++; const vin = synth(pick(links)); if (vin && vin.length === 17) out.add(vin); } + const list = [...out]; + for (let i = 0; i < Math.round(N / 20); i++) { const v = pick(list).split(''); v[pick([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13])] = pick([...VALID, 'I', 'O', 'Q']); out.add(v.join('')); } + writeFileSync(outFile, [...out].join('\n') + '\n'); + console.log(JSON.stringify({out: outFile, vins: out.size, test_vehicles: base})); +} + +function parseCsv(text) { + const rows = []; let row = [], f = '', q = false; + for (let i = 0; i < text.length; i++) { + const c = text[i]; + if (q) { if (c === '"') { if (text[i + 1] === '"') { f += '"'; i++; } else q = false; } else f += c; } + else if (c === '"') q = true; + else if (c === ',') { row.push(f); f = ''; } + else if (c === '\n') { row.push(f); rows.push(row); row = []; f = ''; } + else f += c; + } + if (f !== '' || row.length) { row.push(f); rows.push(row); } + return rows; +} + +function compare() { + const dbFile = opt('--db'), dir = opt('--pg'), outFile = opt('--out'); + const pg = new Map(); + for (const fn of readdirSync(dir).filter(f => f.endsWith('.csv')).sort()) { + for (const [vin, el, value, source] of parseCsv(readFileSync(`${dir}/${fn}`, 'utf8'))) { + if (!pg.has(vin)) pg.set(vin, []); + pg.get(vin).push({el: Number(el), value, source}); + } + } + const perEl = {}, examples = {}; + let n = 0, agree = 0, pgErrors = 0, localFail = 0, ms = 0; + for (const [vin, rows] of pg) { + if (rows.some(r => r.el === -1)) { pgErrors++; continue; } + const t = process.hrtime.bigint(); + const d = decodeLocal(vin, {file: dbFile, semantics: 'pg', rules: 'pristine'}); + ms += Number(process.hrtime.bigint() - t) / 1e6; + n++; + if (!d.available) { localFail++; continue; } + const A = new Map(), B = new Map(); + for (const r of rows) { if (!A.has(r.el)) A.set(r.el, []); A.get(r.el).push(r.value ?? ''); } + for (const e of d.elements) { if (!B.has(e.element_id)) B.set(e.element_id, []); B.get(e.element_id).push(e.value ?? ''); } + let ok = true; + for (const el of new Set([...A.keys(), ...B.keys()])) { + const a = (A.get(el) || []).slice().sort().join(' | '), b = (B.get(el) || []).slice().sort().join(' | '); + const s = perEl[el] || (perEl[el] = {n: 0, agree: 0}); + s.n++; + if (a === b) { s.agree++; continue; } + ok = false; + const ex = examples[el] || (examples[el] = []); + if (ex.length < 10) ex.push({vin, nhtsa: a.slice(0, 160), local: b.slice(0, 160)}); + } + if (ok) agree++; + } + const out = {db: dbFile, rules: 'pristine', semantics: 'pg', vins: n, all_elements_agree: agree, nhtsa_errors: pgErrors, local_failed: localFail, + ms_per_vin: +(ms / Math.max(n, 1)).toFixed(2), disagreeing_elements: Object.fromEntries(Object.entries(perEl).filter(([, s]) => s.agree !== s.n).map(([k, s]) => [k, s.n - s.agree])), examples}; + if (outFile) writeFileSync(outFile, JSON.stringify(out, null, 1)); + console.log(JSON.stringify({vins: n, all_elements_agree: agree, nhtsa_errors: pgErrors, local_failed: localFail, ms_per_vin: out.ms_per_vin, disagreeing_elements: out.disagreeing_elements})); + process.exit(agree === n && localFail === 0 && n > 0 ? 0 : 1); +} + +if (cmd === 'sample') sample(); +else if (cmd === 'compare') compare(); +else { console.error('usage: vpic-parity.mjs sample|compare ... (see the header)'); process.exit(2); } diff --git a/scripts/vpic-refresh.sh b/scripts/vpic-refresh.sh new file mode 100755 index 0000000..cc9892e --- /dev/null +++ b/scripts/vpic-refresh.sh @@ -0,0 +1,105 @@ +#!/bin/bash +# Monthly refresh of data/vpic.db from NHTSA's standalone vPIC database. Runs on the storage server (needs +# PostgreSQL for the parity check, ~1 GB disk, node 20+ with better-sqlite3, python3). Does NOT deploy: the result +# is a file to review and copy (docs/data-sources.md, "Monthly refresh"). +# +# scripts/vpic-refresh.sh YYYY_MM [WORKDIR] e.g. scripts/vpic-refresh.sh 2026_12 /root/vpic-local +# Environment: VPIC_PARITY_N (synthesised parity VINs, default 20000), VPIC_PG_DB (PostgreSQL database to reuse). +# +# Steps (each logs to WORKDIR/RELEASE/logs; a step's failure stops the run and writes FAILED): +# 1. download vPICList_lite_RELEASE.plain.zip from vpic.nhtsa.dot.gov +# 2. build vpic.db with mcp.vin's rule fixes (scripts/import-vpic.py; stops if NHTSA changed its decode functions, +# exit 3: review lib/vpic-local.mjs first) +# 3. check the rule fixes (scripts/check-vpic-rule-fixes.mjs): which apply, which need review because NHTSA changed +# the rows they name or the values they were written against +# 4. parity: restore the dump into PostgreSQL database vpic_RELEASE, decode a sample of VINs with NHTSA's own +# spvindecode (25 VINs per statement; a failed VIN is retried alone, then listed), compare with our interpreter on +# NHTSA's pristine rules (scripts/vpic-parity.mjs) +# 5. the readable diff of our rules against NHTSA's (docs/vpic-rule-fixes.md for this release) and vpic.db.xz +# Then: WORKDIR/RELEASE/SUMMARY.txt and DONE. Run it detached (setsid nohup ... &) and wait for DONE or FAILED. +set -u +RELEASE=${1:?release YYYY_MM} +WORK=${2:-/root/vpic-local}/$RELEASE +REPO=$(cd "$(dirname "$0")/.." && pwd) +SAMPLE=${VPIC_PARITY_N:-20000} +mkdir -p "$WORK/logs" "$WORK/pg" +cd "$WORK" || exit 1 +rm -f DONE FAILED SUMMARY.txt +fail() { echo "$1" > FAILED; echo "FAILED: $1" >> SUMMARY.txt; exit 1; } +say() { echo "$*" | tee -a SUMMARY.txt; } + +# 1. download +ZIP=vPICList_lite_$RELEASE.plain.zip +[ -s "$ZIP" ] || curl -sS -f -m 3600 -A "Mozilla/5.0 (compatible; vpic-refresh)" -o "$ZIP" "https://vpic.nhtsa.dot.gov/downloads/$ZIP" || fail download +say "release $RELEASE: $(du -hL "$ZIP" | cut -f1) zip" + +# 2. build (exit 4 = some rule fix needs review: the file is still written, without those fixes) +python3 "$REPO/scripts/import-vpic.py" --dump "$ZIP" --out vpic.db --release "$RELEASE" > logs/build.out 2> logs/build.err +rc=$? +[ $rc -eq 3 ] && fail "NHTSA changed its decode functions (logs/build.err): review lib/vpic-local.mjs" +[ $rc -ne 0 ] && [ $rc -ne 4 ] && fail "build exit $rc (logs/build.err)" +say "built vpic.db: $(tail -1 logs/build.out)" +[ $rc -eq 4 ] && say "rule fixes needing review: $(grep -c 'NEEDS REVIEW' logs/build.err) (logs/build.err)" + +# 3. rule fixes on this release +node "$REPO/scripts/check-vpic-rule-fixes.mjs" --db vpic.db > logs/fixes.txt 2>&1 +say "$(head -1 logs/fixes.txt)"; tail -n +2 logs/fixes.txt >> SUMMARY.txt + +# 4. parity with NHTSA's spvindecode on NHTSA's own rules +DB=${VPIC_PG_DB:-vpic_$RELEASE} # VPIC_PG_DB: reuse a database that already holds this release +if ! sudo -u postgres psql -tc "select 1 from pg_database where datname='$DB'" | grep -q 1; then + rm -rf dump && mkdir dump && unzip -q -o "$ZIP" -d dump || fail unzip + SQL=$(ls -S dump/* | head -1) + sudo -u postgres createdb "$DB" || fail createdb + chmod 644 "$SQL" + sudo -u postgres psql -q -d "$DB" -f "$SQL" > logs/restore.out 2> logs/restore.err || fail restore + rm -rf dump +fi +sudo -u postgres psql -q -d "$DB" > /dev/null <<'SQL' || fail "parity function" +create schema if not exists parity; +create or replace function parity.decode(v varchar) returns table(elementid int, value varchar, source varchar, patternid int, keys varchar, vinschemaid int) +language plpgsql as $$ +begin + return query select d.itemelementid, d.value, d.itemsource, d.itempatternid, d.itemkeys, d.itemvinschemaid from vpic.spvindecode(v) d; +exception when others then + return query select -1, left(SQLERRM, 300)::varchar, 'ERROR'::varchar, null::int, null::varchar, null::int; +end $$; +SQL +EVID=""; [ -s "$REPO/data/decode-evidence.db" ] && EVID="--evidence $REPO/data/decode-evidence.db" +node "$REPO/scripts/vpic-parity.mjs" sample --db vpic.db --out vins.txt --n "$SAMPLE" $EVID > logs/sample.out 2>&1 || fail sample +decode() { # $1 VIN list, $2 VINs per statement, $3 output dir + rm -rf "$3" in_tmp && mkdir -p "$3" in_tmp + split -l "$2" -d -a 6 "$1" in_tmp/ + for f in in_tmp/*; do + [ -e "$f" ] || continue # empty list + list=$(paste -sd, "$f") + sudo -u postgres psql -q -d "$DB" -c "\copy (select u.vin, d.* from unnest(string_to_array('$list', ',')) with ordinality u(vin, o) cross join lateral parity.decode(u.vin) d order by u.o) to stdout with (format csv)" > "$3/$(basename "$f").csv" 2>> logs/pg.err + done + rm -rf in_tmp +} +decode vins.txt 25 pg/a +grep -h ',-1,' pg/a/*.csv | cut -d, -f1 | sort -u > retry.txt +: > never_clean.txt +if [ -s retry.txt ]; then + decode retry.txt 1 pg/b + grep -h ',-1,' pg/b/*.csv | cut -d, -f1 | sort -u > never_clean.txt +fi +# keep a VIN's rows only from the pass where it ran clean (FILENAME test, not NR==FNR: an empty list must drop nothing) +drop() { awk -F, 'FILENAME == ARGV[1] { bad[$1] = 1; next } !($1 in bad)' "$1" -; } +rm -rf pg/merged && mkdir pg/merged +cat pg/a/*.csv | drop retry.txt > pg/merged/a.csv +[ -s retry.txt ] && cat pg/b/*.csv | drop never_clean.txt > pg/merged/b.csv +say "spvindecode: $(wc -l < vins.txt) VINs, $(wc -l < retry.txt) retried alone, $(wc -l < never_clean.txt) never ran clean (never_clean.txt)" +node "$REPO/scripts/vpic-parity.mjs" compare --db vpic.db --pg pg/merged --out parity.json > logs/parity.out 2>&1 +say "parity (our interpreter on NHTSA's rules vs spvindecode): $(tail -1 logs/parity.out)" +compared=$(node -e 'const p = JSON.parse(require("fs").readFileSync("parity.json", "utf8")); console.log(p.vins + p.nhtsa_errors)' 2>/dev/null || echo 0) +want=$(( $(wc -l < vins.txt) - $(wc -l < never_clean.txt) )) +[ "$compared" = "$want" ] || fail "parity compared $compared VINs, expected $want (pg/merged, logs/parity.out)" +differ=$(node -e 'const p = JSON.parse(require("fs").readFileSync("parity.json", "utf8")); console.log(p.vins - p.all_elements_agree)') +[ "$differ" = "0" ] || say "PARITY NOT EXACT: $differ VINs differ from spvindecode or failed locally (parity.json): review lib/vpic-local.mjs before using this file" + +# 5. readable diff and the compressed file +node "$REPO/scripts/vpic-rule-diff.mjs" --db vpic.db --out vpic-rule-fixes.md > /dev/null 2>> logs/diff.err || fail diff +xz -T1 -9 -k -f vpic.db || fail xz +say "files: vpic.db $(du -h vpic.db | cut -f1), vpic.db.xz $(du -h vpic.db.xz | cut -f1), vpic-rule-fixes.md" +touch DONE diff --git a/scripts/vpic-rule-diff.mjs b/scripts/vpic-rule-diff.mjs new file mode 100644 index 0000000..5ce313e --- /dev/null +++ b/scripts/vpic-rule-diff.mjs @@ -0,0 +1,102 @@ +#!/usr/bin/env node +/** + * The difference between mcp.vin's vPIC rule tables and NHTSA's, as a readable Markdown file: every reviewed rule fix + * (data-src/vpic-rule-fixes.jsonl) with NHTSA's original rule row, our edit, the decode errors it fixes, the reason and + * the NHTSA lab reports behind it, and whether it applied to the release in data/vpic.db. It doubles as the error + * report we can send NHTSA. + * + * Usage: node scripts/vpic-rule-diff.mjs [--db data/vpic.db] [--out docs/vpic-rule-fixes.md] + * Reads only the built file (rule_fix_entry records every entry of the changeset, applied or not). + */ +import Database from 'better-sqlite3'; +import {writeFileSync} from 'node:fs'; +import {fileURLToPath} from 'node:url'; + +const arg = (name, dflt) => { const i = process.argv.indexOf(name); return i > 0 ? process.argv[i + 1] : dflt; }; +const DB = arg('--db', fileURLToPath(new URL('../data/vpic.db', import.meta.url))); +const OUT = arg('--out', null); + +// Rows we noticed while tracing the fixes that look wrong too but are not in the reviewed list (not changed). +const NOTICED = [ + {table: 'pattern', id: 810115, note: 'The 2007 Sentra pattern AB61 names the VQ35DE (3.5 L V6) engine; the car has a 2.0 L four (fixed rows rf-012 give it 4 cylinders and 2.0 L). The engine-model row was not in the reviewed list, so it is left as NHTSA has it.'}, +]; + +const db = new Database(DB, {readonly: true, fileMustExist: true}); +const meta = Object.fromEntries(db.prepare('SELECT key, value FROM meta').all().map(r => [r.key, r.value])); +const hasFixTables = !!db.prepare("SELECT 1 FROM sqlite_master WHERE name = 'rule_fix_entry'").get(); +if (!hasFixTables) { console.error(`${DB} was built without rule fixes (scripts/import-vpic.py --no-rule-fixes or an older build).`); process.exit(2); } +const entries = db.prepare('SELECT * FROM rule_fix_entry ORDER BY fix_id').all().map(e => ({...e, edits: JSON.parse(e.edits), errors: JSON.parse(e.errors), evidence: JSON.parse(e.evidence), + reviewed: JSON.parse(e.reviewed), premise: e.premise ? JSON.parse(e.premise) : []})); +const el = new Map(db.prepare('SELECT id, code, value_table FROM element').all().map(e => [e.code, e])); +const lookupName = (code, attr) => { + const e = el.get(code); + if (!e?.value_table) return attr; + return db.prepare('SELECT name FROM lookup WHERE tbl = ? AND id = ?').get(e.value_table, String(attr))?.name ?? attr; +}; +const md = s => String(s ?? '').replace(/\|/g, '\\|'); +const CASES = { + wrong_value: 'wrong value: the row covers the right VINs and states the wrong value', + narrower_key: 'narrower key: the VIN positions separate the versions; the row is narrowed or a narrower row is added', + wrong_row: 'wrong row: a row overrides NHTSA\'s own more specific rows; it is removed', + missing_rule: 'missing rule: NHTSA describes the engine but no row states the field; a row is added on NHTSA\'s own keys', +}; + +function rowText(ed) { + if (ed.table === 'spec_pattern') return `vehicle-spec row ${ed.row.id} (${md(ed.row.applies_to)})`; + const r = ed.row || ed.new; + return `${ed.action === 'add' ? 'new row' : `row ${r.id}`} in schema ${r.schema_id} "${md(r.schema)}", keys \`${md(r.keys)}\``; +} +function editText(ed) { + const r = ed.row; + if (ed.action === 'delete') return `**removed** (${md(r.element)} = ${md(r.value)})`; + if (ed.action === 'add') return `**added**: ${md(ed.new.element)} = ${md(ed.new.value)}`; + const parts = []; + if (ed.set.keys !== undefined && ed.set.keys !== r.keys) parts.push(`keys \`${md(r.keys)}\` → \`${md(ed.set.keys)}\``); + if (ed.set.attribute_id !== undefined && String(ed.set.attribute_id) !== String(r.attribute_id)) parts.push(`${md(r.element)} ${md(r.value)} → **${md(ed.set.value)}**`); + else parts.push(`${md(r.element)} = ${md(r.value)} (unchanged)`); + return parts.join('; '); +} + +const lines = []; +const applied = entries.filter(e => e.status === 'applied'), review = entries.filter(e => e.status !== 'applied'); +lines.push('# mcp.vin fixes to NHTSA\'s vPIC decoding rules', ''); +lines.push(`Generated by \`scripts/vpic-rule-diff.mjs\` from \`data/vpic.db\` (NHTSA vPIC release **${meta.release}**, built ${meta.built_at}). Do not edit by hand.`, ''); +lines.push('NHTSA\'s vPIC decoder turns a VIN into vehicle attributes with rule tables: each `pattern` row says that VINs of a WMI and model-year range whose characters match `keys` (VIN positions 4-8, then `|` and positions 10-17; `*` any character, `[...]` a set) have a value for one element (drive type, cylinders, ...). Vehicle-spec rows add values for a make, model and year from already decoded values (for example every "Launch Model" trim).', ''); +lines.push('mcp.vin decodes VINs with NHTSA\'s own algorithm over NHTSA\'s monthly database, with the rule edits below applied at build time (`data-src/vpic-rule-fixes.jsonl`, `scripts/import-vpic.py`). Each edit names the exact NHTSA row it changes; when a new release changes that row, the edit is not applied and is reported for review. Every value a fix changes is shown with NHTSA\'s official value beside it.', ''); +lines.push('The errors were found by comparing vPIC\'s decode of NHTSA\'s own crash-test and compliance-test vehicles with NHTSA\'s lab record of each vehicle (decode audit 2026-11-17), checked against EPA\'s configuration list; the evidence links are NHTSA\'s lab reports.', ''); +lines.push(`**${entries.length}** fixes (${applied.length} applied, ${review.length} need review), **${applied.reduce((n, e) => n + e.edits.length, 0)}** row edits, correcting **${entries.reduce((n, e) => n + e.errors.length, 0)}** decode errors.`, ''); +const byCase = {}; +for (const e of entries) byCase[e.fix_case] = (byCase[e.fix_case] || 0) + 1; +lines.push('| Kind of fix | Fixes |', '|---|---|'); +for (const [k, n] of Object.entries(byCase).sort((a, b) => b[1] - a[1])) lines.push(`| ${md(CASES[k] || k)} | ${n} |`); +lines.push(''); +lines.push('## Summary', '', '| Fix | Vehicle | Field | NHTSA decodes | Correct | Status |', '|---|---|---|---|---|---|'); +for (const e of entries) { + for (const x of e.errors) lines.push(`| [${e.fix_id}](#${e.fix_id}) | ${x.model_year} ${md(x.make)} ${md(x.model)} (\`${md(x.pattern)}\`) | ${md(x.field)} | ${md(x.vpic_value)} | ${md(x.correct_value)} | ${e.status === 'applied' ? 'applied' : '**needs review**'} |`); +} +lines.push(''); +for (const e of entries) { + const first = e.errors[0]; + const vehicles = [...new Set(e.errors.map(x => `${x.model_year} ${x.make} ${x.model}`))].join(', '); + lines.push(`## ${e.fix_id}`, '', `**${md(vehicles)}**: ${md([...new Set(e.errors.map(x => x.field))].join(', '))}. ${md(CASES[e.fix_case] || e.fix_case)}. Written against release ${e.written_against}; ${e.status === 'applied' ? `applied to ${meta.release}` : `**not applied to ${meta.release}: ${md(e.problem)}**`}.`, ''); + lines.push('| NHTSA rule row | Edit |', '|---|---|'); + for (const ed of e.edits) lines.push(`| ${rowText(ed)} | ${editText(ed)} |`); + for (const p of e.premise) lines.push(`| ${rowText(p)} | unchanged: ${md(p.row.element)} = ${md(p.row.value)} (NHTSA's row the fix relies on; it must be unchanged for the fix to apply) |`); + lines.push(''); + lines.push('VIN patterns it corrects (positions 1-8, check digit `*`, positions 10-11):', ''); + for (const x of e.errors) lines.push(`- \`${md(x.pattern)}\` ${md(x.field)}: NHTSA decodes "${md(x.vpic_value)}", correct "${md(x.correct_value)}" (${x.test_vehicles} NHTSA test vehicle${x.test_vehicles === 1 ? '' : 's'})`); + lines.push('', md(e.reason), ''); + const ev = e.evidence.map(v => `[${v.test_no ? `test ${v.test_no}` : 'report'}](${v.url})`).join(', '); + if (ev) lines.push(`NHTSA lab reports: ${ev}.`, ''); + void first; +} +lines.push('## Noticed, not changed', ''); +for (const n of NOTICED) { + const r = db.prepare('SELECT p.*, s.name AS schema FROM pattern p JOIN vinschema s ON s.id = p.schema_id WHERE p.id = ?').get(n.id); + if (!r) { lines.push(`- ${n.table} row ${n.id}: no longer in release ${meta.release}.`); continue; } + const code = [...el.values()].find(e => e.id === r.element_id)?.code; + lines.push(`- Row ${r.id} in schema ${r.schema_id} "${md(String(r.schema).trim())}", keys \`${md(r.keys)}\`: ${md(code)} = ${md(lookupName(code, r.attribute_id))}. ${md(n.note)}`); +} +lines.push(''); +const text = lines.join('\n'); +if (OUT) { writeFileSync(OUT, text); console.log(`wrote ${OUT} (${entries.length} fixes)`); } else process.stdout.write(text); diff --git a/tests/decode-checks.test.mjs b/tests/decode-checks.test.mjs index 8a32ebe..98db27b 100644 --- a/tests/decode-checks.test.mjs +++ b/tests/decode-checks.test.mjs @@ -193,8 +193,8 @@ test('GVWR varies with options inside a pattern: one differing test vehicle is a assert.notEqual(g.status, 'corrected'); assert.notEqual(g.status, 'doubtful'); }); -test('precedence: owner > manufacturer VIN record > NHTSA test-vehicle pattern > vPIC > assumption', () => { - assert.deepEqual(PRECEDENCE, ['owner', 'manufacturer_vin_record', 'nhtsa_test_vehicle_pattern', 'vpic_decode', 'assumption']); +test('precedence: owner > manufacturer VIN record > mcp.vin rule fix > NHTSA test-vehicle pattern > vPIC > assumption', () => { + assert.deepEqual(PRECEDENCE, ['owner', 'manufacturer_vin_record', 'mcp_vin_rule_fix', 'nhtsa_test_vehicle_pattern', 'vpic_decode', 'assumption']); const mfr = manufacturerDescription('vw', REPLY.vwAtlas, {provider: 'Volkswagen U.S. VIN Recall Lookup', retrieved_at: '2026-11-17T10:00:00Z'}); // the manufacturer's record alone corrects vPIC let r = checkDecode(decoded(), {vin: VIN, evidence: evidence([]), epa: null, manufacturer: mfr}); diff --git a/tests/fixtures/vpic-mini.json b/tests/fixtures/vpic-mini.json new file mode 100644 index 0000000..d865b41 --- /dev/null +++ b/tests/fixtures/vpic-mini.json @@ -0,0 +1 @@ +{"note":"Cut from NHTSA vPIC release tables by scripts/make-vpic-fixture.mjs; regenerate, do not edit.","now":"2026-11-18T00:00:00.000Z","vins":["1V2BR2CA3JC513174","JTNABAAE3PA004901","3KPC24A67LE094049","1C4PJXDG7VW100001","1ZZAB1236C1234567"],"schema":["CREATE TABLE conversion(id INTEGER PRIMARY KEY, from_element_id INTEGER NOT NULL, to_element_id INTEGER NOT NULL, formula TEXT NOT NULL)","CREATE TABLE default_value(id INTEGER PRIMARY KEY, element_id INTEGER NOT NULL, vehicle_type_id INTEGER, default_value TEXT, changed_us INTEGER)","CREATE TABLE element(id INTEGER PRIMARY KEY, name TEXT, code TEXT, lookup_table TEXT, is_private INTEGER, group_name TEXT,\n data_type TEXT, decode TEXT, weight INTEGER, value_table TEXT)","CREATE TABLE engine_model(id INTEGER PRIMARY KEY, name TEXT)","CREATE TABLE engine_model_pattern(id INTEGER PRIMARY KEY, engine_model_id INTEGER NOT NULL, element_id INTEGER NOT NULL,\n attribute_id TEXT, changed_us INTEGER)","CREATE TABLE error_code(id INTEGER PRIMARY KEY, name TEXT, additional_text TEXT, weight INTEGER)","CREATE TABLE lookup(tbl TEXT NOT NULL, id TEXT NOT NULL, name TEXT, PRIMARY KEY(tbl, id)) WITHOUT ROWID","CREATE TABLE make_model(model_id INTEGER NOT NULL, make_id INTEGER NOT NULL)","CREATE TABLE meta(key TEXT PRIMARY KEY, value TEXT)","CREATE TABLE pattern(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL, keys TEXT NOT NULL, element_id INTEGER NOT NULL,\n attribute_id TEXT NOT NULL, changed_us INTEGER)","CREATE TABLE rule_fix(fix_id TEXT NOT NULL, edit_no INTEGER NOT NULL, action TEXT NOT NULL, tbl TEXT NOT NULL, row_id INTEGER NOT NULL,\n schema_id INTEGER, spec_schema_pattern_id INTEGER, element_id INTEGER NOT NULL, is_key INTEGER,\n orig_keys TEXT, orig_attribute_id TEXT, orig_changed_us INTEGER, new_keys TEXT, new_attribute_id TEXT, new_changed_us INTEGER,\n PRIMARY KEY(fix_id, edit_no))","CREATE TABLE rule_fix_entry(fix_id TEXT PRIMARY KEY, written_against TEXT, fix_case TEXT, status TEXT NOT NULL, problem TEXT,\n reason TEXT, evidence TEXT, errors TEXT, reviewed TEXT, edits TEXT, premise TEXT)","CREATE TABLE spec_pattern(id INTEGER PRIMARY KEY, spec_schema_pattern_id INTEGER NOT NULL, is_key INTEGER NOT NULL, element_id INTEGER NOT NULL,\n attribute_id TEXT, changed_us INTEGER)","CREATE TABLE spec_schema(id INTEGER PRIMARY KEY, make_id INTEGER, vehicle_type_id INTEGER, to_be_qced INTEGER)","CREATE TABLE spec_schema_model(schema_id INTEGER NOT NULL, model_id INTEGER NOT NULL)","CREATE TABLE spec_schema_pattern(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL)","CREATE TABLE spec_schema_year(id INTEGER PRIMARY KEY, schema_id INTEGER NOT NULL, year INTEGER)","CREATE TABLE vin_descriptor(descriptor TEXT NOT NULL, model_year INTEGER)","CREATE TABLE vin_exception(vin TEXT PRIMARY KEY) WITHOUT ROWID","CREATE TABLE vinschema(id INTEGER PRIMARY KEY, name TEXT, to_be_qced INTEGER, valid_chars TEXT)","CREATE TABLE wmi(id INTEGER PRIMARY KEY, wmi TEXT NOT NULL UNIQUE, manufacturer_id INTEGER, make_id INTEGER, vehicle_type_id INTEGER,\n truck_type_id INTEGER, changed_us INTEGER, public_us INTEGER)","CREATE TABLE wmi_make(wmi_id INTEGER NOT NULL, make_id INTEGER NOT NULL)","CREATE TABLE wmi_vinschema(wmi_id INTEGER NOT NULL, schema_id INTEGER NOT NULL, year_from INTEGER NOT NULL, year_to INTEGER)","CREATE TABLE wmi_year_chars(wmi TEXT NOT NULL, year INTEGER NOT NULL, chars TEXT NOT NULL, PRIMARY KEY(wmi, year)) WITHOUT ROWID","CREATE INDEX ix_pattern_schema ON pattern(schema_id)","CREATE INDEX ix_wvs_wmi ON wmi_vinschema(wmi_id)","CREATE INDEX ix_make_model ON make_model(model_id)","CREATE INDEX ix_wmi_make ON wmi_make(wmi_id)","CREATE INDEX ix_emp ON engine_model_pattern(engine_model_id)","CREATE INDEX ix_em_name ON engine_model(name)","CREATE INDEX ix_ssm ON spec_schema_model(model_id)","CREATE INDEX ix_ssy ON spec_schema_year(schema_id)","CREATE INDEX ix_ssp ON spec_schema_pattern(schema_id)","CREATE INDEX ix_sp ON spec_pattern(spec_schema_pattern_id)","CREATE INDEX ix_dv ON default_value(vehicle_type_id)","CREATE INDEX ix_vd ON vin_descriptor(descriptor)"],"tables":{"wmi":{"columns":["id","wmi","manufacturer_id","make_id","vehicle_type_id","truck_type_id","changed_us","public_us"],"rows":[[7389,"1V2",1147,null,7,null,1479399047217000,1479340800000000],[2340,"JTN",1057,null,2,null,1432221767923000,1420070400000000],[7208,"3KP",21364,null,2,null,1669632725350000,1473638400000000],[2536,"1C4",994,null,7,null,1473766532073000,1420070400000000]]},"wmi_vinschema":{"columns":["wmi_id","schema_id","year_from","year_to"],"rows":[[7389,15825,2018,2018],[7389,20491,2019,2019],[7389,21348,2020,2020],[7389,22882,2022,2022],[7389,23527,2022,2022],[7389,23528,2022,2022],[7389,24532,2023,2023],[7389,24125,2021,2021],[7389,24047,2022,2022],[7389,24381,2022,2022],[7389,24124,2021,2021],[7389,23499,2022,2022],[7389,24126,2021,2021],[7389,24706,2023,2023],[7389,24123,2021,2021],[7389,24533,2023,2023],[7389,24673,2023,2023],[7389,24531,2023,2023],[7389,25995,2024,2024],[7389,26470,2024,2024],[7389,25483,2024,2024],[7389,25997,2024,2024],[7389,27425,2025,2025],[7389,27448,2025,2025],[7389,27603,2025,2025],[7389,27881,2025,2025],[7389,28049,2025,2025],[7389,28643,2026,null],[7389,29447,2027,null],[7389,29445,2027,null],[7389,28450,2026,2026],[7389,28522,2026,2026],[7389,28554,2026,2026],[7389,29671,2027,null],[2340,2990,2007,2009],[2340,3481,2010,2010],[2340,3480,2009,2009],[2340,3688,2010,2011],[2340,10526,2013,2015],[2340,10519,2011,2011],[2340,11125,2016,2016],[2340,11414,2012,2015],[2340,15138,2017,2018],[2340,15601,2018,2018],[2340,18183,2018,2018],[2340,20132,2019,2019],[2340,20157,2019,2019],[2340,21134,2020,2020],[2340,21261,2020,2020],[2340,22312,2021,2021],[2340,22751,2019,2019],[2340,23231,2022,2022],[2340,24841,2023,2023],[2340,24667,2023,2023],[2340,25662,2021,2021],[2340,25663,2022,2022],[2340,25981,2024,2024],[2340,26700,2024,2024],[2340,27299,2025,2025],[2340,27493,2025,2025],[2340,28577,2026,2026],[2340,29480,2027,null],[2340,28744,2026,null],[7208,12301,2017,2017],[7208,15474,2018,2018],[7208,15479,2018,2018],[7208,15485,2018,2020],[7208,20350,2019,2019],[7208,20018,2019,2019],[7208,20262,2019,2019],[7208,17720,2018,2018],[7208,20960,2020,2020],[7208,20683,2020,2020],[7208,21009,2020,2020],[7208,21810,2021,2021],[7208,22422,2021,2021],[7208,21901,2021,2021],[7208,23260,2022,2022],[7208,23490,2022,2022],[7208,24273,2023,2023],[7208,24492,2023,2023],[7208,23564,2022,2022],[7208,26026,2024,2024],[7208,27259,2025,2025],[7208,29603,2027,null],[7208,28717,2026,2026],[2536,4041,2012,2012],[2536,4029,2012,2013],[2536,3994,2012,2012],[2536,2470,2012,2014],[2536,4245,2014,2014],[2536,4374,2015,2015],[2536,4140,2013,2013],[2536,4372,2015,2015],[2536,4139,2013,2013],[2536,4370,2015,2016],[2536,4297,2014,2014],[2536,6536,2016,2016],[2536,6510,2016,2016],[2536,6695,1995,1995],[2536,6941,1996,1996],[2536,6970,2000,2000],[2536,6978,2000,2000],[2536,7408,2002,2002],[2536,7248,2001,2001],[2536,7543,2003,2003],[2536,7231,2001,2001],[2536,7326,2002,2002],[2536,7524,2003,2003],[2536,8238,1998,1998],[2536,8128,1997,1997],[2536,8242,1999,1999],[2536,8246,1999,1999],[2536,8123,1997,1997],[2536,8225,1998,1998],[2536,10954,2005,2005],[2536,10952,2004,2004],[2536,10961,2005,2005],[2536,10964,2004,2004],[2536,12305,2017,2017],[2536,12955,1994,1994],[2536,14210,1994,1994],[2536,14252,1992,1992],[2536,14315,1990,1990],[2536,14363,1995,1995],[2536,14263,1992,1992],[2536,14281,1991,1991],[2536,14325,1990,1990],[2536,14229,1993,1993],[2536,14241,1993,1993],[2536,14291,1991,1991],[2536,15063,2017,2018],[2536,16436,2018,2018],[2536,20700,2014,2016],[2536,20386,2019,2019],[2536,21287,2020,2020],[2536,23021,2022,2022],[2536,21870,2021,2021],[2536,24249,2023,2023],[2536,25176,2024,2024],[2536,26053,2024,2024],[2536,25809,2024,2024],[2536,25175,2024,2024],[2536,25565,2024,2024],[2536,26050,2024,2024],[2536,27354,2025,2025],[2536,27473,2022,2022],[2536,27481,2014,2014],[2536,27543,2019,2019],[2536,27475,2020,2020],[2536,27483,2012,2012],[2536,27528,2022,2022],[2536,27545,2020,2020],[2536,27199,2025,2025],[2536,27480,2015,2015],[2536,27474,2021,2021],[2536,27482,2013,2013],[2536,27544,2018,2018],[2536,26848,2025,2025],[2536,27461,2023,2023],[2536,27479,2016,2016],[2536,27523,2023,2023],[2536,27478,2017,2017],[2536,27549,2023,2023],[2536,27162,2025,2025],[2536,27181,2025,2025],[2536,27476,2019,2019],[2536,27484,2011,2011],[2536,27520,2023,2023],[2536,27529,2021,2021],[2536,27546,2021,2021],[2536,28359,2026,2026],[2536,28635,2026,2026],[2536,27477,2018,2018],[2536,27521,2022,2022],[2536,27547,2022,2022],[2536,28299,2026,2026],[2536,28636,2026,2026],[2536,29373,2027,null],[2536,29301,2027,null],[2536,29444,2027,null],[2536,6965,1996,1996],[2536,29374,2027,null]]},"vinschema":{"columns":["id","name","to_be_qced","valid_chars"],"rows":[[15825,"Volkswagen MPV Schema for WVG/1V2/3VV - 2018",0,"012345ABCDEFGHKLMNPRS,BFPRV,27,ABC,APX,|,,CDKMW,,,"],[20491,"Volkswagen Tiguan/Atlas Schema for WVG/1V2/3VV - 2019",0,"01234ABDEGHLMNRSTUWXY,BPR,27,AC,AX,|,,CEMW,,,"],[21348,"Volkswagen Tiguan/Atlas Schema for WVG/1V2/3VV - 2020",0,"0123456ADEFGLMNRSTUWY,BCEPR,27,AC,AX,|,,CEMW,,,"],[22882,"Volkswagen Taos/Taos 4Motion SUV Schema for WVG/1V2/3VV (MY2022)",null,"123ACDEGJLMPRSTWY,X,7,B,2,|,,CEMW,,,"],[23527,"Volkswagen Atlas/Atlas 4Motion Schema for WVG/1V2/3VV (MY2022)",null,"ABDFGHJKLSW,PR,2,C,A,,,,,,"],[23528,"Volkswagen Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for WVG/1V2/3VV (MY2022)",null,"ABDFGHJKLSW,CE,2,C,A,,,,,,"],[24532,"Volkswagen Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for WVG/1V2/3VV (MY2023)",null,"BDFGHJKLSW,CE,2,C,A,|,,CEMPW,,,"],[24125,"Volkswagen ID.4 Schema for WVG/1V2/3VV (MY2021)",0,"BCDGJKRTU,MN,P,E,2,|,,CEMPW,,,"],[24047,"Volkswagen ID.4 Schema for WVG/1V2/3VV (MY2022)",0,"BCGJKRTU,MN,P,E,2,|,,CEMW,,,"],[24381,"Volkswagen Plant Schema for WVW/1VW/3VW/WVG/1V2/3VV (MY2022)",null,",,,,,|,,CEMPW,,,"],[24124,"Volkswagen Atlas/Atlas 4Motion Schema for WVG/1V2/3VV (MY2021)",null,"ABCDEFGHJKLMNPRSTW,CEPR,2,C,A,|,,CEMPW,,,"],[23499,"Volkswagen Tiguan Schema for WVG/1V2/3VV (MY2022)",null,"012348C,B,7,A,X,|,,CEMW,,,"],[24126,"Volkswagen Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for WVG/1V2/3VV (MY2021)",0,"ABCDEFGHJKLMNPRSTW,CE,2,C,A,|,,CEMPW,,,"],[24706,"Volkswagen ID.4 Schema for 1V2/3VV (MY2023)",0,"2578ABCDEFGHJUVW,MN,P,E,8,|,,CM,,,"],[24123,"Volkswagen Tiguan/Tiguan 4Motion Schema for WVG/1V2/3VV (MY2021)",null,"01234,B,7,A,X,|,,CEMPW,,,"],[24533,"Volkswagen Taos/Taos 4Motion SUV Schema for WVG/1V2/3VV (MY2023)",null,"247ACDEFGMNSUVWY,X,7,B,2,|,,CEMPW,,,"],[24673,"Volkswagen Tiguan / Tiguan 4Motion Schema for 1V2 / 3VV (MY2023)",null,"2348CFMNR,B,7,A,X,|,,CM,,,"],[24531,"Volkswagen Atlas/Atlas 4Motion Schema for WVG/1V2/3VV (MY2023)",null,"BDFGHJKLSW,PR,2,C,A,|,,CEMPW,,,"],[25995,"Volkswagen Tiguan / Tiguan 4Motion Schema for 1V2 (MY2024)",null,"234568ACFMNRT,B,7,A,X,|,,C,,,"],[26470,"Volkswagen ID.4 Schema for 1V2 (MY2024)",0,"1579BCDHJKMTUVW,MRS,P,E,8,|,,C,,,"],[25483,"Volkswagen Atlas/Atlas 4Motion//Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for 1V2 (MY2024)",null,"ABCDFGHJKLW,ER,2,C,A,|,,C,,,"],[25997,"Volkswagen Taos/Taos 4Motion SUV Schema for 1V2 (MY2024)",0,"458CEGJLSUV,X,7,B,2,|,,C,,,"],[27425,"Volkswagen Atlas/Atlas 4Motion//Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for 1V2 (MY2025)",0,"ABCDFHJKLW,ER,2,C,A,|,,C,,,"],[27448,"Volkswagen ID. Buzz Schema for 1V2 (MY2025)",0,"25689AJKNR,WY,V,E,B,|,,C,,,"],[27603,"Volkswagen Taos/Taos 4Motion Schema for 1V2 (MY2025)",null,"23458ESUV,C,7,B,2,|,,C,,,"],[27881,"Volkswagen ID.4 Schema for 1V2 (MY2025)",null,"5BCDJVW,MRS,P,E,8,|,,C,,,"],[28049,"Volkswagen Tiguan / Tiguan 4Motion Schema for 1V2 (MY2025)",null,"BCEFGHLMN,R,7,R,M,|,,C,,,"],[28643,"Volkswagen ID.4 Schema for 1V2 (MY2026-",null,"CDJVW,RS,P,E,8,|,,C,,,"],[29447,"Volkswagen Taos/Taos 4Motion Schema for 1V2 (MY2027-",null,"23458ERSTUV,D,7,B,2,|,,C,,,"],[29445,"Volkswagen Atlas/Atlas 4Motion Schema for 1V2 (MY2027-",null,"ABCFGHJK,5,3,D,H,|,,C,,,"],[28450,"Volkswagen Atlas/Atlas 4Motion//Atlas Cross Sport/Atlas Cross Sport 4Motion Schema for 1V2 (MY2026)",null,"ABCDFHJKLW,CN,2,C,A,|,,C,,,"],[28522,"Volkswagen Taos/Taos 4Motion Schema for 1V2 (MY2026)",null,"23458ESUV,C,7,B,2,|,,C,,,"],[28554,"Volkswagen Tiguan/Tiguan 4Motion Schema for 1V2 (MY2026)",null,"BCEFGHMNU,RW,7,R,M,|,,C,,,"],[29671,"Volkswagen Tiguan/Tiguan 4Motion Schema for 1V2 (MY2027-",null,"BCEFGHMNU,2RW,7,R,M,|,,C,,,"],[2990,"Toyota Schema for Camry Passenger Car for 4T1/4T4/JTN - (2007-2009)",null,"B,BEK,4,6,K,|,,34RU,,,"],[3481,"Toyota Schema for FCHV-adv Passenger Car for JTN - (2010)",null,"G,X,0,C,A,|,,A,,,"],[3480,"Toyota Schema for FCHV-adv Passenger Car for JTN - 2009",null,"G,X,2,8,A,|,,A,,,"],[3688,"Toyota Camry/Camry Hybrid Passenger Car Schema for 4T4/JTN - (2010-2011)",null,"B,BFK,3,6E,K,|,,0123456ARU,,,"],[10526,"Toyota Scion IQ EV schema for JTN (2013 - 2015)",null,"J,V,X,B,0,|,,J,,,"],[10519,"Toyota Scion iQ schema for JTN - 2011",null,"J,J,X,B,0,|,,J,,,"],[11125,"Toyota Scion iM schema for JTN - 2016",null,"K,A,R,J,E,|,,J,,,"],[11414,"Toyota Scion iQ schema for JTN (2012 - 2015)",null,"J,J,X,B,0,|,,J,,,"],[15138,"Toyota Corolla iM schema for JTN - (2017-2018)",null,"K,A,R,J,E,|,,13J,,,"],[15601,"Toyota Camry Schema for JTN-2018",null,"B,16Z,1,H,K,|,,3,,,"],[18183,"Toyota C-HR Schema for JTN - 2018",null,"K,H,M,B,X,|,,1,,,"],[20132,"Toyota Camry Schema for JTN-2019",null,"B,1,1,H,K,|,,3,,,"],[20157,"Toyota Corolla Schema for JTN - 2019",null,"K,4,R,B,E,|,,3,,,"],[21134,"Toyota C-HR Schema for JTN/NMT - 2020",null,"K,H,M,B,X,|,,1R,,,"],[21261,"Toyota Corolla Schema for JTN - 2020",null,"ABCD,4,R,B,E,|,,3,,,"],[22312,"Toyota Corolla Hatchback Schema for JTN (MY2021)",null,"ABCD,4,M,B,E,|,,3,,,"],[22751,"Toyota C-HR Schema for JTN/NMT - 2019",null,"K,H,M,B,X,|,,1R,,,"],[23231,"Toyota Corolla Hatchback Schema for JTN (MY2022)",null,"ABCD,4,M,B,E,|,,3,,,"],[24841,"TOYOTA GR COROLLA Schema for JTN (MY2023)",null,"A,B,AB,A,E,|,,A,,,"],[24667,"Toyota Corolla Hatchback Schema for JTN (MY2023)",null,"CD,4,M,B,E,|,,3,,,"],[25662,"Toyota C-HR Schema for JTN (MY2021)",null,"K,H,M,B,X,|,,1,,,"],[25663,"Toyota C-HR Schema for JTN (MY2022)",null,"K,H,M,B,X,|,,1,,,"],[25981,"Toyota Corolla Hatchback Schema for JTN (MY2024)",null,"CD,4,M,B,E,|,,3,,,"],[26700,"TOYOTA GR COROLLA Schema for JTN MY(2024)",0,"A,B,AB,A,E,|,,A,,,"],[27299,"Toyota Corolla Hatchback Schema for JTN (MY2025)",null,"CD,4,M,B,E,|,,3,,,"],[27493,"Toyota GR Corolla Schema for JTN (MY2025)",null,"A,B,A,A,E,|,,A,,,"],[28577,"Toyota Corolla Hatchback Schema for JTN MY(2026)",null,"CD,4,M,B,E,|,,3,,,"],[29480,"Toyota Corolla Hatchback Schema for JTN MY(2027-",null,"CD,4,M,B,E,|,,3,,,"],[28744,"Toyota GR Corolla Schema for JTN (MY2026-",null,"A,B,AB,A,E,|,,A,,,"],[12301,"Hyundai Kia Forte Schema for 3KP - 2017",null,"F,KLN,45,ADFJL,378,|,,E,,,"],[15474,"Hyundai Kia Forte Schema for 3KP - 2018",null,"F,KLN,45,,378,|,,E,,,"],[15479,"KIA Rio Schema for 3KP - 2018",null,"A,23,45,,B,|,,E,,,"],[15485,"Hyundai Kia Restraint System Schema for KNA/5XX/U5Y/KMH/KND/5XY/5NP/3KP/KMT (2018-2020)",null,",,,ABCDEFGHJKLMNPR,,,,,,,"],[20350,"KIA Rio Schema for 3KP - 2019",null,"A,23,45,,B,|,,E,,,"],[20018,"Hyundai Accent schema for 3KP - 2019",null,"C,23,45,,3,|,,E,,,"],[20262,"Hyundai Kia Forte Schema for 3KP - 2019",null,"F,2345,4,,D,|,,E,,,"],[17720,"Hyundai Accent schema for KMH/3KP - 2018",null,"C,23TU,45,,3E,|,,EU,,,"],[20960,"Hyundai Kia Forte Schema for 3KP - 2020",null,"F,2345,4,,CD,|,,E,,,"],[20683,"Hyundai Accent schema for 3KP - 2020",null,"C,23,4,,6,|,,E,,,"],[21009,"KIA Rio Schema for 3KP - 2020",null,"A,2,45,,BD,|,,E,,,"],[21810,"Hyundai Accent Schema for 3KP (MY2021)",null,"C,23,4,ADJL,6,|,,E,,,"],[22422,"KIA Rio Schema for 3KP (MY2021)",null,"A,2,45,ABCDEFHJLMNPR,D,|,,E,,,"],[21901,"Kia Forte Schema for 3KP (MY2021)",null,"F,2345,45,ADJL,CD,|,,E,,,"],[23260,"Hyundai Accent Schema for 3KP (MY2022)",null,"C,23,4,ABCDEFHJLN,6,|,,E,,,"],[23490,"KIA Rio Schema for 3KP (MY2022)",null,"A,2,45,ABCDEFHJLMNPRT,D,|,,E,,,"],[24273,"Kia Forte Schema for 3KP (MY2023)",null,"F,245,4,ABCDEFHJLMNPRT,CD,|,,E,,,"],[24492,"KIA Rio Schema for 3KP - 2023",0,"A,2,45,ABCDEFHJLMNPRT,D,|,,E,,,"],[23564,"Kia Forte Schema for 3KP (MY2022)",null,"F,2345,4,ABCDEFHJKLMNPRT,CD,|,,E,,,"],[26026,"Kia Forte Schema for 3KP (MY2024)",null,"F,245,4,ABCDEFHJLMNPRT,CD,|,,E,,,"],[27259,"Kia K4 Schema for 3KP MY(2025)",null,"F,TUW,4,D,CE,|,,E,,,"],[29603,"Kia K4 Schema for 3KP MY(2027-",null,"F,TUWX,45,AD,CE,|,,E,,,"],[28717,"Kia K4 Schema for 3KP MY(2026)",null,"F,TUWX,45,AD,CE,|,,E,,,"],[4041,"Chrysler/Dodge/Jeep/Lancia/Volkswagon MPV/Truck/Ram Schema 2012 ",0,"123456ABCDEFGHJKLMNPRSTUVWXYZ,CDFJLV,123456789ABCDEFGHJKLMNPRSTUVW,ABCDEFGHJKLMNPR,,,,,,,"],[4029,"Chrysler/Dodge/Jeep/Ram MPV/Truck Restraint System Schema - (2012-2013)",null,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,,,,,,,,,,"],[3994,"Chrysler/Dodge Engine Schema 2012",null,",,,,25ABGHJKLMPRTUXY,,,,,,"],[2470,"Chrysler/Fiat/Dodge Manufacturing Plant Schema (2012-2014)",null,",,,,,|,,0123456789ABCDEFGHJKLMNPRSTUVWXYZ,,,"],[4245,"Chrysler/Fiat/Dodge Passenger Car Engine Schema 2014",null,",,,,2345689ABCDEFGHJKLMNRSTUWYZ,,,,,,"],[4374,"Chrysler/Dodge/Jeep MPV/Truck/Ram Schema 2015",0,"123456ABCDEFGHJKLMNPRSTUVWXYZ,CDFJR,123456789ABCDEFGHJKLMNPRSTVW,ABCDEFGHJKLMNPRSTUVWXYZ,,,,,,,"],[4140,"Chrysler/Dodge Engine Schema 2013",null,",,,,256ABEGHJKLMPRTUYZ,,,,,,"],[4372,"Chrysler/Dodge Engine Schema 2015",null,",,,,2345689ABCDEFGHJLMNRSTUWYZ,,,,,,"],[4139,"Chrysler/Dodge/Jeep/Volkswagon MPV/Truck/Ram Schema 2013",null,"123456ABCDEFGHJKLMNPRSTUVWXYZ,CDFJRV,123456789ABCDEFGHJKLMNPRSTW,ABCDEFGHJKLMNPRSTUVW,,,,,,,"],[4370,"Chrysler/Fiat/Dodge Manufacturing Plant Schema (2015-2016)",null,",,,,,|,,1468ACDEGHLNPRSTVW,,,"],[4297,"Chrysler/Dodge/Jeep/Volkswagon MPV/Truck/Ram Schema 2014",0,"123456ABCDEFGHJKLMNPRSTUVWXYZ,CDFJRV,123456789ABCDEFGHJKLMNPRSTVW,ABCDEFGHJKLMNPRSTUVWX,G,|,,DRW,,,"],[6536,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Engine Schema - 2016",null,",,,,258ABDGJLMSTUY,,,,,,"],[6510,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema 2016",0,"123456ABCDEFGHJKLMNPRSTUVWXYZ,CDFJR,123456789ABCDEFGHJKLMNPRSTVW,ABCDEFGHJKLMNPRSTUVWXYZ,,,,,,,"],[6695,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1995",null,"DEFGHJKLMW,,ABN,036789,235679ACDEFGHJKLMPRSTVWXYZ,|,,ACGKLMPRSUWXY,,,"],[6941,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Restraint,Plant,Engine Schema - 1996",null,"DEFGHJKLMQW,,ABN,01235789,2357ABCFGHJLMNPRSTVWXYZ,|,,ABCGJKLMPRSUWY,,,"],[6970,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Plant,Engine Schema - 2000",null,"DEFGHJKLMW,,24567ABN,236789A,23567BGHLMNPRSTVWXYZ,|,,ABCFGJKLMPRS,,,"],[6978,"Chrysler MPV/Truck Schema for 1C4/2C4 - 2000",null,",JPT,2456,45,,,,,,,"],[7408,"Chrysler MPV/Truck Schema 2002",null,",ABCJNPTY,1234567,458,,,,,,,"],[7248,"Chrysler MPV/Truck Schema 2001",null,",JPTY,24567,45B,,,,,,,"],[7543,"Chrysler MPV/Truck Schema 2003",null,",4JPTY,234567,458,,,,,,,"],[7231,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Plant,Engine Schema - 2001",null,"DEFGHJKLMW,,24567,23789A,235679BEGHLMNPRSTVWXYZ,|,,ABCFGJKLMPRST,,,"],[7326,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Plant, Engine Schema - 2002",null,"DEFGHJKLMW,,1234567,23789,13569BCFJKLNPRSTWXYZ,|,,ABCFGJKMPRSTUWY,,,"],[7524,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Plant, Engine Schema - 2003",null,"DEFGHJKLMW,,1234567ABCN,236789,135679ABCDFGJKLNRSTUWXYZ,|,,ABCFGJKMPRSTW,,,"],[8238,"Chrysler MPV Schema for 1C4/2C4 - 1998",null,",PT,2456,45,,,,,,,"],[8128,"Chrysler MPV Schema for 1C4/2C4 - 1997",null,",PT,2456,45,,,,,,,"],[8242,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Restraint, Plant, Engine Schema - 1999",null,"DEFGHJKLMW,,124567,236789,23568BDGHLMNPRSTVWXYZ,|,,ABCFGJKLMPRSW,,,"],[8246,"Chrysler MPV/Truck Schema 1999",null,",PT,2456,45,,,,,,,"],[8123,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Restraint,Plant,Engine Schema - 1997",null,"DEFGHJKLMW,,24568ABN,3789,23578ABCDEFGHJLMPRSTVWXYZ,|,,ABCGJKLMPRSUWY,,,"],[8225,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck Restraint,Plant,Engine Schema - 1998",null,"DEFGHJKLMW,,24568,23789,235678ABCDGHJKLMPRSTVWXYZ,|,,ABCFGJKLMPRSUWY,,,"],[10954,"Chrysler MPV Schema (NICB) - 2005",null,",24FJMPY,4567ABCN,458,,,,,,,"],[10952,"Chrysler MPV Schema (NICB) - 2004",null,",4FJMPTY,4567ABCN,458,,,,,,,"],[10961,"Chrysler/Dodge/Mitsubhishi/Jeep MPV/Truck Engine,Series,Plant Schema (NICB) - 2005",0,"DEFGHJKLMW,,234567,,0123456789ABCDEFGHJKLMNPRSTUVWXYZ,|,,ABCDFGHJKLMNPRSTUVWXY,,,"],[10964,"Chrysler/Dodge/Mitsubhishi/Jeep MPV/Truck Engine,Series,Plant Schema (NICB) - 2004",0,"DEFGHJKLMW,,234567ABCN,2,0123456789ABCDEFGHJKLMNPRSTUVWXYZ,|,,ABCDFGHJKLMNPRSTUVWXY,,,"],[12305,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema - 2017",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,CDJR,23456789ABCDEFGHJKLMNPRSTVW,ABCDEFGHJKLMNPRSTUVWXYZ,258ABDGJLMSTUY,|,,CDEGLRSTW,,,"],[12955,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1994",null,"DEFGHJKLMW,,ABN,03789,2345679ABCEFGHJKLMPRSTVWXYZ,|,,ACGKLMPRSUWXY,,,"],[14210,"Chrysler Town & Country Schema (NICB) - 1994",null,",HK,5,4,,,,,,,"],[14252,"Chrysler Town & Country Schema - 1992",null,",HK,5,4,,,,,,,"],[14315,"Chrysler Town & Country Schema - 1990",null,",Y,5,4,,,,,,,"],[14363,"Chrysler Town & Country Schema (NICB) - 1995",null,",HK,5,4,,,,,,,"],[14263,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1992",null,"DEFGHJKLMW,,ABN,03789,23456789ABCEFGHJKLMPRSTVWXYZ,|,,ACGJKLMPRSUWXY,,,"],[14281,"Chrysler Town & Country Schema - 1991",null,",Y,5,4,,,,,,,"],[14325,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1990",null,"DEFGHJKLMW,,ABN,03789,23456789ABCEFGHJKLMPRSTUVWXYZ,|,,ACGJKLMPRSUWXY,,,"],[14229,"Chrysler Town & Country Schema (NICB) - 1993",null,",HK,5,4,,,,,,,"],[14241,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1993",null,"DEFGHJKLMW,,ABN,03789,2345679ABCEFGHJKLMPRSTVWXYZ,|,,ACGJKLMPRSUWXY,,,"],[14291,"Chrysler/Dodge/Jeep/Plymouth MPV/Truck GVWR/Plant/Engine Schema - 1991",null,"DEFGHJKLMW,,ABN,03789,23456789ABCEFGHJKLMPRSTVWXYZ,|,,ACGJKLMPRSUWXY,,,"],[15063,"Jeep Compass Schema for 1C4 - 2017",null,",J,CD,ABCDEFGH,ABM,,,,,,"],[16436,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema - 2018",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,CDJR,23456789ABCDEFGHJKLMNPRSTVWX,ABCDEFGHJKLMNPRSTUVWXYZ,2589ABDGJLMSTUXY,|,,CDEGLRSTW,,,"],[20700,"Chrysler/Dodge/Ram/Jeep MPV/Truck Restraint System Schema - (2014-2016)",null,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,,,,,,,,,,"],[20386,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema - 2019",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,CDFJR,123456789ABCDEFGHJKLMNPRSTVX,ABCDEFGHJKLMNPRSTUVWX,9BDGJLMNTX,|,,CDEGLNRSTW,,,"],[21287,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema - 2020",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,CDFJR,123456789ABCDEFGHJKLMNPRSTVX,ABCDEFGHJKLMNPRSTUVWXYZ,9BDGJLMNTX,|,,CDEGLNRSTW,,,"],[23021,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema (MY2022)",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,DFJR,23456789ABCDEFGHJKLMNPRSTUVXY,ABCDEFGHJKLMNPRSTUVWX,69BDGJLMNPTX,|,,8CDEGLNRSTW,,,"],[21870,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema (MY2021)",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,CDFJR,123456789ABCDEFGHJKLMNPRSTVX,ABCDEFGHJKLMNPRSTUVWXYZ,9BDGJLMNTX,|,,8CDEGLNRSTW,,,"],[24249,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Schema (MY2023)",0,"1234567ABCDEFGHJKLMNPRSTUVWXYZ,DFJR,23456789ABCDEFGHJKLMNPRSTUVX,ABCDEFGHJKLMNPRSTUVWXZ,69BDGJLMNPT,|,,8CDEGLNRSTW,,,"],[25176,"Chrysler/Dodge/Jeep/Fiat MPV/Truck/Ram Plant Schema (MY2024)",null,",,,,,|,,8CDEGLNRSTW,,,"],[26053,"Dodge Ram ProMaster 1500/2500/3500 Schema for 1C4/1C6 (MY2024)",0,"ABCDEFGHJKLMNPRSTUVXYZ,R,VW,ABCDHJNPRSUVWX,GZ,|,,8CDLNSW,,,"],[25809,"Jeep Grand Cherokee / Grand Cherokee L Schema for 1C4 (MY2024)",0,"ABCDEFGHJKLMNPRSTUVXYZ,J,GHJKY,ABCDEJKLMN,6GT,|,,8CDLNSW,,,"],[25175,"Jeep Wrangler Schema for 1C4 (MY2024)",0,"3456ABCDEFGHJKLMNPRSTUVXYZ,J,X,ACDEFJKLMNPRSTU,6GJN,|,,8CDLNSW,,,"],[25565,"Jeep Wagoneer/Grand Wagoneer Schema for 1C4 (MY2024)",0,"3456ABCDEFGHJKLMNPRSTUVXYZ,J,NRSUV,ABCDEFG,JP,|,,8CDLNSW,,,"],[26050,"Dodge Durango Schema for 1C4 (MY2024)",0,"ABCDEFGHJKLMNPRSTUVXYZ,D,HJ,ACDEFGH,9GJT,|,,8CDLNSW,,,"],[27354,"Jeep Wagoneer/Grand Wagoneer Schema for 1C4 (MY2025)",0,"DKSZ,J,NRSUV,ABCDEFG,PZ,|,,8CDLNSW,,,"],[27473,"Dodge Durango Schema for 1C4 (MY2022)",null,"CDJKRSYZ,D,HJ,ACDEFG,GJT,|,,C,,,"],[27481,"Dodge Durango Schema for 1C4 (MY2014)",null,"CDJKRSYZ,D,HJ,ACDEF,GT,|,,C,,,"],[27543,"Jeep Wrangler Schema for 1C4 (MY2019)",null,"BCHJPRXY,J,X,ABCDEFGHJKLM,GN,|,,CDLNSW,,,"],[27475,"Dodge Durango Schema for 1C4 (MY2020)",null,"CDJKRSYZ,D,HJ,ACDEFG,9GJT,|,,C,,,"],[27483,"Dodge Durango Schema for 1C4 (MY2012)",null,"CDJKRSYZ,D,HJ,ABCDEF,GT,|,,C,,,"],[27528,"Jeep Grand Cherokee / Grand Cherokee L Schema for 1C4 (MY2022)",0,"CJRY,J,EFGHJKY,ABCDEJKLMN,6GT,|,,8CDLNSW,,,"],[27545,"Jeep Wrangler Schema for 1C4 (MY2020)",null,"BCHJPRXY,J,X,ABCDEFGHJKLM,GMN,|,,CDLNSW,,,"],[27199,"Jeep Wrangler Schema for 1C4 (MY2025)",null,"ABCDEFGHJKLMNPRSTUVXYZ,J,X,ACDEFJKLMNPRSU,6GJN,|,,8CDLNSW,,,"],[27480,"Dodge Durango Schema for 1C4 (MY2015)",null,"CDJKRSYZ,D,HJ,ACDEF,GT,|,,C,,,"],[27474,"Dodge Durango Schema for 1C4 (MY2021)",null,"CDJKRSYZ,D,HJ,ACDEFGH,9GJT,|,,C,,,"],[27482,"Dodge Durango Schema for 1C4 (MY2013)",null,"CDJKRSYZ,D,HJ,ACDEF,GT,|,,C,,,"],[27544,"Jeep Wrangler Schema for 1C4 (MY2018)",null,"BCHJPRXY,J,WX,ABCDEFGHJKLM,GN,|,,CDLSW,,,"],[26848,"Dodge Durango Schema for 1C4 (MY2025)",null,"ABCDEFGHJKLMNPRSTUVXYZ,D,HJ,CDFH,9GT,|,,8CDLNSW,,,"],[27461,"Dodge Durango Schema for 1C4 (MY2023)",null,"CDJKRSYZ,D,HJ,ACDEFGH,9GJT,|,,C,,,"],[27479,"Dodge Durango Schema for 1C4 (MY2016)",null,"CDJKRSYZ,D,HJ,ACDEF,GT,|,,C,,,"],[27523,"Jeep Grand Cherokee / Grand Cherokee L Schema for 1C4 (MY2023)",0,"CJRY,J,GHJKY,ABCDEJKLMN,6GNT,|,,8CDLNSW,,,"],[27478,"Dodge Durango Schema for 1C4 (MY2017)",null,"CDJKRSYZ,D,HJ,ACDEF,GT,|,,C,,,"],[27549,"Jeep Wrangler Schema for 1C4 (MY2023)",null,"BCHJPRXY,J,X,ABCDEFGHJKLMNPRS,6GJMN,|,,8CDLNSW,,,"],[27162,"Jeep Grand Cherokee/Grand Cherokee L/Grand Cherokee PHEV Schema for 1C4 (MY2025)",0,"ABCDEFGHJKLMNPRSTUVXYZ,J,GHJKY,ABCDE,6G,|,,8CDLNSW,,,"],[27181,"Dodge Ram ProMaster 1500/2500/3500 Schema for 1C4/1C6 (MY2025)",0,"ABCDEFGHJKLMNPRSTUVXYZ,R,VW,ABCDEFHJNPRSUVWX,GZ,|,,8CDLNSW,,,"],[27476,"Dodge Durango Schema for 1C4 (MY2019)",null,"CDJKRSYZ,D,HJ,ACDEFG,GJT,|,,C,,,"],[27484,"Dodge Durango Schema for 1C4 (MY2011)",null,"CDJKRSYZ,DE,23456,G,GT,|,,C,,,"],[27520,"Jeep Wagoneer/Grand Wagoneer Schema for 1C4 (MY2023)",0,"DKSZ,J,RSUV,ABDEFG,JP,|,,8CDLNSW,,,"],[27529,"Jeep Grand Cherokee / Grand Cherokee L Schema for 1C4 (MY2021)",null,"CJRY,J,EFJK,ABCDEFGHJKLMNP,9GJT,|,,8CDLNSW,,,"],[27546,"Jeep Wrangler Schema for 1C4 (MY2021)",null,"BCHJPRXY,J,X,ABCDEFGHJKLMNPRS,6GMN,|,,8CDLNSW,,,"],[28359,"Jeep Wrangler Schema for 1C4 (MY2026)",null,"PR,J,X,ACDEFJKLMS,GJN,|,,W,,,"],[28635,"Jeep Grand Wagoneer/Grand Wagoneer L Schema for 1C4 (MY2026)",null,"S,J,RSUV,ABE,P,|,,S,,,"],[27477,"Dodge Durango Schema for 1C4 (MY2018)",null,"CDJKRSYZ,D,HJ,ACDEFG,GJT,|,,C,,,"],[27521,"Jeep Wagoneer/Grand Wagoneer Schema for 1C4 (MY2022)",0,"DKSZ,J,UV,ABDEFG,JT,|,,8CDLNSW,,,"],[27547,"Jeep Wrangler Schema for 1C4 (MY2022)",null,"BCHJPRXY,J,X,ABCDEFGHJKLMPRS,6GJMN,|,,8CDLNSW,,,"],[28299,"Dodge Durango Schema for 1C4 (MY2026)",null,"RS,D,HJ,CDFGH,9GJT,|,,C,,,"],[28636,"Jeep Grand Cherokee/Grand Cherokee L/Grand Cherokee PHEV Schema for 1C4 (MY2026)",null,"R,J,GHJKY,ABCE,6GR,|,,8C,,,"],[29373,"Dodge Durango Schema for 1C4 (MY2027-",null,"RS,D,HJ,CDFGH,9GJT,|,,C,,,"],[29301,"Jeep Grand Cherokee/Grand Cherokee L Schema for 1C4 (MY2027-",null,"R,J,GHJK,ABCDE,GR,|,,8C,,,"],[29444,"Jeep Grand Wagoneer/Grand Wagoneer L Schema for 1C4 (MY2027-",null,"SU,J,RSUV,ABDEXY,PV,|,,S,,,"],[6965,"Chrysler MPV Schema for 1C4/2C4 - 1996",null,",PT,2456,45,,,,,,,"],[29374,"Jeep Wrangler Schema for 1C4 (MY2027-",null,"PR,J,X,ACDEFKLMS,GJN,|,,W,,,"]]},"wmi_make":{"columns":["wmi_id","make_id"],"rows":[[7389,482],[2340,448],[7208,499],[7208,498],[2536,482],[2536,496],[2536,477],[2536,492],[2536,476],[2536,497],[2536,483]]},"wmi_year_chars":{"columns":["wmi","year","chars"],"rows":[["1V2",2018,"012345ABCDEFGHKLMNPRS,BFPRV,27,ABC,APX,|,,CDKMW,,,"],["JTN",2023,"ACD,4B,ABM,AB,E,|,,3A,,,"],["3KP",2020,"ACF,2345,45,ABCDEFGHJKLMNPR,6BCD,|,,E,,,"],["1C4",1997,"DEFGHJKLMW,PT,24568ABN,345789,23578ABCDEFGHJLMPRSTVWXYZ,|,,ABCGJKLMPRSUWY,,,"],["1C4",2027,"PRSU,DJ,GHJKRSUVX,ABCDEFGHKLMSXY,9GJNPRTV,|,,8CSW,,,"]]},"pattern":{"columns":["id","schema_id","keys","element_id","attribute_id","changed_us"],"rows":[[-103,15825,"B**CA",15,"1",1794960000000000],[1172745,15825,"*F*BP",9,"6",1493914254913000],[1172748,15825,"*F*BP",13,"3.6",1493914254913000],[1172749,15825,"*F*BP",24,"4",1493914254913000],[1172752,15825,"E**BP",25,"14",1493914254913000],[1172754,15825,"[ERG]**BP",28,"3136",1493914254913000],[1172755,15825,"*****|*W",31,"WOLFSBURG",1493914254913000],[1172756,15825,"*****|*D",31,"BRATISLAVA",1493914254913000],[1172757,15825,"*****|*K",31,"OSNABRUCK",1493914254913000],[1172769,15825,"[ERG]**BP",37,"2",1493914254913000],[1172771,15825,"**7AX",55,"6",1505137102170000],[1172773,15825,"[ERG]**BP",63,"6",1493914254913000],[1172774,15825,"**7AX",65,"3",1505137102170000],[1172776,15825,"*F*BP",71,"280.00",1493914254913000],[1172777,15825,"*****|*K",75,"2",1493914254913000],[1172778,15825,"*****|*D",75,"33",1493914254913000],[1172779,15825,"*****|*W",75,"2",1493914254913000],[1172786,15825,"**7AX",107,"3",1505137102170000],[1172787,15825,"**7AX",121,"Advanced Front Air Bags\r\n",1505137102170000],[1172788,15825,"*F*BP",129,"Fuel: Gas (50-St); Emissions Certification Test Group: HVGAT03.6VUK; Federal / California Emission Standard: IntT3 Bin 125/ULEV II",1493914254913000],[1172791,15825,"*F*BP",146,"VW",1493914254913000],[1172792,15825,"[A-HK-S]**CA",5,"7",1505137478583000],[1172793,15825,"[A-HK-S]**CA",14,"4",1505137478583000],[1172794,15825,"[A-HK-S]**CA",25,"13",1505137478583000],[1172795,15825,"[A-HK-S]**CA",28,"17618",1505137478583000],[1172796,15825,"[A-HK-S]**CA",37,"2",1505137478583000],[1172797,15825,"[A-HK-S]**CA",63,"8",1505137478583000],[1172801,15825,"AR*CA",38,"S",1756893044860000],[1172802,15825,"B**CA",38,"Launch Model",1756893076447000],[1172803,15825,"CR*CA",38,"SE",1756893094593000],[1172804,15825,"DR*CA",38,"SE",1756893129257000],[1172805,15825,"ER*CA",38,"SEL",1756893152083000],[1172806,15825,"G**CA",38,"4Motion S",1756893259367000],[1172807,15825,"H**CA",38,"4Motion Launch Model",1756893295047000],[1172808,15825,"K**CA",38,"4Motion SE",1756893326420000],[1172809,15825,"L**CA",38,"4Motion SE",1756893375053000],[1172810,15825,"M**CA",38,"4Motion SEL",1756893411603000],[1172811,15825,"N**CA",38,"4Motion SEL Premium",1756893435173000],[1172812,15825,"*R*CA",9,"6",1493916154623000],[1172813,15825,"*R*CA",13,"3.6",1493916154623000],[1172814,15825,"*R*CA",24,"4",1493916154640000],[1172815,15825,"*R*CA",71,"276",1496156888197000],[1172816,15825,"*R*CA",129,"Emissions Certification Test Group: JVGAT03.6VAS\r\nEmis.Std: Bin 70/LEV III ULEV 70",1509465192993000],[1172817,15825,"*R*CA",146,"VW",1493916154640000],[1172818,15825,"**2CA",55,"6",1505137087333000],[1172819,15825,"**2CA",107,"3",1493916243890000],[1172820,15825,"*****|*C",31,"CHATTANOOGA",1493916387803000],[1172821,15825,"*****|*C",75,"6",1493916387817000],[1172822,15825,"*****|*C",77,"TENNESSEE",1493916387817000],[1172823,15825,"*****|*M",31,"PUEBLA",1493916434010000],[1172824,15825,"*****|*M",75,"12",1493916438393000],[1195290,15825,"[0-5]**AX",5,"7",1496157072807000],[1195291,15825,"[0-5]**AX",25,"13",1496157072807000],[1195292,15825,"[0-5]**AX",28,"8151",1496157072837000],[1195293,15825,"[0-5]**AX",37,"2",1496157072837000],[1195294,15825,"[0-5]**AX",63,"8",1496157072837000],[1195334,15825,"*B*AX",9,"4",1496157545537000],[1195335,15825,"*B*AX",13,"2",1496157545553000],[1195336,15825,"*B*AX",24,"4",1496157545553000],[1195337,15825,"*B*AX",71,"184",1496157545553000],[1195338,15825,"*B*AX",129,"T.G: JVGAJ02.0A3A;\r\nEmis. Std: Bin30/LEV III SULEV 30",1509465052060000],[1195339,15825,"*B*AX",146,"VW",1496157545553000],[1195345,15825,"**2CA",65,"3",1496157919750000],[1195346,15825,"**2CA",79,"1",1496157919767000],[1195347,15825,"**2CA",121,"Advanced Front Airbags",1496157919767000],[1195349,15825,"**7AX",79,"1",1505137102170000],[1249570,15825,"*P*CA",9,"4",1505137364593000],[1249571,15825,"*P*CA",13,"2",1505137364593000],[1249572,15825,"*P*CA",24,"4",1505137283567000],[1249573,15825,"*P*CA",71,"235",1505137364593000],[1249574,15825,"*P*CA",129,"Emissions Certification Test Group: JVGAT02.0AAA\r\nEmis. Std: Bin 125/LEV III ULEV 125",1505137364610000],[1249575,15825,"*P*CA",146,"VW",1505137283567000],[1249576,15825,"AP*CA",38,"S",1701350706840000],[1249577,15825,"CP*CA",38,"SE",1701350733780000],[1249578,15825,"DP*CA",38,"SE w/Technology",1701350770320000],[1249579,15825,"FP*CA",38,"SE",1756893185653000],[1249580,15825,"FR*CA",38,"SE",1756893225230000],[1249581,15825,"EP*CA",38,"SEL",1701350793373000],[1249582,15825,"SP*CA",38,"SEL",1756893548613000],[1249583,15825,"SR*CA",38,"SEL",1756893578360000],[1249584,15825,"P**CA",38,"SE w/ Technology, 4Motion w/ R-Line",1756893485113000],[1249585,15825,"R**CA",38,"4Motion SEL",1756893527967000],[1249592,15825,"[ERG]**BP",5,"7",1505138420130000],[1353812,15825,"[AB]**AX",5,"7",1524130736623000],[1353813,15825,"[AB]**AX",25,"12",1524130840973000],[1353814,15825,"[AB]**AX",28,"24247",1524130850503000],[1353815,15825,"[AB]**AX",37,"2",1524130736623000],[1353816,15825,"[AB]**AX",63,"6",1524130889507000],[1353822,15825,"*V*AX",9,"4",1524130961563000],[1353823,15825,"*V*AX",13,"2",1524130961563000],[1353824,15825,"*V*AX",24,"4",1524130961563000],[1353825,15825,"*V*AX",71,"200",1524131016617000],[1353826,15825,"*V*AX",129,"T.G: JVGAJ02.0VUD;\r\nEmis. Std: InT3 Bin 125/LEV II ULEV",1524131016617000],[1353827,15825,"*V*AX",146,"VW",1524130961563000],[1437478,15825,"[0-5]**AX",14,"4",1553596326887000],[1437479,15825,"[AB]**AX",14,"4",1553596347060000],[1437480,15825,"[ERG]**BP",14,"4",1553596356123000],[2010300,15825,"AP*CA",18,"TSI",1756894585710000],[2010301,15825,"AP*CA",135,"1",1701350706860000],[2010302,15825,"CP*CA",18,"TSI",1756894600767000],[2010303,15825,"CP*CA",135,"1",1701350733797000],[2010304,15825,"DP*CA",18,"TSI",1756894614350000],[2010305,15825,"DP*CA",135,"1",1701350770447000],[2010306,15825,"EP*CA",18,"TSI",1756894628123000],[2010307,15825,"EP*CA",135,"1",1701350793390000],[2010308,15825,"FP*CA",18,"TSI",1756894641853000],[2010309,15825,"FP*CA",135,"1",1701350815527000],[2010310,15825,"SP*CA",18,"TSI",1756894654993000],[2010311,15825,"SP*CA",135,"1",1701350836897000],[2171204,15825,"0**AX",15,"3",1740068950470000],[2171205,15825,"2**AX",15,"3",1740068966283000],[2171206,15825,"4**AX",15,"3",1740068977123000],[2171207,15825,"B**AX",15,"3",1740068987933000],[2171208,15825,"G**CA",15,"3",1740068999237000],[2171209,15825,"H**CA",15,"3",1740069010300000],[2171210,15825,"K**CA",15,"3",1740069022130000],[2171211,15825,"M**CA",15,"3",1740069032973000],[2171212,15825,"N**CA",15,"3",1740069044797000],[2171214,15825,"R**CA",15,"3",1740069069987000],[2173426,15825,"L**CA",15,"3",1741276733047000],[2226635,15825,"0**AX",38,"4Motion S",1756891997493000],[2226636,15825,"1**AX",38,"S",1756892016703000],[2226637,15825,"2**AX",38,"SE, 4Motion SEL",1756892048513000],[2226638,15825,"3**AX",38,"SE, SEL",1756892067050000],[2226639,15825,"4**AX",38,"4Motion SEL Premium",1756892099087000],[2226640,15825,"5**AX",38,"SEL Premium",1756892615737000],[2226641,15825,"A**AX",38,"Base",1756892631620000],[2226642,15825,"B**AX",38,"4Motion Base",1756892671953000],[2226643,15825,"E**BP",18,"FSI",1756892713260000],[2226644,15825,"E**BP",38,"Sport",1756892713310000],[2226645,15825,"E**BP",109,"w/ Technology",1756892713330000],[2226646,15825,"G**BP",18,"FSI",1756892735790000],[2226647,15825,"G**BP",38,"Executive",1756892735827000],[2226648,15825,"R**BP",18,"FSI",1756892758167000],[2226649,15825,"R**BP",38,"Wolfsburg",1756892758200000],[2226650,15825,"AR*CA",18,"FSI",1756893044840000],[2226651,15825,"B**CA",18,"FSI",1756893076430000],[2226652,15825,"CR*CA",18,"FSI",1756893094567000],[2226653,15825,"DR*CA",18,"FSI",1756893129237000],[2226654,15825,"DR*CA",109,"w/ Technology",1756893129273000],[2226655,15825,"ER*CA",18,"FSI",1756893152067000],[2226656,15825,"FP*CA",109,"w/ Technology, w/ R-Line",1756893185690000],[2226657,15825,"FR*CA",18,"FSI",1756893225213000],[2226658,15825,"FR*CA",109,"w/ Technology, w/ R-Line",1756893225247000],[2226659,15825,"G**CA",18,"FSI",1756893259350000],[2226660,15825,"H**CA",18,"FSI",1756893294920000],[2226661,15825,"K**CA",18,"FSI",1756893326400000],[2226662,15825,"L**CA",18,"FSI",1756893375030000],[2226663,15825,"L**CA",109,"w/ Technology",1756893375073000],[2226664,15825,"M**CA",18,"FSI",1756893411587000],[2226665,15825,"N**CA",18,"FSI",1756893435157000],[2226666,15825,"P**CA",18,"FSI",1756893485097000],[2226667,15825,"R**CA",18,"FSI",1756893527950000],[2226668,15825,"R**CA",109,"w/ R-Line",1756893527987000],[2226669,15825,"SP*CA",109,"w/ R-Line",1756893548633000],[2226670,15825,"SR*CA",18,"FSI",1756893578340000],[2226671,15825,"SR*CA",109,"w/ R-Line",1756893578380000],[-112,24841,"AB[AB]AE",37,"3",1794960000000000],[1860809,24841,"*****|*A",31,"TOYOTA CITY",1668430244153000],[1860810,24841,"*****|*A",75,"3",1668430244170000],[1860811,24841,"*****|*A",76,"Motomachi Plant, Toyota Motor Corp.",1668430244307000],[1860812,24841,"*****|*A",77,"AICHI PREFECTURE",1668430244323000],[1860813,24841,"AB[AB]AE",5,"5",1668430441963000],[1860814,24841,"AB[AB]AE",9,"3",1668430441980000],[1860815,24841,"AB[AB]AE",13,"1.6",1668430442003000],[1860816,24841,"AB[AB]AE",14,"5",1668430442020000],[1860817,24841,"AB[AB]AE",15,"2",1668430442173000],[1860818,24841,"AB[AB]AE",18,"G16E-GTS",1668430442193000],[1860819,24841,"AB[AB]AE",24,"4",1668430442217000],[1860820,24841,"AB[AB]AE",28,"31079",1668430442240000],[1860821,24841,"AB[AB]AE",34,"14 Series",1668430442260000],[1860822,24841,"AB[AB]AE",55,"4",1668430442280000],[1860823,24841,"AB[AB]AE",56,"2",1668430442300000],[1860824,24841,"AB[AB]AE",64,"1",1668430442320000],[1860825,24841,"AB[AB]AE",65,"3",1668430442337000],[1860826,24841,"AB[AB]AE",69,"1",1668430442367000],[1860827,24841,"AB[AB]AE",71,"300",1668430442387000],[1860828,24841,"AB[AB]AE",79,"1",1668430442540000],[1860832,24841,"AB[AB]AE",121,"Seat Belt: All seats",1668430442633000],[1860833,24841,"AB[AB]AE",129,"PORT+DIRECT, L3",1668430442650000],[1860834,24841,"ABAAE",107,"4",1668430457213000],[1860835,24841,"ABBAE",107,"3",1668430473550000],[1842806,24667,"*****|*3",31,"AICHI",1663579881403000],[1842807,24667,"*****|*3",75,"3",1663579881543000],[1842808,24667,"*****|*3",76,"Tsutsumi Plant, Toyota Motor Corp.",1663579881567000],[1842809,24667,"*****|*3",77,"TOYOTA",1663579881587000],[1842810,24667,"[CD]4MBE",5,"5",1663580068360000],[1842811,24667,"[CD]4MBE",9,"4",1663580068377000],[1842812,24667,"[CD]4MBE",13,"2.0",1663580068393000],[1842813,24667,"[CD]4MBE",14,"5",1663580068553000],[1842814,24667,"[CD]4MBE",15,"7",1663580068570000],[1842815,24667,"[CD]4MBE",18,"M20A-FKS",1663580068587000],[1842816,24667,"[CD]4MBE",24,"4",1663580068603000],[1842817,24667,"[CD]4MBE",28,"2208",1663580068620000],[1842818,24667,"[CD]4MBE",34,"12 Series",1663580068633000],[1842819,24667,"[CD]4MBE",55,"4",1663580068650000],[1842820,24667,"[CD]4MBE",56,"2",1663580068667000],[1842821,24667,"[CD]4MBE",64,"1",1663580068683000],[1842822,24667,"[CD]4MBE",65,"3",1663580068700000],[1842823,24667,"[CD]4MBE",69,"1",1663580068717000],[1842824,24667,"[CD]4MBE",71,"169",1663580068857000],[1842825,24667,"[CD]4MBE",79,"1",1663580068873000],[1842829,24667,"[CD]4MBE",107,"4",1663580068940000],[1842830,24667,"[CD]4MBE",121,"Seat Belt: All seats",1663580068957000],[1842831,24667,"[CD]4MBE",129,"PORT+DIRECT / L4",1663580068973000],[1842832,24667,"C4MBE",38,"XSE",1663580090683000],[1842833,24667,"D4MBE",38,"SE",1663580109747000],[1842834,24667,"[CD]4MBE",37,"7",1663580126800000],[1140087,15485,"***A",55,"4",1490972218393000],[1140088,15485,"***C",55,"5",1490972218393000],[1140089,15485,"***D",55,"4",1490972218393000],[1140090,15485,"***G",55,"4",1490972218393000],[1140091,15485,"***H",55,"5",1490972218393000],[1140092,15485,"***J",55,"4",1490972218393000],[1140093,15485,"***K",55,"3",1490972218393000],[1140094,15485,"***L",55,"4",1490972218393000],[1140095,15485,"***L",65,"3",1490972218393000],[1140096,15485,"***F",65,"3",1490972218393000],[1140097,15485,"***K",65,"3",1490972218393000],[1140098,15485,"***J",65,"3",1490972218393000],[1140099,15485,"***H",65,"3",1490972218393000],[1140100,15485,"***G",65,"3",1490972218393000],[1140101,15485,"***D",65,"3",1490972218393000],[1140102,15485,"***B",65,"3",1490972218393000],[1140103,15485,"***E",65,"1",1490972218393000],[1140104,15485,"***C",65,"3",1490972218393000],[1140105,15485,"***A",65,"3",1490972218393000],[1140106,15485,"***G",69,"1",1490972218393000],[1140107,15485,"***H",69,"1",1490972218393000],[1140108,15485,"***J",69,"1",1490972218393000],[1140109,15485,"***L",69,"1",1490972218393000],[1140110,15485,"***L",79,"1",1490972218393000],[1140111,15485,"***F",79,"1",1490972218393000],[1140112,15485,"***N",79,"1",1490972218393000],[1140113,15485,"***J",79,"1",1490972218393000],[1140114,15485,"***K",79,"1",1490972218393000],[1140115,15485,"***H",79,"1",1490972218393000],[1140116,15485,"***G",79,"1",1490972218393000],[1140117,15485,"***A",79,"1",1490972218393000],[1140118,15485,"***C",79,"1",1490972218393000],[1140119,15485,"***E",79,"1",1490972218393000],[1140120,15485,"***B",79,"1",1490972218393000],[1140121,15485,"***D",79,"1",1490972218393000],[1140122,15485,"***D",107,"4",1490972218393000],[1140123,15485,"***C",107,"3",1490972218393000],[1140124,15485,"***A",107,"3",1490972218393000],[1140125,15485,"***H",107,"3",1490972218393000],[1140126,15485,"***K",107,"3",1490972218393000],[1140127,15485,"***J",107,"4",1490972218393000],[1140128,15485,"***F",107,"3",1490972218393000],[1140129,15485,"***L",107,"3",1490972218393000],[1329914,15485,"***M",55,"5",1519910232160000],[1329915,15485,"***M",65,"3",1519910232393000],[1329916,15485,"***M",69,"3",1519910232427000],[1329917,15485,"***M",79,"1",1519910232440000],[1329918,15485,"***M",107,"3",1519910232457000],[1329919,15485,"***P",55,"4",1519910262580000],[1329920,15485,"***P",65,"3",1519910262610000],[1329921,15485,"***P",69,"3",1519910262643000],[1329922,15485,"***P",79,"1",1519910262673000],[1329923,15485,"***P",107,"4",1519910262707000],[1329924,15485,"***R",55,"4",1519910292640000],[1329925,15485,"***R",65,"3",1519910292657000],[1329926,15485,"***R",69,"3",1519910292673000],[1329927,15485,"***R",79,"1",1519910292690000],[1329928,15485,"***R",107,"3",1519910292720000],[1456827,20960,"F[2-5]4",5,"13",1559578450323000],[1456828,20960,"F[2-5]**D",9,"4",1559578450323000],[1456829,20960,"F[2-5]**D",13,"2",1559578450323000],[1456830,20960,"F[2-5]4",14,"4",1559578450323000],[1456831,20960,"F[2-5]**D",18,"MPI Nu",1559578450323000],[1456832,20960,"F[2-5]**D",24,"4",1559578450323000],[1456833,20960,"F[2-5]",28,"2462",1559578450323000],[1456834,20960,"F[2-5]***|*E",31,"TIJUANA",1559578450323000],[1456840,20960,"F[2-5]**D",71,"147",1559578450323000],[1456841,20960,"F[2-5]***|*E",75,"12",1559578450323000],[1456842,20960,"F[2-5]***|*E",76,"Kia Motors Mexico S.A. De C.V. (KMM)",1559578450323000],[1456846,20960,"F[2-5]**D",146,"KMC",1559578450323000],[1456847,20960,"F[2-5]**C",9,"4",1559578535810000],[1456848,20960,"F[2-5]**C",13,"1.6",1559578571003000],[1456849,20960,"F[2-5]**C",18,"t-gdi gAMMA",1646068644640000],[1456850,20960,"F[2-5]**C",24,"4",1559578535810000],[1456852,20960,"F[2-5]**C",71,"201",1559578571020000],[1456853,20960,"F[2-5]**C",146,"KMC",1559578535810000],[2210339,20960,"F5",38,"EX",1752756550593000],[2210340,20960,"F4",38,"GT",1752756554037000],[2210341,20960,"F3",38,"GT Line",1752756558560000],[2210342,20960,"F2",38,"FE, LXS",1752756562330000],[1431078,20683,"C[23]4",5,"13",1550234836347000],[1431080,20683,"C[23]**6",9,"4",1550235633680000],[1431081,20683,"C[23]**6",13,"1.6",1550235633680000],[1431083,20683,"C[23]4",14,"4",1550234836347000],[1431084,20683,"C[23]**6",18,"1.6L DOHC MPI GAMMA II",1550235664070000],[1431085,20683,"C[23]**6",24,"4",1550235633680000],[1431086,20683,"C[23]",28,"2773",1550234836347000],[1431087,20683,"C[23]***|*E",31,"TIJUANA",1550234836347000],[1431090,20683,"C[23]**6",62,"2",1550235633680000],[1431091,20683,"C[23]**6",67,"3",1550235664150000],[1431092,20683,"C[23]**6",71,"120",1550235664163000],[1431093,20683,"C[23]***|*E",75,"12",1550234836347000],[1431094,20683,"C[23]***|*E",76,"Kia Motors Mexico S.A. De C.V. (KMM)",1550234836347000],[1431099,20683,"C[23]**6",146,"HMC",1550235633680000],[2210343,20683,"C2",38,"SE and SEL",1752757043297000],[2210344,20683,"C3",38,"Limited",1752757048897000],[1461160,21009,"A*4",5,"13",1562072189060000],[1461161,21009,"A*5",5,"5",1562072189060000],[1461162,21009,"A***B",9,"4",1562072189060000],[1461163,21009,"A***B",13,"1.6",1562072189060000],[1461164,21009,"A*4",14,"4",1562072189060000],[1461165,21009,"A*5",14,"5",1562072189060000],[1461166,21009,"A***B",18,"GDI Gamma",1562072189060000],[1461167,21009,"A***B",24,"4",1562072189060000],[1461168,21009,"A2",28,"2299",1562072189060000],[1461169,21009,"A****|*E",31,"TIJUANA",1562072189060000],[1461171,21009,"A***B",71,"130",1562072189060000],[1461172,21009,"A****|*E",75,"12",1562072189060000],[1461173,21009,"A****|*E",76,"Kia Motors Mexico S.A. De C.V. (KMM)",1562072189060000],[1461178,21009,"A***B",146,"KMC",1562072189060000],[1581189,21009,"A2**D",9,"4",1596117225727000],[1581190,21009,"A2**D",13,"1.6",1596117225727000],[1581191,21009,"A2**D",18,"GammaII 1.6MPI+CVT",1596117225757000],[1581192,21009,"A2**D",24,"4",1596117225773000],[1581193,21009,"A2**D",37,"7",1596117225790000],[1581194,21009,"A2**D",67,"3",1596117225790000],[1581195,21009,"A2**D",71,"113",1596117225803000],[1581197,21009,"A2**D",146,"KMC",1596117225833000],[2210338,21009,"A2",38,"LX, S",1752756420813000],[2326123,29373,"*****|*C",31,"DETROIT",1781264414750000],[2326124,29373,"*****|*C",75,"6",1781264414840000],[2326125,29373,"*****|*C",76,"Jefferson North Assembly",1781264414883000],[2326126,29373,"*****|*C",77,"MICHIGAN",1781264414897000],[2326127,29373,"[RS]D[HJ]",5,"7",1781264558717000],[2326128,29373,"[RS]D[HJ]",14,"4",1781264558727000],[2326129,29373,"[RS]D[HJ]",28,"3508",1781264558737000],[2326130,29373,"[RS]D[HJ]",36,"1",1781264558750000],[2326131,29373,"[RS]D[HJ]",42,"2",1781264558760000],[2326132,29373,"[RS]D[HJ]",65,"3",1781264558773000],[2326133,29373,"[RS]D[HJ]",79,"1",1781264558793000],[2326137,29373,"[RS]D[HJ]",107,"6",1781264558837000],[2326138,29373,"[RS]D[HJ]",121,"Active Belts",1781264558857000],[2326139,29373,"RD[HJ]",25,"14",1781264578070000],[2326140,29373,"RD[HJ]",190,"14",1781264578083000],[2326141,29373,"SD[HJ]",25,"15",1781264594790000],[2326142,29373,"SD[HJ]",190,"15",1781264594817000],[2326143,29373,"*DHD",15,"4",1781264641163000],[2326144,29373,"*DJ[CDFGH]",15,"3",1781264688447000],[2326145,29373,"*D[HJ]D",38,"GT",1781264712740000],[2326146,29373,"*DJF",38,"Pursuit/Enforcer",1781264736013000],[2326147,29373,"*DJH",38,"SRT Hellcat",1781264754403000],[2326148,29373,"*DJC[9JT]",38,"GT Hemi",1781264790330000],[2326149,29373,"*DJG",38,"R/T 392",1781264806880000],[2326150,29373,"*DJC[9JT]",9,"8",1781264923890000],[2326151,29373,"*DJC[9JT]",24,"4",1781264923900000],[2326152,29373,"*DJC[9JT]",64,"2",1781264923913000],[2326153,29373,"*DJC[9JT]",146,"STLA",1781264923933000],[2326154,29373,"*DJCT",13,"5.7",1781264951590000],[2326155,29373,"*DJC9",13,"6.2",1781264975633000],[2326156,29373,"*DJC9",71,"710",1781264975643000],[2326157,29373,"*DJC9",129,"Super Charged",1781264975653000],[2326158,29373,"*DJCJ",13,"6.4",1781264996757000],[2326159,29373,"*DJCJ",71,"475",1781264996770000],[2326160,29373,"*DHD[9GJT]",24,"4",1781265102607000],[2326161,29373,"*DHD[9GJT]",64,"2",1781265102620000],[2326162,29373,"*DHD[9GJT]",146,"STLA",1781265102630000],[2326163,29373,"*DHDG",9,"6",1781265129640000],[2326164,29373,"*DHDG",13,"3.6",1781265129650000],[2326165,29373,"*DHDG",71,"295",1781265129663000],[2326166,29373,"*DHDT",13,"5.7",1781265141260000],[2326167,29373,"*DHD9",13,"6.7",1781265187230000],[2326168,29373,"*DHD9",71,"710",1781265187243000],[2326169,29373,"*DHD9",129,"Super Charged",1781265187253000],[2326170,29373,"*DHDJ",13,"6.4",1781265205380000],[2326171,29373,"*DHDJ",71,"475",1781265205390000],[2326172,29373,"*DHD[9JT]",9,"8",1781265221773000],[2326173,29373,"*DHD[9JT]",64,"2",1781265221790000],[2326174,29373,"*DJ[DFGH][9GJT]",24,"4",1781265287000000],[2326175,29373,"*DJ[DFGH][9GJT]",64,"2",1781265287000000],[2326176,29373,"*DJ[DFGH][9GJT]",146,"STLA",1781265287000000],[2326177,29373,"*DJ[DFGH][9JT]",9,"8",1781265377673000],[2326178,29373,"*DJ[DFGH][9JT]",64,"2",1781265377673000],[2326179,29373,"*DJ[DFGH]9",13,"6.7",1781265423833000],[2326180,29373,"*DJ[DFGH]9",71,"710",1781265423833000],[2326181,29373,"*DJ[DFGH]9",129,"Super Charged",1781265423833000],[2326182,29373,"*DJ[DFGH]G",9,"6",1781265444807000],[2326183,29373,"*DJ[DFGH]G",13,"3.6",1781265444807000],[2326184,29373,"*DJ[DFGH]G",71,"295",1781265444807000],[2326185,29373,"*DJ[DFGH]T",13,"5.7",1781265479043000],[2326186,29373,"*DJ[DFGH]J",13,"6.4",1781265560880000],[2326187,29373,"*DJ[DFGH]J",71,"475",1781265560880000],[2318621,29301,"*****|*[8C]",31,"DETROIT",1779184913990000],[2318622,29301,"*****|*[8C]",75,"6",1779184914093000],[2318623,29301,"*****|*[8C]",77,"MICHIGAN",1779184914173000],[2318624,29301,"*****|*C",76,"Jefferson North Assembly",1779184934817000],[2318625,29301,"*****|*8",76,"Mack Assembly",1779184955243000],[2318626,29301,"RJ[GH]",5,"7",1779185058583000],[2318627,29301,"RJ[GH]",25,"14",1779185058627000],[2318628,29301,"RJ[GH]",28,"1949",1779185058677000],[2318629,29301,"RJ[GH]",36,"1",1779185058720000],[2318630,29301,"RJ[GH]",42,"2",1779185058767000],[2318634,29301,"RJ[GH]",190,"14",1779185058957000],[2318635,29301,"RJ[JK]",5,"7",1779185238150000],[2318636,29301,"RJ[JK]",14,"4",1779185238190000],[2318637,29301,"RJ[JK]",25,"14",1779185238237000],[2318638,29301,"RJ[JK]",28,"32375",1779185238290000],[2318639,29301,"RJ[JK]",36,"1",1779185238333000],[2318640,29301,"RJ[JK]",42,"2",1779185238377000],[2318644,29301,"RJ[JK]",110,"Open Body Style",1779185238550000],[2318645,29301,"RJ[JK]",190,"14",1779185238597000],[2318646,29301,"*J[GJ][AB]",15,"7",1779185346757000],[2318647,29301,"*JH[A-E]",15,"2",1785256275540000],[2318649,29301,"*J[GHJK]A",38,"Base/Laredo/Limited Classic",1793183219813000],[2318650,29301,"RJ[GH]",14,"4",1779185497620000],[2318651,29301,"RJ[GH]",61,"2",1779185497663000],[2318652,29301,"*J[GHJK]B",38,"Limited",1779185755367000],[2318653,29301,"*J[HK]E",38,"Summit",1779185605380000],[2318654,29301,"*J[GHJK]*[GR]",24,"4",1779185894700000],[2318655,29301,"*J[GHJK]*[GR]",146,"STLA",1779185894743000],[2318656,29301,"*J[GHJK]*G",9,"6",1779185924140000],[2318657,29301,"*J[GHJK]*G",13,"3.6",1779185924187000],[2318658,29301,"*J[GHJK]*G",64,"2",1779185924237000],[2318659,29301,"*J[GHJK]*G",71,"293",1779185924283000],[2318660,29301,"*J[GHJK]*R",9,"4",1779185951467000],[2318661,29301,"*J[GHJK]*R",13,"2",1779185951510000],[2318662,29301,"*J[GHJK]*R",64,"1",1779185951557000],[2318663,29301,"*J[GHJK]*R",71,"324",1779185951600000],[2318664,29301,"*J[GHJK]*R",135,"1",1779185951647000],[2318665,29301,"RJ[GH]",65,"3",1779186006863000],[2318666,29301,"RJ[GH]",79,"1",1779186006903000],[2318667,29301,"RJ[GH]",107,"6",1779186006957000],[2318668,29301,"RJ[GH]",121,"Active Belts",1779186007007000],[2318669,29301,"RJ[JK]",65,"3",1779186034687000],[2318670,29301,"RJ[JK]",79,"1",1779186034740000],[2318671,29301,"RJ[JK]",107,"6",1779186034797000],[2318672,29301,"RJ[JK]",121,"Active Belts",1779186034847000],[2341864,29301,"*JHC",38,"Trailhawk",1785256192383000],[2341865,29301,"*J[HK]D",38,"Overland",1785260325967000],[2341866,29301,"*JK[ABDE]",15,"2",1785256672693000],[2335971,29444,"*****|*S",31,"WARREN",1783423533523000],[2335972,29444,"*****|*S",75,"6",1783423533550000],[2335973,29444,"*****|*S",76,"Warren Truck Assembly",1783423533560000],[2335974,29444,"*****|*S",77,"MICHIGAN",1783423533577000],[2335975,29444,"SJ[RSUV]",25,"15",1790931495580000],[2335976,29444,"[SU]J[RSUV]",65,"3",1790931288600000],[2335977,29444,"[SU]J[RSUV]",79,"1",1790931288600000],[2335978,29444,"[SU]J[RSUV]",107,"6",1790931288600000],[2335979,29444,"[SU]J[RSUV]",121,"Active Belts",1790931288600000],[2335980,29444,"SJ[RSUV]",190,"15",1790931495580000],[2335981,29444,"*J[RU]",15,"7",1783424483503000],[2335982,29444,"*J[SV]",15,"2",1783424497897000],[2335983,29444,"*J[RSUV]",5,"7",1783424554233000],[2335984,29444,"*J[RSUV]",14,"4",1783424554250000],[2335985,29444,"*J[RSUV]",36,"1",1783424554270000],[2335986,29444,"*J[RSUV]",42,"2",1783424554323000],[2335987,29444,"*J[UV]",28,"14871",1783425011677000],[2335991,29444,"*J[RS]",28,"32378",1783425039920000],[2335995,29444,"*J[RU]A",38,"Base",1783425072117000],[2335996,29444,"*J[SV]B",38,"Limited",1783425095070000],[2335997,29444,"*J[SV]D",38,"Overland",1783425112583000],[2335998,29444,"*J[SV]E",38,"Summit",1783425125847000],[2335999,29444,"*J[RU]AP",9,"6",1785258664113000],[2336000,29444,"*J[RU]AP",13,"3",1785258664113000],[2336001,29444,"*J[RU]AP",24,"4",1785258664113000],[2336002,29444,"*J[RU]AP",64,"1",1785258664113000],[2336003,29444,"*J[RU]AP",71,"420",1785258664113000],[2336004,29444,"*J[RU]AP",135,"1",1785258664113000],[2336005,29444,"*J[RU]AP",146,"STLA",1785258664113000],[2341869,29444,"*J[SV]X",38,"Overland REV",1785257921447000],[2341870,29444,"*J[SV]Y",38,"Summit REV",1785257940800000],[2341871,29444,"*J[SV][ABDE]P",9,"6",1785258634063000],[2341872,29444,"*J[SV][ABDE]P",13,"3",1785258634063000],[2341873,29444,"*J[SV][ABDE]P",24,"4",1785258634063000],[2341874,29444,"*J[SV][ABDE]P",64,"1",1785258634063000],[2341875,29444,"*J[SV][ABDE]P",71,"420",1785258634063000],[2341876,29444,"*J[SV][ABDE]P",135,"1",1785258634063000],[2341877,29444,"*J[SV][ABDE]P",146,"STLA",1785258634063000],[2341878,29444,"*J[SV][XY]V",9,"6",1785258755650000],[2341879,29444,"*J[SV][XY]V",13,"3.6",1785258755760000],[2341880,29444,"*J[SV][XY]V",58,"400",1785258755780000],[2341881,29444,"*J[SV][XY]V",64,"2",1785258755817000],[2341882,29444,"*J[SV][XY]V",146,"STLA",1785258755840000],[2341883,29444,"*J[SV][XY]V",129,"Range Extended Vehicle",1785259480257000],[2341884,29444,"*J[SV][XY]V",24,"4",1785259519680000],[2356639,29444,"UJ[RSUV]",25,"17",1790931167890000],[2356640,29444,"UJ[RSUV]",190,"17",1790931167903000],[2326188,29374,"*****|*W",31,"TOLEDO",1781267938263000],[2326189,29374,"*****|*W",75,"6",1781267938313000],[2326190,29374,"*****|*W",76,"Toledo North Assembly",1781267938343000],[2326191,29374,"*****|*W",77,"OHIO",1781267938370000],[2326192,29374,"[PR]JX",5,"7",1781268092080000],[2326193,29374,"[PR]JX",15,"2",1781268092097000],[2326194,29374,"[PR]JX",28,"1943",1781268092110000],[2326195,29374,"[PR]JX",42,"2",1781268092130000],[2326196,29374,"[PR]JX",65,"3",1781268092143000],[2326197,29374,"[PR]JX",79,"1",1781268092157000],[2326201,29374,"[PR]JX",107,"6",1781268092200000],[2326202,29374,"[PR]JX",121,"Active Belts",1781268092213000],[2326203,29374,"PJX",25,"13",1781268110237000],[2326204,29374,"PJX",190,"13",1781268110247000],[2326205,29374,"RJX",25,"14",1781268125193000],[2326206,29374,"RJX",190,"14",1781268125207000],[2326207,29374,"*JX[AC]",14,"2",1781268394890000],[2326208,29374,"*JX[DEFKLMS]",14,"4",1781268435183000],[2326209,29374,"*JX[ACDEFS]",36,"1",1781268469940000],[2326210,29374,"*JX[KLM]",36,"2",1781268480780000],[2326211,29374,"[PR]JX",110,"Open Body Style",1781268500557000],[2326212,29374,"*JX[ADK]",38,"Sport",1781268598873000],[2326213,29374,"*JX[CFM]",38,"Rubicon",1781268573540000],[2326214,29374,"*JX[EL]",38,"Sahara",1781268624660000],[2326215,29374,"*JXS",38,"392",1781268636890000],[2326216,29374,"*JX[LM]",114,"Export Only",1781268748883000],[2326217,29374,"*JX*[GJN]",24,"4",1781268843380000],[2326219,29374,"*JX*[GJN]",146,"STLA",1781268843407000],[2326220,29374,"*JX*G",9,"6",1781268869247000],[2326221,29374,"*JX*G",13,"3.6",1781268869260000],[2326222,29374,"*JX*G",71,"285",1781268869273000],[2326223,29374,"*JX*J",9,"8",1781268887173000],[2326224,29374,"*JX*J",13,"6.4",1781268887183000],[2326225,29374,"*JX*J",71,"470",1781268887193000],[2326226,29374,"*JX*G",64,"2",1781268923573000],[2326227,29374,"*JX*J",64,"2",1781268937877000],[2326228,29374,"*JX*N",9,"4",1781268988410000],[2326229,29374,"*JX*N",13,"2",1781268988423000],[2326230,29374,"*JX*N",64,"1",1781268988443000],[2326231,29374,"*JX*N",71,"270",1781268988453000],[2326232,29374,"*JX*N",135,"1",1781268988470000]]},"make_model":{"columns":["model_id","make_id"],"rows":[[3136,482],[17618,482],[8151,482],[24247,482],[31079,448],[2208,448],[2462,499],[2773,498],[2299,499],[3508,476],[1949,483],[32375,483],[14871,483],[32378,483],[1943,483]]},"spec_schema":{"columns":["id","make_id","vehicle_type_id","to_be_qced"],"rows":[[251,499,2,null],[254,499,2,null],[272,498,2,null],[377,476,7,null],[384,483,7,null],[386,483,7,null],[438,482,7,null],[439,482,7,null],[623,476,7,null],[629,483,7,null],[631,483,7,null],[648,498,2,null],[659,482,7,null],[682,499,2,null],[685,499,2,null],[737,448,2,null],[1502,448,2,null],[1527,476,7,null],[1545,483,7,null],[1548,483,7,null],[1549,483,7,null],[1573,498,2,null],[1603,499,2,null],[1617,499,2,null],[1748,482,7,null],[1749,482,7,null],[2801,499,2,0],[3551,499,2,0],[3699,448,2,0],[3886,482,7,0],[3895,482,7,0],[4047,476,7,0],[4052,483,7,0],[4053,483,7,0],[4056,483,7,0],[4938,448,2,null],[5085,498,2,null],[5103,499,2,null],[5108,499,2,null],[6831,483,7,null],[6863,476,7,null],[6864,483,7,null],[6903,483,7,null],[6905,482,7,null],[6917,448,2,null],[6989,482,7,null]]},"spec_schema_model":{"columns":["schema_id","model_id"],"rows":[[251,2299],[254,2462],[272,2773],[377,3508],[384,1943],[386,1949],[438,24247],[439,17618],[623,3508],[629,1943],[631,1949],[648,2773],[659,8151],[682,2299],[685,2462],[737,2208],[1502,2208],[1527,3508],[1545,1949],[1548,1943],[1549,1943],[1573,2773],[1603,2299],[1617,2462],[1748,8151],[1749,17618],[2801,2462],[3551,2299],[3699,2208],[3699,31079],[3886,17618],[3895,8151],[4047,3508],[4052,1949],[4053,14871],[4056,1943],[4938,2208],[5085,2773],[5103,2462],[5108,2299],[6831,32375],[6831,1949],[6863,3508],[6864,1943],[6903,32378],[6903,14871],[6905,17618],[6917,2208],[6989,8151]]},"spec_schema_year":{"columns":["id","schema_id","year"],"rows":[[550,251,2018],[551,251,2017],[1011,254,2018],[1012,254,2017],[1313,272,2018],[1314,272,2017],[872,377,2018],[873,377,2017],[889,384,2018],[890,384,2017],[893,386,2018],[894,386,2017],[795,438,2018],[1694,439,2018],[22631,623,2018],[1660,629,2018],[1663,631,2018],[1683,648,2018],[24938,659,2018],[1724,682,2018],[1727,685,2018],[3317,737,2018],[3375,1502,2020],[3414,1527,2020],[3444,1545,2020],[3449,1549,2020],[3475,1573,2020],[3806,1603,2020],[3814,1617,2020],[3937,1748,2020],[3938,1749,2020],[7895,2801,2023],[6471,3551,2023],[8038,3699,2023],[15439,3886,2023],[15430,3895,2023],[7855,4047,2023],[7953,4052,2023],[7943,4053,2023],[7952,4056,2023],[11863,4938,2024],[11864,4938,2023],[11865,4938,2022],[11866,4938,2021],[11867,4938,2020],[11868,4938,2019],[11869,4938,2018],[11870,4938,2017],[11871,4938,2016],[11872,4938,2015],[11873,4938,2014],[11874,4938,2013],[11875,4938,2012],[11876,4938,2011],[11877,4938,2010],[11878,4938,2009],[11879,4938,2008],[11880,4938,2007],[11881,4938,2006],[11882,4938,2005],[11883,4938,2004],[11884,4938,2003],[11885,4938,2002],[11886,4938,2001],[11887,4938,2000],[11888,4938,1999],[11889,4938,1998],[11890,4938,1997],[11891,4938,1996],[11892,4938,1995],[11893,4938,1994],[11894,4938,1993],[11895,4938,1992],[11896,4938,1991],[11897,4938,1990],[11898,4938,1989],[11899,4938,1988],[11900,4938,1987],[11901,4938,1986],[11902,4938,1985],[11903,4938,1984],[11904,4938,1983],[11905,4938,1982],[11906,4938,1981],[11326,5085,2022],[11327,5085,2021],[11328,5085,2020],[11329,5085,2019],[11330,5085,2018],[11331,5085,2017],[11332,5085,2016],[11333,5085,2015],[11334,5085,2014],[11335,5085,2013],[11336,5085,2012],[11337,5085,2011],[11338,5085,2010],[11339,5085,2009],[11340,5085,2008],[11341,5085,2007],[11342,5085,2006],[11343,5085,2005],[11344,5085,2004],[11345,5085,2003],[11346,5085,2002],[11347,5085,2001],[11348,5085,2000],[11349,5085,1999],[11350,5085,1998],[11351,5085,1997],[11352,5085,1996],[11353,5085,1995],[11845,5103,2024],[11846,5103,2022],[11847,5103,2021],[11848,5103,2020],[11849,5103,2019],[11850,5103,2018],[11851,5103,2017],[11852,5103,2016],[11853,5103,2015],[11854,5103,2014],[11855,5103,2013],[11856,5103,2012],[11857,5103,2011],[11858,5103,2010],[11557,5108,2023],[11558,5108,2022],[11559,5108,2021],[11560,5108,2020],[11561,5108,2019],[11562,5108,2018],[11563,5108,2017],[11564,5108,2016],[11565,5108,2015],[11566,5108,2014],[11567,5108,2013],[11568,5108,2012],[11569,5108,2011],[11570,5108,2010],[11571,5108,2009],[11572,5108,2008],[11573,5108,2007],[11574,5108,2006],[11575,5108,2005],[11576,5108,2004],[11577,5108,2003],[11578,5108,2002],[11579,5108,2001],[19176,6831,2027],[19218,6863,2027],[19219,6864,2027],[19268,6903,2027],[19270,6905,2027],[19282,6917,2027],[24365,6989,2027]]},"spec_schema_pattern":{"columns":["id","schema_id"],"rows":[[473,251],[474,251],[477,254],[478,254],[479,254],[498,272],[499,272],[689,377],[698,384],[699,384],[701,386],[778,438],[1741,438],[1742,438],[779,439],[1705,439],[1706,439],[1707,439],[1708,439],[1709,439],[1710,439],[1711,439],[1712,439],[1713,439],[1714,439],[1715,439],[1716,439],[1717,439],[1718,439],[1719,439],[1474,623],[1475,623],[1476,623],[1477,623],[1478,623],[1550,623],[1551,623],[1552,623],[1553,623],[1506,629],[1507,629],[1508,629],[1509,629],[1510,629],[20299,629],[1517,631],[1518,631],[1519,631],[1520,631],[1521,631],[1522,631],[1523,631],[1569,631],[1570,631],[1571,631],[1572,631],[20304,631],[1649,648],[1776,648],[20230,648],[20231,648],[1737,659],[1738,659],[1739,659],[1740,659],[1750,659],[1751,659],[20201,659],[1900,682],[1901,682],[1902,682],[1903,682],[20339,682],[20340,682],[1913,685],[1914,685],[1915,685],[1916,685],[1917,685],[1918,685],[20342,685],[20343,685],[2276,737],[6068,737],[6069,737],[6169,1502],[6170,1502],[6172,1502],[6174,1502],[6175,1502],[6176,1502],[6177,1502],[6178,1502],[6179,1502],[6180,1502],[6181,1502],[6182,1502],[6183,1502],[6184,1502],[6185,1502],[6186,1502],[6187,1502],[6188,1502],[11239,1502],[11240,1502],[6253,1527],[6254,1527],[6255,1527],[6256,1527],[6257,1527],[6301,1545],[6310,1549],[6432,1573],[6433,1573],[11166,1573],[6634,1603],[20352,1603],[20353,1603],[6707,1617],[6708,1617],[6709,1617],[6710,1617],[20351,1617],[7344,1748],[7349,1749],[8442,1749],[8443,1749],[8444,1749],[8445,1749],[8446,1749],[8447,1749],[8448,1749],[8449,1749],[8450,1749],[11656,2801],[14361,2801],[14362,2801],[14363,2801],[12913,3551],[12914,3551],[13084,3699],[13085,3699],[14650,3699],[14651,3699],[13297,3886],[14394,3886],[14395,3886],[14396,3886],[14397,3886],[14399,3886],[14402,3886],[16268,3886],[16269,3886],[16270,3886],[16271,3886],[13305,3895],[14424,3895],[14425,3895],[14426,3895],[16240,3895],[16241,3895],[16242,3895],[16243,3895],[13489,4047],[15705,4047],[15706,4047],[19887,4047],[19888,4047],[19889,4047],[19890,4047],[13493,4052],[15707,4052],[15708,4052],[13494,4053],[13497,4056],[15351,4938],[15352,4938],[15353,4938],[15354,4938],[15630,5085],[15631,5085],[15632,5085],[15652,5103],[15653,5103],[15654,5103],[15659,5108],[15660,5108],[19206,6831],[19249,6863],[19250,6864],[19295,6903],[19299,6905],[19313,6917],[19352,6917],[19859,6989]]},"spec_pattern":{"columns":["id","spec_schema_pattern_id","is_key","element_id","attribute_id","changed_us"],"rows":[[3633,473,1,14,"5",1531222309983000],[3634,473,0,168,"1",1531222309983000],[3635,474,1,14,"4",1531222728790000],[3636,474,0,168,"1",1531222728790000],[3641,477,1,14,"2",1531224542060000],[3642,477,0,168,"1",1531224542060000],[3643,478,1,14,"4",1531224551777000],[3644,478,0,168,"1",1531224551810000],[3645,479,1,14,"5",1531224561760000],[3646,479,0,168,"1",1531224561760000],[3685,498,1,14,"4",1531236339173000],[3686,498,0,168,"1",1531236339173000],[3687,499,1,14,"5",1531236352067000],[3688,499,0,168,"1",1531236352083000],[4495,689,1,14,"4",1531482879880000],[4496,689,0,168,"1",1531482879880000],[4513,698,1,14,"2",1531483606590000],[4514,698,0,168,"1",1531483606603000],[4515,699,1,14,"4",1531483614437000],[4516,699,0,168,"1",1531483614437000],[4519,701,1,14,"4",1531483753403000],[4520,701,0,168,"1",1531483753403000],[4777,778,0,168,"2",1790691537183000],[291452,778,1,5,"7",1790691537090000],[291453,778,0,54,"3646",1790691537157000],[291454,778,0,114,"Curb Weight (lbs): 3404-3646",1790691537170000],[15719,1741,0,15,"1",1756894446577000],[15720,1741,0,33,"5",1756894446590000],[15722,1741,0,36,"1",1756894446623000],[15723,1741,0,41,"2",1756894446647000],[15724,1741,0,61,"2",1756894446660000],[15725,1741,0,86,"1",1756894446783000],[15726,1741,0,99,"1",1756894446797000],[15727,1741,0,104,"1",1756894446810000],[15728,1741,0,111,"102.50",1756894446820000],[15729,1741,0,115,"4",1756894446833000],[15730,1741,0,119,"16",1756894446847000],[15731,1741,0,120,"16",1756894446860000],[15732,1741,0,136,"22250.00",1756894446870000],[15733,1741,0,169,"Intelligent Crash Response System",1756894446883000],[15734,1741,0,176,"3",1756894446897000],[15735,1741,0,177,"1",1756894446910000],[15736,1741,0,179,"1",1756894447030000],[269303,1741,1,38,"Base",1756894446633000],[15738,1742,0,15,"1",1756894433890000],[15739,1742,0,33,"5",1756894433903000],[15741,1742,0,36,"1",1756894433930000],[15742,1742,0,41,"2",1756894434070000],[15743,1742,0,61,"2",1756894434087000],[15744,1742,0,86,"1",1756894434100000],[15745,1742,0,99,"1",1756894434120000],[15746,1742,0,104,"1",1756894434133000],[15747,1742,0,111,"102.50",1756894434150000],[15748,1742,0,115,"4",1756894434167000],[15749,1742,0,119,"16",1756894434180000],[15750,1742,0,120,"16",1756894434193000],[15751,1742,0,136,"24225.00",1756894434203000],[15752,1742,0,169,"Intelligent Crash Response System",1756894434330000],[15753,1742,0,176,"3",1756894434347000],[15754,1742,0,177,"1",1756894434360000],[15755,1742,0,179,"1",1756894434370000],[269302,1742,1,38,"4Motion Base",1756894434057000],[4779,779,0,168,"2",1790691584960000],[291455,779,1,5,"7",1790691584913000],[291456,779,0,54,"4502",1790691584930000],[291457,779,0,114,"Curb Weight (lbs): 4222-4502",1790691584940000],[14702,1705,0,15,"3",1756893704187000],[14703,1705,0,33,"7",1756893704203000],[14704,1705,0,36,"1",1756893704220000],[14705,1705,1,38,"S",1756893704237000],[14706,1705,0,41,"2",1756893704253000],[14707,1705,0,61,"3",1756893704270000],[14708,1705,0,81,"3",1756893704287000],[14709,1705,0,86,"1",1756893704303000],[14710,1705,0,87,"1",1756893704423000],[14711,1705,0,88,"3",1756893704437000],[14712,1705,0,99,"1",1756893704450000],[14713,1705,0,100,"1",1756893704460000],[14714,1705,0,101,"3",1756893704473000],[14715,1705,0,102,"3",1756893704487000],[14716,1705,0,103,"5",1756893704497000],[14717,1705,0,104,"1",1756893704510000],[14718,1705,0,111,"117.30",1756893704530000],[14719,1705,0,115,"4",1756893704550000],[14720,1705,0,119,"18",1756893704560000],[14721,1705,0,120,"18",1756893704683000],[14722,1705,0,136,"30750.00",1756893704697000],[14723,1705,0,139,"113",1756893704710000],[14724,1705,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893704720000],[14725,1705,0,170,"1",1756893704733000],[14726,1705,0,171,"3",1756893704750000],[14727,1705,0,172,"1",1756893704767000],[14728,1705,0,176,"1",1756893704783000],[14729,1705,0,177,"1",1756893704797000],[14730,1705,0,179,"1",1756893704810000],[14732,1706,0,15,"3",1756893760050000],[14733,1706,0,33,"7",1756893760067000],[14734,1706,0,36,"1",1756893760197000],[14735,1706,1,38,"SE",1756893760210000],[14736,1706,0,41,"2",1756893760223000],[14737,1706,0,61,"3",1756893760240000],[14738,1706,0,81,"3",1756893760253000],[14739,1706,0,86,"1",1756893760270000],[14740,1706,0,87,"1",1756893760290000],[14741,1706,0,88,"3",1756893760313000],[14742,1706,0,99,"1",1756893760333000],[14743,1706,0,100,"1",1756893760353000],[14744,1706,0,101,"3",1756893760370000],[14745,1706,0,102,"3",1756893760497000],[14746,1706,0,103,"5",1756893760513000],[14747,1706,0,104,"1",1756893760537000],[14748,1706,0,111,"117.30",1756893760557000],[14749,1706,0,115,"4",1756893760570000],[14750,1706,0,119,"18",1756893760580000],[14751,1706,0,120,"18",1756893760593000],[14752,1706,0,136,"33840.00",1756893760607000],[14753,1706,0,139,"113",1756893760620000],[14754,1706,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893760633000],[14755,1706,0,170,"1",1756893760647000],[14756,1706,0,171,"3",1756893760770000],[14757,1706,0,172,"1",1756893760790000],[14758,1706,0,176,"1",1756893760807000],[14759,1706,0,177,"1",1756893760823000],[14760,1706,0,179,"1",1756893760837000],[14762,1707,0,15,"3",1756893749563000],[14763,1707,0,33,"7",1756893749577000],[14764,1707,0,36,"1",1756893749590000],[14765,1707,1,38,"SE",1756893749600000],[14766,1707,0,41,"2",1756893749613000],[14767,1707,0,61,"3",1756893749627000],[14768,1707,0,81,"3",1756893749640000],[14769,1707,0,86,"1",1756893749653000],[14770,1707,0,87,"1",1756893749667000],[14771,1707,0,88,"3",1756893749790000],[14772,1707,0,99,"1",1756893749807000],[14773,1707,0,100,"1",1756893749823000],[14774,1707,0,101,"3",1756893749840000],[14775,1707,0,102,"3",1756893749853000],[14776,1707,0,103,"5",1756893749867000],[14777,1707,0,104,"1",1756893749883000],[14778,1707,0,111,"117.30",1756893749917000],[14779,1707,0,115,"4",1756893749930000],[14780,1707,0,119,"18",1756893749947000],[14781,1707,0,120,"18",1756893750073000],[14782,1707,0,136,"35940.00",1756893750087000],[14783,1707,0,139,"113",1756893750103000],[14784,1707,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893750120000],[14785,1707,0,170,"1",1756893750133000],[14786,1707,0,171,"3",1756893750150000],[14787,1707,0,172,"1",1756893750170000],[14788,1707,0,176,"1",1756893750187000],[14789,1707,0,177,"1",1756893750200000],[14790,1707,0,179,"1",1756893750220000],[269293,1707,1,109,"w/ Technology",1756893749900000],[14792,1708,0,15,"3",1756893791843000],[14793,1708,0,33,"7",1756893791857000],[14794,1708,0,36,"1",1756893791870000],[14795,1708,1,38,"SEL",1756893791880000],[14796,1708,0,41,"2",1756893791893000],[14797,1708,0,61,"3",1756893791907000],[14798,1708,0,81,"3",1756893791917000],[14799,1708,0,86,"1",1756893791930000],[14800,1708,0,87,"1",1756893791943000],[14801,1708,0,88,"3",1756893791953000],[14802,1708,0,99,"1",1756893792080000],[14803,1708,0,100,"1",1756893792093000],[14804,1708,0,101,"3",1756893792107000],[14805,1708,0,102,"3",1756893792120000],[14806,1708,0,103,"5",1756893792130000],[14807,1708,0,104,"1",1756893792143000],[14808,1708,0,111,"117.30",1756893792157000],[14809,1708,0,115,"4",1756893792170000],[14810,1708,0,119,"18",1756893792180000],[14811,1708,0,120,"18",1756893792193000],[14812,1708,0,136,"39410.00",1756893792203000],[14813,1708,0,139,"113",1756893792323000],[14814,1708,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893792337000],[14815,1708,0,170,"1",1756893792350000],[14816,1708,0,171,"3",1756893792360000],[14817,1708,0,172,"1",1756893792373000],[14818,1708,0,176,"1",1756893792387000],[14819,1708,0,177,"1",1756893792400000],[14820,1708,0,179,"1",1756893792413000],[14822,1709,0,15,"3",1756893854120000],[14823,1709,0,33,"7",1756893854147000],[14824,1709,0,36,"1",1756893854160000],[14825,1709,1,38,"S",1756893854170000],[14826,1709,0,41,"2",1756893854183000],[14827,1709,0,61,"3",1756893854197000],[14828,1709,0,81,"3",1756893854210000],[14829,1709,0,86,"1",1756893854333000],[14830,1709,0,87,"1",1756893854350000],[14831,1709,0,88,"3",1756893854363000],[14832,1709,0,99,"1",1756893854380000],[14833,1709,0,100,"1",1756893854393000],[14834,1709,0,101,"3",1756893854403000],[14835,1709,0,102,"3",1756893854417000],[14836,1709,0,103,"5",1756893854430000],[14837,1709,0,104,"1",1756893854440000],[14838,1709,0,105,"3",1756893854457000],[14839,1709,0,111,"117.30",1756893854473000],[14840,1709,0,115,"4",1756893854597000],[14841,1709,0,119,"18",1756893854610000],[14842,1709,0,120,"18",1756893854630000],[14843,1709,0,136,"32150.00",1756893854647000],[14844,1709,0,139,"113",1756893854660000],[14845,1709,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893854670000],[14846,1709,0,170,"1",1756893854683000],[14847,1709,0,171,"3",1756893854697000],[14848,1709,0,172,"1",1756893854707000],[14849,1709,0,176,"1",1756893854720000],[14850,1709,0,177,"1",1756893854733000],[14851,1709,0,179,"1",1756893854853000],[14852,1709,0,180,"3",1756893854867000],[269294,1709,1,18,"FSI",1756893854133000],[14854,1710,0,15,"3",1756893819767000],[14855,1710,0,33,"7",1756893819780000],[14856,1710,0,36,"1",1756893819800000],[14857,1710,1,38,"Launch Model",1756893819813000],[14858,1710,0,41,"2",1756893819830000],[14859,1710,0,61,"3",1756893819953000],[14860,1710,0,81,"3",1756893819970000],[14861,1710,0,86,"1",1756893819987000],[14862,1710,0,87,"1",1756893820000000],[14863,1710,0,88,"3",1756893820010000],[14864,1710,0,99,"1",1756893820027000],[14865,1710,0,100,"1",1756893820043000],[14866,1710,0,101,"3",1756893820057000],[14867,1710,0,102,"3",1756893820077000],[14868,1710,0,103,"5",1756893820090000],[14869,1710,0,104,"1",1756893820103000],[14870,1710,0,105,"3",1756893820227000],[14871,1710,0,111,"117.30",1756893820243000],[14872,1710,0,115,"4",1756893820260000],[14873,1710,0,119,"18",1756893820277000],[14874,1710,0,120,"18",1756893820293000],[14875,1710,0,136,"33750.00",1756893820310000],[14876,1710,0,139,"113",1756893820320000],[14877,1710,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893820340000],[14878,1710,0,170,"1",1756893820353000],[14879,1710,0,171,"3",1756893820367000],[14880,1710,0,172,"1",1756893820380000],[14881,1710,0,176,"1",1756893820500000],[14882,1710,0,177,"1",1756893820517000],[14883,1710,0,179,"1",1756893820533000],[14884,1710,0,180,"3",1756893820553000],[14886,1711,0,15,"3",1756893833667000],[14887,1711,0,33,"7",1756893833680000],[14888,1711,0,36,"1",1756893833693000],[14889,1711,1,38,"4Motion S",1756893833707000],[14890,1711,0,41,"2",1756893833717000],[14891,1711,0,61,"3",1756893833730000],[14892,1711,0,81,"3",1756893833743000],[14893,1711,0,86,"1",1756893833863000],[14894,1711,0,87,"1",1756893833880000],[14895,1711,0,88,"3",1756893833897000],[14896,1711,0,99,"1",1756893833910000],[14897,1711,0,100,"1",1756893833923000],[14898,1711,0,101,"3",1756893833940000],[14899,1711,0,102,"3",1756893833957000],[14900,1711,0,103,"5",1756893833970000],[14901,1711,0,104,"1",1756893833987000],[14902,1711,0,105,"3",1756893834000000],[14903,1711,0,111,"117.30",1756893834017000],[14904,1711,0,115,"4",1756893834140000],[14905,1711,0,119,"18",1756893834157000],[14906,1711,0,120,"18",1756893834167000],[14907,1711,0,136,"33950.00",1756893834180000],[14908,1711,0,139,"113",1756893834193000],[14909,1711,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893834207000],[14910,1711,0,170,"1",1756893834217000],[14911,1711,0,171,"3",1756893834230000],[14912,1711,0,172,"1",1756893834243000],[14913,1711,0,176,"1",1756893834257000],[14914,1711,0,177,"1",1756893834270000],[14915,1711,0,179,"1",1756893834390000],[14916,1711,0,180,"3",1756893834403000],[14918,1712,0,15,"3",1756894065663000],[14919,1712,0,33,"7",1756894065693000],[14920,1712,0,36,"1",1756894065707000],[14921,1712,1,38,"SE",1756894065720000],[14922,1712,0,41,"2",1756894065730000],[14923,1712,0,61,"3",1756894065747000],[14924,1712,0,81,"3",1756894065763000],[14925,1712,0,86,"1",1756894065780000],[14926,1712,0,87,"1",1756894065907000],[14927,1712,0,88,"3",1756894065920000],[14928,1712,0,99,"1",1756894065930000],[14929,1712,0,100,"1",1756894065943000],[14930,1712,0,101,"3",1756894065953000],[14931,1712,0,102,"3",1756894065967000],[14932,1712,0,103,"5",1756894065980000],[14933,1712,0,104,"1",1756894065990000],[14934,1712,0,105,"3",1756894066007000],[14935,1712,0,111,"117.30",1756894066023000],[14936,1712,0,115,"4",1756894066037000],[14937,1712,0,119,"18",1756894066157000],[14938,1712,0,120,"18",1756894066170000],[14939,1712,0,136,"35240.00",1756894066183000],[14940,1712,0,139,"113",1756894066193000],[14941,1712,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756894066207000],[14942,1712,0,170,"3",1756894066220000],[14943,1712,0,171,"1",1756894066233000],[14944,1712,0,176,"1",1756894066250000],[14945,1712,0,177,"1",1756894066263000],[14946,1712,0,179,"1",1756894066280000],[14947,1712,0,180,"3",1756894066293000],[269298,1712,1,18,"FSI",1756894065680000],[14949,1713,0,15,"3",1756893805253000],[14950,1713,0,33,"7",1756893805270000],[14951,1713,0,36,"1",1756893805393000],[14952,1713,1,38,"4Motion Launch Model",1756893805410000],[14953,1713,0,41,"2",1756893805427000],[14954,1713,0,61,"3",1756893805443000],[14955,1713,0,81,"3",1756893805460000],[14956,1713,0,86,"1",1756893805477000],[14957,1713,0,87,"1",1756893805490000],[14958,1713,0,88,"3",1756893805510000],[14959,1713,0,99,"1",1756893805527000],[14960,1713,0,100,"1",1756893805540000],[14961,1713,0,101,"3",1756893805560000],[14962,1713,0,102,"3",1756893805683000],[14963,1713,0,103,"5",1756893805697000],[14964,1713,0,104,"1",1756893805717000],[14965,1713,0,105,"3",1756893805730000],[14966,1713,0,111,"117.30",1756893805740000],[14967,1713,0,115,"4",1756893805753000],[14968,1713,0,119,"18",1756893805767000],[14969,1713,0,120,"18",1756893805780000],[14970,1713,0,136,"35550.00",1756893805793000],[14971,1713,0,139,"113",1756893805807000],[14972,1713,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893805820000],[14973,1713,0,170,"1",1756893805940000],[14974,1713,0,171,"3",1756893805957000],[14975,1713,0,172,"1",1756893805973000],[14976,1713,0,176,"1",1756893805990000],[14977,1713,0,177,"1",1756893806000000],[14978,1713,0,179,"1",1756893806013000],[14979,1713,0,180,"3",1756893806027000],[14981,1714,0,15,"3",1756893913483000],[14982,1714,0,33,"7",1756893913497000],[14983,1714,0,36,"1",1756893913513000],[14984,1714,1,38,"4Motion SE",1756893913633000],[14985,1714,0,41,"2",1756893913647000],[14986,1714,0,61,"3",1756893913660000],[14987,1714,0,81,"3",1756893913673000],[14988,1714,0,86,"1",1756893913687000],[14989,1714,0,87,"1",1756893913703000],[14990,1714,0,88,"3",1756893913720000],[14991,1714,0,99,"1",1756893913740000],[14992,1714,0,100,"1",1756893913760000],[14993,1714,0,101,"3",1756893913780000],[14994,1714,0,102,"3",1756893913803000],[14995,1714,0,103,"5",1756893913930000],[14996,1714,0,104,"1",1756893913943000],[14997,1714,0,105,"3",1756893913967000],[14998,1714,0,111,"117.30",1756893913980000],[14999,1714,0,115,"4",1756893914000000],[15000,1714,0,119,"18",1756893914017000],[15001,1714,0,120,"18",1756893914030000],[15002,1714,0,136,"37040.00",1756893914050000],[15003,1714,0,139,"113",1756893914070000],[15004,1714,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893914090000],[15005,1714,0,170,"1",1756893914100000],[15006,1714,0,171,"3",1756893914227000],[15007,1714,0,172,"1",1756893914243000],[15008,1714,0,176,"1",1756893914257000],[15009,1714,0,177,"1",1756893914270000],[15010,1714,0,179,"1",1756893914287000],[15011,1714,0,180,"3",1756893914303000],[15013,1715,0,15,"3",1756894027757000],[15014,1715,0,33,"7",1756894027790000],[15015,1715,0,36,"1",1756894027913000],[15016,1715,1,38,"SE",1756894027927000],[15017,1715,0,41,"2",1756894027940000],[15018,1715,0,61,"3",1756894027953000],[15019,1715,0,81,"3",1756894027970000],[15020,1715,0,86,"1",1756894027983000],[15021,1715,0,87,"1",1756894027993000],[15022,1715,0,88,"3",1756894028007000],[15023,1715,0,99,"1",1756894028020000],[15024,1715,0,100,"1",1756894028030000],[15025,1715,0,101,"3",1756894028043000],[15026,1715,0,102,"3",1756894028167000],[15027,1715,0,103,"5",1756894028180000],[15028,1715,0,104,"1",1756894028193000],[15029,1715,0,105,"3",1756894028210000],[15030,1715,0,111,"117.30",1756894028240000],[15031,1715,0,115,"4",1756894028253000],[15032,1715,0,119,"18",1756894028270000],[15033,1715,0,120,"18",1756894028287000],[15034,1715,0,136,"37340.00",1756894028300000],[15035,1715,0,139,"113",1756894028313000],[15036,1715,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756894028437000],[15037,1715,0,170,"1",1756894028453000],[15038,1715,0,171,"3",1756894028470000],[15039,1715,0,172,"1",1756894028480000],[15040,1715,0,176,"1",1756894028493000],[15041,1715,0,177,"1",1756894028507000],[15042,1715,0,179,"1",1756894028520000],[15043,1715,0,180,"3",1756894028537000],[269296,1715,1,18,"FSI",1756894027773000],[269297,1715,1,109,"w/ Technology",1756894028227000],[15045,1716,0,15,"3",1756893979697000],[15046,1716,0,33,"7",1756893979713000],[15047,1716,0,36,"1",1756893979727000],[15048,1716,1,38,"4Motion SE",1756893979740000],[15049,1716,0,41,"2",1756893979750000],[15050,1716,0,61,"3",1756893979877000],[15051,1716,0,81,"3",1756893979890000],[15052,1716,0,86,"1",1756893979910000],[15053,1716,0,87,"1",1756893979923000],[15054,1716,0,88,"3",1756893979933000],[15055,1716,0,99,"1",1756893979947000],[15056,1716,0,100,"1",1756893979963000],[15057,1716,0,101,"3",1756893979980000],[15058,1716,0,102,"3",1756893979997000],[15059,1716,0,103,"5",1756893980010000],[15060,1716,0,104,"1",1756893980023000],[15061,1716,0,105,"3",1756893980170000],[15062,1716,0,111,"117.30",1756893980200000],[15063,1716,0,115,"4",1756893980217000],[15064,1716,0,119,"18",1756893980230000],[15065,1716,0,120,"18",1756893980250000],[15066,1716,0,136,"39140.00",1756893980267000],[15067,1716,0,139,"113",1756893980287000],[15068,1716,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756893980300000],[15069,1716,0,170,"1",1756893980313000],[15070,1716,0,171,"3",1756893980330000],[15071,1716,0,172,"1",1756893980457000],[15072,1716,0,176,"1",1756893980473000],[15073,1716,0,177,"1",1756893980490000],[15074,1716,0,179,"1",1756893980503000],[15075,1716,0,180,"3",1756893980517000],[269295,1716,1,109,"w/ Technology",1756893980183000],[15077,1717,0,15,"3",1756894215310000],[15078,1717,0,33,"7",1756894215453000],[15079,1717,0,36,"1",1756894215467000],[15080,1717,1,38,"SEL",1756894215480000],[15081,1717,0,41,"2",1756894215493000],[15082,1717,0,61,"3",1756894215503000],[15083,1717,0,81,"3",1756894215517000],[15084,1717,0,86,"1",1756894215530000],[15085,1717,0,87,"1",1756894215540000],[15086,1717,0,88,"3",1756894215553000],[15087,1717,0,99,"1",1756894215567000],[15088,1717,0,100,"1",1756894215580000],[15089,1717,0,101,"3",1756894215700000],[15090,1717,0,102,"3",1756894215713000],[15091,1717,0,103,"5",1756894215727000],[15092,1717,0,104,"1",1756894215740000],[15093,1717,0,105,"3",1756894215753000],[15094,1717,0,111,"117.30",1756894215767000],[15095,1717,0,115,"4",1756894215780000],[15096,1717,0,119,"18",1756894215800000],[15097,1717,0,120,"18",1756894215813000],[15098,1717,0,136,"41140.00",1756894215827000],[15099,1717,0,139,"113",1756894215843000],[15100,1717,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756894215973000],[15101,1717,0,170,"1",1756894215987000],[15102,1717,0,171,"3",1756894216003000],[15103,1717,0,172,"1",1756894216020000],[15104,1717,0,176,"1",1756894216040000],[15105,1717,0,177,"1",1756894216053000],[15106,1717,0,179,"1",1756894216070000],[15107,1717,0,180,"3",1756894216087000],[269300,1717,1,18,"FSI",1756894215330000],[15109,1718,0,15,"3",1756894115747000],[15110,1718,0,33,"7",1756894115780000],[15111,1718,0,36,"1",1756894115797000],[15112,1718,1,38,"4Motion SE",1756894115920000],[15113,1718,0,41,"2",1756894115933000],[15114,1718,0,61,"3",1756894115950000],[15115,1718,0,81,"3",1756894115967000],[15116,1718,0,86,"1",1756894115980000],[15117,1718,0,87,"1",1756894115997000],[15118,1718,0,88,"3",1756894116013000],[15119,1718,0,99,"1",1756894116027000],[15120,1718,0,100,"1",1756894116040000],[15121,1718,0,101,"3",1756894116050000],[15122,1718,0,102,"3",1756894116063000],[15123,1718,0,103,"5",1756894116190000],[15124,1718,0,104,"1",1756894116207000],[15125,1718,0,105,"3",1756894116227000],[15126,1718,0,111,"117.30",1756894116240000],[15127,1718,0,115,"4",1756894116257000],[15128,1718,0,119,"18",1756894116270000],[15129,1718,0,120,"18",1756894116287000],[15130,1718,0,136,"42940.00",1756894116300000],[15131,1718,0,139,"113",1756894116317000],[15132,1718,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756894116330000],[15133,1718,0,170,"1",1756894116350000],[15134,1718,0,171,"3",1756894116473000],[15135,1718,0,172,"1",1756894116490000],[15136,1718,0,176,"3",1756894116507000],[15137,1718,0,177,"1",1756894116523000],[15138,1718,0,179,"1",1756894116540000],[15139,1718,0,180,"3",1756894116557000],[269299,1718,1,18,"FSI",1756894115763000],[15141,1719,0,15,"3",1756894290943000],[15142,1719,0,33,"7",1756894291090000],[15143,1719,0,36,"1",1756894291103000],[15144,1719,1,38,"4Motion SEL Premium",1756894291117000],[15145,1719,0,41,"2",1756894291130000],[15146,1719,0,61,"3",1756894291143000],[15147,1719,0,81,"3",1756894291153000],[15148,1719,0,86,"1",1756894291167000],[15149,1719,0,87,"1",1756894291180000],[15150,1719,0,88,"3",1756894291193000],[15151,1719,0,99,"1",1756894291207000],[15152,1719,0,100,"1",1756894291340000],[15153,1719,0,101,"3",1756894291350000],[15154,1719,0,102,"3",1756894291363000],[15155,1719,0,103,"5",1756894291377000],[15156,1719,0,104,"1",1756894291390000],[15157,1719,0,105,"3",1756894291400000],[15158,1719,0,111,"117.30",1756894291413000],[15159,1719,0,115,"4",1756894291427000],[15160,1719,0,119,"18",1756894291437000],[15161,1719,0,120,"18",1756894291450000],[15162,1719,0,136,"48740.00",1756894291463000],[15163,1719,0,139,"113",1756894291590000],[15164,1719,0,169,"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System",1756894291600000],[15165,1719,0,170,"1",1756894291613000],[15166,1719,0,171,"3",1756894291627000],[15167,1719,0,172,"1",1756894291637000],[15168,1719,0,176,"1",1756894291650000],[15169,1719,0,177,"1",1756894291663000],[15170,1719,0,179,"1",1756894291677000],[15171,1719,0,180,"3",1756894291690000],[269301,1719,1,18,"FSI",1756894291077000],[9859,1474,0,86,"1",1733906370543000],[9860,1474,0,99,"1",1733906370553000],[9861,1474,0,104,"1",1733906370580000],[9862,1474,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote Keyless Entry: Standard; Trailer Sway Damping: Standard",1733906370660000],[10402,1474,1,15,"4",1537804588970000],[10403,1474,0,33,"5",1733906370337000],[10404,1474,0,36,"1",1733906370363000],[10405,1474,0,37,"2",1733906370377000],[10406,1474,0,41,"2",1733906370400000],[10407,1474,0,54,"4680",1733906370413000],[10408,1474,0,63,"8",1733906370427000],[10409,1474,0,100,"1",1733906370567000],[10410,1474,0,111,"119.80",1733906370593000],[10411,1474,0,115,"4",1733906370607000],[10412,1474,0,119,"18",1733906370617000],[10413,1474,0,120,"18",1733906370630000],[10414,1474,0,136,"29995.00",1733906370647000],[10415,1474,0,176,"1",1733906370677000],[251923,1474,1,38,"SXT",1733906370390000],[9864,1475,0,81,"3",1733906332530000],[9865,1475,0,86,"1",1733906332540000],[9866,1475,0,88,"3",1733906332577000],[9867,1475,0,99,"1",1733906332593000],[9868,1475,0,101,"3",1733906332620000],[9869,1475,0,102,"3",1733906332633000],[9870,1475,0,103,"5",1733906332650000],[9871,1475,0,104,"1",1733906332783000],[9872,1475,0,169,"PARKSENSE REAR PARK ASSIST with Stop: Standard; Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906332873000],[9873,1475,0,180,"3",1733906332927000],[10434,1475,1,15,"4",1537804939097000],[10435,1475,0,33,"5",1733906332300000],[10436,1475,0,36,"1",1733906332337000],[10437,1475,0,37,"2",1733906332353000],[10438,1475,0,41,"2",1733906332380000],[10439,1475,0,54,"4865",1733906332500000],[10440,1475,0,63,"8",1733906332517000],[10441,1475,0,87,"3",1733906332560000],[10442,1475,0,100,"1",1733906332607000],[10443,1475,0,111,"119.80",1733906332797000],[10444,1475,0,115,"4",1733906332810000],[10445,1475,0,119,"20",1733906332827000],[10446,1475,0,120,"20",1733906332843000],[10447,1475,0,136,"37895.00",1733906332860000],[10448,1475,0,170,"3",1733906332883000],[10449,1475,0,176,"1",1733906332897000],[10450,1475,0,179,"1",1733906332913000],[251921,1475,1,38,"GT",1733906332367000],[9875,1476,0,81,"3",1733906351820000],[9876,1476,0,86,"1",1733906351840000],[9877,1476,0,88,"3",1733906351873000],[9878,1476,0,99,"1",1733906351890000],[9879,1476,0,101,"3",1733906351920000],[9880,1476,0,102,"3",1733906351940000],[9881,1476,0,103,"5",1733906351957000],[9882,1476,0,104,"1",1733906351970000],[9883,1476,0,105,"1",1733906351983000],[9884,1476,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906352177000],[9885,1476,0,180,"1",1733906352233000],[10478,1476,1,15,"4",1537806077427000],[10479,1476,0,33,"5",1733906351597000],[10480,1476,0,36,"1",1733906351627000],[10481,1476,0,37,"2",1733906351640000],[10482,1476,0,41,"2",1733906351667000],[10483,1476,0,54,"5176",1733906351677000],[10484,1476,0,63,"8",1733906351690000],[10485,1476,0,87,"3",1733906351857000],[10486,1476,0,100,"1",1733906351907000],[10487,1476,0,111,"119.80",1733906352113000],[10488,1476,0,115,"4",1733906352127000],[10489,1476,0,119,"20",1733906352140000],[10490,1476,0,120,"20",1733906352150000],[10491,1476,0,136,"43745.00",1733906352163000],[10492,1476,0,170,"3",1733906352190000],[10493,1476,0,176,"1",1733906352207000],[10494,1476,0,179,"1",1733906352220000],[251922,1476,1,38,"R/T",1733906351650000],[9887,1477,0,81,"3",1733906313543000],[9888,1477,0,86,"1",1733906313560000],[9889,1477,0,88,"3",1733906313587000],[9890,1477,0,99,"1",1733906313603000],[9891,1477,0,101,"3",1733906313637000],[9892,1477,0,102,"3",1733906313653000],[9893,1477,0,103,"5",1733906313787000],[9894,1477,0,104,"1",1733906313800000],[9895,1477,0,105,"1",1733906313820000],[9896,1477,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906313910000],[10523,1477,1,15,"4",1537806402593000],[10524,1477,0,33,"5",1733906313300000],[10525,1477,0,36,"1",1733906313333000],[10526,1477,0,37,"2",1733906313350000],[10527,1477,0,41,"2",1733906313493000],[10528,1477,0,54,"4980",1733906313510000],[10529,1477,0,63,"8",1733906313527000],[10530,1477,0,87,"3",1733906313573000],[10531,1477,0,100,"1",1733906313620000],[10532,1477,0,111,"119.80",1733906313830000],[10533,1477,0,115,"4",1733906313847000],[10534,1477,0,119,"20",1733906313863000],[10535,1477,0,120,"20",1733906313880000],[10536,1477,0,136,"42195.00",1733906313897000],[10537,1477,0,170,"3",1733906313923000],[10538,1477,0,176,"1",1733906313940000],[10539,1477,0,179,"1",1733906314070000],[10540,1477,0,180,"1",1733906314090000],[251920,1477,1,38,"Citadel",1733906313363000],[9898,1478,0,81,"3",1733905973833000],[9899,1478,0,86,"1",1733905973847000],[9900,1478,0,88,"3",1733905973870000],[9901,1478,0,99,"1",1733905973883000],[9902,1478,0,101,"3",1733905973897000],[9903,1478,0,102,"3",1733905973910000],[9904,1478,0,103,"5",1733905973920000],[9905,1478,0,104,"1",1733905973933000],[9906,1478,0,105,"1",1733905973947000],[9907,1478,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733905974127000],[10569,1478,0,33,"5",1733905973570000],[10570,1478,0,36,"1",1733905973640000],[10571,1478,0,37,"2",1733905973650000],[10572,1478,0,41,"2",1733905973687000],[10573,1478,0,54,"5510",1733905973700000],[10574,1478,0,63,"8",1733905973713000],[10575,1478,0,87,"3",1733905973860000],[10576,1478,0,111,"119.80",1733905973960000],[10577,1478,0,115,"4",1733905974077000],[10578,1478,0,119,"20",1733905974090000],[10579,1478,0,120,"20",1733905974103000],[10580,1478,0,136,"62995.00",1733905974113000],[10581,1478,0,170,"3",1733905974140000],[10582,1478,0,176,"1",1733905974153000],[10583,1478,0,179,"1",1733905974163000],[10584,1478,0,180,"1",1733905974177000],[251915,1478,1,38,"SRT",1733905973663000],[10416,1550,1,15,"3",1537804720180000],[10417,1550,0,33,"7",1733906285740000],[10419,1550,0,36,"1",1733906285773000],[10420,1550,0,37,"2",1733906285900000],[10421,1550,0,41,"2",1733906285923000],[10422,1550,0,54,"4814",1733906285937000],[10423,1550,0,63,"8",1733906285950000],[10424,1550,0,86,"1",1733906285963000],[10425,1550,0,99,"1",1733906285973000],[10426,1550,0,104,"1",1733906285987000],[10427,1550,0,111,"119.80",1733906286000000],[10428,1550,0,115,"4",1733906286010000],[10429,1550,0,119,"18",1733906286023000],[10430,1550,0,120,"18",1733906286157000],[10431,1550,0,136,"32595.00",1733906286173000],[10432,1550,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906286190000],[10433,1550,0,176,"1",1733906286207000],[251919,1550,1,38,"SXT",1733906285910000],[10451,1551,1,15,"3",1537805822883000],[10452,1551,0,33,"7",1733906237050000],[10454,1551,0,36,"1",1733906237080000],[10455,1551,0,37,"2",1733906237093000],[10456,1551,0,41,"2",1733906237127000],[10457,1551,0,54,"4985",1733906237140000],[10458,1551,0,63,"8",1733906237153000],[10459,1551,0,81,"3",1733906237167000],[10460,1551,0,86,"1",1733906237293000],[10461,1551,0,87,"3",1733906237307000],[10462,1551,0,88,"3",1733906237323000],[10463,1551,0,99,"1",1733906237337000],[10464,1551,0,101,"3",1733906237350000],[10465,1551,0,102,"3",1733906237360000],[10466,1551,0,103,"5",1733906237373000],[10467,1551,0,104,"1",1733906237387000],[10468,1551,0,111,"119.80",1733906237400000],[10469,1551,0,115,"4",1733906237420000],[10470,1551,0,119,"20",1733906237440000],[10471,1551,0,120,"20",1733906237560000],[10472,1551,0,136,"40495.00",1733906237573000],[10473,1551,0,169,"PARKSENSE REAR PARK ASSIST with Stop: Standard; Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906237590000],[10474,1551,0,170,"3",1733906237603000],[10475,1551,0,176,"1",1733906237620000],[10476,1551,0,179,"1",1733906237637000],[10477,1551,0,180,"3",1733906237653000],[251917,1551,1,38,"GT",1733906237107000],[10495,1552,1,15,"3",1537806259277000],[10496,1552,0,33,"5",1733906269913000],[10498,1552,0,36,"1",1733906270057000],[10499,1552,0,37,"2",1733906270070000],[10500,1552,0,41,"2",1733906270100000],[10501,1552,0,54,"5381",1733906270113000],[10502,1552,0,63,"8",1733906270127000],[10503,1552,0,81,"3",1733906270140000],[10504,1552,0,86,"1",1733906270150000],[10505,1552,0,87,"3",1733906270163000],[10506,1552,0,88,"3",1733906270177000],[10507,1552,0,99,"1",1733906270190000],[10508,1552,0,101,"3",1733906270313000],[10509,1552,0,102,"3",1733906270327000],[10510,1552,0,103,"5",1733906270340000],[10511,1552,0,104,"1",1733906270353000],[10512,1552,0,105,"1",1733906270363000],[10513,1552,0,111,"119.80",1733906270377000],[10514,1552,0,115,"4",1733906270390000],[10515,1552,0,119,"20",1733906270403000],[10516,1552,0,120,"20",1733906270417000],[10517,1552,0,136,"46345.00",1733906270427000],[10518,1552,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard: Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906270440000],[10519,1552,0,170,"3",1733906270570000],[10520,1552,0,176,"1",1733906270583000],[10521,1552,0,179,"1",1733906270597000],[10522,1552,0,180,"1",1733906270610000],[251918,1552,1,38,"R/T",1733906270083000],[10541,1553,1,15,"3",1537806557720000],[10542,1553,0,33,"5",1733906214413000],[10544,1553,0,36,"1",1733906214460000],[10545,1553,0,37,"2",1733906214580000],[10546,1553,0,41,"2",1733906214623000],[10547,1553,0,54,"5088",1733906214637000],[10548,1553,0,63,"8",1733906214650000],[10549,1553,0,81,"3",1733906214663000],[10550,1553,0,86,"1",1733906214677000],[10551,1553,0,87,"3",1733906214690000],[10552,1553,0,88,"3",1733906214700000],[10553,1553,0,99,"1",1733906214713000],[10554,1553,0,101,"3",1733906214730000],[10555,1553,0,102,"3",1733906214850000],[10556,1553,0,103,"5",1733906214867000],[10557,1553,0,104,"1",1733906214883000],[10558,1553,0,105,"1",1733906214903000],[10559,1553,0,111,"119.80",1733906214917000],[10560,1553,0,115,"4",1733906214930000],[10561,1553,0,119,"20",1733906214950000],[10562,1553,0,120,"20",1733906214960000],[10563,1553,0,136,"44795.00",1733906214980000],[10564,1553,0,169,"Enhanced Accident Response System: Standard; Front Passenger Seat Belt Alert: Standard; Hill Start Assist: Standard; Latch Ready Child Seat Anchor System: Standard; Lock On Sync Tire Press Sensor: Standard; Rain Brake Support: Standard: Ready-Alert braking: Standard; Remote & Remote Proximity Keyless Entry: Standard; Remote Start System: Standard; Trailer Sway Damping: Standard",1733906214997000],[10565,1553,0,170,"3",1733906215007000],[10566,1553,0,176,"1",1733906215127000],[10567,1553,0,179,"1",1733906215140000],[10568,1553,0,180,"1",1733906215150000],[251916,1553,1,38,"Citadel",1733906214597000],[10098,1506,0,86,"1",1758038469113000],[10099,1506,0,99,"1",1758038469130000],[10100,1506,0,104,"1",1758038469163000],[10101,1506,0,169,"Advanced Brake Assist: Standard; Electronic Roll Mitigation: Standard; Front Passenger Seat Belt Alert: Standard; Hydraulic Assist Brake Booster: Standard; Hill Start Assist; Standard; Trailer Sway Damping: Standard",1758038469370000],[11257,1506,0,33,"4",1758038468873000],[11258,1506,0,36,"1",1758038468907000],[11259,1506,0,37,"2",1758038468923000],[11260,1506,0,41,"2",1758038469057000],[11261,1506,0,54,"3970",1758038469073000],[11262,1506,0,63,"8",1758038469093000],[11263,1506,0,100,"1",1758038469147000],[11264,1506,0,111,"96.80",1758038469180000],[11265,1506,0,115,"4",1758038469193000],[11266,1506,0,119,"17",1758038469210000],[11267,1506,0,120,"17",1758038469337000],[11268,1506,0,136,"29240.00",1758038469353000],[11269,1506,0,176,"1",1758038469387000],[269500,1506,1,38,"Sport",1758038469037000],[10103,1507,0,86,"1",1758038520230000],[10104,1507,0,99,"1",1758038520243000],[10105,1507,0,104,"1",1758038520270000],[10106,1507,0,169,"Advanced Brake Assist: Standard; Electronic Roll Mitigation: Standard; Front Passenger Seat Belt Alert: Standard; Hydraulic Assist Brake Booster: Standard; Hill Start Assist; Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System (N / A w / Manual Transmission): Optional; Trailer Sway Damping: Standard",1758038520343000],[11270,1507,0,33,"5",1758038519993000],[11271,1507,0,36,"1",1758038520027000],[11272,1507,0,37,"3",1758038520040000],[11273,1507,0,41,"2",1758038520070000],[11274,1507,0,54,"3970",1758038520083000],[11275,1507,0,63,"6",1758038520097000],[11276,1507,0,100,"1",1758038520257000],[11277,1507,0,111,"118.40",1758038520280000],[11278,1507,0,115,"4",1758038520293000],[11279,1507,0,119,"17",1758038520307000],[11280,1507,0,120,"17",1758038520320000],[11281,1507,0,136,"31445.00",1758038520330000],[11282,1507,0,176,"1",1758038520360000],[269503,1507,1,38,"Unlimited Sport",1758038520057000],[10108,1508,0,86,"1",1758038505110000],[10109,1508,0,99,"1",1758038505147000],[10110,1508,0,104,"1",1758038505180000],[10111,1508,0,169,"ParkSense Rear Park Assist: Optional; Advanced Brake Assist: Standard; Electronic Roll Mitigation: Standard; Front Passenger Seat Belt Alert: Standard; Hydraulic Assist Brake Booster: Standard; Hill Start Assist; Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System (N / A w / Manual Transmission): Optional; Trailer Sway Damping: Standard",1758038505387000],[11283,1508,0,33,"5",1758038504877000],[11284,1508,0,36,"1",1758038504903000],[11285,1508,0,37,"3",1758038504913000],[11286,1508,0,41,"2",1758038504947000],[11287,1508,0,54,"4200",1758038504963000],[11288,1508,0,63,"6",1758038505087000],[11289,1508,0,88,"3",1758038505127000],[11290,1508,0,100,"1",1758038505163000],[11291,1508,0,111,"118.40",1758038505197000],[11292,1508,0,115,"4",1758038505210000],[11293,1508,0,119,"17",1758038505230000],[11294,1508,0,120,"17",1758038505247000],[11295,1508,0,136,"38295.00",1758038505263000],[11296,1508,0,176,"1",1758038505400000],[11297,1508,0,177,"1",1758038505417000],[269502,1508,1,38,"Unlimited Sahara",1758038504927000],[10113,1509,0,86,"1",1758038455890000],[10114,1509,0,99,"1",1758038455930000],[10115,1509,0,104,"1",1758038455957000],[10116,1509,0,169,"ParkSense Rear Park Assist: Optional; Advanced Brake Assist: Standard; Electronic Roll Mitigation: Standard; Front Passenger Seat Belt Alert: Standard; Hydraulic Assist Brake Booster: Standard; Hill Start Assist; Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System (N / A w / Manual Transmission): Optional; Trailer Sway Damping: Standard",1758038456147000],[11298,1509,0,33,"5",1758038455697000],[11299,1509,0,36,"1",1758038455830000],[11300,1509,0,37,"2",1758038455840000],[11301,1509,0,41,"2",1758038455867000],[11302,1509,0,63,"8",1758038455880000],[11303,1509,0,88,"3",1758038455907000],[11304,1509,0,100,"1",1758038455943000],[11305,1509,0,111,"96.80",1758038455973000],[11306,1509,0,115,"4",1758038456097000],[11307,1509,0,119,"17",1758038456110000],[11308,1509,0,120,"17",1758038456120000],[11309,1509,0,136,"37945.00",1758038456133000],[11310,1509,0,176,"1",1758038456160000],[11311,1509,0,177,"1",1758038456170000],[269499,1509,1,38,"Rubicon",1758038455853000],[10118,1510,0,86,"1",1758038484947000],[10119,1510,0,99,"1",1758038484973000],[10120,1510,0,104,"1",1758038484997000],[10121,1510,0,169,"ParkSense Rear Park Assist: Optional; Advanced Brake Assist: Standard; Electronic Roll Mitigation: Standard; Front Passenger Seat Belt Alert: Standard; Hydraulic Assist Brake Booster: Standard; Hill Start Assist; Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System (N / A w / Manual Transmission): Optional; Trailer Sway Damping: Standard",1758038485197000],[11312,1510,0,33,"5",1758038484737000],[11313,1510,0,36,"1",1758038484763000],[11314,1510,0,37,"3",1758038484777000],[11315,1510,0,41,"2",1758038484810000],[11316,1510,0,63,"6",1758038484930000],[11317,1510,0,88,"3",1758038484960000],[11318,1510,0,100,"1",1758038484987000],[11319,1510,0,111,"118.40",1758038485010000],[11320,1510,0,115,"4",1758038485023000],[11321,1510,0,119,"17",1758038485043000],[11322,1510,0,120,"17",1758038485060000],[11323,1510,0,136,"41445.00",1758038485073000],[11324,1510,0,176,"1",1758038485213000],[11325,1510,0,177,"1",1758038485230000],[269501,1510,1,38,"Unlimited Rubicon",1758038484793000],[292679,20299,1,5,"7",1791202628907000],[292680,20299,0,54,"4586",1791202628917000],[292681,20299,0,114,"Curb Weight: 3,879 to 4,586 lbs",1791202628927000],[10142,1517,0,86,"1",1758036746343000],[10143,1517,0,99,"1",1758036746353000],[10144,1517,0,104,"1",1758036746380000],[10145,1517,0,169,"Enhanced Accident Response System: Standard; Ready-Alert Braking: Standard; Hill Start Assist: Standard; Rain Brake Support: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Trailer Sway Damping: Standard",1758036746567000],[11416,1517,1,15,"7",1538061718623000],[11417,1517,0,33,"5",1758036746147000],[11418,1517,0,36,"1",1758036746280000],[11419,1517,0,37,"2",1758036746293000],[11420,1517,0,41,"2",1758036746317000],[11421,1517,0,63,"8",1758036746330000],[11422,1517,0,100,"1",1758036746367000],[11423,1517,0,111,"114.70",1758036746393000],[11424,1517,0,115,"4",1758036746513000],[11425,1517,0,119,"17",1758036746527000],[11426,1517,0,120,"17",1758036746540000],[11427,1517,0,136,"30895.00",1758036746553000],[11428,1517,0,176,"1",1758036746590000],[11429,1517,0,177,"1",1758036746603000],[269486,1517,1,38,"Laredo",1758036746303000],[10147,1518,0,81,"3",1758036765777000],[10148,1518,0,86,"1",1758036765790000],[10149,1518,0,88,"3",1758036765927000],[10150,1518,0,99,"1",1758036765940000],[10151,1518,0,101,"3",1758036765967000],[10152,1518,0,102,"3",1758036765977000],[10153,1518,0,103,"5",1758036765990000],[10154,1518,0,104,"1",1758036766003000],[10155,1518,0,105,"3",1758036766017000],[10156,1518,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Optional; Ready-Alert Braking: Standard; Hill Start Assist: Standard; Rain Brake Support: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Remote-Start Sytem: Standard; Trailer Sway Damping: Standard",1758036766207000],[11449,1518,1,15,"7",1538062792497000],[11450,1518,0,33,"5",1758036765687000],[11451,1518,0,36,"1",1758036765710000],[11452,1518,0,37,"2",1758036765723000],[11453,1518,0,41,"2",1758036765750000],[11454,1518,0,63,"8",1758036765763000],[11455,1518,0,87,"3",1758036765913000],[11456,1518,0,100,"1",1758036765953000],[11457,1518,0,111,"114.70",1758036766030000],[11458,1518,0,115,"4",1758036766043000],[11459,1518,0,119,"18",1758036766167000],[11460,1518,0,120,"18",1758036766180000],[11461,1518,0,136,"38495.00",1758036766190000],[11462,1518,0,170,"3",1758036766220000],[11463,1518,0,176,"1",1758036766233000],[11464,1518,0,177,"1",1758036766243000],[269487,1518,1,38,"Limited",1758036765740000],[10159,1519,0,86,"1",1758036784310000],[10160,1519,0,88,"3",1758036784450000],[10161,1519,0,99,"1",1758036784463000],[10162,1519,0,102,"3",1758036784500000],[10163,1519,0,103,"5",1758036784513000],[10164,1519,0,104,"1",1758036784527000],[10165,1519,0,105,"3",1758036784537000],[10166,1519,0,169,"Advanced Brake Assist: Optional; Enhanced Accident Response System: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Hill Start Assist: Standard; Rain Brake Support: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036784723000],[11492,1519,1,15,"7",1538063105417000],[11493,1519,0,33,"5",1758036784197000],[11494,1519,0,36,"1",1758036784223000],[11495,1519,0,37,"2",1758036784237000],[11496,1519,0,41,"2",1758036784263000],[11497,1519,0,63,"8",1758036784277000],[11498,1519,0,81,"3",1758036784297000],[11499,1519,0,87,"3",1758036784437000],[11500,1519,0,100,"1",1758036784473000],[11501,1519,0,101,"3",1758036784487000],[11502,1519,0,111,"114.70",1758036784550000],[11503,1519,0,115,"4",1758036784563000],[11504,1519,0,119,"20",1758036784683000],[11505,1519,0,120,"20",1758036784697000],[11506,1519,0,136,"45295.00",1758036784710000],[11507,1519,0,170,"3",1758036784733000],[11508,1519,0,176,"3",1758036784747000],[11509,1519,0,177,"1",1758036784760000],[11510,1519,0,179,"1",1758036784773000],[269488,1519,1,38,"Overland",1758036784250000],[10168,1520,0,81,"1",1758036801150000],[10169,1520,0,86,"1",1758036801270000],[10170,1520,0,88,"1",1758036801297000],[10171,1520,0,99,"1",1758036801310000],[10172,1520,0,101,"1",1758036801337000],[10173,1520,0,102,"1",1758036801350000],[10174,1520,0,103,"1",1758036801360000],[10175,1520,0,104,"1",1758036801373000],[10176,1520,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036801570000],[11538,1520,1,15,"7",1538063541577000],[11539,1520,0,33,"5",1758036801063000],[11540,1520,0,36,"1",1758036801090000],[11541,1520,0,37,"2",1758036801100000],[11542,1520,0,41,"2",1758036801127000],[11543,1520,0,63,"8",1758036801140000],[11544,1520,0,87,"1",1758036801283000],[11545,1520,0,100,"1",1758036801323000],[11546,1520,0,111,"114.70",1758036801387000],[11547,1520,0,115,"4",1758036801397000],[11548,1520,0,119,"20",1758036801530000],[11549,1520,0,120,"20",1758036801547000],[11550,1520,0,136,"50995.00",1758036801557000],[11551,1520,0,176,"1",1758036801583000],[11552,1520,0,177,"1",1758036801597000],[11553,1520,0,179,"1",1758036801610000],[269489,1520,1,38,"Summit",1758036801113000],[10178,1521,0,86,"1",1758036852293000],[10179,1521,0,88,"3",1758036852433000],[10180,1521,0,99,"1",1758036852447000],[10181,1521,0,102,"3",1758036852483000],[10182,1521,0,103,"5",1758036852497000],[10183,1521,0,104,"1",1758036852510000],[10184,1521,0,105,"3",1758036852520000],[10185,1521,0,169,"Advanced Brake Assist: Optional; Enhanced Accident Response System: Standard; Automatic Headlamp Leveling System: Optional; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036852717000],[11581,1521,0,33,"5",1758036852190000],[11582,1521,0,36,"1",1758036852217000],[11583,1521,0,37,"2",1758036852230000],[11584,1521,0,41,"2",1758036852257000],[11585,1521,0,63,"8",1758036852270000],[11586,1521,0,81,"3",1758036852280000],[11587,1521,0,87,"3",1758036852420000],[11588,1521,0,100,"1",1758036852460000],[11589,1521,0,101,"3",1758036852470000],[11590,1521,0,111,"114.70",1758036852533000],[11591,1521,0,115,"4",1758036852547000],[11592,1521,0,119,"20",1758036852680000],[11593,1521,0,120,"20",1758036852690000],[11594,1521,0,136,"43595.00",1758036852703000],[11595,1521,0,170,"3",1758036852730000],[11596,1521,0,176,"1",1758036852743000],[11597,1521,0,177,"1",1758036852757000],[11598,1521,0,179,"3",1758036852770000],[269492,1521,1,38,"Trailhawk",1758036852243000],[10187,1522,0,81,"1",1758036816560000],[10188,1522,0,86,"1",1758036816573000],[10189,1522,0,88,"1",1758036816723000],[10190,1522,0,99,"1",1758036816737000],[10191,1522,0,101,"1",1758036816767000],[10192,1522,0,102,"1",1758036816783000],[10193,1522,0,103,"1",1758036816800000],[10194,1522,0,104,"1",1758036816813000],[10195,1522,0,105,"1",1758036816830000],[10196,1522,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036817030000],[11599,1522,0,33,"5",1758036816467000],[11600,1522,0,36,"1",1758036816493000],[11601,1522,0,37,"2",1758036816507000],[11602,1522,0,41,"2",1758036816537000],[11603,1522,0,63,"8",1758036816550000],[11604,1522,0,87,"1",1758036816703000],[11605,1522,0,100,"1",1758036816750000],[11606,1522,0,111,"114.70",1758036816847000],[11607,1522,0,115,"4",1758036816860000],[11608,1522,0,119,"20",1758036816990000],[11609,1522,0,120,"20",1758036817003000],[11610,1522,0,136,"67695.00",1758036817017000],[11611,1522,0,170,"1",1758036817040000],[11612,1522,0,176,"1",1758036817053000],[11613,1522,0,177,"1",1758036817067000],[11614,1522,0,179,"1",1758036817077000],[269490,1522,1,38,"SRT",1758036816520000],[10198,1523,0,81,"1",1758036834260000],[10199,1523,0,86,"1",1758036834270000],[10200,1523,0,88,"1",1758036834403000],[10201,1523,0,99,"1",1758036834417000],[10202,1523,0,101,"1",1758036834440000],[10203,1523,0,102,"1",1758036834453000],[10204,1523,0,103,"1",1758036834467000],[10205,1523,0,104,"1",1758036834480000],[10206,1523,0,105,"1",1758036834493000],[10207,1523,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036834680000],[11615,1523,0,33,"5",1758036834110000],[11616,1523,0,36,"1",1758036834187000],[11617,1523,0,37,"2",1758036834203000],[11618,1523,0,41,"2",1758036834233000],[11619,1523,0,63,"8",1758036834247000],[11620,1523,0,87,"1",1758036834390000],[11621,1523,0,100,"1",1758036834430000],[11622,1523,0,111,"114.70",1758036834507000],[11623,1523,0,115,"4",1758036834520000],[11624,1523,0,119,"20",1758036834640000],[11625,1523,0,120,"20",1758036834653000],[11626,1523,0,136,"86200.00",1758036834670000],[11627,1523,0,170,"1",1758036834693000],[11628,1523,0,176,"1",1758036834707000],[11629,1523,0,177,"1",1758036834720000],[11630,1523,0,179,"1",1758036834730000],[269491,1523,1,38,"Trackhawk",1758036834220000],[11430,1569,1,15,"2",1538061853220000],[11431,1569,0,33,"5",1758036678710000],[11433,1569,0,36,"1",1758036678747000],[11434,1569,0,37,"2",1758036678760000],[11435,1569,0,41,"2",1758036678790000],[11436,1569,0,63,"8",1758036678800000],[11437,1569,0,86,"1",1758036678820000],[11438,1569,0,99,"1",1758036678940000],[11439,1569,0,100,"1",1758036678957000],[11440,1569,0,104,"1",1758036678973000],[11441,1569,0,111,"114.70",1758036678987000],[11442,1569,0,115,"4",1758036679000000],[11443,1569,0,119,"17",1758036679010000],[11444,1569,0,120,"17",1758036679023000],[11445,1569,0,136,"33195.00",1758036679037000],[11446,1569,0,169,"Enhanced Accident Response System: Standard; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Trailer Sway Damping: Standard",1758036679050000],[11447,1569,0,176,"1",1758036679063000],[11448,1569,0,177,"1",1758036679077000],[269482,1569,1,38,"Laredo",1758036678773000],[11465,1570,1,15,"2",1538062945020000],[11466,1570,0,33,"5",1758036693463000],[11468,1570,0,36,"1",1758036693493000],[11469,1570,0,37,"2",1758036693510000],[11470,1570,0,41,"2",1758036693540000],[11471,1570,0,63,"8",1758036693557000],[11472,1570,0,81,"3",1758036693687000],[11473,1570,0,86,"1",1758036693700000],[11474,1570,0,87,"3",1758036693713000],[11475,1570,0,88,"3",1758036693727000],[11476,1570,0,99,"1",1758036693740000],[11477,1570,0,100,"1",1758036693750000],[11478,1570,0,101,"3",1758036693763000],[11479,1570,0,102,"3",1758036693777000],[11480,1570,0,103,"5",1758036693790000],[11481,1570,0,104,"1",1758036693803000],[11482,1570,0,105,"3",1758036693820000],[11483,1570,0,111,"114.70",1758036693953000],[11484,1570,0,115,"4",1758036693967000],[11485,1570,0,119,"18",1758036693987000],[11486,1570,0,120,"18",1758036694000000],[11487,1570,0,136,"40495.00",1758036694010000],[11488,1570,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Optional; Ready-Alert Braking: Standard; Hill Start Assist: Standard; Rain Brake Support: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Remote-Start Sytem: Standard; Trailer Sway Damping: Standard",1758036694027000],[11489,1570,0,170,"3",1758036694043000],[11490,1570,0,176,"1",1758036694057000],[11491,1570,0,177,"1",1758036694073000],[269483,1570,1,38,"Limited",1758036693527000],[11511,1571,1,15,"2",1538063388200000],[11512,1571,0,33,"5",1758036707910000],[11514,1571,0,36,"1",1758036707940000],[11515,1571,0,37,"2",1758036707960000],[11516,1571,0,41,"2",1758036707990000],[11517,1571,0,63,"8",1758036708007000],[11518,1571,0,81,"3",1758036708023000],[11519,1571,0,86,"1",1758036708037000],[11520,1571,0,87,"3",1758036708053000],[11521,1571,0,88,"3",1758036708180000],[11522,1571,0,99,"1",1758036708193000],[11523,1571,0,100,"1",1758036708207000],[11524,1571,0,101,"3",1758036708223000],[11525,1571,0,102,"3",1758036708240000],[11526,1571,0,103,"5",1758036708253000],[11527,1571,0,104,"1",1758036708267000],[11528,1571,0,111,"114.70",1758036708283000],[11529,1571,0,115,"4",1758036708300000],[11530,1571,0,119,"20",1758036708313000],[11531,1571,0,120,"20",1758036708327000],[11532,1571,0,136,"48295.00",1758036708453000],[11533,1571,0,169,"Advanced Brake Assist: Optional; Enhanced Accident Response System: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Hill Start Assist: Standard; Rain Brake Support: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Standard; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036708467000],[11534,1571,0,170,"3",1758036708480000],[11535,1571,0,176,"1",1758036708493000],[11536,1571,0,177,"1",1758036708510000],[11537,1571,0,179,"1",1758036708520000],[269484,1571,1,38,"Overland",1758036707977000],[11554,1572,1,15,"2",1538064176967000],[11555,1572,0,33,"5",1758036725627000],[11557,1572,0,36,"1",1758036725793000],[11558,1572,0,37,"2",1758036725807000],[11559,1572,0,41,"2",1758036725833000],[11560,1572,0,63,"8",1758036725843000],[11561,1572,0,81,"1",1758036725857000],[11562,1572,0,86,"1",1758036725873000],[11563,1572,0,87,"1",1758036725887000],[11564,1572,0,88,"1",1758036725900000],[11565,1572,0,99,"1",1758036725913000],[11566,1572,0,100,"1",1758036725927000],[11567,1572,0,101,"1",1758036726083000],[11568,1572,0,102,"1",1758036726097000],[11569,1572,0,103,"1",1758036726110000],[11570,1572,0,104,"1",1758036726123000],[11571,1572,0,111,"114.70",1758036726137000],[11572,1572,0,115,"4",1758036726150000],[11573,1572,0,119,"20",1758036726160000],[11574,1572,0,120,"20",1758036726173000],[11575,1572,0,136,"53995.00",1758036726187000],[11576,1572,0,169,"Enhanced Accident Response System: Standard; Advanced Brake Assist: Standard; Automatic Headlamp Leveling System: Standard; Ready-Alert Braking: Standard; Rain Brake Support: Standard; Hill Start Assist: Standard; Remote keyless entry: Standard; Remote Proximity Keyless Entry: Optional; Remote-Start System: Standard; Trailer Sway Damping: Standard",1758036726200000],[11577,1572,0,170,"1",1758036726213000],[11578,1572,0,176,"1",1758036726340000],[11579,1572,0,177,"1",1758036726353000],[11580,1572,0,179,"1",1758036726367000],[269485,1572,1,38,"Summit",1758036725820000],[292700,20304,0,114,"Curb Weight: 4,513 to 5,350 lbs",1791203477153000],[292706,20304,1,5,"7",1791203477133000],[292707,20304,0,54,"5350",1791203477143000],[13477,1649,0,33,"5",1539349844700000],[13478,1649,1,34,"Limited",1539349844700000],[13479,1649,0,36,"1",1539349844700000],[13480,1649,0,37,"2",1539349844700000],[13481,1649,0,41,"2",1539349844713000],[13482,1649,0,63,"6",1539349844713000],[13483,1649,0,86,"1",1539349844713000],[13484,1649,0,87,"1",1539349844713000],[13485,1649,0,99,"1",1539349844713000],[13486,1649,0,100,"1",1539349844730000],[13487,1649,0,101,"1",1539349844730000],[13488,1649,0,104,"1",1539349844730000],[13489,1649,0,111,"101.6",1539349844730000],[13490,1649,0,115,"4",1539349844730000],[13491,1649,0,119,"17",1539349844743000],[13492,1649,0,120,"17",1539349844743000],[13493,1649,0,136,"18895",1539349844743000],[13494,1649,0,169,"Hill Start Assist Control: Standard; Proximity Key Entry: Standard; Brake Assist: Standard",1539349844743000],[13495,1649,0,170,"1",1539349844743000],[13496,1649,0,174,"1",1539349844743000],[13497,1649,0,176,"1",1539349844760000],[13498,1649,0,177,"1",1539349844760000],[16651,1776,0,33,"5",1540900640087000],[16652,1776,1,34,"SE and SEL",1540900640100000],[16653,1776,0,36,"1",1540900640100000],[16654,1776,0,41,"2",1540900640130000],[16655,1776,0,86,"1",1540900640130000],[16656,1776,0,99,"1",1540900640147000],[16657,1776,0,100,"1",1540900640163000],[16658,1776,0,104,"1",1540900640163000],[16659,1776,0,111,"101.6",1540900640163000],[16660,1776,0,115,"4",1540900640163000],[16661,1776,0,119,"15",1540900640180000],[16662,1776,0,120,"15",1540900640180000],[16663,1776,0,136,"14995",1540900640193000],[16664,1776,0,169,"Hill Start Assist Control: Standard; Brake Assist: Standard",1540900640193000],[291760,20230,1,5,"13",1790856686620000],[291761,20230,0,54,"2679",1790856686630000],[291762,20230,0,114,"Curb Weight: 2,502 to 2,679 lbs",1790856686667000],[291763,20231,1,5,"5",1790856700670000],[291764,20231,0,54,"2679",1790856700680000],[291765,20231,0,114,"Curb Weight: 2,502 to 2,679 lbs",1790856700693000],[15605,1737,0,15,"1",1756892848307000],[15606,1737,0,33,"7",1756892848320000],[15608,1737,0,36,"1",1756892848343000],[15609,1737,0,41,"2",1756892848370000],[15610,1737,0,61,"3",1756892848383000],[15611,1737,0,86,"1",1756892848393000],[15612,1737,0,87,"3",1756892848520000],[15613,1737,0,88,"3",1756892848533000],[15614,1737,0,99,"1",1756892848547000],[15615,1737,0,100,"1",1756892848557000],[15616,1737,0,101,"3",1756892848570000],[15617,1737,0,104,"1",1756892848583000],[15618,1737,0,111,"109.90",1756892848597000],[15619,1737,0,115,"4",1756892848610000],[15620,1737,0,119,"17",1756892848623000],[15621,1737,0,120,"17",1756892848637000],[15622,1737,0,136,"24595.00",1756892848647000],[15623,1737,0,169,"Intelligent Crash Response System, Rollover Sensor System",1756892848770000],[15624,1737,0,170,"3",1756892848783000],[15625,1737,0,171,"3",1756892848797000],[15626,1737,0,172,"1",1756892848807000],[15627,1737,0,177,"1",1756892848820000],[15628,1737,0,179,"1",1756892848833000],[269288,1737,1,38,"S",1756892848357000],[15630,1738,0,15,"3",1756892833423000],[15631,1738,0,33,"7",1756892833443000],[15633,1738,0,36,"1",1756892833497000],[15634,1738,0,41,"2",1756892833527000],[15635,1738,0,61,"3",1756892833540000],[15636,1738,0,86,"1",1756892833557000],[15637,1738,0,87,"3",1756892833577000],[15638,1738,0,88,"3",1756892833590000],[15639,1738,0,99,"1",1756892833610000],[15640,1738,0,100,"1",1756892833733000],[15641,1738,0,101,"3",1756892833753000],[15642,1738,0,104,"1",1756892833770000],[15643,1738,0,111,"109.90",1756892833783000],[15644,1738,0,115,"4",1756892833797000],[15645,1738,0,119,"17",1756892833813000],[15646,1738,0,120,"17",1756892833830000],[15647,1738,0,136,"25895.00",1756892833847000],[15648,1738,0,169,"Intelligent Crash Response System, Rollover Sensor System",1756892833860000],[15649,1738,0,170,"3",1756892833877000],[15650,1738,0,171,"3",1756892833893000],[15651,1738,0,172,"1",1756892834013000],[15652,1738,0,177,"1",1756892834030000],[15653,1738,0,179,"1",1756892834050000],[269287,1738,1,38,"4Motion S",1756892833510000],[15655,1739,0,15,"1",1756892943587000],[15656,1739,0,33,"7",1756892943603000],[15658,1739,0,36,"1",1756892943633000],[15659,1739,0,41,"2",1756892943657000],[15660,1739,0,61,"3",1756892943670000],[15661,1739,0,81,"1",1756892943683000],[15662,1739,0,86,"1",1756892943810000],[15663,1739,0,87,"1",1756892943823000],[15664,1739,0,88,"1",1756892943837000],[15665,1739,0,99,"1",1756892943850000],[15666,1739,0,100,"1",1756892943863000],[15667,1739,0,101,"1",1756892943877000],[15668,1739,0,102,"1",1756892943890000],[15669,1739,0,103,"1",1756892943900000],[15670,1739,0,104,"1",1756892943913000],[15671,1739,0,105,"1",1756892943930000],[15672,1739,0,111,"109.90",1756892943940000],[15673,1739,0,115,"4",1756892944070000],[15674,1739,0,119,"19",1756892944083000],[15675,1739,0,120,"19",1756892944097000],[15676,1739,0,136,"36250.00",1756892944110000],[15677,1739,0,169,"Intelligent Crash Response System, Rollover Sensor System",1756892944127000],[15678,1739,0,170,"1",1756892944140000],[15679,1739,0,171,"1",1756892944160000],[15680,1739,0,172,"1",1756892944173000],[15681,1739,0,174,"1",1756892944190000],[15682,1739,0,176,"1",1756892944207000],[15683,1739,0,177,"1",1756892944223000],[15684,1739,0,179,"1",1756892944357000],[15685,1739,0,180,"1",1756892944370000],[269292,1739,1,38,"SEL Premium",1756892943643000],[15687,1740,0,15,"3",1756892928500000],[15688,1740,0,33,"7",1756892928513000],[15690,1740,0,36,"1",1756892928537000],[15691,1740,0,41,"2",1756892928563000],[15692,1740,0,61,"3",1756892928577000],[15693,1740,0,81,"1",1756892928710000],[15694,1740,0,86,"1",1756892928723000],[15695,1740,0,87,"1",1756892928737000],[15696,1740,0,88,"1",1756892928750000],[15697,1740,0,99,"1",1756892928760000],[15698,1740,0,100,"1",1756892928773000],[15699,1740,0,101,"1",1756892928787000],[15700,1740,0,102,"1",1756892928800000],[15701,1740,0,103,"1",1756892928813000],[15702,1740,0,104,"1",1756892928823000],[15703,1740,0,105,"1",1756892928837000],[15704,1740,0,111,"109.90",1756892928963000],[15705,1740,0,115,"4",1756892928977000],[15706,1740,0,119,"19",1756892928990000],[15707,1740,0,120,"19",1756892929003000],[15708,1740,0,136,"37550.00",1756892929017000],[15709,1740,0,169,"Intelligent Crash Response System, Rollover Sensor System",1756892929027000],[15710,1740,0,170,"1",1756892929040000],[15711,1740,0,171,"1",1756892929053000],[15712,1740,0,172,"1",1756892929067000],[15713,1740,0,174,"1",1756892929080000],[15714,1740,0,176,"1",1756892929093000],[15715,1740,0,177,"1",1756892929217000],[15716,1740,0,179,"1",1756892929230000],[15717,1740,0,180,"1",1756892929240000],[269291,1740,1,38,"4Motion SEL Premium",1756892928550000],[15915,1750,0,15,"1",1756892902810000],[15916,1750,0,33,"7",1756892902823000],[15918,1750,0,36,"1",1756892902847000],[15919,1750,0,41,"2",1756892902873000],[15920,1750,0,61,"3",1756892902887000],[15921,1750,0,86,"1",1756892902900000],[15922,1750,0,87,"1",1756892902910000],[15923,1750,0,88,"1",1756892902923000],[15924,1750,0,99,"1",1756892902937000],[15925,1750,0,100,"1",1756892903060000],[15926,1750,0,101,"1",1756892903077000],[15927,1750,0,104,"1",1756892903090000],[15928,1750,0,111,"109.90",1756892903100000],[15929,1750,0,115,"4",1756892903113000],[15930,1750,0,136,"26750.00",1756892903127000],[15931,1750,0,169,"SEL - Parking Assist Optional and Adaptive Cruise Control Standard; Intelligent Crash Response System, Rollover Sensor System",1756892903140000],[15932,1750,0,170,"1",1756892903150000],[15933,1750,0,171,"1",1756892903163000],[15934,1750,0,172,"1",1756892903177000],[15935,1750,0,174,"1",1756892903190000],[15936,1750,0,176,"1",1756892903317000],[15937,1750,0,177,"1",1756892903330000],[15938,1750,0,179,"1",1756892903343000],[269290,1750,1,38,"SE, SEL",1756892902860000],[15940,1751,0,15,"3",1756892872170000],[15941,1751,0,33,"7",1756892872183000],[15943,1751,0,36,"1",1756892872323000],[15944,1751,0,41,"2",1756892872347000],[15945,1751,0,61,"3",1756892872360000],[15946,1751,0,86,"1",1756892872370000],[15947,1751,0,87,"1",1756892872383000],[15948,1751,0,88,"1",1756892872397000],[15949,1751,0,99,"1",1756892872410000],[15950,1751,0,100,"1",1756892872420000],[15951,1751,0,101,"1",1756892872433000],[15952,1751,0,104,"1",1756892872447000],[15953,1751,0,111,"109.90",1756892872567000],[15954,1751,0,115,"4",1756892872580000],[15955,1751,0,136,"28050.00",1756892872593000],[15956,1751,0,169,"SEL 4Motion - Parking Assist Optional, Adaptive Cruise Control Standard; Intelligent Crash Response System, Rollover Sensor System",1756892872607000],[15957,1751,0,170,"1",1756892872620000],[15958,1751,0,171,"1",1756892872630000],[15959,1751,0,172,"1",1756892872643000],[15960,1751,0,174,"1",1756892872657000],[15961,1751,0,176,"1",1756892872670000],[15962,1751,0,177,"1",1756892872680000],[15963,1751,0,179,"1",1756892872693000],[269289,1751,1,38,"SE, 4Motion SEL",1756892872333000],[291445,20201,1,5,"7",1790691376097000],[291446,20201,0,54,"3858",1790691376107000],[291447,20201,0,114,"Curb Weight (lbs): 3777-3858",1790691376117000],[291448,20201,0,168,"2",1790691376123000],[20232,1900,1,5,"13",1542801168667000],[20233,1900,0,15,"1",1544459489360000],[20234,1900,0,33,"5",1544459489360000],[20235,1900,1,34,"LX, S",1542801168697000],[20236,1900,0,36,"1",1544459489360000],[20237,1900,0,41,"2",1544459489360000],[20238,1900,0,61,"2",1544459489360000],[20239,1900,0,63,"6",1544459489360000],[20240,1900,0,86,"1",1544459489360000],[20241,1900,0,99,"1",1544459489377000],[20242,1900,0,100,"1",1544459489377000],[20243,1900,0,111,"101.60",1544459489377000],[20244,1900,0,115,"4",1544459489377000],[20245,1900,0,119,"15",1544459489377000],[20246,1900,0,120,"15",1544459489377000],[20247,1900,0,136,"13.90",1544459489377000],[20248,1900,0,139,"115",1544459489377000],[20249,1900,0,169,"Rear Visibility Camera Standard for \"S\" series; Crash Imminent Braking Optional for \"S\" series; Hill Start Assist Control",1544459489377000],[20250,1900,0,170,"1",1544459489377000],[20251,1900,0,172,"1",1544459489390000],[20252,1901,1,5,"13",1542801420167000],[20253,1901,0,15,"1",1542801420167000],[20254,1901,0,33,"5",1542801420167000],[20255,1901,1,34,"EX",1542801420167000],[20256,1901,0,36,"1",1542801420183000],[20257,1901,0,37,"2",1542801420183000],[20258,1901,0,41,"2",1542801420183000],[20259,1901,0,61,"2",1542801420183000],[20260,1901,0,63,"6",1542801420183000],[20261,1901,0,86,"1",1542801420183000],[20262,1901,0,87,"1",1542801420200000],[20263,1901,0,99,"1",1542801420200000],[20264,1901,0,100,"1",1542801420200000],[20265,1901,0,101,"1",1542801420200000],[20266,1901,0,104,"1",1542801420213000],[20267,1901,0,111,"101.6",1542801420247000],[20268,1901,0,115,"4",1542801420247000],[20269,1901,0,119,"15",1542801420247000],[20270,1901,0,120,"15",1542801420247000],[20271,1901,0,136,"18400",1542801420247000],[20272,1901,0,139,"115",1542801420247000],[20273,1901,0,169,"Hill Start Assist Control",1542801420247000],[20274,1901,0,170,"1",1542801420260000],[20275,1901,0,172,"1",1542801420260000],[20277,1902,1,5,"5",1542801587240000],[20278,1902,0,15,"1",1544458846517000],[20279,1902,0,33,"5",1544458846517000],[20280,1902,1,34,"LX, S",1542801587240000],[20281,1902,0,36,"1",1544458846533000],[20282,1902,0,41,"2",1544458846533000],[20283,1902,0,61,"2",1544458846533000],[20284,1902,0,63,"6",1544458846533000],[20285,1902,0,86,"1",1544458846533000],[20286,1902,0,99,"1",1544458846533000],[20287,1902,0,100,"1",1544458846533000],[20288,1902,0,111,"101.60",1544458846533000],[20289,1902,0,115,"4",1544458846547000],[20290,1902,0,119,"15",1544458846547000],[20291,1902,0,120,"15",1544458846547000],[20292,1902,0,136,"14.20",1544458846547000],[20293,1902,0,139,"115",1544458846547000],[20294,1902,0,169,"Rear Visibility Camera Optional for \"LX\" series and Standard for \"S\" series; Crash Imminent Braking Optional for \"S\" series; Hill Start Assist Control",1544458846563000],[20295,1902,0,170,"1",1544458846563000],[20296,1902,0,172,"1",1544458846563000],[20297,1903,0,15,"1",1542801778400000],[20298,1903,0,33,"5",1542801778400000],[20299,1903,1,34,"EX",1542801732350000],[20300,1903,0,36,"1",1542801778400000],[20301,1903,0,37,"2",1542801778400000],[20302,1903,0,41,"2",1542801778400000],[20303,1903,0,61,"2",1542801778400000],[20304,1903,0,63,"6",1542801778400000],[20305,1903,0,86,"1",1542801778400000],[20306,1903,0,87,"1",1542801778417000],[20307,1903,0,99,"1",1542801778417000],[20308,1903,0,100,"1",1542801778417000],[20309,1903,0,101,"1",1542801778417000],[20310,1903,0,104,"1",1542801778417000],[20311,1903,0,111,"101.60",1542801778417000],[20312,1903,0,115,"4",1542801778433000],[20313,1903,0,119,"15",1542801778433000],[20314,1903,0,120,"15",1542801778433000],[20315,1903,0,136,"18700.00",1542801778433000],[20316,1903,0,139,"115",1542801778433000],[20317,1903,0,169,"Hill Start Assist Control",1542801778433000],[20318,1903,0,170,"1",1542801778433000],[20319,1903,0,172,"1",1542801778433000],[20321,1903,1,5,"5",1542801778387000],[293006,20339,1,5,"13",1791281597663000],[293007,20339,0,54,"2714",1791281597677000],[293008,20339,0,114,"Curb Weight: 2,648 to 2,714 lbs",1791281597687000],[293009,20340,1,5,"5",1791281614930000],[293010,20340,0,54,"2714",1791281614963000],[293011,20340,0,114,"Curb Weight: 2,648 to 2,714 lbs",1791281614977000],[20981,1913,1,5,"13",1543419950943000],[20982,1913,0,15,"1",1754051270273000],[20983,1913,0,33,"5",1754051270287000],[20985,1913,0,36,"1",1754051270320000],[20986,1913,0,37,"2",1754051270333000],[20987,1913,0,41,"2",1754051270357000],[20988,1913,0,61,"2",1754051270490000],[20989,1913,0,63,"6",1754051270503000],[20990,1913,0,86,"1",1754051270513000],[20991,1913,0,99,"1",1754051270527000],[20992,1913,0,100,"1",1754051270540000],[20993,1913,0,104,"3",1754051270553000],[20994,1913,0,111,"106.30",1754051270563000],[20995,1913,0,115,"4",1754051270580000],[20996,1913,0,119,"15",1754051270590000],[20997,1913,0,120,"15",1754051270603000],[20998,1913,0,136,"16800.00",1754051270617000],[20999,1913,0,169,"Hill Start Assist Control",1754051270740000],[21000,1913,0,170,"1",1754051270757000],[21001,1913,0,172,"1",1754051270773000],[269240,1913,1,38,"LX Base",1754051270347000],[21003,1914,0,15,"1",1754051288540000],[21004,1914,0,33,"5",1754051288553000],[21006,1914,0,36,"1",1754051288580000],[21007,1914,0,37,"2",1754051288590000],[21008,1914,0,41,"2",1754051288613000],[21009,1914,0,61,"2",1754051288627000],[21010,1914,0,63,"6",1754051288640000],[21011,1914,0,86,"1",1754051288653000],[21012,1914,0,87,"3",1754051288663000],[21013,1914,0,88,"3",1754051288783000],[21014,1914,0,99,"1",1754051288797000],[21015,1914,0,100,"1",1754051288810000],[21016,1914,0,101,"3",1754051288820000],[21017,1914,0,102,"3",1754051288833000],[21018,1914,0,103,"5",1754051288847000],[21019,1914,0,104,"1",1754051288857000],[21020,1914,0,111,"106.30",1754051288870000],[21021,1914,0,115,"4",1754051288883000],[21022,1914,0,119,"16",1754051288893000],[21023,1914,0,120,"16",1754051288907000],[21024,1914,0,136,"19400.00",1754051289030000],[21025,1914,0,169,"Rear Cross Traffic Alert: Optional; Hill Start Assist Control",1754051289043000],[21026,1914,0,170,"1",1754051289057000],[21027,1914,0,172,"1",1754051289070000],[21028,1914,0,176,"3",1754051289080000],[21056,1914,1,5,"13",1543420297920000],[269241,1914,1,38,"LX Pop,S,EX",1754051288603000],[21029,1915,1,5,"13",1543420283397000],[21030,1915,0,15,"1",1754051095397000],[21031,1915,0,33,"5",1754051095413000],[21033,1915,0,36,"1",1754051095543000],[21034,1915,0,37,"2",1754051095560000],[21035,1915,0,41,"2",1754051095593000],[21036,1915,0,61,"2",1754051095610000],[21037,1915,0,63,"6",1754051095623000],[21038,1915,0,86,"1",1754051095643000],[21039,1915,0,87,"3",1754051095793000],[21040,1915,0,88,"1",1754051095813000],[21041,1915,0,99,"1",1754051095830000],[21042,1915,0,100,"1",1754051095843000],[21043,1915,0,101,"3",1754051095860000],[21044,1915,0,102,"3",1754051095877000],[21045,1915,0,103,"5",1754051095890000],[21046,1915,0,104,"1",1754051095903000],[21047,1915,0,111,"106.30",1754051095920000],[21048,1915,0,115,"4",1754051095933000],[21049,1915,0,119,"17",1754051096063000],[21050,1915,0,120,"17",1754051096080000],[21051,1915,0,136,"21700.00",1754051096097000],[21052,1915,0,169,"Rear Cross Traffic Alert: Standard; Hill Start Assist Control",1754051096113000],[21053,1915,0,170,"1",1754051096130000],[21054,1915,0,172,"1",1754051096143000],[21055,1915,0,176,"1",1754051096160000],[269239,1915,1,38,"EX PREM, SX",1754051095577000],[21057,1916,1,5,"5",1543420441317000],[21058,1916,0,15,"1",1754051044327000],[21059,1916,0,33,"5",1754051044340000],[21061,1916,0,36,"1",1754051044363000],[21062,1916,0,37,"2",1754051044377000],[21063,1916,0,41,"2",1754051044403000],[21064,1916,0,61,"2",1754051044417000],[21065,1916,0,63,"6",1754051044533000],[21066,1916,0,86,"1",1754051044547000],[21067,1916,0,99,"1",1754051044560000],[21068,1916,0,100,"1",1754051044573000],[21069,1916,0,104,"3",1754051044583000],[21070,1916,0,111,"106.30",1754051044597000],[21071,1916,0,115,"4",1754051044610000],[21072,1916,0,119,"15",1754051044620000],[21073,1916,0,120,"15",1754051044633000],[21074,1916,0,136,"18300.00",1754051044647000],[21075,1916,0,169,"Hill Start Assist Control",1754051044657000],[21076,1916,0,170,"1",1754051044777000],[21077,1916,0,172,"1",1754051044790000],[21078,1916,0,176,"3",1754051044800000],[269237,1916,1,38,"LX",1754051044390000],[21080,1917,1,5,"5",1543420800493000],[21081,1917,0,15,"1",1754051034097000],[21082,1917,0,33,"5",1754051034117000],[21084,1917,0,36,"1",1754051034143000],[21085,1917,0,37,"2",1754051034157000],[21086,1917,0,41,"2",1754051034180000],[21087,1917,0,61,"2",1754051034300000],[21088,1917,0,63,"6",1754051034313000],[21089,1917,0,86,"1",1754051034323000],[21090,1917,0,88,"3",1754051034337000],[21091,1917,0,99,"1",1754051034350000],[21092,1917,0,100,"1",1754051034363000],[21093,1917,0,104,"1",1754051034373000],[21094,1917,0,111,"106.30",1754051034387000],[21095,1917,0,115,"4",1754051034400000],[21096,1917,0,119,"17",1754051034410000],[21097,1917,0,120,"17",1754051034423000],[21098,1917,0,136,"22200.00",1754051034543000],[21099,1917,0,169,"Rear Cross Traffic Alert: Optional; Hill Start Assist Control",1754051034553000],[21100,1917,0,170,"1",1754051034567000],[21101,1917,0,172,"1",1754051034580000],[21102,1917,0,176,"1",1754051034590000],[269236,1917,1,38,"EX",1754051034170000],[21104,1918,1,5,"5",1543421075103000],[21105,1918,0,15,"1",1754051054727000],[21106,1918,0,33,"5",1754051054740000],[21108,1918,0,36,"1",1754051054763000],[21109,1918,0,41,"2",1754051054893000],[21110,1918,0,61,"2",1754051054907000],[21111,1918,0,86,"1",1754051054920000],[21112,1918,0,88,"3",1754051054933000],[21113,1918,0,99,"1",1754051054947000],[21114,1918,0,100,"1",1754051054957000],[21115,1918,0,104,"1",1754051054970000],[21116,1918,0,111,"106.30",1754051054980000],[21117,1918,0,115,"4",1754051054993000],[21118,1918,0,119,"18",1754051055007000],[21119,1918,0,120,"18",1754051055020000],[21120,1918,0,136,"23900.00",1754051055137000],[21121,1918,0,169,"Rear Cross Traffic Alert: Optional; Hill Start Assist Control",1754051055150000],[21122,1918,0,170,"1",1754051055163000],[21123,1918,0,172,"1",1754051055177000],[21124,1918,0,176,"1",1754051055190000],[269238,1918,1,38,"SX",1754051054777000],[293015,20342,1,5,"13",1791281835580000],[293016,20342,0,54,"2908",1791281835590000],[293017,20342,0,114,"Curb Weight: 2,855 to 2,908 lbs",1791281835600000],[293018,20343,1,5,"5",1791281850373000],[293019,20343,0,54,"2908",1791281850383000],[293020,20343,0,114,"Curb Weight: 2,855 to 2,908 lbs",1791281850393000],[40346,2276,0,33,"5",1790932123013000],[40347,2276,0,36,"1",1790932123040000],[40348,2276,0,41,"2",1790932123047000],[40349,2276,0,61,"2",1790932123063000],[40350,2276,0,81,"1",1790932123073000],[40351,2276,0,86,"1",1790932123090000],[40352,2276,0,87,"1",1790932123097000],[40353,2276,0,99,"1",1790932123117000],[40354,2276,0,100,"1",1790932123130000],[40355,2276,0,101,"1",1790932123137000],[40356,2276,0,102,"1",1790932123147000],[40357,2276,0,103,"1",1790932123153000],[40358,2276,0,104,"1",1790932123170000],[40360,2276,0,115,"4",1790932123187000],[40362,2276,0,139,"111",1790932123193000],[40363,2276,0,169,"Keyless Ignition: Standard for XLE, SE6MT and XSE trims, Optional for SE trim",1790932123207000],[40364,2276,0,170,"1",1790932123217000],[40365,2276,0,171,"1",1790932123230000],[40366,2276,0,172,"1",1790932123243000],[40367,2276,0,177,"1",1790932123253000],[40368,2276,0,179,"1",1790932123263000],[40369,2276,0,180,"1",1790932123277000],[291832,2276,1,5,"13",1790932122997000],[291833,2276,0,25,"11",1790932123003000],[291834,2276,0,54,"2885",1790932123053000],[291835,2276,0,114,"Curb Weight (lbs): 2840-2885",1790932123180000],[291836,2276,0,190,"11",1790932123283000],[133231,6068,1,38,"LE ECO",1592817586830000],[133232,6068,0,136,"19435.00",1592819739280000],[133235,6068,0,37,"7",1592819739140000],[133236,6068,0,52,"Calipers / Front Vented Discs",1592819739140000],[133237,6068,0,54,"2850",1592819739153000],[133238,6068,0,60,"5",1592819739170000],[133239,6068,0,64,"1",1592819739187000],[133240,6068,0,78,"1",1592819739200000],[133241,6068,0,111,"106.30",1592819739233000],[133242,6068,0,119,"15",1592819739250000],[133243,6068,0,120,"15",1592819739263000],[133244,6068,0,129,"Sequential MPI\r\n",1592819739280000],[133245,6068,0,138,"1",1592819739297000],[133246,6068,0,146,"Toyota",1592819739310000],[133247,6068,0,159,"60.30",1592819739327000],[133257,6068,0,67,"3",1592819739187000],[133233,6069,1,38,"L/LE/SE/XLE/XSE",1592817973127000],[133234,6069,0,136,"18600.00",1592819721597000],[133248,6069,0,52,"Calipers / Front Vented Discs",1592819721577000],[133249,6069,0,60,"5",1592819721577000],[133250,6069,0,64,"1",1592819721577000],[133251,6069,0,67,"3",1592819721577000],[133252,6069,0,78,"1",1592819721577000],[133253,6069,0,111,"106.3",1592819721597000],[133254,6069,0,129,"Sequential MPI\r\n",1592819721597000],[133255,6069,0,138,"1",1592819721597000],[133256,6069,0,146,"Toyota",1592819721610000],[136165,6169,0,115,"4",1595261678840000],[136210,6169,0,33,"5",1595261678790000],[136211,6169,0,36,"1",1595261678790000],[136212,6169,0,41,"2",1595261678790000],[136213,6169,0,61,"2",1595261678790000],[136214,6169,0,81,"1",1595261678790000],[136215,6169,0,86,"1",1595261678807000],[136216,6169,0,87,"1",1595261678807000],[136217,6169,0,99,"1",1595261678823000],[136218,6169,0,100,"1",1595261678823000],[136219,6169,0,101,"1",1595261678823000],[136220,6169,0,102,"1",1595261678823000],[136221,6169,0,103,"1",1595261678823000],[136222,6169,0,104,"1",1595261678823000],[136223,6169,0,170,"1",1595261678840000],[136224,6169,0,171,"1",1595261678840000],[136225,6169,0,172,"1",1595261678853000],[136226,6169,0,177,"1",1595261678853000],[136227,6169,0,179,"1",1595261678853000],[136228,6169,0,180,"1",1595261678870000],[136267,6169,1,110,"ZRE212L-AEXDBA",1595261678840000],[136167,6170,0,115,"4",1595261715040000],[136229,6170,0,81,"1",1595261714993000],[136230,6170,0,86,"1",1595261715010000],[136231,6170,0,87,"1",1595261715010000],[136232,6170,0,99,"1",1595261715010000],[136233,6170,0,100,"1",1595261715010000],[136234,6170,0,101,"1",1595261715010000],[136235,6170,0,102,"1",1595261715023000],[136236,6170,0,103,"1",1595261715023000],[136237,6170,0,104,"1",1595261715023000],[136238,6170,0,170,"1",1595261715040000],[136239,6170,0,171,"1",1595261715040000],[136240,6170,0,172,"1",1595261715040000],[136241,6170,0,177,"1",1595261715057000],[136242,6170,0,179,"1",1595261715057000],[136243,6170,0,180,"1",1595261715057000],[136244,6170,0,33,"5",1595261714977000],[136245,6170,0,36,"1",1595261714977000],[136246,6170,0,41,"2",1595261714993000],[136247,6170,0,61,"2",1595261714993000],[136268,6170,1,110,"ZRE212L-AEXLPA",1595261715040000],[136187,6172,0,115,"4",1595261787337000],[136248,6172,0,33,"5",1595261787273000],[136249,6172,0,36,"1",1595261787290000],[136250,6172,0,41,"2",1595261787290000],[136251,6172,0,61,"2",1595261787290000],[136252,6172,0,81,"1",1595261787303000],[136253,6172,0,86,"1",1595261787303000],[136254,6172,0,87,"1",1595261787303000],[136255,6172,0,99,"1",1595261787303000],[136256,6172,0,100,"1",1595261787303000],[136257,6172,0,101,"1",1595261787303000],[136258,6172,0,102,"1",1595261787320000],[136259,6172,0,103,"1",1595261787337000],[136260,6172,0,104,"1",1595261787337000],[136261,6172,0,170,"1",1595261787337000],[136262,6172,0,171,"1",1595261787337000],[136263,6172,0,172,"1",1595261787350000],[136264,6172,0,177,"1",1595261787350000],[136265,6172,0,179,"1",1595261787350000],[136266,6172,0,180,"1",1595261787350000],[136269,6172,1,110,"ZWE211L-AEXLBA",1595261787337000],[136270,6174,0,33,"5",1595261904790000],[136271,6174,0,36,"1",1595261904807000],[136272,6174,0,41,"2",1595261904807000],[136273,6174,0,61,"2",1595261904807000],[136274,6174,0,81,"1",1595261904807000],[136275,6174,0,86,"1",1595261904807000],[136276,6174,0,87,"1",1595261904807000],[136277,6174,0,99,"1",1595261904807000],[136278,6174,0,100,"1",1595261904823000],[136279,6174,0,101,"1",1595261904823000],[136280,6174,0,102,"1",1595261904823000],[136281,6174,0,103,"1",1595261904840000],[136282,6174,0,104,"1",1595261904840000],[136283,6174,1,110,"ZRE212L-AEXXPA",1595261904840000],[136284,6174,0,115,"4",1595261904853000],[136285,6174,0,170,"1",1595261904853000],[136286,6174,0,171,"1",1595261904853000],[136287,6174,0,172,"1",1595261904853000],[136288,6174,0,177,"1",1595261904853000],[136289,6174,0,179,"1",1595261904853000],[136290,6174,0,180,"1",1595261904870000],[136291,6175,0,33,"5",1595262009653000],[136292,6175,0,36,"1",1595262009667000],[136293,6175,0,41,"2",1595262009667000],[136294,6175,0,61,"2",1595262009683000],[136295,6175,0,81,"1",1595262009683000],[136296,6175,0,86,"1",1595262009683000],[136297,6175,0,87,"1",1595262009683000],[136298,6175,0,99,"1",1595262009683000],[136299,6175,0,100,"1",1595262009700000],[136300,6175,0,101,"1",1595262009700000],[136301,6175,0,102,"1",1595262009700000],[136302,6175,0,103,"1",1595262009700000],[136303,6175,0,104,"1",1595262009700000],[136304,6175,1,110,"ZRE212L-AEFDPA",1595262009700000],[136305,6175,0,115,"4",1595262009747000],[136306,6175,0,170,"1",1595262009747000],[136307,6175,0,171,"1",1595262009747000],[136308,6175,0,172,"1",1595262009747000],[136309,6175,0,177,"1",1595262009760000],[136310,6175,0,179,"1",1595262009760000],[136311,6175,0,180,"1",1595262009760000],[136312,6177,0,33,"5",1595494553490000],[136313,6177,0,36,"1",1595494553490000],[136314,6177,0,41,"2",1595494553503000],[136315,6177,0,61,"2",1595494553503000],[136316,6177,0,81,"1",1595494553520000],[136317,6177,0,86,"1",1595494553520000],[136318,6177,0,87,"1",1595494553520000],[136319,6177,0,99,"1",1595494553520000],[136320,6177,0,100,"1",1595494553520000],[136321,6177,0,101,"1",1595494553520000],[136322,6177,0,102,"1",1595494553537000],[136323,6177,0,103,"1",1595494553537000],[136324,6177,0,104,"1",1595494553537000],[136325,6177,1,110,"MZEA12L-AEFSBA",1595494553550000],[136326,6177,0,115,"4",1595494553567000],[136327,6177,0,170,"1",1595494553567000],[136328,6177,0,171,"1",1595494553567000],[136329,6177,0,172,"1",1595494553567000],[136330,6177,0,177,"1",1595494553567000],[136331,6177,0,179,"1",1595494553567000],[136332,6177,0,180,"1",1595494553583000],[136333,6178,0,33,"5",1595262236057000],[136334,6178,0,36,"1",1595262236073000],[136335,6178,0,41,"2",1595262236073000],[136336,6178,0,61,"2",1595262236073000],[136337,6178,0,81,"1",1595262236073000],[136338,6178,0,86,"1",1595262236073000],[136339,6178,0,87,"1",1595262236073000],[136340,6178,0,99,"1",1595262236090000],[136341,6178,0,100,"1",1595262236090000],[136342,6178,0,101,"1",1595262236090000],[136343,6178,0,102,"1",1595262236090000],[136344,6178,0,103,"1",1595262236090000],[136345,6178,0,104,"1",1595262236103000],[136346,6178,1,110,"MZEA12L-AEXSBA",1595262236103000],[136347,6178,0,115,"4",1595262236103000],[136348,6178,0,170,"1",1595262236120000],[136349,6178,0,171,"1",1595262236120000],[136350,6178,0,172,"1",1595262236120000],[136351,6178,0,177,"1",1595262236120000],[136352,6178,0,179,"1",1595262236120000],[136353,6178,0,180,"1",1595262236120000],[136354,6179,0,33,"5",1595262725070000],[136355,6179,0,36,"1",1595262725083000],[136356,6179,0,41,"2",1595262725083000],[136357,6179,0,61,"2",1595262725117000],[136358,6179,0,81,"1",1595262725130000],[136359,6179,0,86,"1",1595262725147000],[136360,6179,0,87,"1",1595262725147000],[136361,6179,0,99,"1",1595262725163000],[136362,6179,0,100,"1",1595262725180000],[136363,6179,0,101,"1",1595262725193000],[136364,6179,0,102,"1",1595262725210000],[136365,6179,0,103,"1",1595262725227000],[136366,6179,0,104,"1",1595262725240000],[136367,6179,1,110,"MZEA12L-AEXYBA",1595262725240000],[136368,6179,0,115,"4",1595262725273000],[136369,6179,0,170,"1",1595262725287000],[136370,6179,0,171,"1",1595262725303000],[136371,6179,0,172,"1",1595262725303000],[136372,6179,0,177,"1",1595262725320000],[136373,6179,0,179,"1",1595262725333000],[136374,6179,0,180,"1",1595262725350000],[136375,6180,1,110,"MZEA12L-AHFNBA",1595349680600000],[136376,6180,0,115,"4",1595495812553000],[136379,6180,0,33,"5",1595495812490000],[136380,6180,0,36,"1",1595495812507000],[136381,6180,0,41,"2",1595495812507000],[136382,6180,0,61,"2",1595495812523000],[136383,6180,0,81,"1",1595495812523000],[136384,6180,0,86,"1",1595495812523000],[136385,6180,0,87,"1",1595495812523000],[136386,6180,0,99,"1",1595495812523000],[136387,6180,0,100,"1",1595495812523000],[136388,6180,0,101,"1",1595495812540000],[136389,6180,0,102,"1",1595495812540000],[136390,6180,0,103,"1",1595495812553000],[136391,6180,0,104,"1",1595495812553000],[136392,6180,0,170,"1",1595495812553000],[136393,6180,0,171,"1",1595495812553000],[136394,6180,0,172,"1",1595495812553000],[136395,6180,0,177,"1",1595495812570000],[136396,6180,0,179,"1",1595495812570000],[136397,6180,0,180,"1",1595495812570000],[136439,6180,0,62,"2",1595495812523000],[136377,6181,1,110,"MZEA12L-AHXNBA",1595349725900000],[136378,6181,0,115,"4",1595495865400000],[136398,6181,0,33,"5",1595495865350000],[136399,6181,0,36,"1",1595495865350000],[136400,6181,0,41,"2",1595495865350000],[136401,6181,0,61,"2",1595495865367000],[136402,6181,0,81,"1",1595495865367000],[136403,6181,0,86,"1",1595495865367000],[136404,6181,0,87,"1",1595495865367000],[136405,6181,0,99,"1",1595495865383000],[136406,6181,0,100,"1",1595495865383000],[136407,6181,0,101,"1",1595495865383000],[136408,6181,0,102,"1",1595495865400000],[136409,6181,0,103,"1",1595495865400000],[136410,6181,0,104,"1",1595495865400000],[136411,6181,0,170,"1",1595495865400000],[136412,6181,0,171,"1",1595495865400000],[136413,6181,0,172,"1",1595495865400000],[136414,6181,0,177,"1",1595495865413000],[136415,6181,0,179,"1",1595495865413000],[136416,6181,0,180,"1",1595495865430000],[136440,6181,0,62,"2",1595495865367000],[136417,6182,0,33,"5",1595580054150000],[136418,6182,0,36,"1",1595580054167000],[136419,6182,0,41,"2",1595580054167000],[136420,6182,0,61,"2",1595580054183000],[136421,6182,0,62,"2",1595580054183000],[136422,6182,0,81,"1",1595580054183000],[136423,6182,0,86,"1",1595580054197000],[136424,6182,0,87,"1",1595580054197000],[136425,6182,0,99,"1",1595580054197000],[136426,6182,0,100,"1",1595580054197000],[136427,6182,0,101,"1",1595580054213000],[136428,6182,0,102,"1",1595580054213000],[136429,6182,0,103,"1",1595580054213000],[136430,6182,0,104,"1",1595580054213000],[136432,6182,0,115,"4",1595580054230000],[136433,6182,0,170,"1",1595580054230000],[136434,6182,0,171,"1",1595580054260000],[136435,6182,0,172,"1",1595580054260000],[136436,6182,0,177,"1",1595580054260000],[136437,6182,0,179,"1",1595580054260000],[136438,6182,0,180,"1",1595580054260000],[136974,6182,1,34,"ZRE212L-DEFDPA",1595580054167000],[136442,6183,0,115,"4",1595579749667000],[136553,6183,0,33,"5",1595579749620000],[136554,6183,0,36,"1",1595579749620000],[136555,6183,0,41,"2",1595579749633000],[136556,6183,0,61,"2",1595579749633000],[136557,6183,0,62,"2",1595579749633000],[136558,6183,0,81,"1",1595579749633000],[136559,6183,0,86,"1",1595579749633000],[136560,6183,0,87,"1",1595579749650000],[136561,6183,0,99,"1",1595579749650000],[136562,6183,0,100,"1",1595579749650000],[136563,6183,0,101,"1",1595579749650000],[136564,6183,0,102,"1",1595579749650000],[136565,6183,0,103,"1",1595579749667000],[136566,6183,0,104,"1",1595579749667000],[136567,6183,0,170,"1",1595579749667000],[136568,6183,0,171,"1",1595579749667000],[136569,6183,0,172,"1",1595579749680000],[136570,6183,0,177,"1",1595579749680000],[136571,6183,0,179,"1",1595579749680000],[136572,6183,0,180,"1",1595579749697000],[136970,6183,1,34,"ZRE212L-DEXLPA",1595579749620000],[136444,6184,0,115,"4",1595579803260000],[136513,6184,0,33,"5",1595579803213000],[136514,6184,0,36,"1",1595579803230000],[136515,6184,0,41,"2",1595579803230000],[136516,6184,0,61,"2",1595579803230000],[136517,6184,0,62,"2",1595579803230000],[136518,6184,0,81,"1",1595579803230000],[136519,6184,0,86,"1",1595579803230000],[136520,6184,0,87,"1",1595579803230000],[136521,6184,0,99,"1",1595579803230000],[136522,6184,0,100,"1",1595579803243000],[136523,6184,0,101,"1",1595579803260000],[136524,6184,0,102,"1",1595579803260000],[136525,6184,0,103,"1",1595579803260000],[136526,6184,0,104,"1",1595579803260000],[136527,6184,0,170,"1",1595579803277000],[136528,6184,0,171,"1",1595579803277000],[136529,6184,0,172,"1",1595579803277000],[136530,6184,0,177,"1",1595579803277000],[136531,6184,0,179,"1",1595579803277000],[136532,6184,0,180,"1",1595579803290000],[136971,6184,1,34,"MZEA12L-DEXSBA",1595579803213000],[136446,6185,0,115,"4",1595580123103000],[136473,6185,0,33,"5",1595580123057000],[136474,6185,0,36,"1",1595580123057000],[136475,6185,0,41,"2",1595580123057000],[136476,6185,0,61,"2",1595580123057000],[136477,6185,0,62,"2",1595580123057000],[136478,6185,0,81,"1",1595580123073000],[136479,6185,0,86,"1",1595580123073000],[136480,6185,0,87,"1",1595580123073000],[136481,6185,0,99,"1",1595580123073000],[136482,6185,0,100,"1",1595580123090000],[136483,6185,0,101,"1",1595580123090000],[136484,6185,0,102,"1",1595580123090000],[136485,6185,0,103,"1",1595580123090000],[136486,6185,0,104,"1",1595580123103000],[136487,6185,0,170,"1",1595580123103000],[136488,6185,0,171,"1",1595580123103000],[136489,6185,0,172,"1",1595580123103000],[136490,6185,0,177,"1",1595580123103000],[136491,6185,0,179,"1",1595580123137000],[136492,6185,0,180,"1",1595580123137000],[136975,6185,1,34,"ZRE212L-DEXDPA",1595580123057000],[136448,6186,0,115,"4",1595580152290000],[136533,6186,0,33,"5",1595580152137000],[136534,6186,0,36,"1",1595580152137000],[136535,6186,0,41,"2",1595580152137000],[136536,6186,0,61,"2",1595580152150000],[136537,6186,0,62,"2",1595580152150000],[136538,6186,0,81,"1",1595580152167000],[136539,6186,0,86,"1",1595580152183000],[136540,6186,0,87,"1",1595580152200000],[136541,6186,0,99,"1",1595580152213000],[136542,6186,0,100,"1",1595580152230000],[136543,6186,0,101,"1",1595580152230000],[136544,6186,0,102,"1",1595580152247000],[136545,6186,0,103,"1",1595580152260000],[136546,6186,0,104,"1",1595580152277000],[136547,6186,0,170,"1",1595580152307000],[136548,6186,0,171,"1",1595580152323000],[136549,6186,0,172,"1",1595580152340000],[136550,6186,0,177,"1",1595580152340000],[136551,6186,0,179,"1",1595580152340000],[136552,6186,0,180,"1",1595580152353000],[136976,6186,1,34,"ZRE212L-DEXXPA",1595580152137000],[136450,6187,0,115,"4",1595579934493000],[136493,6187,0,33,"5",1595579934433000],[136494,6187,0,36,"1",1595579934447000],[136495,6187,0,41,"2",1595579934447000],[136496,6187,0,61,"2",1595579934463000],[136497,6187,0,62,"2",1595579934463000],[136498,6187,0,81,"1",1595579934463000],[136499,6187,0,86,"1",1595579934463000],[136500,6187,0,87,"1",1595579934463000],[136501,6187,0,99,"1",1595579934463000],[136502,6187,0,100,"1",1595579934480000],[136503,6187,0,101,"1",1595579934480000],[136504,6187,0,102,"1",1595579934480000],[136505,6187,0,103,"1",1595579934480000],[136506,6187,0,104,"1",1595579934493000],[136507,6187,0,170,"1",1595579934493000],[136508,6187,0,171,"1",1595579934510000],[136509,6187,0,172,"1",1595579934510000],[136510,6187,0,177,"1",1595579934510000],[136511,6187,0,179,"1",1595579934510000],[136512,6187,0,180,"1",1595579934510000],[136972,6187,1,34,"MZEA12L-DEFSBA",1595579934433000],[136451,6188,0,33,"5",1595579979993000],[136452,6188,0,36,"1",1595579979993000],[136453,6188,0,41,"2",1595579979993000],[136454,6188,0,61,"2",1595579979993000],[136455,6188,0,62,"2",1595579980010000],[136456,6188,0,81,"1",1595579980010000],[136457,6188,0,86,"1",1595579980010000],[136458,6188,0,87,"1",1595579980010000],[136459,6188,0,99,"1",1595579980010000],[136460,6188,0,100,"1",1595579980027000],[136461,6188,0,101,"1",1595579980027000],[136462,6188,0,102,"1",1595579980027000],[136463,6188,0,103,"1",1595579980027000],[136464,6188,0,104,"1",1595579980040000],[136466,6188,0,115,"4",1595579980040000],[136467,6188,0,170,"1",1595579980040000],[136468,6188,0,171,"1",1595579980040000],[136469,6188,0,172,"1",1595579980040000],[136470,6188,0,177,"1",1595579980040000],[136471,6188,0,179,"1",1595579980057000],[136472,6188,0,180,"1",1595579980057000],[136973,6188,1,34,"MZEA12L-DEXYBA",1595579979993000],[218743,11239,1,5,"13",1672323595307000],[218744,11239,0,168,"1",1790072453690000],[288945,11239,0,25,"12",1790072453617000],[288946,11239,0,54,"3150",1790072453627000],[288947,11239,0,114,"Curb Weight (lbs): 2850-3150",1790072453680000],[288948,11239,0,190,"12",1790072453700000],[218745,11240,1,5,"5",1672323638147000],[218746,11240,0,168,"1",1790072398633000],[288940,11240,0,25,"12",1790072398617000],[288941,11240,0,54,"3060",1790072398623000],[288942,11240,0,190,"12",1790072398643000],[138018,6253,0,136,"30495.00",1789985679237000],[138051,6253,0,33,"5",1789985679073000],[138052,6253,0,36,"1",1789985679087000],[138053,6253,0,37,"2",1789985679100000],[138054,6253,0,41,"2",1789985679107000],[138055,6253,0,61,"2",1789985679137000],[138056,6253,0,63,"8",1789985679147000],[138057,6253,0,86,"1",1789985679153000],[138058,6253,0,99,"1",1789985679163000],[138059,6253,0,100,"1",1789985679170000],[138060,6253,0,104,"1",1789985679180000],[138061,6253,0,111,"119.80",1789985679200000],[138062,6253,0,115,"4",1789985679210000],[138063,6253,0,119,"18",1789985679220000],[138064,6253,0,120,"18",1789985679227000],[138065,6253,0,168,"1",1789985679257000],[138066,6253,0,170,"1",1789985679267000],[138067,6253,0,172,"1",1789985679273000],[138068,6253,0,176,"1",1789985679283000],[138069,6253,0,177,"1",1789985679290000],[138070,6253,0,178,"1",1789985679300000],[138071,6253,0,179,"1",1789985679320000],[269686,6253,1,38,"SXT",1759417208220000],[288371,6253,0,54,"4680",1789985679120000],[138020,6254,0,136,"44295.00",1789985713790000],[269684,6254,1,38,"R/T",1759417180537000],[288373,6254,0,54,"5176",1789985713760000],[138022,6255,0,136,"34895.00",1789985659687000],[138072,6255,0,33,"7",1789985659427000],[138073,6255,0,36,"1",1789985659437000],[138074,6255,0,37,"2",1789985659447000],[138075,6255,0,41,"2",1789985659457000],[138076,6255,0,61,"3",1789985659487000],[138077,6255,0,63,"8",1789985659497000],[138078,6255,0,86,"1",1789985659520000],[138079,6255,0,99,"1",1789985659530000],[138080,6255,0,100,"1",1789985659543000],[138081,6255,0,104,"1",1789985659557000],[138082,6255,0,111,"119.80",1789985659570000],[138083,6255,0,115,"4",1789985659600000],[138084,6255,0,119,"20",1789985659610000],[138085,6255,0,120,"20",1789985659620000],[138086,6255,0,168,"1",1789985659700000],[138087,6255,0,170,"1",1789985659710000],[138088,6255,0,172,"1",1789985659717000],[138089,6255,0,176,"1",1789985659727000],[138090,6255,0,177,"1",1789985659733000],[138091,6255,0,178,"1",1789985659743000],[138092,6255,0,179,"1",1789985659770000],[269683,6255,1,38,"GT",1759417166600000],[288369,6255,0,54,"4985",1789985659467000],[288370,6255,0,114,"Curb Weight: 4,865-4,985 lbs",1789985659587000],[138024,6256,0,136,"62995.00",1789985691540000],[138027,6256,0,33,"6",1789985691330000],[138028,6256,0,36,"1",1789985691343000],[138029,6256,0,37,"2",1789985691357000],[138030,6256,0,41,"2",1789985691367000],[138031,6256,0,61,"3",1789985691387000],[138032,6256,0,63,"8",1789985691397000],[138033,6256,0,81,"3",1789985691403000],[138034,6256,0,86,"1",1789985691417000],[138035,6256,0,99,"1",1789985691460000],[138036,6256,0,100,"1",1789985691467000],[138037,6256,0,102,"3",1789985691477000],[138038,6256,0,103,"5",1789985691483000],[138039,6256,0,104,"1",1789985691490000],[138040,6256,0,111,"119.80",1789985691500000],[138041,6256,0,115,"4",1789985691510000],[138042,6256,0,119,"20",1789985691520000],[138043,6256,0,120,"20",1789985691530000],[138044,6256,0,168,"1",1789985691547000],[138045,6256,0,170,"1",1789985691577000],[138046,6256,0,172,"1",1789985691587000],[138047,6256,0,176,"1",1789985691593000],[138048,6256,0,177,"1",1789985691603000],[138049,6256,0,178,"1",1789985691613000],[138050,6256,0,179,"1",1789985691620000],[269685,6256,1,38,"SRT",1759417194740000],[288372,6256,0,54,"5510",1789985691373000],[138026,6257,0,136,"42995.00",1789985630890000],[138093,6257,0,33,"6",1789985630670000],[138094,6257,0,36,"1",1789985630680000],[138095,6257,0,37,"2",1789985630690000],[138096,6257,0,41,"2",1789985630700000],[138097,6257,0,61,"3",1789985630717000],[138098,6257,0,63,"8",1789985630733000],[138099,6257,0,81,"3",1789985630743000],[138100,6257,0,86,"1",1789985630750000],[138101,6257,0,99,"1",1789985630777000],[138102,6257,0,100,"1",1789985630787000],[138103,6257,0,102,"3",1789985630803000],[138104,6257,0,103,"5",1789985630810000],[138105,6257,0,104,"1",1789985630820000],[138106,6257,0,111,"119.80",1789985630827000],[138107,6257,0,115,"4",1789985630837000],[138108,6257,0,119,"20",1789985630843000],[138109,6257,0,120,"20",1789985630880000],[138110,6257,0,168,"1",1789985630900000],[138111,6257,0,170,"1",1789985630913000],[138112,6257,0,172,"1",1789985630920000],[138113,6257,0,176,"1",1789985630930000],[138114,6257,0,177,"1",1789985630940000],[138115,6257,0,178,"1",1789985630953000],[138116,6257,0,179,"1",1789985630963000],[269682,6257,1,38,"Citadel",1759417154350000],[288368,6257,0,54,"5088",1789985630707000],[138996,6301,0,33,"5",1791201173460000],[138997,6301,0,36,"1",1791201173470000],[138998,6301,0,37,"2",1791201173483000],[139000,6301,0,41,"2",1791201173493000],[139001,6301,0,61,"2",1791201173513000],[139002,6301,0,63,"8",1791201173530000],[139003,6301,0,86,"1",1791201173540000],[139004,6301,0,88,"1",1791201173557000],[139005,6301,0,99,"1",1791201173583000],[139006,6301,0,100,"1",1791201173593000],[139007,6301,0,104,"1",1791201173600000],[139008,6301,0,111,"114.70",1791201173610000],[139009,6301,0,115,"4",1791201173630000],[139010,6301,0,136,"32045.00",1791201173640000],[139011,6301,0,170,"1",1791201173660000],[139012,6301,0,172,"1",1791201173670000],[139013,6301,0,176,"1",1791201173677000],[139014,6301,0,177,"1",1791201173703000],[139015,6301,0,179,"1",1791201173713000],[218503,6301,0,168,"1",1791201173650000],[269538,6301,1,5,"7",1758101700690000],[292611,6301,0,54,"5363",1791201173503000],[292612,6301,0,114,"Curb Weight: 4,513 to 5,363 lbs",1791201173620000],[139135,6310,0,136,"28295.00",1791200708577000],[139136,6310,0,36,"1",1791200708443000],[139137,6310,0,41,"2",1791200708457000],[139138,6310,0,61,"2",1791200708483000],[139139,6310,0,86,"1",1791200708493000],[139140,6310,0,99,"1",1791200708507000],[139141,6310,0,100,"1",1791200708540000],[139142,6310,0,104,"1",1791200708550000],[139143,6310,0,115,"4",1791200708567000],[139144,6310,0,170,"1",1791200708593000],[139145,6310,0,172,"1",1791200708607000],[139146,6310,0,179,"1",1791200708617000],[218504,6310,0,168,"1",1791200708587000],[269529,6310,1,5,"7",1758101269490000],[292606,6310,0,54,"5103",1791200708470000],[292607,6310,0,114,"Curb Weight: 3,948 to 5,103 lbs",1791200708557000],[142195,6432,1,34,"SE and SEL",1597943047640000],[142196,6432,0,136,"14445.00",1598011110653000],[142587,6432,0,15,"1",1598011110590000],[142588,6432,0,33,"5",1598011110607000],[142589,6432,0,36,"1",1598011110607000],[142590,6432,0,37,"7",1598011110607000],[142591,6432,0,41,"2",1598011110607000],[142592,6432,0,61,"2",1598011110607000],[142593,6432,0,86,"1",1598011110623000],[142594,6432,0,99,"1",1598011110623000],[142595,6432,0,100,"1",1598011110640000],[142596,6432,0,104,"1",1598011110640000],[142597,6432,0,111,"101.6",1598011110640000],[142598,6432,0,115,"4",1598011110640000],[142599,6432,0,119,"15",1598011110640000],[142600,6432,0,120,"15",1598011110640000],[142601,6432,0,170,"1",1598011110653000],[142602,6432,0,172,"1",1598011110653000],[142603,6432,0,179,"1",1598011110670000],[142197,6433,1,34,"Limited",1597943069130000],[142198,6433,0,136,"18550.00",1598011423230000],[142604,6433,0,15,"1",1598011423153000],[142605,6433,0,33,"5",1598011423170000],[142606,6433,0,36,"1",1598011423183000],[142607,6433,0,37,"7",1598011423183000],[142608,6433,0,41,"2",1598011423183000],[142609,6433,0,61,"2",1598011423183000],[142610,6433,0,86,"1",1598011423183000],[142611,6433,0,99,"1",1598011423183000],[142612,6433,0,100,"1",1598011423183000],[142613,6433,0,101,"1",1598011423200000],[142614,6433,0,104,"1",1598011423200000],[142615,6433,0,111,"101.6",1598011423200000],[142616,6433,0,115,"4",1598011423230000],[142617,6433,0,119,"17",1598011423230000],[142618,6433,0,120,"17",1598011423230000],[142619,6433,0,170,"1",1598011423247000],[142620,6433,0,172,"1",1598011423247000],[142621,6433,0,176,"1",1598011423247000],[142622,6433,0,177,"1",1598011423247000],[142623,6433,0,179,"1",1598011423247000],[218566,11166,1,5,"13",1672222144857000],[218567,11166,0,168,"1",1790853493063000],[291698,11166,0,54,"2701",1790853493037000],[291699,11166,0,114,"Curb Weight: 2,502 to 2,701 lbs",1790853493050000],[147263,6634,0,15,"1",1672316625057000],[147264,6634,0,33,"5",1672316625077000],[147265,6634,1,34,"LX, S",1599064265160000],[147266,6634,0,36,"1",1672316625090000],[147267,6634,0,41,"2",1672316625117000],[147268,6634,0,61,"2",1672316625140000],[147270,6634,0,86,"1",1672316625160000],[147271,6634,0,99,"1",1672316625197000],[147272,6634,0,100,"1",1672316625417000],[147273,6634,0,104,"1",1672316625457000],[147274,6634,0,111,"101.60",1672316625480000],[147275,6634,0,115,"4",1672316625500000],[147276,6634,0,119,"15",1672316625520000],[147277,6634,0,120,"15",1672316625540000],[147278,6634,0,170,"1",1672316625610000],[147279,6634,0,172,"1",1672316625630000],[179228,6634,0,37,"7",1672316625103000],[179229,6634,0,87,"3",1672316625177000],[179230,6634,0,101,"3",1672316625433000],[179231,6634,0,136,"15750.00",1672316625560000],[179232,6634,0,168,"1",1672316625583000],[179233,6634,0,178,"1",1672316625813000],[293057,20352,1,5,"13",1791285314193000],[293058,20352,0,54,"2767",1791285314203000],[293059,20353,1,5,"5",1791285326250000],[293060,20353,0,54,"2762",1791285326263000],[149187,6707,1,34,"FE, LXS",1599659512120000],[149188,6707,0,136,"17790.00",1611935682940000],[149219,6707,0,15,"1",1611935682713000],[149220,6707,0,33,"5",1611935682730000],[149221,6707,0,36,"1",1611935682740000],[149223,6707,0,41,"2",1611935682763000],[149224,6707,0,61,"2",1611935682777000],[149225,6707,0,62,"2",1611935682790000],[149227,6707,0,86,"1",1611935682810000],[149228,6707,0,87,"1",1611935682823000],[149229,6707,0,99,"1",1611935682833000],[149230,6707,0,100,"1",1611935682857000],[149231,6707,0,101,"1",1611935682870000],[149232,6707,0,102,"1",1611935682880000],[149233,6707,0,103,"1",1611935682893000],[149234,6707,0,104,"1",1611935682903000],[149235,6707,0,111,"106.30",1611935682917000],[149236,6707,0,115,"4",1611935682930000],[149237,6707,0,170,"1",1611935682963000],[149238,6707,0,172,"1",1611935682977000],[149239,6707,0,177,"1",1611935682987000],[181930,6707,0,168,"1",1611935682953000],[181931,6707,0,178,"1",1611935683000000],[149189,6708,1,34,"GT Line",1599659534237000],[149190,6708,0,136,"20390.00",1611935945043000],[149240,6708,0,15,"1",1611935944760000],[149241,6708,0,33,"5",1611935944787000],[149242,6708,0,36,"1",1611935944800000],[149244,6708,0,41,"2",1611935944827000],[149245,6708,0,61,"2",1611935944840000],[149246,6708,0,62,"2",1611935944850000],[149248,6708,0,86,"1",1611935944877000],[149249,6708,0,87,"1",1611935944890000],[149250,6708,0,88,"1",1611935944900000],[149251,6708,0,99,"1",1611935944913000],[149252,6708,0,100,"1",1611935944930000],[149253,6708,0,101,"1",1611935944943000],[149254,6708,0,102,"1",1611935944953000],[149255,6708,0,103,"1",1611935944967000],[149256,6708,0,104,"1",1611935944980000],[149257,6708,0,111,"106.30",1611935944993000],[149258,6708,0,115,"4",1611935945007000],[149259,6708,0,119,"17",1611935945017000],[149260,6708,0,120,"17",1611935945030000],[149261,6708,0,170,"1",1611935945070000],[149262,6708,0,172,"1",1611935945080000],[149263,6708,0,176,"1",1611935945093000],[149264,6708,0,177,"1",1611935945107000],[181936,6708,0,168,"1",1611935945057000],[181937,6708,0,178,"3",1611935945130000],[181938,6708,0,183,"1",1611935945143000],[149191,6709,1,34,"GT",1599659552817000],[149192,6709,0,136,"22290.00",1611936103423000],[149265,6709,0,15,"1",1611936103087000],[149266,6709,0,33,"5",1611936103103000],[149267,6709,0,36,"1",1611936103117000],[149268,6709,0,37,"2",1611936103130000],[149269,6709,0,41,"2",1611936103143000],[149270,6709,0,61,"2",1611936103160000],[149271,6709,0,63,"7",1611936103177000],[149272,6709,0,81,"3",1611936103190000],[149273,6709,0,87,"1",1611936103220000],[149274,6709,0,88,"3",1611936103237000],[149275,6709,0,99,"1",1611936103250000],[149276,6709,0,100,"1",1611936103267000],[149277,6709,0,101,"1",1611936103283000],[149278,6709,0,102,"1",1611936103300000],[149279,6709,0,103,"1",1611936103313000],[149280,6709,0,104,"1",1611936103330000],[149281,6709,0,111,"106.30",1611936103347000],[149282,6709,0,115,"4",1611936103360000],[149283,6709,0,119,"18",1611936103377000],[149284,6709,0,120,"18",1611936103393000],[149285,6709,0,135,"1",1611936103410000],[149286,6709,0,170,"1",1611936103460000],[149287,6709,0,172,"1",1611936103493000],[149288,6709,0,176,"1",1611936103503000],[149289,6709,0,177,"1",1611936103517000],[181939,6709,0,86,"1",1611936103203000],[181940,6709,0,168,"1",1611936103443000],[181941,6709,0,171,"3",1611936103473000],[181942,6709,0,178,"3",1611936103530000],[181943,6709,0,180,"1",1611936103543000],[181944,6709,0,183,"2",1611936103560000],[149193,6710,1,34,"EX",1599659572747000],[149194,6710,0,136,"21990.00",1611935831610000],[149195,6710,0,15,"1",1611935831243000],[149196,6710,0,33,"5",1611935831317000],[149197,6710,0,36,"1",1611935831337000],[149199,6710,0,41,"2",1611935831367000],[149200,6710,0,61,"2",1611935831390000],[149201,6710,0,62,"2",1611935831403000],[149203,6710,0,86,"1",1611935831427000],[149204,6710,0,88,"1",1611935831453000],[149205,6710,0,99,"1",1611935831463000],[149206,6710,0,100,"1",1611935831480000],[149207,6710,0,101,"1",1611935831500000],[149208,6710,0,102,"1",1611935831513000],[149209,6710,0,103,"1",1611935831527000],[149210,6710,0,104,"1",1611935831540000],[149211,6710,0,111,"106.30",1611935831550000],[149212,6710,0,115,"4",1611935831563000],[149213,6710,0,119,"17",1611935831577000],[149214,6710,0,120,"17",1611935831593000],[149215,6710,0,170,"1",1611935831643000],[149216,6710,0,172,"1",1611935831657000],[149217,6710,0,176,"1",1611935831670000],[149218,6710,0,177,"1",1611935831690000],[181932,6710,0,87,"1",1611935831440000],[181933,6710,0,168,"1",1611935831627000],[181934,6710,0,178,"3",1611935831703000],[181935,6710,0,183,"1",1611935831717000],[293054,20351,1,5,"13",1791285147037000],[293055,20351,0,54,"3012",1791285147047000],[293056,20351,0,114,"Curb Weight: 2,707 to 3,012 lbs",1791285147057000],[164877,7344,1,5,"7",1639499182280000],[164881,7344,0,33,"5",1790069561790000],[164883,7344,0,36,"1",1790069561803000],[164884,7344,0,37,"2",1790069561813000],[164885,7344,0,41,"2",1790069561820000],[164888,7344,0,61,"2",1790069561843000],[164891,7344,0,86,"1",1790069561880000],[164892,7344,0,99,"1",1790069561927000],[164893,7344,0,100,"1",1790069561940000],[164894,7344,0,104,"1",1790069561957000],[164895,7344,0,115,"4",1790069561990000],[164897,7344,0,170,"1",1790069562020000],[164898,7344,0,172,"1",1790069562053000],[164899,7344,0,177,"1",1790069562073000],[192160,7344,0,63,"8",1790069561860000],[192161,7344,0,87,"1",1790069561907000],[192162,7344,0,88,"1",1790069561917000],[192163,7344,0,101,"1",1790069561950000],[192164,7344,0,111,"109.80",1790069561967000],[192165,7344,0,168,"2",1790069562010000],[192166,7344,0,171,"1",1790069562040000],[192167,7344,0,174,"1",1790069562063000],[192168,7344,0,178,"3",1790069562087000],[192169,7344,0,179,"1",1790069562100000],[192170,7344,0,183,"1",1790069562110000],[288844,7344,0,54,"3847",1790069561830000],[288845,7344,0,114,"Curb Weight (lbs): 3757-3847",1790069561977000],[164997,7349,1,5,"7",1639499923290000],[165001,7349,0,33,"7",1790069518010000],[165003,7349,0,36,"1",1790069518023000],[165004,7349,0,37,"2",1790069518037000],[165005,7349,0,41,"2",1790069518050000],[165008,7349,0,61,"3",1790069518070000],[165009,7349,0,63,"8",1790069518080000],[165011,7349,0,86,"1",1790069518093000],[165012,7349,0,99,"1",1790069518150000],[165013,7349,0,100,"1",1790069518160000],[165014,7349,0,104,"1",1790069518177000],[165015,7349,0,115,"4",1790069518223000],[165017,7349,0,170,"1",1790069518253000],[165018,7349,0,172,"1",1790069518273000],[165019,7349,0,177,"1",1790069518303000],[192171,7349,0,87,"1",1790069518110000],[192172,7349,0,88,"1",1790069518123000],[192173,7349,0,101,"1",1790069518167000],[192174,7349,0,111,"117.30",1790069518187000],[192175,7349,0,168,"2",1790069518237000],[192176,7349,0,171,"1",1790069518263000],[192177,7349,0,174,"1",1790069518293000],[192178,7349,0,178,"3",1790069518313000],[192179,7349,0,179,"1",1790069518323000],[288842,7349,0,54,"4517",1790069518060000],[288843,7349,0,114,"Curb Weight (lbs): 4233-4517",1790069518203000],[192181,8442,0,119,"18",1758019385283000],[192182,8442,0,120,"18",1758019385297000],[269436,8442,1,38,"S",1758019385270000],[192184,8443,0,119,"18",1758019447000000],[192185,8443,0,120,"18",1758019447020000],[192186,8443,0,176,"1",1758019447033000],[269438,8443,1,38,"SE",1758019446847000],[192188,8444,0,81,"1",1758019151763000],[192189,8444,0,102,"1",1758019151777000],[192190,8444,0,103,"1",1758019151790000],[192191,8444,0,119,"20",1758019151817000],[192192,8444,0,120,"20",1758019151830000],[192193,8444,0,176,"1",1758019151840000],[192194,8444,0,183,"1",1758019151853000],[269421,8444,1,18,"TSI",1758019151710000],[269422,8444,1,38,"SE",1758019151750000],[269423,8444,1,109,"w/ Technology",1758019151803000],[192196,8445,0,81,"1",1758019187943000],[192197,8445,0,102,"1",1758019187957000],[192198,8445,0,103,"1",1758019187970000],[192199,8445,0,119,"20",1758019187997000],[192200,8445,0,120,"20",1758019188010000],[192201,8445,0,176,"1",1758019188023000],[192202,8445,0,183,"1",1758019188033000],[269424,8445,1,18,"FSI",1758019187797000],[269425,8445,1,38,"SE",1758019187930000],[269426,8445,1,109,"w/ Technology R-Line",1758019187983000],[192204,8446,0,81,"1",1758019401993000],[192205,8446,0,102,"1",1758019402007000],[192206,8446,0,103,"1",1758019402130000],[192207,8446,0,119,"20",1758019402147000],[192208,8446,0,120,"20",1758019402163000],[192209,8446,0,176,"1",1758019402180000],[192210,8446,0,183,"1",1758019402197000],[269437,8446,1,38,"SEL",1758019401980000],[192212,8447,0,81,"1",1758019230443000],[192213,8447,0,102,"1",1758019230587000],[192214,8447,0,103,"1",1758019230600000],[192215,8447,0,119,"20",1758019230627000],[192216,8447,0,120,"20",1758019230640000],[192217,8447,0,176,"1",1758019230650000],[192218,8447,0,183,"1",1758019230663000],[269427,8447,1,18,"FSI",1758019230403000],[269428,8447,1,38,"4Motion SE",1758019230430000],[269429,8447,1,109,"w/ Technology",1758019230613000],[192220,8448,0,81,"1",1758019367073000],[192221,8448,0,102,"1",1758019367210000],[192222,8448,0,103,"1",1758019367227000],[192223,8448,0,119,"20",1758019367247000],[192224,8448,0,120,"20",1758019367263000],[192225,8448,0,176,"1",1758019367280000],[192226,8448,0,183,"1",1758019367297000],[269434,8448,1,18,"FSI",1758019367023000],[269435,8448,1,38,"4Motion SEL",1758019367053000],[192228,8449,0,81,"1",1758019309103000],[192229,8449,0,102,"1",1758019309117000],[192230,8449,0,103,"1",1758019309247000],[192231,8449,0,119,"20",1758019309263000],[192232,8449,0,120,"20",1758019309280000],[192233,8449,0,176,"1",1758019309293000],[192234,8449,0,183,"1",1758019309310000],[269430,8449,1,18,"FSI",1758019309060000],[269431,8449,1,38,"4Motion SEL R-Line",1758019309087000],[192236,8450,0,81,"1",1758019335397000],[192237,8450,0,102,"1",1758019335413000],[192238,8450,0,103,"1",1758019335430000],[192239,8450,0,119,"21",1758019335443000],[192240,8450,0,120,"21",1758019335460000],[192241,8450,0,176,"1",1758019335473000],[192242,8450,0,183,"1",1758019335487000],[269432,8450,1,18,"FSI",1758019335350000],[269433,8450,1,38,"4Motion SEL Premium",1758019335380000],[219672,11656,1,5,"13",1673345876950000],[219673,11656,0,168,"1",1791289373720000],[228429,11656,0,33,"5",1791289373577000],[228430,11656,0,61,"2",1791289373597000],[228431,11656,0,86,"1",1791289373617000],[228432,11656,0,87,"1",1791289373633000],[228433,11656,0,99,"1",1791289373647000],[228434,11656,0,100,"1",1791289373657000],[228435,11656,0,101,"1",1791289373667000],[228436,11656,0,102,"1",1791289373677000],[228437,11656,0,103,"1",1791289373687000],[228438,11656,0,104,"1",1791289373697000],[228439,11656,0,170,"1",1791289373737000],[228440,11656,0,171,"1",1791289373773000],[228441,11656,0,172,"1",1791289373787000],[228442,11656,0,174,"1",1791289373797000],[228443,11656,0,176,"1",1791289373820000],[228444,11656,0,177,"1",1791289373833000],[228445,11656,0,179,"1",1791289373843000],[228446,11656,0,194,"1",1791289373867000],[238117,11656,0,25,"11",1791289373567000],[238118,11656,0,190,"11",1791289373857000],[240978,11656,0,175,"1",1791289373807000],[293137,11656,0,54,"3012",1791289373587000],[293138,11656,0,114,"Curb Weight: 2,769 to 3,012 lbs",1791289373707000],[228447,14361,1,34,"LX, LXS",1690290722007000],[228448,14361,0,37,"7",1690290722023000],[228449,14361,0,63,"1",1690290722037000],[228450,14362,1,34,"GT Line",1690290906613000],[228451,14362,0,37,"7",1690290906627000],[228452,14362,0,63,"1",1690290906640000],[228453,14362,0,81,"3",1690290906653000],[228454,14362,0,88,"1",1690290906663000],[228455,14362,0,178,"3",1690290906680000],[228456,14362,0,183,"1",1690290906810000],[228457,14362,0,192,"1",1690290906820000],[228458,14362,0,193,"1",1690290906833000],[228459,14363,1,34,"GT",1690291035827000],[228460,14363,0,88,"1",1690291035840000],[228461,14363,0,178,"3",1690291035853000],[228462,14363,0,183,"1",1690291035867000],[223017,12913,1,5,"5",1677149817340000],[223018,12913,0,168,"1",1791288813987000],[228408,12913,0,33,"5",1791288813893000],[228409,12913,0,37,"7",1791288813903000],[228410,12913,0,61,"2",1791288813920000],[228411,12913,0,63,"1",1791288813930000],[228412,12913,0,86,"1",1791288813940000],[228414,12913,0,99,"1",1791288813957000],[228415,12913,0,100,"1",1791288813967000],[228419,12913,0,104,"1",1791288813977000],[228422,12913,0,172,"1",1791288814003000],[228423,12913,0,174,"1",1791288814013000],[228424,12913,0,176,"1",1791288814043000],[228425,12913,0,177,"1",1791288814057000],[240974,12913,0,175,"1",1791288814030000],[240975,12913,0,179,"3",1791288814070000],[293128,12913,0,54,"2765",1791288813910000],[223019,12914,1,5,"13",1677149830917000],[223020,12914,0,168,"1",1791288790990000],[228394,12914,0,33,"5",1791288790890000],[228395,12914,0,37,"7",1791288790903000],[228396,12914,0,61,"2",1791288790923000],[228397,12914,0,63,"1",1791288790933000],[228398,12914,0,86,"1",1791288790943000],[228399,12914,0,99,"1",1791288790950000],[228400,12914,0,100,"1",1791288790970000],[228401,12914,0,104,"1",1791288790980000],[228403,12914,0,172,"1",1791288791000000],[228404,12914,0,174,"1",1791288791010000],[228405,12914,0,176,"1",1791288791030000],[228406,12914,0,177,"1",1791288791040000],[240976,12914,0,175,"1",1791288791020000],[240977,12914,0,179,"3",1791288791050000],[293127,12914,0,54,"2767",1791288790913000],[223366,13084,1,5,"13",1677237578547000],[223367,13084,0,168,"1",1788953237477000],[232684,13084,0,15,"1",1788953237253000],[232685,13084,0,33,"5",1788953237273000],[232686,13084,0,37,"7",1788953237283000],[232687,13084,0,61,"2",1788953237303000],[232688,13084,0,81,"1",1788953237313000],[232689,13084,0,86,"1",1788953237323000],[232690,13084,0,87,"1",1788953237340000],[232691,13084,0,99,"1",1788953237400000],[232692,13084,0,100,"1",1788953237413000],[232693,13084,0,101,"1",1788953237427000],[232694,13084,0,102,"1",1788953237437000],[232695,13084,0,103,"1",1788953237447000],[232696,13084,0,104,"1",1788953237457000],[232697,13084,0,170,"1",1788953237490000],[232698,13084,0,171,"1",1788953237500000],[232699,13084,0,172,"1",1788953237517000],[232700,13084,0,175,"1",1788953237570000],[232701,13084,0,176,"1",1788953237583000],[232702,13084,0,177,"1",1788953237593000],[232703,13084,0,178,"3",1788953237650000],[232704,13084,0,179,"1",1788953237660000],[285732,13084,0,25,"11",1788953237263000],[285733,13084,0,54,"3150",1788953237293000],[285734,13084,0,114,"Curb Weight (lbs): 2955-3150",1788953237467000],[285735,13084,0,190,"12",1788953237670000],[223368,13085,1,5,"5",1677237594260000],[223369,13085,0,168,"1",1788953106917000],[232713,13085,0,15,"1",1788953106690000],[232714,13085,0,33,"5",1788953106710000],[232715,13085,0,37,"7",1788953106720000],[232716,13085,0,61,"2",1788953106747000],[232717,13085,0,81,"1",1788953106803000],[232718,13085,0,86,"1",1788953106820000],[232719,13085,0,87,"1",1788953106830000],[232720,13085,0,99,"1",1788953106840000],[232721,13085,0,100,"1",1788953106850000],[232722,13085,0,101,"1",1788953106860000],[232723,13085,0,102,"1",1788953106870000],[232724,13085,0,103,"1",1788953106880000],[232725,13085,0,104,"1",1788953106893000],[232726,13085,0,170,"1",1788953106937000],[232727,13085,0,171,"1",1788953106947000],[232728,13085,0,172,"1",1788953106973000],[232729,13085,0,175,"1",1788953106983000],[232730,13085,0,176,"1",1788953106993000],[232731,13085,0,177,"1",1788953107003000],[232732,13085,0,178,"3",1788953107010000],[232733,13085,0,179,"1",1788953107033000],[285728,13085,0,25,"12",1788953106700000],[285729,13085,0,54,"3285",1788953106737000],[285730,13085,0,114,"Curb Weight (lbs): 3186-3285",1788953106903000],[285731,13085,0,190,"12",1788953107043000],[232705,14650,1,38,"SE",1693405511580000],[232706,14650,0,88,"3",1707399894997000],[232707,14650,0,176,"1",1707399895010000],[232708,14650,0,183,"2",1707399895023000],[232709,14651,1,38,"XSE",1693405561720000],[232710,14651,0,88,"1",1693405561737000],[232711,14651,0,176,"1",1693405561887000],[232712,14651,0,183,"1",1693405561900000],[223786,13297,1,5,"7",1677496001303000],[223787,13297,0,168,"2",1788955192957000],[229055,13297,0,86,"1",1788955192863000],[229056,13297,0,87,"1",1788955192873000],[229057,13297,0,88,"1",1788955192883000],[229058,13297,0,99,"1",1788955192893000],[229059,13297,0,100,"1",1788955192907000],[229060,13297,0,101,"1",1788955192913000],[229061,13297,0,104,"1",1788955192923000],[229062,13297,0,170,"1",1788955192980000],[229063,13297,0,171,"1",1788955192993000],[229064,13297,0,172,"1",1788955193000000],[229065,13297,0,174,"1",1788955193013000],[229066,13297,0,175,"1",1788955193023000],[229067,13297,0,176,"1",1788955193033000],[229068,13297,0,177,"1",1788955193043000],[229069,13297,0,178,"3",1788955193053000],[229070,13297,0,183,"1",1788955193067000],[229071,13297,0,192,"1",1788955193077000],[229072,13297,0,193,"1",1788955193087000],[285780,13297,0,54,"4594",1788955192850000],[285781,13297,0,114,"Curb Weight (lbs): 4248-4594",1788955192933000],[229073,14394,1,38,"SEL",1690457662010000],[229074,14394,0,81,"1",1707396006930000],[229075,14394,0,102,"1",1707396006943000],[229076,14394,0,103,"1",1707396006957000],[229077,14394,0,179,"1",1707396006970000],[229078,14394,0,180,"1",1707396006987000],[241010,14394,0,193,"3",1707396007000000],[229079,14395,1,38,"SE w/ Tech",1690457885597000],[229080,14395,0,81,"1",1690457885610000],[229081,14396,1,38,"SE w/ Tech w/ Sunroof Pkg",1690457913550000],[229082,14396,0,81,"1",1690457913677000],[229103,14397,1,38,"4Motion SE w/ Tech w/ Sunroof Pkg.",1712145227860000],[229104,14397,0,81,"1",1712145227880000],[229127,14399,1,38,"SEL R-Line Black",1690458488313000],[229128,14399,0,81,"1",1690458488327000],[229129,14399,0,102,"1",1690458488343000],[229130,14399,0,103,"1",1690458488357000],[229131,14399,0,179,"1",1690458488373000],[229132,14399,0,180,"1",1690458488387000],[229138,14402,1,38,"SEL Premium R-Line",1690458630917000],[229139,14402,0,81,"1",1707396053717000],[229140,14402,0,103,"1",1707396053840000],[229141,14402,0,105,"1",1707396053853000],[229142,14402,0,179,"1",1707396053867000],[229143,14402,0,180,"1",1707396053880000],[229144,14402,0,193,"3",1707396053893000],[243574,16268,1,38,"4Motion SE w/ Tech",1712145024597000],[243575,16268,0,81,"1",1712145024610000],[243576,16269,1,38,"4Motion SEL Premium R-Line",1712145109600000],[243577,16269,0,81,"1",1712145109723000],[243578,16269,0,103,"1",1712145109740000],[243579,16269,0,105,"1",1712145109757000],[243580,16269,0,179,"1",1712145109773000],[243581,16269,0,180,"1",1712145109790000],[243582,16269,0,193,"3",1712145109807000],[243583,16270,1,38,"4Motion SEL R-Line Black",1712145147710000],[243584,16270,0,81,"1",1712145147723000],[243585,16270,0,102,"1",1712145147740000],[243586,16270,0,103,"1",1712145147750000],[243587,16270,0,179,"1",1712145147763000],[243588,16270,0,180,"1",1712145147780000],[243589,16271,1,38,"4Motion SEL",1712145277347000],[243590,16271,0,81,"1",1712145277360000],[243591,16271,0,103,"1",1712145277373000],[243592,16271,0,179,"1",1712145277390000],[243593,16271,0,180,"1",1712145277400000],[243594,16271,0,193,"3",1712145277413000],[223802,13305,1,5,"7",1677497044800000],[223803,13305,0,168,"2",1788954758117000],[229345,13305,0,86,"1",1788954758003000],[229346,13305,0,87,"1",1788954758010000],[229347,13305,0,88,"1",1788954758020000],[229348,13305,0,99,"1",1788954758037000],[229349,13305,0,100,"1",1788954758047000],[229350,13305,0,101,"1",1788954758057000],[229351,13305,0,104,"1",1788954758067000],[229352,13305,0,170,"1",1788954758130000],[229353,13305,0,171,"1",1788954758157000],[229354,13305,0,172,"1",1788954758167000],[229355,13305,0,175,"1",1788954758193000],[229356,13305,0,176,"1",1788954758207000],[229357,13305,0,177,"1",1788954758217000],[229358,13305,0,178,"3",1788954758230000],[229359,13305,0,179,"1",1788954758240000],[229360,13305,0,183,"1",1788954758250000],[229361,13305,0,192,"1",1788954758260000],[229362,13305,0,193,"1",1788954758290000],[285764,13305,0,54,"3821",1788954757993000],[285765,13305,0,114,"Curb Weight (lbs): 3737-3821",1788954758077000],[229367,14424,1,38,"SE",1690465435780000],[229368,14424,0,81,"1",1707395633050000],[229369,14424,0,102,"3",1707395633067000],[229370,14424,0,103,"5",1707395633080000],[229371,14424,0,171,"1",1707395633097000],[241008,14424,0,193,"3",1707395633110000],[229372,14425,1,38,"SE R-Line Black",1690466537837000],[229373,14425,0,81,"1",1690466537853000],[229374,14425,0,102,"1",1690466537867000],[229375,14425,0,103,"1",1690466537880000],[229376,14425,0,171,"1",1690466537893000],[229377,14426,1,38,"SEL R-Line Black",1690466585820000],[229378,14426,0,81,"1",1707395659357000],[229379,14426,0,102,"3",1707395659370000],[229380,14426,0,103,"5",1707395659387000],[229381,14426,0,171,"1",1707395659400000],[229382,14426,0,180,"1",1707395659410000],[241009,14426,0,193,"3",1707395659427000],[243452,16240,1,38,"4Motion SEL R-Line Black",1712135039920000],[243453,16240,0,81,"1",1712135039937000],[243454,16240,0,102,"3",1712135039953000],[243455,16240,0,103,"5",1712135040083000],[243456,16240,0,171,"1",1712135040100000],[243457,16241,1,38,"4Motion SE R-Line Black",1712135095080000],[243458,16241,0,81,"1",1712135095093000],[243459,16241,0,102,"1",1712135095107000],[243460,16241,0,103,"1",1712135095120000],[243461,16241,0,171,"1",1712135095250000],[243462,16242,1,38,"4Motion SE",1712135171987000],[243463,16242,0,81,"1",1712135172000000],[243464,16242,0,102,"3",1712135172013000],[243465,16242,0,103,"5",1712135172027000],[243466,16242,0,171,"1",1712135172040000],[243467,16242,0,193,"3",1712135172053000],[224173,13489,1,5,"7",1677836992617000],[224174,13489,0,168,"1",1706520354177000],[227121,13489,0,86,"1",1706520354043000],[227122,13489,0,87,"3",1706520354057000],[227123,13489,0,88,"3",1706520354073000],[227124,13489,0,99,"1",1706520354087000],[227125,13489,0,100,"1",1706520354100000],[227126,13489,0,101,"3",1706520354113000],[227127,13489,0,104,"1",1706520354163000],[227128,13489,0,170,"3",1706520354300000],[227130,13489,0,172,"1",1706520354333000],[227131,13489,0,176,"1",1706520354360000],[227133,13489,0,178,"3",1706520354387000],[240694,13489,0,102,"3",1706520354137000],[240695,13489,0,103,"5",1706520354150000],[240696,13489,0,175,"1",1706520354347000],[240698,15705,0,179,"1",1789982491907000],[240699,15705,0,192,"1",1789982491927000],[269696,15705,1,38,"SRT HELLCAT",1759418066287000],[288300,15705,0,54,"5575",1789982491897000],[240701,15706,0,179,"1",1789982573837000],[240702,15706,0,192,"1",1789982573850000],[269695,15706,1,38,"SRT 392",1759418051497000],[288301,15706,0,54,"5500",1789982573813000],[288302,15706,0,114,"Curb Weight: 5,350-5,500 lbs.",1789982573823000],[288303,19887,1,38,"SXT",1789982641270000],[288304,19887,0,54,"4986",1789982641283000],[288305,19887,0,114,"Curb Weight: 4,875-4,986 lbs.",1789982641303000],[288306,19888,1,38,"GT",1789982658540000],[288307,19888,0,54,"4986",1789982658550000],[288308,19888,0,114,"Curb Weight: 4,875-4,986 lbs.",1789982658560000],[288309,19889,1,38,"R/T",1789982675987000],[288310,19889,0,54,"5313",1789982675997000],[288311,19890,1,38,"Citadel",1789982713793000],[288312,19890,0,54,"5063",1789982713800000],[288313,19890,0,114,"Curb Weight: 4,990-5,063 lbs.",1789982713860000],[224181,13493,1,5,"7",1677837367633000],[224182,13493,0,168,"1",1790943633790000],[230009,13493,0,81,"1",1790943633700000],[230010,13493,0,86,"1",1790943633717000],[230011,13493,0,87,"1",1790943633723000],[230012,13493,0,88,"1",1790943633730000],[230013,13493,0,99,"1",1790943633737000],[230014,13493,0,100,"1",1790943633743000],[230015,13493,0,101,"1",1790943633753000],[230016,13493,0,102,"1",1790943633760000],[230017,13493,0,103,"1",1790943633767000],[230018,13493,0,104,"3",1790943633773000],[230019,13493,0,170,"1",1790943633810000],[230020,13493,0,171,"1",1790943633820000],[230021,13493,0,172,"1",1790943633830000],[230022,13493,0,174,"1",1790943633837000],[230023,13493,0,175,"1",1790943633843000],[230024,13493,0,176,"1",1790943633850000],[230025,13493,0,177,"1",1790943633860000],[230026,13493,0,178,"3",1790943633867000],[230028,13493,0,183,"1",1790943633877000],[230029,13493,0,192,"1",1790943633883000],[240707,13493,0,193,"1",1790943633890000],[292085,13493,0,54,"5356",1790943633690000],[292086,13493,0,114,"Curb Weight: 4,224 to 5,356 lbs",1790943633783000],[240708,15707,1,24,"4",1706521317663000],[240709,15707,0,179,"3",1706521317677000],[240710,15708,1,126,"3",1706521337193000],[240711,15708,0,179,"1",1706521337207000],[224183,13494,1,5,"7",1677837435887000],[224184,13494,0,168,"1",1790943219693000],[229753,13494,0,81,"1",1790943219597000],[229754,13494,0,86,"1",1790943219603000],[229755,13494,0,87,"1",1790943219610000],[229756,13494,0,88,"1",1790943219617000],[229757,13494,0,99,"1",1790943219630000],[229758,13494,0,100,"1",1790943219637000],[229759,13494,0,101,"1",1790943219643000],[229760,13494,0,102,"1",1790943219650000],[229761,13494,0,103,"1",1790943219667000],[229762,13494,0,104,"1",1790943219673000],[229763,13494,0,105,"1",1790943219680000],[229764,13494,0,170,"1",1790943219703000],[229765,13494,0,171,"1",1790943219710000],[229767,13494,0,174,"1",1790943219717000],[229768,13494,0,175,"1",1790943219723000],[229769,13494,0,176,"1",1790943219730000],[229770,13494,0,177,"1",1790943219740000],[229771,13494,0,178,"3",1790943219757000],[229772,13494,0,179,"1",1790943219763000],[229773,13494,0,183,"1",1790943219770000],[229774,13494,0,192,"1",1790943219777000],[240716,13494,0,193,"1",1790943219783000],[292071,13494,0,54,"6335",1790943219587000],[292072,13494,0,114,"Curb Weight: 6,297 to 6,335 lbs",1790943219687000],[224189,13497,1,5,"7",1677837875007000],[224190,13497,0,168,"1",1790942995017000],[229998,13497,0,86,"1",1790942994923000],[229999,13497,0,99,"1",1790942994967000],[230000,13497,0,100,"1",1790942994973000],[230001,13497,0,104,"1",1790942994997000],[230002,13497,0,170,"3",1790942995027000],[230005,13497,0,175,"1",1790942995033000],[230006,13497,0,176,"1",1790942995047000],[230007,13497,0,177,"1",1790942995060000],[230008,13497,0,179,"3",1790942995077000],[240717,13497,0,87,"3",1790942994937000],[240718,13497,0,88,"3",1790942994953000],[240719,13497,0,101,"3",1790942994980000],[292053,13497,0,114,"Curb Weight: 3,948 to 5,222 lbs",1790942995010000],[292054,13497,0,54,"5222",1790942994917000],[238323,15351,1,5,"3",1702311074047000],[238324,15351,0,25,"1",1702311074060000],[238325,15351,0,190,"1",1702311074073000],[238326,15352,1,5,"13",1702311105137000],[238327,15352,0,25,"1",1702311105260000],[238328,15352,0,190,"1",1702311105273000],[238329,15353,1,5,"5",1702311130460000],[238330,15353,0,25,"1",1702311130473000],[238331,15353,0,190,"1",1702311130487000],[238332,15354,1,5,"15",1702312590430000],[238333,15354,0,25,"1",1702312590443000],[238334,15354,0,190,"1",1702312590457000],[240056,15630,1,5,"3",1706019731297000],[240057,15630,0,25,"1",1706019731313000],[240058,15630,0,190,"1",1706019731323000],[240059,15631,1,5,"13",1706019745390000],[240060,15631,0,25,"1",1706019745403000],[240061,15631,0,190,"1",1706019745417000],[240062,15632,1,5,"5",1706019762070000],[240063,15632,0,25,"1",1706019762200000],[240064,15632,0,190,"1",1706019762213000],[240122,15652,1,5,"13",1706029346400000],[240123,15652,0,25,"1",1706029346413000],[240124,15652,0,190,"1",1706029346427000],[240125,15653,1,5,"3",1706029372573000],[240126,15653,0,25,"1",1706029372590000],[240127,15653,0,190,"1",1706029372603000],[240128,15654,1,5,"5",1706029395160000],[240129,15654,0,25,"1",1706029395173000],[240130,15654,0,190,"1",1706029395190000],[240143,15659,1,5,"13",1706112175897000],[240144,15659,0,25,"1",1706112175910000],[240145,15659,0,190,"1",1706112175927000],[240146,15660,1,5,"5",1706112193797000],[240147,15660,0,25,"1",1706112193810000],[240148,15660,0,190,"1",1706112193823000],[282157,19206,1,5,"7",1779184307943000],[282158,19206,0,86,"1",1779184308017000],[282159,19206,0,99,"1",1779184308063000],[282160,19206,0,100,"1",1779184308107000],[282161,19206,0,104,"1",1779184308143000],[282162,19206,0,172,"1",1779184308180000],[282163,19206,0,175,"1",1779184308227000],[282490,19249,1,5,"7",1781263936670000],[282491,19249,0,86,"1",1781263936683000],[282492,19249,0,99,"1",1781263936690000],[282493,19249,0,100,"1",1781263936700000],[282494,19249,0,104,"1",1781263936707000],[282495,19249,0,172,"1",1781263936713000],[282496,19249,0,175,"1",1781263936723000],[282497,19250,1,5,"7",1781264209160000],[282498,19250,0,86,"1",1781264209170000],[282499,19250,0,99,"1",1781264209180000],[282500,19250,0,100,"1",1781264209190000],[282501,19250,0,104,"1",1781264209200000],[282502,19250,0,172,"1",1781264209210000],[282503,19250,0,175,"1",1781264209220000],[282795,19295,1,5,"7",1783422542280000],[282796,19295,0,86,"1",1783422542280000],[282797,19295,0,99,"1",1783422542280000],[282798,19295,0,100,"1",1783422542280000],[282799,19295,0,104,"1",1783422542280000],[282800,19295,0,172,"1",1783422542280000],[282801,19295,0,175,"1",1783422542280000],[282882,19299,1,5,"7",1783429896380000],[282883,19299,0,86,"1",1783429896390000],[282884,19299,0,99,"1",1783429896467000],[282885,19299,0,100,"1",1783429896480000],[282886,19299,0,104,"1",1783429896493000],[282887,19299,0,172,"1",1783429896507000],[282888,19299,0,175,"1",1783429896517000],[282980,19313,1,5,"5",1784552904023000],[282981,19313,0,86,"1",1784552904033000],[282982,19313,0,99,"1",1784552904043000],[282983,19313,0,100,"1",1784552904050000],[282984,19313,0,104,"1",1784552904060000],[282985,19313,0,172,"1",1784552904070000],[282986,19313,0,175,"1",1784552904080000],[283244,19352,1,5,"13",1787222900507000],[283245,19352,0,86,"1",1787222900520000],[283246,19352,0,99,"1",1787222900533000],[283247,19352,0,100,"1",1787222900543000],[283248,19352,0,104,"1",1787222900570000],[283249,19352,0,172,"1",1787222900580000],[283250,19352,0,175,"1",1787222900590000],[288041,19859,1,5,"7",1790593869143000],[288042,19859,0,86,"1",1790593869153000],[288043,19859,0,99,"1",1790593869173000],[288044,19859,0,100,"1",1790593869180000],[288045,19859,0,104,"1",1790593869190000],[288046,19859,0,172,"1",1790593869197000],[288047,19859,0,175,"1",1790593869207000]]},"default_value":{"columns":["id","element_id","vehicle_type_id","default_value","changed_us"],"rows":[[1,3,1,"0",1576959990583000],[2,4,1,"0",1576959990583000],[3,16,1,"0",1576959990583000],[4,25,1,"10",1576959990583000],[5,81,1,"0",1576959990583000],[6,82,1,"0",1576959990583000],[7,87,1,"0",1576959990583000],[8,88,1,"0",1576959990583000],[9,101,1,"0",1576959990583000],[10,102,1,"0",1576959990583000],[11,103,1,"0",1576959990583000],[12,104,1,"0",1576959990583000],[13,105,1,"0",1576959990583000],[14,116,1,"0",1576959990583000],[15,117,1,"0",1576959990583000],[16,140,1,"0",1576959990583000],[17,148,1,"0",1576959990583000],[18,149,1,"0",1576959990583000],[19,170,1,"0",1576959990583000],[20,171,1,"0",1576959990583000],[21,172,1,"0",1576959990583000],[22,173,1,"0",1576959990583000],[23,174,1,"0",1576959990583000],[24,175,1,"0",1576959990583000],[25,177,1,"0",1576959990583000],[26,178,1,"0",1576959990583000],[27,179,1,"0",1576959990583000],[28,180,1,"0",1576959990583000],[29,183,1,"0",1576959990583000],[30,3,2,"0",1576959990583000],[31,4,2,"0",1576959990583000],[32,116,2,"0",1576959990583000],[33,117,2,"0",1576959990583000],[34,140,2,"0",1576959990583000],[35,148,2,"0",1576959990583000],[36,149,2,"0",1576959990583000],[37,151,2,"0",1576959990583000],[38,152,2,"0",1576959990583000],[39,153,2,"0",1576959990583000],[40,116,3,"0",1576959990583000],[41,117,3,"0",1576959990583000],[42,140,3,"0",1576959990583000],[43,148,3,"0",1576959990583000],[44,149,3,"0",1576959990583000],[45,151,3,"0",1576959990583000],[46,152,3,"0",1576959990583000],[47,153,3,"0",1576959990583000],[48,3,5,"0",1576959990583000],[49,4,5,"0",1576959990583000],[51,116,5,"0",1576959990583000],[52,117,5,"0",1576959990583000],[53,140,5,"0",1576959990583000],[54,151,5,"0",1576959990583000],[55,152,5,"0",1576959990583000],[56,153,5,"0",1576959990583000],[57,2,6,"0",1576959990583000],[58,3,6,"0",1576959990583000],[59,4,6,"0",1576959990583000],[60,15,6,"0",1576959990583000],[61,16,6,"0",1576959990583000],[62,23,6,"0",1576959990583000],[63,24,6,"0",1576959990583000],[64,36,6,"0",1576959990583000],[65,37,6,"0",1576959990583000],[66,55,6,"0",1576959990583000],[67,56,6,"0",1576959990583000],[68,62,6,"0",1576959990583000],[69,64,6,"0",1576959990583000],[70,65,6,"0",1576959990583000],[71,66,6,"0",1576959990583000],[72,67,6,"0",1576959990583000],[73,69,6,"0",1576959990583000],[74,72,6,"0",1576959990583000],[75,78,6,"0",1576959990583000],[76,79,6,"0",1576959990583000],[77,81,6,"0",1576959990583000],[78,82,6,"0",1576959990583000],[79,86,6,"0",1576959990583000],[80,87,6,"0",1576959990583000],[81,88,6,"0",1576959990583000],[82,99,6,"0",1576959990583000],[83,100,6,"0",1576959990583000],[84,101,6,"0",1576959990583000],[85,102,6,"0",1576959990583000],[86,103,6,"0",1576959990583000],[87,104,6,"0",1576959990583000],[88,105,6,"0",1576959990583000],[89,107,6,"0",1576959990583000],[90,122,6,"0",1576959990583000],[91,126,6,"0",1576959990583000],[92,127,6,"0",1576959990583000],[93,135,6,"0",1576959990583000],[94,140,6,"0",1576959990583000],[95,148,6,"0",1576959990583000],[96,149,6,"0",1576959990583000],[97,151,6,"0",1576959990583000],[98,152,6,"0",1576959990583000],[99,153,6,"0",1576959990583000],[100,168,6,"0",1576959990583000],[101,170,6,"0",1576959990583000],[102,171,6,"0",1576959990583000],[103,172,6,"0",1576959990583000],[104,173,6,"0",1576959990583000],[105,174,6,"0",1576959990583000],[106,175,6,"0",1576959990583000],[107,176,6,"0",1576959990583000],[108,177,6,"0",1576959990583000],[109,178,6,"0",1576959990583000],[110,179,6,"0",1576959990583000],[111,180,6,"0",1576959990583000],[112,183,6,"0",1576959990583000],[113,116,7,"0",1576959990583000],[114,117,7,"0",1576959990583000],[115,140,7,"0",1576959990583000],[116,148,7,"0",1576959990583000],[117,149,7,"0",1576959990583000],[118,151,7,"0",1576959990583000],[119,152,7,"0",1576959990583000],[120,153,7,"0",1576959990583000],[121,3,9,"0",1576959990583000],[122,4,9,"0",1576959990583000],[123,16,9,"0",1576959990583000],[124,81,9,"0",1576959990583000],[125,82,9,"0",1576959990583000],[126,87,9,"0",1576959990583000],[127,88,9,"0",1576959990583000],[128,101,9,"0",1576959990583000],[129,102,9,"0",1576959990583000],[130,103,9,"0",1576959990583000],[131,104,9,"0",1576959990583000],[132,105,9,"0",1576959990583000],[133,116,9,"0",1576959990583000],[134,117,9,"0",1576959990583000],[135,140,9,"0",1576959990583000],[136,148,9,"0",1576959990583000],[137,149,9,"0",1576959990583000],[138,151,9,"0",1576959990583000],[139,152,9,"0",1576959990583000],[140,153,9,"0",1576959990583000],[141,168,9,"0",1576959990583000],[142,170,9,"0",1576959990583000],[143,171,9,"0",1576959990583000],[144,172,9,"0",1576959990583000],[145,173,9,"0",1576959990583000],[146,174,9,"0",1576959990583000],[147,175,9,"0",1576959990583000],[148,177,9,"0",1576959990583000],[149,178,9,"0",1576959990583000],[150,179,9,"0",1576959990583000],[151,180,9,"0",1576959990583000],[152,183,9,"0",1576959990583000],[154,116,10,"0",1576959990583000],[155,117,10,"0",1576959990583000],[156,140,10,"0",1576959990583000],[157,151,10,"0",1576959990583000],[158,152,10,"0",1576959990583000],[159,153,10,"0",1576959990583000],[160,3,13,"0",1576959990583000],[161,4,13,"0",1576959990583000],[162,16,13,"0",1576959990583000],[163,81,13,"0",1576959990583000],[164,82,13,"0",1576959990583000],[165,87,13,"0",1576959990583000],[166,88,13,"0",1576959990583000],[167,101,13,"0",1576959990583000],[168,102,13,"0",1576959990583000],[169,103,13,"0",1576959990583000],[170,104,13,"0",1576959990583000],[171,105,13,"0",1576959990583000],[172,116,13,"0",1576959990583000],[173,117,13,"0",1576959990583000],[174,140,13,"0",1576959990583000],[175,148,13,"0",1576959990583000],[176,149,13,"0",1576959990583000],[177,170,13,"0",1576959990583000],[178,171,13,"0",1576959990583000],[179,172,13,"0",1576959990583000],[180,173,13,"0",1576959990583000],[181,174,13,"0",1576959990583000],[182,175,13,"0",1576959990583000],[183,177,13,"0",1576959990583000],[184,178,13,"0",1576959990583000],[185,179,13,"0",1576959990583000],[186,180,13,"0",1576959990583000],[187,183,13,"0",1576959990583000],[188,25,9,"10",1576959990583000]]},"element":{"columns":["id","name","code","lookup_table","is_private","group_name","data_type","decode","weight","value_table"],"rows":[[1,"Other Battery Info","BatteryInfo",null,0,"Mechanical/Battery","string","Pattern",null,null],[2,"Battery Type","BatteryType","BatteryType",0,"Mechanical/Battery","lookup","Pattern",null,"batterytype"],[3,"Bed Type","BedType","BedType",0,"Exterior/Truck","lookup","Pattern",null,"bedtype"],[4,"Cab Type","BodyCabType","BodyCab",0,"Exterior/Truck","lookup","Pattern",null,"bodycab"],[5,"Body Class","BodyClass","BodyStyle",0,"Exterior/Body","lookup","Pattern",99,"bodystyle"],[8,"Country Name","Country","Country",0,null,"lookup",null,null,null],[9,"Engine Number of Cylinders","EngineCylinders",null,0,"Engine","int","Pattern",88,null],[10,"Destination Market","DestinationMarket","DestinationMarket",0,"General","lookup","Pattern",null,"destinationmarket"],[11,"Displacement (CC)","DisplacementCC",null,0,"Engine","decimal","Pattern",98,null],[12,"Displacement (CI)","DisplacementCI",null,0,"Engine","decimal","Pattern",null,null],[13,"Displacement (L)","DisplacementL",null,0,"Engine","decimal","Pattern",null,null],[14,"Doors","Doors",null,0,"Exterior/Body","int","Pattern",null,null],[15,"Drive Type","DriveType","DriveType",0,"Mechanical/Drivetrain","lookup","Pattern",null,"drivetype"],[16,"Driver Assist","DriverAssist","DriverAssist",0,"Active Safety System","lookup",null,null,null],[17,"Engine Stroke Cycles","EngineCycles",null,0,"Engine","int","Pattern",null,null],[18,"Engine Model","EngineModel",null,0,"Engine","string","Pattern",55,null],[21,"Engine Power (KW)","EngineKW",null,0,"Engine","decimal","Pattern",null,null],[23,"Entertainment System","EntertainmentSystem","EntertainmentSystem",0,"Interior","lookup","Pattern",null,"entertainmentsystem"],[24,"Fuel Type - Primary","FuelTypePrimary","FuelType",0,"Engine","lookup","Pattern",91,"fueltype"],[25,"Gross Vehicle Weight Rating From","GVWR","GrossVehicleWeightRating",0,"Exterior/Dimension","lookup","Pattern",70,"grossvehicleweightrating"],[26,"Make","Make","Make",0,"General","lookup","WMI, Pattern",99,"make"],[27,"Manufacturer Name","Manufacturer","Manufacturer",0,"General","lookup","WMI",null,"manufacturer"],[28,"Model","Model","Model",0,"General","lookup","Pattern",99,"model"],[29,"Model Year","ModelYear",null,0,"General","int","WMI, Input",99,null],[31,"Plant City","PlantCity",null,0,"General","string","Pattern",98,null],[33,"Number of Seats","Seats",null,0,"Interior/Seat","int","Pattern",null,null],[34,"Series","Series",null,0,"General","string","Pattern",61,null],[36,"Steering Location","SteeringLocation","Steering",0,"Interior","lookup","Pattern",null,"steering"],[37,"Transmission Style","TransmissionStyle","Transmission",0,"Mechanical/Transmission","lookup","Pattern",null,"transmission"],[38,"Trim","Trim",null,0,"General","string","Pattern",61,null],[39,"Vehicle Type","VehicleType","VehicleType",0,"General","lookup","WMI",99,"vehicletype"],[40,"Windows","Windows",null,0,"Exterior/Body","int","Pattern",null,null],[41,"Axles","Axles",null,0,"Mechanical/Drivetrain","int","Pattern",15,null],[42,"Brake System Type","BrakeSystemType","BrakeSystem",0,"Mechanical/Brake","lookup","Pattern",null,"brakesystem"],[45,"NCIC Code","NCICCode","NCICCode",0,null,"lookup",null,null,null],[48,"Number of Battery Cells per Module","BatteryCells",null,0,"Mechanical/Battery","int","Pattern",null,null],[49,"Bed Length (inches)","BedLengthIN",null,0,"Exterior/Dimension","int","Pattern",null,null],[52,"Brake System Description","BrakeSystemDesc",null,0,"Mechanical/Brake","string","Pattern",null,null],[54,"Curb Weight (pounds)","CurbWeightLB",null,0,"Exterior/Dimension","int","Pattern",null,null],[55,"Curtain Air Bag Locations","AirBagLocCurtain","AirBagLocations",0,"Passive Safety System/Air Bag Location","lookup","Pattern",null,"airbaglocations"],[56,"Seat Cushion Air Bag Locations","AirBagLocSeatCushion","AirBagLocations",0,"Passive Safety System/Air Bag Location","lookup","Pattern",null,"airbaglocations"],[57,"Battery Current (Amps) From","BatteryA",null,0,"Mechanical/Battery","int","Pattern",null,null],[58,"Battery Voltage (Volts) From","BatteryV",null,0,"Mechanical/Battery","int","Pattern",null,null],[59,"Battery Energy (KWh) From","BatteryKWh",null,0,"Mechanical/Battery","decimal","Pattern",null,null],[60,"Wheelbase Type","WheelBaseType","WheelBaseType",0,"Exterior/Body","lookup","Pattern",null,"wheelbasetype"],[61,"Number of Seat Rows","SeatRows",null,0,"Interior/Seat","int","Pattern",null,null],[62,"Valve Train Design","ValveTrainDesign","ValvetrainDesign",0,"Engine","lookup","Pattern",null,"valvetraindesign"],[63,"Transmission Speeds","TransmissionSpeeds",null,0,"Mechanical/Transmission","int","Pattern",null,null],[64,"Engine Configuration","EngineConfiguration","EngineConfiguration",0,"Engine","lookup","Pattern",null,"engineconfiguration"],[65,"Front Air Bag Locations","AirBagLocFront","AirBagLocFront",0,"Passive Safety System/Air Bag Location","lookup","Pattern",64,"airbaglocfront"],[66,"Fuel Type - Secondary","FuelTypeSecondary","FuelType",0,"Engine","lookup","Pattern",null,"fueltype"],[67,"Fuel Delivery/Fuel Injection Type","FuelInjectionType","FuelDeliveryType",0,"Engine","lookup","Pattern",null,"fueldeliverytype"],[69,"Knee Air Bag Locations","AirBagLocKnee","AirBagLocKnee",0,"Passive Safety System/Air Bag Location","lookup","Pattern",null,"airbaglocknee"],[71,"Engine Brake (hp) From","EngineHP",null,0,"Engine","decimal","Pattern",null,null],[72,"EV Drive Unit","EVDriveUnit","EVDriveUnit",0,"Mechanical/Battery","lookup","Pattern",null,"evdriveunit"],[75,"Plant Country","PlantCountry","Country",0,"General","lookup","Pattern",99,"country"],[76,"Plant Company Name","PlantCompanyName",null,0,"General","string","Pattern",null,null],[77,"Plant State","PlantState",null,0,"General","string","Pattern",98,null],[78,"Pretensioner","Pretensioner","Pretensioner",0,"Passive Safety System","lookup","Pattern",null,"pretensioner"],[79,"Seat Belt Type","SeatBeltsAll","SeatBeltsAll",0,"Passive Safety System","lookup","Pattern",65,"seatbeltsall"],[81,"Adaptive Cruise Control (ACC)","AdaptiveCruiseControl","AdaptiveCruiseControl",0,"Active Safety System/Maintaining Safe Distance","lookup","Pattern",null,"adaptivecruisecontrol"],[82,"Adaptive Headlights","AdaptiveHeadlights","AdaptiveHeadlights",0,"Active Safety System","lookup",null,null,null],[86,"Antilock Braking System (ABS)","ABS","ABS",0,"Active Safety System","lookup","Pattern",null,"abs"],[87,"Crash Imminent Braking (CIB)","CIB","AutoBrake",0,"Active Safety System/Forward Collision Prevention","lookup","Pattern",null,"autobrake"],[88,"Blind Spot Warning (BSW)","BlindSpotMon","BlindSpotMonitoring",0,"Active Safety System/Lane and Side Assist","lookup","Pattern",null,"blindspotmonitoring"],[89,"CAFE Body Type","CAFEBodyType","CAFEBodyType",1,null,"lookup",null,null,null],[90,"CAFE Make","CAFEMake","CAFEMake",1,null,"lookup",null,null,null],[91,"CAFE Model","CAFEModel","CAFEModel",1,null,"lookup",null,null,null],[92,"NCAP Body Type","NCAPBodyType",null,1,null,"string",null,null,null],[93,"NCAP Make","NCAPMake",null,1,null,"string",null,null,null],[94,"NCAP Model","NCAPModel",null,1,null,"string",null,null,null],[96,"NCSA Body Type","NCSABodyType","vNCSABodyType",1,"Internal","lookup","Pattern",null,"vncsabodytype"],[97,"NCSA Make","NCSAMake","vNCSAMake",1,"Internal","lookup","Pattern",null,"vncsamake"],[98,"NCSA Model","NCSAModel","vNCSAModel",1,"Internal","lookup","Pattern",null,"vncsamodel"],[99,"Electronic Stability Control (ESC)","ESC","ECS",0,"Active Safety System","lookup","Pattern",null,"ecs"],[100,"Traction Control","TractionControl","TractionControl",0,"Active Safety System","lookup","Pattern",null,"tractioncontrol"],[101,"Forward Collision Warning (FCW)","ForwardCollisionWarning","ForwardCollisionWarning",0,"Active Safety System/Forward Collision Prevention","lookup","Pattern",null,"forwardcollisionwarning"],[102,"Lane Departure Warning (LDW)","LaneDepartureWarning","LaneDepartureWarning",0,"Active Safety System/Lane and Side Assist","lookup","Pattern",null,"lanedeparturewarning"],[103,"Lane Keeping Assistance (LKA)","LaneKeepSystem","LaneKeepSystem",0,"Active Safety System/Lane and Side Assist","lookup","Pattern",null,"lanekeepsystem"],[104,"Backup Camera","RearVisibilitySystem","RearVisibilityCamera",0,"Active Safety System/Backing Up and Parking","lookup","Pattern",null,"rearvisibilitycamera"],[105,"Parking Assist","ParkAssist","ParkAssist",0,"Active Safety System/Backing Up and Parking","lookup","Pattern",null,"parkassist"],[107,"Side Air Bag Locations","AirBagLocSide","AirBagLocations",0,"Passive Safety System/Air Bag Location","lookup","Pattern",null,"airbaglocations"],[109,"Trim2","Trim2",null,0,"General","string","Pattern",null,null],[110,"Series2","Series2",null,0,"General","string","Pattern",null,null],[111,"Wheelbase (inches) From","WheelBaseShort",null,0,"Exterior/Dimension","decimal","Pattern",null,null],[112,"Wheelbase (inches) To","WheelBaseLong",null,0,"Exterior/Dimension","decimal","Pattern",null,null],[114,"Note","Note",null,0,"General","string","Pattern",null,null],[115,"Number of Wheels","Wheels",null,0,"Exterior/Wheel Tire","int","Pattern",null,null],[116,"Trailer Type Connection","TrailerType","TrailerType",0,"Exterior/Trailer","lookup","Pattern",null,"trailertype"],[117,"Trailer Body Type","TrailerBodyType","TrailerBodyType",0,"Exterior/Trailer","lookup","Pattern",null,"trailerbodytype"],[118,"Trailer Length (feet)","TrailerLength",null,0,"Exterior/Trailer","decimal","Pattern",null,null],[119,"Wheel Size Front (inches)","WheelSizeFront",null,0,"Exterior/Wheel Tire","int","Pattern",null,null],[120,"Wheel Size Rear (inches)","WheelSizeRear",null,0,"Exterior/Wheel Tire","int","Pattern",null,null],[121,"Other Restraint System Info","OtherRestraintSystemInfo",null,0,"Passive Safety System","string","Pattern",null,null],[122,"Cooling Type","CoolingType","CoolingType",0,"Engine","lookup","Pattern",null,"coolingtype"],[125,"Engine Brake (hp) To","EngineHP_to",null,0,"Engine","decimal","Pattern",null,null],[126,"Electrification Level","ElectrificationLevel","ElectrificationLevel",0,"Engine","lookup","Pattern",null,"electrificationlevel"],[127,"Charger Level","ChargerLevel","ChargerLevel",0,"Mechanical/Battery/Charger","lookup","Pattern",null,"chargerlevel"],[128,"Charger Power (KW)","ChargerPowerKW",null,0,"Mechanical/Battery/Charger","int","Pattern",null,null],[129,"Other Engine Info","OtherEngineInfo",null,0,"Engine","string","Pattern",null,null],[132,"Battery Current (Amps) To","BatteryA_to",null,0,"Mechanical/Battery","int","Pattern",null,null],[133,"Battery Voltage (Volts) To","BatteryV_to",null,0,"Mechanical/Battery","int","Pattern",null,null],[134,"Battery Energy (KWh) To","BatteryKWh_to",null,0,"Mechanical/Battery","decimal","Pattern",null,null],[135,"Turbo","Turbo","Turbo",0,"Engine","lookup","Pattern",null,"turbo"],[136,"Base Price ($)","BasePrice",null,0,"General","decimal","Pattern",null,null],[137,"Number of Battery Modules per Pack","BatteryModules",null,0,"Mechanical/Battery","int","Pattern",null,null],[138,"Number of Battery Packs per Vehicle","BatteryPacks",null,0,"Mechanical/Battery","int","Pattern",null,null],[139,"Top Speed (MPH)","TopSpeedMPH",null,0,"Engine","int","Pattern",null,null],[140,"EquipmentType","EquipmentType","EquipmentType",0,null,"lookup",null,null,null],[141,"Manufacturer Type","ManufacturerType","ManufacturerType",0,null,"lookup",null,null,null],[142,"Suggested VIN","SuggestedVIN",null,0,null,"string","Decoding",null,null],[143,"Error Code","ErrorCode","ErrorCode",0,null,"lookup","Decoding",null,"errorcode"],[144,"Possible Values","PossibleValues",null,0,null,"string","Decoding",null,null],[145,"Axle Configuration","AxleConfiguration","AxleConfiguration",0,"Mechanical/Drivetrain","lookup","Pattern",null,"axleconfiguration"],[146,"Engine Manufacturer","EngineManufacturer",null,0,"Engine","string","Pattern",null,null],[147,"Bus Length (feet)","BusLength",null,0,"Exterior/Bus","int","Pattern",null,null],[148,"Bus Floor Configuration Type","BusFloorConfigType","BusFloorConfigType",0,"Exterior/Bus","lookup","Pattern",null,"busfloorconfigtype"],[149,"Bus Type","BusType","BusType",0,"Exterior/Bus","lookup","Pattern",null,"bustype"],[150,"Other Bus Info","OtherBusInfo",null,0,"Exterior/Bus","string","Pattern",null,null],[151,"Custom Motorcycle Type","CustomMotorcycleType","CustomMotorcycleType",0,"Exterior/Motorcycle","lookup","Pattern",null,"custommotorcycletype"],[152,"Motorcycle Suspension Type","MotorcycleSuspensionType","MotorcycleSuspensionType",0,"Exterior/Motorcycle","lookup","Pattern",null,"motorcyclesuspensiontype"],[153,"Motorcycle Chassis Type","MotorcycleChassisType","MotorcycleChassisType",0,"Exterior/Motorcycle","lookup","Pattern",null,"motorcyclechassistype"],[154,"Other Motorcycle Info","OtherMotorcycleInfo",null,0,"Exterior/Motorcycle","string","Pattern",null,null],[155,"Other Trailer Info","OtherTrailerInfo",null,0,"Exterior/Trailer","string","Pattern",null,null],[156,"Additional Error Text","AdditionalErrorText",null,0,null,"string","Decoding",null,null],[158,"Cash For Clunkers","CashForClunkers",null,0,"General","string",null,null,null],[159,"Track Width (inches)","TrackWidth",null,0,"Exterior/Body","decimal","Pattern",null,null],[168,"Tire Pressure Monitoring System (TPMS) Type","TPMS","TPMS",null,"Active Safety System","lookup","Pattern",null,"tpms"],[169,"Active Safety System Note","ActiveSafetySysNote",null,0,"Active Safety System","string","Pattern",null,null],[170,"Dynamic Brake Support (DBS)","DynamicBrakeSupport","DynamicBrakeSupport",null,"Active Safety System/Forward Collision Prevention","lookup","Pattern",null,"dynamicbrakesupport"],[171,"Pedestrian Automatic Emergency Braking (PAEB)","PedestrianAutomaticEmergencyBraking","PedestrianAutomaticEmergencyBraking",null,"Active Safety System/Forward Collision Prevention","lookup","Pattern",null,"pedestrianautomaticemergencybraking"],[172,"Auto-Reverse System for Windows and Sunroofs","AutoReverseSystem","AutoReverseSystem",null,"Active Safety System","lookup","Pattern",null,"autoreversesystem"],[173,"Automatic Pedestrian Alerting Sound (for Hybrid and EV only)","AutomaticPedestrianAlertingSound","AutomaticPedestrainAlertingSound",null,"Active Safety System","lookup","Pattern",null,"automaticpedestrainalertingsound"],[174,"Automatic Crash Notification (ACN)/Advanced Automatic Crash Notification (AACN)","CAN_AACN","CAN_AACN",null,"Active Safety System/911 Notification","lookup","Pattern",null,"can_aacn"],[175,"Event Data Recorder (EDR)","EDR","EDR",null,"Active Safety System","lookup","Pattern",null,"edr"],[176,"Keyless Ignition","KeylessIgnition","KeylessIgnition",null,"Active Safety System","lookup","Pattern",null,"keylessignition"],[177,"Daytime Running Light (DRL)","DaytimeRunningLight","DaytimeRunningLight",null,"Active Safety System/Lighting Technologies","lookup","Pattern",null,"daytimerunninglight"],[178,"Headlamp Light Source","LowerBeamHeadlampLightSource","LowerBeamHeadlampLightSource",null,"Active Safety System/Lighting Technologies","lookup","Pattern",null,"lowerbeamheadlamplightsource"],[179,"Semiautomatic Headlamp Beam Switching","SemiautomaticHeadlampBeamSwitching","SemiautomaticHeadlampBeamSwitching",null,"Active Safety System/Lighting Technologies","lookup","Pattern",null,"semiautomaticheadlampbeamswitching"],[180,"Adaptive Driving Beam (ADB)","AdaptiveDrivingBeam","AdaptiveDrivingBeam",null,"Active Safety System/Lighting Technologies","lookup","Pattern",null,"adaptivedrivingbeam"],[181,"SAE Automation Level From","SAEAutomationLevel",null,0,"Active Safety System","int","Pattern",null,null],[182,"SAE Automation Level To","SAEAutomationLevel_to",null,0,"Active Safety System","int","Pattern",null,null],[183,"Rear Cross Traffic Alert","RearCrossTrafficAlert","RearCrossTrafficAlert",null,"Active Safety System/Backing Up and Parking","lookup","Pattern",null,"rearcrosstrafficalert"],[184,"Gross Combination Weight Rating From","GCWR","GrossVehicleWeightRating",0,"Exterior/Dimension","lookup","Pattern",null,"grossvehicleweightrating"],[185,"Gross Combination Weight Rating To","GCWR_to","GrossVehicleWeightRating",0,"Exterior/Dimension","lookup","Pattern",null,"grossvehicleweightrating"],[186,"NCSA Note","NCSANote",null,1,"Internal","string","Pattern",null,null],[187,"NCSA Mapping Exception","NCSAMappingException","NCSAMappingException",1,"Internal","lookup",null,null,null],[188,"NCSA Mapping Exception Approved On","NCSAMapExcApprovedOn",null,1,"Internal","string",null,null,null],[189,"NCSA Mapping Exception Approved By","NCSAMapExcApprovedBy",null,1,"Internal","string",null,null,null],[190,"Gross Vehicle Weight Rating To","GVWR_to","GrossVehicleWeightRating",0,"Exterior/Dimension","lookup","Pattern",null,"grossvehicleweightrating"],[191,"Error Text","ErrorText",null,0,null,"string","Decoding",null,null],[192,"Rear Automatic Emergency Braking","RearAutomaticEmergencyBraking","RearAutomaticEmergencyBraking",0,"Active Safety System/Backing Up and Parking","lookup","Pattern",null,"rearautomaticemergencybraking"],[193,"Blind Spot Intervention (BSI)","BlindSpotIntervention","BlindSpotIntervention",0,"Active Safety System/Lane and Side Assist","lookup","Pattern",null,"blindspotintervention"],[194,"Lane Centering Assistance","LaneCenteringAssistance","LaneCenteringAssistance",0,"Active Safety System/Lane and Side Assist","lookup","Pattern",null,"lanecenteringassistance"],[195,"Non-Land Use","NonLandUse","NonLandUse",0,"General","lookup","Pattern",null,"nonlanduse"],[196,"Vehicle Descriptor","VehicleDescriptor",null,0,null,"string","Decoding",null,null],[200,"Fuel-Tank Type","FuelTankType","FuelTankType",null,"Exterior/Motorcycle","lookup","Pattern",null,"fueltanktype"],[201,"Fuel-Tank Material","FuelTankMaterial","FuelTankMaterial",null,"Exterior/Motorcycle","lookup","Pattern",null,"fueltankmaterial"],[202,"Combined Braking System (CBS)","CombinedBrakingSystem","CombinedBrakingSystem",null,"Exterior/Motorcycle","lookup","Pattern",null,"combinedbrakingsystem"],[203,"Wheelie Mitigation","WheelieMitigation","WheelieMitigation",null,"Exterior/Motorcycle","lookup","Pattern",null,"wheeliemitigation"],[204,"Plant Address","PlantAddress",null,0,"General","string","Pattern",null,null]]},"error_code":{"columns":["id","name","additional_text","weight"],"rows":[[0,"0 - VIN decoded clean. Check Digit (9th position) is correct",null,0],[1,"1 - Check Digit (9th position) does not calculate properly",null,-5],[2,"2 - VIN corrected, error in one position ",null,-100],[3,"3 - VIN corrected, error in one position (assuming Check Digit is correct)",null,-100],[4,"4 - VIN corrected, error in one position only (indicated by ! in Suggested VIN), multiple matches found","In the Possible values section, the Numeric value before the : indicates the position in error and the values after the : indicate the possible values that are allowed in this position.",-200],[5,"5 - VIN has errors in few positions","The error positions are indicated by ! in Suggested VIN. In the Possible values section, each pair of parenthesis indicate information about each error position in VIN . The Numeric value before the : indicates the position in error and the values after the : indicate the possible values that are allowed in this position",-300],[6,"6 - Incomplete VIN",null,-10],[7,"7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information",null,-10000],[8,"8 - No detailed data available currently",null,-1000],[9,"9 - Glider Warning - A \"Glider\" is not a \"motor vehicle\", as defined in 49 U.S.C. 30102(a)(6), and cannot be assigned a VIN that meets 49 CFR Part 565 requirements",null,0],[10,"10 - Off-Road Vehicle Warning – This is not a Vehicle Identification Number (VIN) for a motor vehicle. This indicates that the manufacturer did not certify this product as complying with the Federal Motor Vehicle Safety Standards that are applicable to motor vehicles as defined in 49 U.S.C. 30102. ",null,0],[11,"11 - Incorrect Model Year - Position 10 does not match valid model year codes (I, O, Q, U, Z, 0). Decoded data may not be accurate.",null,-20],[12,"12 - Model Year Warning - Model Year entered for decoding with VIN does not match the model year based on the 10th position in VIN.",null,-20],[14,"14 - Unable to provide information for some of the characters in the VIN, based on the manufacturer submission.",null,-30],[400,"400 - Invalid Characters Present",null,-40]]},"conversion":{"columns":["id","from_element_id","to_element_id","formula"],"rows":[[1,11,12,"#x# / 16.387064 "],[2,12,11,"#x# * 16.387064 "],[3,11,13,"#x# / 1000."],[4,13,11,"#x# * 1000"],[5,12,13,"#x# * 0.016387064 "],[7,13,12,"#x# / 0.016387064 "]]},"meta":{"columns":["key","value"],"rows":[["algorithm_changed","[]"],["algorithm_fingerprints","{\"felementattributevalue\": \"699b5d1f487725e492f07a4d904219231bc03415a6ccfbbaea33e1366745d9e5\", \"ferrorvalue\": \"ea39e61e2b43db774dd47087e8173f2cf4ed9b992ff081bbc9a28a6c4ae2bd50\", \"fextractvalidcharsperwmiyear\": \"aee612a4e4d684ecb280c6b6366f2510fd158027d1103cd9e2fcd14d4a7a2c18\", \"fvalidcharsinkey\": \"df5cfb7175fbe48709fe292a074ea88cebc069dae43356d8cfeeee4fcc1c2866\", \"fvalidcharsinregex\": \"e3e35908288f1db5f712279c8a201830e5508b5967ab84d12dbe927eca7d9787\", \"fvincheckdigit\": \"4a9250e784d7af06217385058a6025bf71833fdd43103589bb9cc49106f583a3\", \"fvincheckdigit2\": \"24ff35ba635ad0a9acd19674caca6cc4ff67655cad2ed03b750496ee13181eed\", \"fvindescriptor\": \"42ccb32d54ee910782879a04e3ea0e7f70ffcc05fd563eb86db660f787d71350\", \"fvinmodelyear2\": \"9e3bbe28adb479029d9c07afa7ce71f92306788be8fdb8c655b6c6d16883902f\", \"fvinwmi\": \"1cda913f7a2ea78b673040a9bef110214433d7d3dc481361e47d284d8e818a00\", \"spvindecode\": \"f7ca4420f5ea644e3e6f534bf629cb716b0ebba22d34290b35b6075dcd5205dc\", \"spvindecode_core\": \"629f4d73bd21da053ef914dbe2f5504c1fdc13a01d56b0d5d62d26edb546801e\", \"spvindecode_errorcode\": \"30f2ea18ae708c85e474eb27284acf1306c3162d1cdd5c455a2f66fd5c299c53\", \"sqlwild_to_regex\": \"09194d38e9c8cf652283b1c77ff1d2d833ebe7f46cf6df9c884e3e9d464659a2\"}"],["built_at","2026-11-18T02:42:52Z"],["counts","{\"conversion\": 6, \"defaultvalue\": 186, \"element\": 161, \"enginemodel\": 346, \"enginemodelpattern\": 2510, \"errorcode\": 15, \"make_model\": 32444, \"pattern\": 1685489, \"pattern_kept\": 1349305, \"vehiclespecpattern\": 232703, \"vehiclespecschema\": 6639, \"vehiclespecschema_model\": 7531, \"vehiclespecschema_year\": 12367, \"vindescriptor\": 69, \"vinexception\": 18806, \"vinschema\": 25374, \"vspecschemapattern\": 17774, \"wmi\": 13048, \"wmi_make\": 14237, \"wmi_vinschema\": 41885, \"wmi_year_chars\": 241290, \"wmiyearvalidchars\": 8796274}"],["nhtsa_dump_started","2026-11-12 14:53:50"],["release","2026_11"],["release_name","vPICList_lite_2026_11"],["schema_version","1"],["source_file","vPICList_lite_2026_11.sql"],["source_url","https://vpic.nhtsa.dot.gov/api/ (Standalone vPIC database, PostgreSQL edition)"],["rule_fixes","{\"file\": \"/root/vin-mcp-localdecode/data-src/vpic-rule-fixes.jsonl\", \"entries\": 26, \"applied\": 26, \"needs_review\": 0, \"edits_applied\": 34}"]]},"rule_fix":{"columns":["fix_id","edit_no","action","tbl","row_id","schema_id","spec_schema_pattern_id","element_id","is_key","orig_keys","orig_attribute_id","orig_changed_us","new_keys","new_attribute_id","new_changed_us"],"rows":[["rf-008",1,"add","pattern",-103,15825,null,15,null,null,null,null,"B**CA","1",1794960000000000],["rf-023",1,"add","pattern",-112,24841,null,37,null,null,null,null,"AB[AB]AE","3",1794960000000000]]},"rule_fix_entry":{"columns":["fix_id","written_against","fix_case","status","problem","reason","evidence","errors","reviewed","edits","premise"],"rows":[["rf-008","2026_11","narrower_key","applied",null,"vPIC keys the 2018 Atlas drive on positions 4, 7 and 8 (G, H, K, L, M, N, R with CA: AWD) but has no row for B with CA, so the vehicle-spec value for 'Launch Model' (AWD) filled it. Volkswagen's own record of 1V2BR2CA3JC513174 reads 'ATLAS S 3.6 LAUNCH FWD' and both NHTSA test Atlases with B were front-drive; EPA lists FWD and 4Motion Atlases. A row B**CA now gives front-wheel drive.","[{\"url\": \"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10135R001.pdf\", \"test_no\": 10135}, {\"url\": \"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10136R001.pdf\", \"test_no\": 10136}]","[{\"pattern\": \"1V2BR2CA*JC\", \"model_year\": 2018, \"make\": \"VOLKSWAGEN\", \"model\": \"Atlas\", \"field\": \"DriveType\", \"vpic_value\": \"AWD/All-Wheel Drive\", \"correct_value\": \"FWD\", \"test_vehicles\": 2}]","{\"on\": \"2026-11-18\", \"by\": \"mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder\"}","[{\"action\": \"add\", \"table\": \"pattern\", \"new\": {\"id\": -103, \"schema_id\": 15825, \"schema\": \"Volkswagen MPV Schema for WVG/1V2/3VV - 2018\", \"keys\": \"B**CA\", \"element\": \"DriveType\", \"attribute_id\": \"1\", \"value\": \"FWD/Front-Wheel Drive\"}}]","[{\"table\": \"spec_pattern\", \"row\": {\"id\": 14854, \"spec_schema_pattern_id\": 1710, \"spec_schema_id\": 439, \"applies_to\": \"Atlas 2018, where Trim=Launch Model\", \"element\": \"DriveType\", \"attribute_id\": \"3\", \"value\": \"AWD/All-Wheel Drive\"}}]"],["rf-023","2026_11","narrower_key","applied",null,"vPIC's vehicle-spec row gives every 2023 Corolla and GR Corolla hatchback a CVT. The GR Corolla is sold only with a 6-speed manual (EPA's only 2023 GR Corolla listing), and NHTSA's test GR Corolla was a manual. vPIC's own GR Corolla rows are keyed AB[AB]AE; a row on those keys now gives manual.","[{\"url\": \"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15300/v15365R001.pdf\", \"test_no\": 15365}]","[{\"pattern\": \"JTNABAAE*PA\", \"model_year\": 2023, \"make\": \"TOYOTA\", \"model\": \"GR Corolla\", \"field\": \"TransmissionStyle\", \"vpic_value\": \"Continuously Variable Transmission (CVT)\", \"correct_value\": \"Manual\", \"test_vehicles\": 1}]","{\"on\": \"2026-11-18\", \"by\": \"mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder\"}","[{\"action\": \"add\", \"table\": \"pattern\", \"new\": {\"id\": -112, \"schema_id\": 24841, \"schema\": \"TOYOTA GR COROLLA Schema for JTN (MY2023)\", \"keys\": \"AB[AB]AE\", \"element\": \"TransmissionStyle\", \"attribute_id\": \"3\", \"value\": \"Manual/Standard\"}}]","[{\"table\": \"spec_pattern\", \"row\": {\"id\": 232715, \"spec_schema_pattern_id\": 13085, \"spec_schema_id\": 3699, \"applies_to\": \"Corolla,GR COROLLA 2023, where BodyClass=Hatchback/Liftback/Notchback\", \"element\": \"TransmissionStyle\", \"attribute_id\": \"7\", \"value\": \"Continuously Variable Transmission (CVT)\"}}]"]]},"lookup":{"columns":["tbl","id","name"],"rows":[["manufacturer","1147","VOLKSWAGEN GROUP OF AMERICA, INC."],["vehicletype","7","Multipurpose Passenger Vehicle (MPV)"],["make","482","Volkswagen"],["manufacturer","1057","TOYOTA MOTOR CORPORATION"],["vehicletype","2","Passenger Car"],["make","448","Toyota"],["manufacturer","21364","KIA MEXICO S.A. DE C.V."],["make","499","Kia"],["make","498","Hyundai"],["manufacturer","994","FCA US LLC"],["make","496","Ram"],["make","477","Chrysler"],["make","492","Fiat"],["make","476","Dodge"],["make","497","Lancia"],["make","483","Jeep"],["drivetype","1","FWD/Front-Wheel Drive"],["fueltype","4","Gasoline"],["grossvehicleweightrating","14","Class 2E: 6,001 - 7,000 lb (2,722 - 3,175 kg)"],["model","3136","Touareg"],["transmission","2","Automatic"],["airbaglocations","6","All Rows"],["airbaglocfront","3","1st Row (Driver and Passenger)"],["country","2","GERMANY"],["country","33","SLOVAKIA"],["airbaglocations","3","1st Row (Driver and Passenger)"],["bodystyle","7","Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]"],["grossvehicleweightrating","13","Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)"],["model","17618","Atlas"],["country","6","UNITED STATES (USA)"],["country","12","MEXICO"],["model","8151","Tiguan"],["seatbeltsall","1","Manual"],["grossvehicleweightrating","12","Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)"],["model","24247","Tiguan Limited"],["turbo","1","Yes"],["drivetype","3","AWD/All-Wheel Drive"],["transmission","3","Manual/Standard"],["country","3","JAPAN"],["bodystyle","5","Hatchback/Liftback/Notchback"],["drivetype","2","4WD/4-Wheel Drive/4x4"],["model","31079","GR COROLLA"],["airbaglocations","4","1st and 2nd Rows"],["airbaglocations","2","Passenger Seat Only"],["engineconfiguration","1","In-Line"],["airbaglocknee","1","Driver Seat Only"],["drivetype","7","4x2"],["model","2208","Corolla"],["transmission","7","Continuously Variable Transmission (CVT)"],["airbaglocations","5","1st and 2nd and 3rd Rows"],["airbaglocfront","1","Driver Seat Only"],["airbaglocknee","3","1st Row (Driver and Passenger)"],["bodystyle","13","Sedan/Saloon"],["model","2462","Forte"],["model","2773","Accent"],["valvetraindesign","2","Dual Overhead Cam (DOHC)"],["fueldeliverytype","3","Multipoint Fuel Injection (MPFI)"],["model","2299","Rio"],["model","3508","Durango"],["steering","1","Left-Hand Drive (LHD)"],["brakesystem","2","Hydraulic"],["grossvehicleweightrating","15","Class 2F: 7,001 - 8,000 lb (3,175 - 3,629 kg)"],["drivetype","4","RWD/Rear-Wheel Drive"],["engineconfiguration","2","V-Shaped"],["model","1949","Grand Cherokee"],["model","32375","Grand Cherokee L"],["model","14871","Grand Wagoneer"],["model","32378","Grand Wagoneer L"],["grossvehicleweightrating","17","Class 2H: 9,001 - 10,000 lb (4,082 - 4,536 kg)"],["model","1943","Wrangler"],["steering","2","Right-Hand Drive (RHD)"],["tpms","1","Direct"],["tpms","2","Indirect"],["abs","1","Standard"],["ecs","1","Standard"],["rearvisibilitycamera","1","Standard"],["keylessignition","3","Optional"],["daytimerunninglight","1","Standard"],["semiautomaticheadlampbeamswitching","1","Standard"],["adaptivecruisecontrol","3","Optional"],["autobrake","1","Standard"],["blindspotmonitoring","3","Optional"],["tractioncontrol","1","Standard"],["forwardcollisionwarning","3","Optional"],["lanedeparturewarning","3","Optional"],["lanekeepsystem","5","Optional"],["dynamicbrakesupport","1","Standard"],["pedestrianautomaticemergencybraking","3","Optional"],["autoreversesystem","1","Standard"],["keylessignition","1","Standard"],["parkassist","3","Optional"],["adaptivedrivingbeam","3","Optional"],["dynamicbrakesupport","3","Optional"],["pedestrianautomaticemergencybraking","1","Standard"],["autobrake","3","Optional"],["parkassist","1","Standard"],["adaptivedrivingbeam","1","Standard"],["adaptivecruisecontrol","1","Standard"],["blindspotmonitoring","1","Standard"],["forwardcollisionwarning","1","Standard"],["lanedeparturewarning","1","Standard"],["lanekeepsystem","1","Standard"],["semiautomaticheadlampbeamswitching","3","Optional"],["can_aacn","1","Standard"],["rearvisibilitycamera","3","Optional"],["grossvehicleweightrating","11","Class 1B: 3,001 - 4,000 lb (1,360 - 1,814 kg)"],["wheelbasetype","5","Standard"],["pretensioner","1","Yes"],["lowerbeamheadlamplightsource","1","Halogen"],["lowerbeamheadlamplightsource","3","LED"],["rearcrosstrafficalert","1","Standard"],["rearcrosstrafficalert","2","Optional"],["lanecenteringassistance","1","Standard"],["edr","1","Standard"],["rearautomaticemergencybraking","1","Standard"],["blindspotintervention","1","Standard"],["blindspotintervention","3","Optional"],["electrificationlevel","3","PHEV (Plug-in Hybrid Electric Vehicle)"],["bodystyle","3","Coupe"],["grossvehicleweightrating","1","Class 1: 6,000 lb or less (2,722 kg or less)"],["bodystyle","15","Wagon"],["grossvehicleweightrating","10","Class 1A: 3,000 lb or less (1,360 kg or less)"]]}},"expected":{"1V2BR2CA3JC513174":{"fixed":{"values":{"ABS":"Standard","ActiveSafetySysNote":"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System","AdaptiveCruiseControl":"Optional","AdaptiveDrivingBeam":"Optional","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"All Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"1st Row (Driver and Passenger)","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"2","BasePrice":"33750.00","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"Optional","BodyCabType":"","BodyClass":"Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"Standard","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"4502","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"Standard","DestinationMarket":"","DisplacementCC":"3600.0","DisplacementCI":"219.68547874103","DisplacementL":"3.6","Doors":"4","DriveType":"FWD/Front-Wheel Drive","DriverAssist":"","DynamicBrakeSupport":"Standard","EDR":"","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"6","EngineHP":"276","EngineHP_to":"","EngineKW":"","EngineManufacturer":"VW","EngineModel":"FSI","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"Optional","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","GVWR_to":"","KeylessIgnition":"Standard","LaneCenteringAssistance":"","LaneDepartureWarning":"Optional","LaneKeepSystem":"Optional","LowerBeamHeadlampLightSource":"","Make":"VOLKSWAGEN","MakeID":"482","Manufacturer":"VOLKSWAGEN GROUP OF AMERICA, INC.","ManufacturerId":"1147","Model":"Atlas","ModelID":"17618","ModelYear":"2018","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight (lbs): 4222-4502","OtherBusInfo":"","OtherEngineInfo":"Emissions Certification Test Group: JVGAT03.6VAS Emis.Std: Bin 70/LEV III ULEV 70","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Advanced Front Airbags","OtherTrailerInfo":"","ParkAssist":"Optional","PedestrianAutomaticEmergencyBraking":"Optional","PlantCity":"CHATTANOOGA","PlantCompanyName":"","PlantCountry":"UNITED STATES (USA)","PlantState":"TENNESSEE","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"3","Seats":"7","SemiautomaticHeadlampBeamSwitching":"Standard","Series":"","Series2":"","SteeringLocation":"Left-Hand Drive (LHD)","SuggestedVIN":"","TPMS":"Indirect","TopSpeedMPH":"113","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"8","TransmissionStyle":"Automatic","Trim":"Launch Model","Trim2":"","Turbo":"","VIN":"1V2BR2CA3JC513174","ValveTrainDesign":"","VehicleDescriptor":"1V2BR2CA*JC","VehicleType":"MULTIPURPOSE PASSENGER VEHICLE (MPV)","WheelBaseLong":"","WheelBaseShort":"117.30","WheelBaseType":"","WheelSizeFront":"18","WheelSizeRear":"18","WheelieMitigation":"","Wheels":"4","Windows":""},"rule_fixes":{"release":"2026_11","changed":[{"field":"DriveType","official_value":"AWD/All-Wheel Drive","value":"FWD/Front-Wheel Drive","fix_ids":["rf-008"]}],"fixes":[{"id":"rf-008","case":"narrower_key","written_against":"2026_11","reason":"vPIC keys the 2018 Atlas drive on positions 4, 7 and 8 (G, H, K, L, M, N, R with CA: AWD) but has no row for B with CA, so the vehicle-spec value for 'Launch Model' (AWD) filled it. Volkswagen's own record of 1V2BR2CA3JC513174 reads 'ATLAS S 3.6 LAUNCH FWD' and both NHTSA test Atlases with B were front-drive; EPA lists FWD and 4Motion Atlases. A row B**CA now gives front-wheel drive.","evidence":[{"url":"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10135R001.pdf","test_no":10135},{"url":"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v10100/v10136R001.pdf","test_no":10136}],"errors":[{"pattern":"1V2BR2CA*JC","model_year":2018,"make":"VOLKSWAGEN","model":"Atlas","field":"DriveType","vpic_value":"AWD/All-Wheel Drive","correct_value":"FWD","test_vehicles":2}],"reviewed":{"on":"2026-11-18","by":"mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}}],"note":"mcp.vin rule fixes (reviewed edits of NHTSA's vPIC rule tables) changed these values; official_value is what NHTSA's own rules decode."}},"pristine":{"values":{"ABS":"Standard","ActiveSafetySysNote":"Engine Brake Assist, Rollover Sensor System, Intelligent Crash Response System, Automatic Post-Collision Braking System","AdaptiveCruiseControl":"Optional","AdaptiveDrivingBeam":"Optional","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"All Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"1st Row (Driver and Passenger)","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"2","BasePrice":"33750.00","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"Optional","BodyCabType":"","BodyClass":"Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"Standard","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"4502","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"Standard","DestinationMarket":"","DisplacementCC":"3600.0","DisplacementCI":"219.68547874103","DisplacementL":"3.6","Doors":"4","DriveType":"AWD/All-Wheel Drive","DriverAssist":"","DynamicBrakeSupport":"Standard","EDR":"","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"6","EngineHP":"276","EngineHP_to":"","EngineKW":"","EngineManufacturer":"VW","EngineModel":"FSI","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"Optional","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","GVWR_to":"","KeylessIgnition":"Standard","LaneCenteringAssistance":"","LaneDepartureWarning":"Optional","LaneKeepSystem":"Optional","LowerBeamHeadlampLightSource":"","Make":"VOLKSWAGEN","MakeID":"482","Manufacturer":"VOLKSWAGEN GROUP OF AMERICA, INC.","ManufacturerId":"1147","Model":"Atlas","ModelID":"17618","ModelYear":"2018","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight (lbs): 4222-4502","OtherBusInfo":"","OtherEngineInfo":"Emissions Certification Test Group: JVGAT03.6VAS Emis.Std: Bin 70/LEV III ULEV 70","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Advanced Front Airbags","OtherTrailerInfo":"","ParkAssist":"Optional","PedestrianAutomaticEmergencyBraking":"Optional","PlantCity":"CHATTANOOGA","PlantCompanyName":"","PlantCountry":"UNITED STATES (USA)","PlantState":"TENNESSEE","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"3","Seats":"7","SemiautomaticHeadlampBeamSwitching":"Standard","Series":"","Series2":"","SteeringLocation":"Left-Hand Drive (LHD)","SuggestedVIN":"","TPMS":"Indirect","TopSpeedMPH":"113","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"8","TransmissionStyle":"Automatic","Trim":"Launch Model","Trim2":"","Turbo":"","VIN":"1V2BR2CA3JC513174","ValveTrainDesign":"","VehicleDescriptor":"1V2BR2CA*JC","VehicleType":"MULTIPURPOSE PASSENGER VEHICLE (MPV)","WheelBaseLong":"","WheelBaseShort":"117.30","WheelBaseType":"","WheelSizeFront":"18","WheelSizeRear":"18","WheelieMitigation":"","Wheels":"4","Windows":""},"rule_fixes":null}},"JTNABAAE3PA004901":{"fixed":{"values":{"ABS":"Standard","ActiveSafetySysNote":"","AdaptiveCruiseControl":"Standard","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"1st and 2nd Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"Driver Seat Only","AirBagLocSeatCushion":"Passenger Seat Only","AirBagLocSide":"1st and 2nd Rows","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"Not Applicable","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"Not Applicable","BodyClass":"Hatchback/Liftback/Notchback","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"Standard","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"3285","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"Standard","DestinationMarket":"","DisplacementCC":"1600.0","DisplacementCI":"97.63799055157","DisplacementL":"1.6","Doors":"5","DriveType":"4WD/4-Wheel Drive/4x4","DriverAssist":"","DynamicBrakeSupport":"Standard","EDR":"Standard","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"In-Line","EngineCycles":"","EngineCylinders":"3","EngineHP":"300","EngineHP_to":"","EngineKW":"","EngineManufacturer":"","EngineModel":"G16E-GTS","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"Standard","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)","GVWR_to":"Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)","KeylessIgnition":"Standard","LaneCenteringAssistance":"","LaneDepartureWarning":"Standard","LaneKeepSystem":"Standard","LowerBeamHeadlampLightSource":"LED","Make":"TOYOTA","MakeID":"448","Manufacturer":"TOYOTA MOTOR CORPORATION","ManufacturerId":"1057","Model":"GR COROLLA","ModelID":"31079","ModelYear":"2023","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight (lbs): 3186-3285","OtherBusInfo":"","OtherEngineInfo":"PORT+DIRECT, L3","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Seat Belt: All seats","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"Standard","PlantCity":"TOYOTA CITY","PlantCompanyName":"Motomachi Plant, Toyota Motor Corp.","PlantCountry":"JAPAN","PlantState":"AICHI PREFECTURE","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"2","Seats":"5","SemiautomaticHeadlampBeamSwitching":"Standard","Series":"14 Series","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"Direct","TopSpeedMPH":"","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"Manual/Standard","Trim":"","Trim2":"","Turbo":"","VIN":"JTNABAAE3PA004901","ValveTrainDesign":"","VehicleDescriptor":"JTNABAAE*PA","VehicleType":"PASSENGER CAR","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":{"release":"2026_11","changed":[{"field":"TransmissionStyle","official_value":"Continuously Variable Transmission (CVT)","value":"Manual/Standard","fix_ids":["rf-023"]}],"fixes":[{"id":"rf-023","case":"narrower_key","written_against":"2026_11","reason":"vPIC's vehicle-spec row gives every 2023 Corolla and GR Corolla hatchback a CVT. The GR Corolla is sold only with a 6-speed manual (EPA's only 2023 GR Corolla listing), and NHTSA's test GR Corolla was a manual. vPIC's own GR Corolla rows are keyed AB[AB]AE; a row on those keys now gives manual.","evidence":[{"url":"https://nrd-static.nhtsa.dot.gov/reports/vehdb/v10000/v15300/v15365R001.pdf","test_no":15365}],"errors":[{"pattern":"JTNABAAE*PA","model_year":2023,"make":"TOYOTA","model":"GR Corolla","field":"TransmissionStyle","vpic_value":"Continuously Variable Transmission (CVT)","correct_value":"Manual","test_vehicles":1}],"reviewed":{"on":"2026-11-18","by":"mcp.vin decode audit 2026-11-17 (confirmed list); rule rows traced by the local decoder"}}],"note":"mcp.vin rule fixes (reviewed edits of NHTSA's vPIC rule tables) changed these values; official_value is what NHTSA's own rules decode."}},"pristine":{"values":{"ABS":"Standard","ActiveSafetySysNote":"","AdaptiveCruiseControl":"Standard","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"1st and 2nd Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"Driver Seat Only","AirBagLocSeatCushion":"Passenger Seat Only","AirBagLocSide":"1st and 2nd Rows","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"Not Applicable","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"Not Applicable","BodyClass":"Hatchback/Liftback/Notchback","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"Standard","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"3285","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"Standard","DestinationMarket":"","DisplacementCC":"1600.0","DisplacementCI":"97.63799055157","DisplacementL":"1.6","Doors":"5","DriveType":"4WD/4-Wheel Drive/4x4","DriverAssist":"","DynamicBrakeSupport":"Standard","EDR":"Standard","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"In-Line","EngineCycles":"","EngineCylinders":"3","EngineHP":"300","EngineHP_to":"","EngineKW":"","EngineManufacturer":"","EngineModel":"G16E-GTS","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"Standard","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)","GVWR_to":"Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)","KeylessIgnition":"Standard","LaneCenteringAssistance":"","LaneDepartureWarning":"Standard","LaneKeepSystem":"Standard","LowerBeamHeadlampLightSource":"LED","Make":"TOYOTA","MakeID":"448","Manufacturer":"TOYOTA MOTOR CORPORATION","ManufacturerId":"1057","Model":"GR COROLLA","ModelID":"31079","ModelYear":"2023","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight (lbs): 3186-3285","OtherBusInfo":"","OtherEngineInfo":"PORT+DIRECT, L3","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Seat Belt: All seats","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"Standard","PlantCity":"TOYOTA CITY","PlantCompanyName":"Motomachi Plant, Toyota Motor Corp.","PlantCountry":"JAPAN","PlantState":"AICHI PREFECTURE","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"2","Seats":"5","SemiautomaticHeadlampBeamSwitching":"Standard","Series":"14 Series","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"Direct","TopSpeedMPH":"","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"Continuously Variable Transmission (CVT)","Trim":"","Trim2":"","Turbo":"","VIN":"JTNABAAE3PA004901","ValveTrainDesign":"","VehicleDescriptor":"JTNABAAE*PA","VehicleType":"PASSENGER CAR","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null}},"3KPC24A67LE094049":{"fixed":{"values":{"ABS":"","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"1st and 2nd Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"1st Row (Driver and Passenger)","AutoReverseSystem":"","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"Not Applicable","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"Not Applicable","BodyClass":"Sedan/Saloon","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"2701","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"1600.0","DisplacementCI":"97.63799055157","DisplacementL":"1.6","Doors":"4","DriveType":"","DriverAssist":"","DynamicBrakeSupport":"","EDR":"","ESC":"","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"4","EngineHP":"120","EngineHP_to":"","EngineKW":"","EngineManufacturer":"HMC","EngineModel":"1.6L DOHC MPI GAMMA II","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"","FuelInjectionType":"Multipoint Fuel Injection (MPFI)","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1: 6,000 lb or less (2,722 kg or less)","GVWR_to":"Class 1: 6,000 lb or less (2,722 kg or less)","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"HYUNDAI","MakeID":"498","Manufacturer":"KIA MEXICO S.A. DE C.V.","ManufacturerId":"21364","Model":"Accent","ModelID":"2773","ModelYear":"2020","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight: 2,502 to 2,701 lbs","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"TIJUANA","PlantCompanyName":"Kia Motors Mexico S.A. De C.V. (KMM)","PlantCountry":"MEXICO","PlantState":"","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"Direct","TopSpeedMPH":"","TrackWidth":"","TractionControl":"","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"SE and SEL","Trim2":"","Turbo":"","VIN":"3KPC24A67LE094049","ValveTrainDesign":"Dual Overhead Cam (DOHC)","VehicleDescriptor":"3KPC24A6*LE","VehicleType":"PASSENGER CAR","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null},"pristine":{"values":{"ABS":"","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"1st and 2nd Rows","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"1st Row (Driver and Passenger)","AutoReverseSystem":"","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"Not Applicable","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"Not Applicable","BodyClass":"Sedan/Saloon","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"2701","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"1600.0","DisplacementCI":"97.63799055157","DisplacementL":"1.6","Doors":"4","DriveType":"","DriverAssist":"","DynamicBrakeSupport":"","EDR":"","ESC":"","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"4","EngineHP":"120","EngineHP_to":"","EngineKW":"","EngineManufacturer":"HMC","EngineModel":"1.6L DOHC MPI GAMMA II","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"","FuelInjectionType":"Multipoint Fuel Injection (MPFI)","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1: 6,000 lb or less (2,722 kg or less)","GVWR_to":"Class 1: 6,000 lb or less (2,722 kg or less)","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"HYUNDAI","MakeID":"498","Manufacturer":"KIA MEXICO S.A. DE C.V.","ManufacturerId":"21364","Model":"Accent","ModelID":"2773","ModelYear":"2020","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"Curb Weight: 2,502 to 2,701 lbs","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"TIJUANA","PlantCompanyName":"Kia Motors Mexico S.A. De C.V. (KMM)","PlantCountry":"MEXICO","PlantState":"","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"Direct","TopSpeedMPH":"","TrackWidth":"","TractionControl":"","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"SE and SEL","Trim2":"","Turbo":"","VIN":"3KPC24A67LE094049","ValveTrainDesign":"Dual Overhead Cam (DOHC)","VehicleDescriptor":"3KPC24A6*LE","VehicleType":"PASSENGER CAR","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null}},"1C4PJXDG7VW100001":{"fixed":{"values":{"ABS":"Standard","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"All Rows","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"","BodyClass":"Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]","BrakeSystemDesc":"","BrakeSystemType":"Hydraulic","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"3600.0","DisplacementCI":"219.68547874103","DisplacementL":"3.6","Doors":"4","DriveType":"4WD/4-Wheel Drive/4x4","DriverAssist":"","DynamicBrakeSupport":"","EDR":"Standard","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"V-Shaped","EngineCycles":"","EngineCylinders":"6","EngineHP":"285","EngineHP_to":"","EngineKW":"","EngineManufacturer":"STLA","EngineModel":"","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","GVWR_to":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"JEEP","MakeID":"483","Manufacturer":"FCA US LLC","ManufacturerId":"994","Model":"Wrangler","ModelID":"1943","ModelYear":"2027","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Active Belts","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"TOLEDO","PlantCompanyName":"Toledo North Assembly","PlantCountry":"UNITED STATES (USA)","PlantState":"OHIO","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"Open Body Style","SteeringLocation":"Left-Hand Drive (LHD)","SuggestedVIN":"","TPMS":"","TopSpeedMPH":"","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"Sport","Trim2":"","Turbo":"","VIN":"1C4PJXDG7VW100001","ValveTrainDesign":"","VehicleDescriptor":"1C4PJXDG*VW","VehicleType":"MULTIPURPOSE PASSENGER VEHICLE (MPV)","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null},"pristine":{"values":{"ABS":"Standard","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"","AirBagLocCurtain":"","AirBagLocFront":"1st Row (Driver and Passenger)","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"All Rows","AutoReverseSystem":"Standard","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"","BodyClass":"Sport Utility Vehicle [SUV]/Multipurpose Vehicle [MPV]","BrakeSystemDesc":"","BrakeSystemType":"Hydraulic","BusFloorConfigType":"Not Applicable","BusLength":"","BusType":"Not Applicable","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"","CustomMotorcycleType":"Not Applicable","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"3600.0","DisplacementCI":"219.68547874103","DisplacementL":"3.6","Doors":"4","DriveType":"4WD/4-Wheel Drive/4x4","DriverAssist":"","DynamicBrakeSupport":"","EDR":"Standard","ESC":"Standard","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"V-Shaped","EngineCycles":"","EngineCylinders":"6","EngineHP":"285","EngineHP_to":"","EngineKW":"","EngineManufacturer":"STLA","EngineModel":"","EntertainmentSystem":"","ErrorCode":"0","ErrorText":"0 - VIN decoded clean. Check Digit (9th position) is correct","ForwardCollisionWarning":"","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"Gasoline","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","GVWR_to":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"JEEP","MakeID":"483","Manufacturer":"FCA US LLC","ManufacturerId":"994","Model":"Wrangler","ModelID":"1943","ModelYear":"2027","MotorcycleChassisType":"Not Applicable","MotorcycleSuspensionType":"Not Applicable","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"Active Belts","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"TOLEDO","PlantCompanyName":"Toledo North Assembly","PlantCountry":"UNITED STATES (USA)","PlantState":"OHIO","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"Standard","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"Manual","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"Open Body Style","SteeringLocation":"Left-Hand Drive (LHD)","SuggestedVIN":"","TPMS":"","TopSpeedMPH":"","TrackWidth":"","TractionControl":"Standard","TrailerBodyType":"Not Applicable","TrailerLength":"","TrailerType":"Not Applicable","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"Sport","Trim2":"","Turbo":"","VIN":"1C4PJXDG7VW100001","ValveTrainDesign":"","VehicleDescriptor":"1C4PJXDG*VW","VehicleType":"MULTIPURPOSE PASSENGER VEHICLE (MPV)","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null}},"1ZZAB1236C1234567":{"fixed":{"values":{"ABS":"","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"The Model Year decoded for this VIN may be incorrect. If you know the Model year, please enter it and decode again to get more accurate information.","AirBagLocCurtain":"","AirBagLocFront":"","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"","AutoReverseSystem":"","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"","BodyClass":"","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"","BusLength":"","BusType":"","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"","CustomMotorcycleType":"","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"","DisplacementCI":"","DisplacementL":"","Doors":"","DriveType":"","DriverAssist":"","DynamicBrakeSupport":"","EDR":"","ESC":"","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"","EngineHP":"","EngineHP_to":"","EngineKW":"","EngineManufacturer":"","EngineModel":"","EntertainmentSystem":"","ErrorCode":"7","ErrorText":"7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information","ForwardCollisionWarning":"","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"","GVWR_to":"","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"","MakeID":"","Manufacturer":"","ManufacturerId":"","Model":"","ModelID":"","ModelYear":"","MotorcycleChassisType":"","MotorcycleSuspensionType":"","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"","PlantCompanyName":"","PlantCountry":"","PlantState":"","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"","TopSpeedMPH":"","TrackWidth":"","TractionControl":"","TrailerBodyType":"","TrailerLength":"","TrailerType":"","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"","Trim2":"","Turbo":"","VIN":"1ZZAB1236C1234567","ValveTrainDesign":"","VehicleDescriptor":"1ZZAB123*C1","VehicleType":"","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null},"pristine":{"values":{"ABS":"","ActiveSafetySysNote":"","AdaptiveCruiseControl":"","AdaptiveDrivingBeam":"","AdaptiveHeadlights":"","AdditionalErrorText":"The Model Year decoded for this VIN may be incorrect. If you know the Model year, please enter it and decode again to get more accurate information.","AirBagLocCurtain":"","AirBagLocFront":"","AirBagLocKnee":"","AirBagLocSeatCushion":"","AirBagLocSide":"","AutoReverseSystem":"","AutomaticPedestrianAlertingSound":"","AxleConfiguration":"","Axles":"","BasePrice":"","BatteryA":"","BatteryA_to":"","BatteryCells":"","BatteryInfo":"","BatteryKWh":"","BatteryKWh_to":"","BatteryModules":"","BatteryPacks":"","BatteryType":"","BatteryV":"","BatteryV_to":"","BedLengthIN":"","BedType":"","BlindSpotIntervention":"","BlindSpotMon":"","BodyCabType":"","BodyClass":"","BrakeSystemDesc":"","BrakeSystemType":"","BusFloorConfigType":"","BusLength":"","BusType":"","CAN_AACN":"","CIB":"","CashForClunkers":"","ChargerLevel":"","ChargerPowerKW":"","CombinedBrakingSystem":"","CoolingType":"","CurbWeightLB":"","CustomMotorcycleType":"","DaytimeRunningLight":"","DestinationMarket":"","DisplacementCC":"","DisplacementCI":"","DisplacementL":"","Doors":"","DriveType":"","DriverAssist":"","DynamicBrakeSupport":"","EDR":"","ESC":"","EVDriveUnit":"","ElectrificationLevel":"","EngineConfiguration":"","EngineCycles":"","EngineCylinders":"","EngineHP":"","EngineHP_to":"","EngineKW":"","EngineManufacturer":"","EngineModel":"","EntertainmentSystem":"","ErrorCode":"7","ErrorText":"7 - Manufacturer is not registered with NHTSA for sale or importation in the U.S. for use on U.S roads; Please contact the manufacturer directly for more information","ForwardCollisionWarning":"","FuelInjectionType":"","FuelTankMaterial":"","FuelTankType":"","FuelTypePrimary":"","FuelTypeSecondary":"","GCWR":"","GCWR_to":"","GVWR":"","GVWR_to":"","KeylessIgnition":"","LaneCenteringAssistance":"","LaneDepartureWarning":"","LaneKeepSystem":"","LowerBeamHeadlampLightSource":"","Make":"","MakeID":"","Manufacturer":"","ManufacturerId":"","Model":"","ModelID":"","ModelYear":"","MotorcycleChassisType":"","MotorcycleSuspensionType":"","NCSABodyType":"","NCSAMake":"","NCSAMapExcApprovedBy":"","NCSAMapExcApprovedOn":"","NCSAMappingException":"","NCSAModel":"","NCSANote":"","NonLandUse":"","Note":"","OtherBusInfo":"","OtherEngineInfo":"","OtherMotorcycleInfo":"","OtherRestraintSystemInfo":"","OtherTrailerInfo":"","ParkAssist":"","PedestrianAutomaticEmergencyBraking":"","PlantCity":"","PlantCompanyName":"","PlantCountry":"","PlantState":"","PossibleValues":"","Pretensioner":"","RearAutomaticEmergencyBraking":"","RearCrossTrafficAlert":"","RearVisibilitySystem":"","SAEAutomationLevel":"","SAEAutomationLevel_to":"","SeatBeltsAll":"","SeatRows":"","Seats":"","SemiautomaticHeadlampBeamSwitching":"","Series":"","Series2":"","SteeringLocation":"","SuggestedVIN":"","TPMS":"","TopSpeedMPH":"","TrackWidth":"","TractionControl":"","TrailerBodyType":"","TrailerLength":"","TrailerType":"","TransmissionSpeeds":"","TransmissionStyle":"","Trim":"","Trim2":"","Turbo":"","VIN":"1ZZAB1236C1234567","ValveTrainDesign":"","VehicleDescriptor":"1ZZAB123*C1","VehicleType":"","WheelBaseLong":"","WheelBaseShort":"","WheelBaseType":"","WheelSizeFront":"","WheelSizeRear":"","WheelieMitigation":"","Wheels":"","Windows":""},"rule_fixes":null}}}} diff --git a/tests/vpic-local.test.mjs b/tests/vpic-local.test.mjs new file mode 100644 index 0000000..95a4927 --- /dev/null +++ b/tests/vpic-local.test.mjs @@ -0,0 +1,204 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import {mkdtempSync, readFileSync, rmSync} from 'node:fs'; +import {tmpdir} from 'node:os'; +import {join} from 'node:path'; +import {buildFixtureDb} from '../scripts/make-vpic-fixture.mjs'; +import {checkRuleFixes} from '../scripts/check-vpic-rule-fixes.mjs'; +import {decodeLocal, closeVpicLocal, LIVE_VALUE_KEYS} from '../lib/vpic-local.mjs'; +import {decodeVin, batchDecode, localFallbackReason, DECODE_SOURCE_LOCAL, DECODE_SOURCE_LIVE} from '../lib/nhtsa.mjs'; +import {checkDecode, checkedDecode, officialDecode, patternKey, PRECEDENCE} from '../lib/decode-checks.mjs'; +import {compactDecodeChecks, decodedFromReport} from '../lib/decode-report.mjs'; +import {summarize} from '../lib/decode-epa.mjs'; +import {specificationsProvenance} from '../lib/reports.mjs'; + +// tests/fixtures/vpic-mini.json: the rows of NHTSA release 2026_11 (with mcp.vin's rule fixes) that these VINs read, +// cut by scripts/make-vpic-fixture.mjs, with the full release's decode of each VIN. +const FIXTURE = JSON.parse(readFileSync(new URL('./fixtures/vpic-mini.json', import.meta.url), 'utf8')); +const NOW = new Date(FIXTURE.now); +const ATLAS = '1V2BR2CA3JC513174'; // 2018 Atlas Launch Edition FWD, NHTSA test vehicle: rule fix rf-008 +const GR = 'JTNABAAE3PA004901'; // 2023 GR Corolla, NHTSA test vehicle: rule fix rf-023 +const ACCENT = '3KPC24A67LE094049'; // 2020 Accent, NHTSA test vehicle: no fix +const WRANGLER27 = '1C4PJXDG7VW100001'; // synthetic 2027 Wrangler: model year newer than the release +const UNKNOWN = '1ZZAB1236C1234567'; // synthetic, WMI not in the release +const dir = mkdtempSync(join(tmpdir(), 'vpic-local-test-')); +const DB = buildFixtureDb(FIXTURE, join(dir, 'vpic.db')); +test.after(() => { closeVpicLocal(); rmSync(dir, {recursive: true, force: true}); }); + +const noNetwork = () => { throw new Error('no network call expected'); }; +/** A fetch that answers DecodeVinValues / DecodeVINValuesBatch like the live API and records the calls. */ +function liveApi(answers) { + const calls = []; + const fetch = async (url, init = {}) => { + calls.push({url: String(url), body: init.body ?? null}); + let vins; + if (String(url).includes('DecodeVINValuesBatch')) vins = new URLSearchParams(init.body).get('DATA').split(';').map(s => s.replace(/,$/, '')); + else vins = [decodeURIComponent(String(url).match(/DecodeVinValues\/([^?]+)/)[1])]; + const Results = vins.reverse().map(v => answers[v] && {VIN: v, ...answers[v]}).filter(Boolean); // reversed: answers are matched by VIN + return {ok: true, status: 200, json: async () => ({Count: Results.length, Results})}; + }; + return {fetch, calls}; +} +const LIVE_WRANGLER = {ModelYear: '2027', Make: 'JEEP', Model: 'Wrangler', DriveType: '4WD/4-Wheel Drive/4x4', ErrorCode: '0'}; +const LIVE_UNKNOWN = {ModelYear: '', Make: '', Model: '', ErrorCode: '7', ErrorText: '7 - Manufacturer is not registered with NHTSA'}; + +test('the fixture decodes exactly as the full release did, on fixed and on NHTSA\'s pristine rules', () => { + for (const vin of FIXTURE.vins) { + for (const rules of ['fixed', 'pristine']) { + const d = decodeLocal(vin, {file: DB, rules, now: NOW}); + assert.equal(d.available, true, vin); + assert.deepEqual(d.values, FIXTURE.expected[vin][rules].values, `${vin} ${rules}`); + assert.deepEqual(d.rule_fixes, FIXTURE.expected[vin][rules].rule_fixes, `${vin} ${rules} rule_fixes`); + } + } +}); + +test('flat values have the live API\'s DecodeVinValues keys, all strings, blank as \'\'', () => { + const d = decodeLocal(ACCENT, {file: DB, now: NOW}); + assert.deepEqual(Object.keys(d.values), [...LIVE_VALUE_KEYS]); + assert.equal(LIVE_VALUE_KEYS.length, 154); + assert.ok(Object.values(d.values).every(v => typeof v === 'string')); + assert.equal(d.values.VIN, ACCENT); assert.equal(d.values.ModelYear, '2020'); assert.equal(d.values.Make, 'HYUNDAI'); + assert.equal(d.release, '2026_11'); assert.equal(d.rules, 'fixed'); assert.equal(d.rule_fixes, null); + assert.equal(decodeLocal(ACCENT, {file: join(dir, 'missing.db')}).reason, 'dataset_not_indexed'); + assert.equal(decodeLocal(ACCENT, {file: DB, rules: 'other'}).available, false); +}); + +test('a rule fix gives our value and discloses NHTSA\'s official one, the fix, its reason and evidence', () => { + const fixed = decodeLocal(ATLAS, {file: DB, now: NOW}), pristine = decodeLocal(ATLAS, {file: DB, rules: 'pristine', now: NOW}); + assert.equal(fixed.values.DriveType, 'FWD/Front-Wheel Drive'); + assert.equal(pristine.values.DriveType, 'AWD/All-Wheel Drive'); + assert.equal(pristine.rule_fixes, null); + assert.deepEqual(fixed.rule_fixes.changed, [{field: 'DriveType', official_value: 'AWD/All-Wheel Drive', value: 'FWD/Front-Wheel Drive', fix_ids: ['rf-008']}]); + const f = fixed.rule_fixes.fixes[0]; + assert.equal(f.id, 'rf-008'); assert.equal(f.written_against, '2026_11'); assert.match(f.reason, /Launch/); + assert.ok(f.evidence.length && f.evidence.every(e => /^https:\/\/nrd-static\.nhtsa\.dot\.gov\//.test(e.url))); + // only the fixed field differs between the two rule views + assert.deepEqual(Object.keys(fixed.values).filter(k => fixed.values[k] !== pristine.values[k]), ['DriveType']); + const gr = decodeLocal(GR, {file: DB, now: NOW}); + assert.equal(gr.values.TransmissionStyle, 'Manual/Standard'); + assert.equal(gr.rule_fixes.changed[0].official_value, 'Continuously Variable Transmission (CVT)'); +}); + +test('the changeset\'s own checks pass on the fixture (rf-008, rf-023)', () => { + const res = checkRuleFixes({db: DB, ids: ['rf-008', 'rf-023']}); + assert.deepEqual(res.map(r => [r.id, r.status]), [['rf-008', 'ok'], ['rf-023', 'ok']]); +}); + +test('decodeVin decodes locally first: no network, provenance names the release and the rule fixes', async () => { + const d = await decodeVin(ATLAS, {vpicFile: DB, fetch: noNetwork, now: NOW}); + assert.equal(d.decode_source.source, DECODE_SOURCE_LOCAL); + assert.equal(d.decode_source.vpic_release, '2026_11'); assert.equal(d.decode_source.fallback_reason, null); + assert.equal(d.decode_source.rules, 'nhtsa_with_mcp_vin_rule_fixes'); assert.equal(d.decode_source.rule_fixes_changed_this_vin, true); + assert.equal(d.transmission.drive_type, 'FWD/Front-Wheel Drive'); assert.equal(d.raw.DriveType, 'FWD/Front-Wheel Drive'); + assert.equal(d.vpic_rule_fixes.changed[0].official_value, 'AWD/All-Wheel Drive'); + assert.equal(officialDecode(d).transmission.drive_type, 'AWD/All-Wheel Drive'); + assert.equal(officialDecode(d).raw.DriveType, 'AWD/All-Wheel Drive'); + assert.match(specificationsProvenance(d), /release 2026_11, with \d+ reviewed mcp\.vin fixes/); + const accent = await decodeVin(ACCENT, {vpicFile: DB, fetch: noNetwork, now: NOW}); + assert.equal(accent.decode_source.rule_fixes_changed_this_vin, false); assert.equal(accent.vpic_rule_fixes, undefined); +}); + +test('fallback to the live API: unknown WMI, model year newer than the release, no dataset, decoder off', async () => { + const local = v => decodeLocal(v, {file: DB, now: NOW}); + assert.equal(localFallbackReason(local(UNKNOWN)), 'wmi_unknown'); + assert.equal(localFallbackReason(local(WRANGLER27)), 'model_year_newer_than_release'); + assert.equal(localFallbackReason(local(ACCENT)), null); + assert.equal(localFallbackReason({available: true, release: '2026_11', values: {ErrorCode: '0', Model: '', ModelYear: '2020'}}), 'no_model'); + assert.equal(localFallbackReason(null), 'dataset_not_indexed'); + const api = liveApi({[WRANGLER27]: LIVE_WRANGLER, [UNKNOWN]: LIVE_UNKNOWN, [ACCENT]: {ModelYear: '2020', Make: 'HYUNDAI', Model: 'Accent'}}); + let d = await decodeVin(WRANGLER27, {vpicFile: DB, fetch: api.fetch, now: NOW}); + assert.equal(d.decode_source.source, DECODE_SOURCE_LIVE); assert.equal(d.decode_source.fallback_reason, 'model_year_newer_than_release'); + assert.equal(d.decode_source.local_vpic_release, '2026_11'); assert.equal(d.vehicle.model, 'Wrangler'); + assert.match(api.calls[0].url, /DecodeVinValues\/1C4PJXDG7VW100001\?format=json$/); + d = await decodeVin(UNKNOWN, {vpicFile: DB, fetch: api.fetch, now: NOW}); + assert.equal(d.decode_source.fallback_reason, 'wmi_unknown'); + d = await decodeVin(ACCENT, {vpicFile: join(dir, 'missing.db'), fetch: api.fetch, now: NOW}); + assert.equal(d.decode_source.source, DECODE_SOURCE_LIVE); assert.equal(d.decode_source.fallback_reason, 'dataset_not_indexed'); + d = await decodeVin(ACCENT, {vpicFile: null, fetch: api.fetch, now: NOW}); + assert.equal(d.decode_source.fallback_reason, 'local_decoder_off'); + assert.equal(api.calls.length, 4); + // the live API failing on a fallback: the local decode, saying so; nothing at all without a dataset + const down = async () => ({ok: false, status: 503, json: async () => ({})}); + d = await decodeVin(WRANGLER27, {vpicFile: DB, fetch: down, now: NOW}); + assert.equal(d.decode_source.source, DECODE_SOURCE_LOCAL); assert.equal(d.decode_source.live_api, 'failed'); + assert.equal(d.decode_source.fallback_reason, 'model_year_newer_than_release'); assert.equal(d.vehicle.model, 'Wrangler'); + assert.equal(await decodeVin(ACCENT, {vpicFile: join(dir, 'missing.db'), fetch: down}), null); +}); + +test('batchDecode: local where it can, one live request for the rest, answers matched by VIN', async () => { + const api = liveApi({[WRANGLER27]: LIVE_WRANGLER, [UNKNOWN]: LIVE_UNKNOWN}); + const res = await batchDecode([ATLAS, WRANGLER27, ACCENT, UNKNOWN], {vpicFile: DB, fetch: api.fetch, now: NOW}); + assert.equal(api.calls.length, 1); + assert.equal(new URLSearchParams(api.calls[0].body).get('DATA'), `${WRANGLER27},;${UNKNOWN},`); + assert.deepEqual(res.map(r => r.decode_source.source), [DECODE_SOURCE_LOCAL, DECODE_SOURCE_LIVE, DECODE_SOURCE_LOCAL, DECODE_SOURCE_LIVE]); + assert.equal(res[1].vehicle.model, 'Wrangler'); assert.equal(res[3].raw.ErrorCode, '7'); + assert.equal(res[0].transmission.drive_type, 'FWD/Front-Wheel Drive'); assert.ok(res[0].vpic_rule_fixes); + // all local: no request at all + const none = liveApi({}); + await batchDecode([ATLAS, ACCENT], {vpicFile: DB, fetch: none.fetch, now: NOW}); + assert.equal(none.calls.length, 0); +}); + +const evidence = (vin, vehicles = []) => ({available: true, pattern: patternKey(vin), vehicles}); +const field = (r, f) => r.fields.find(x => x.field === f); + +test('decode checks: a rule fix corrects the field (basis mcp.vin rule fix), keeps NHTSA\'s value, below owner and manufacturer', async () => { + assert.deepEqual(PRECEDENCE, ['owner', 'manufacturer_vin_record', 'mcp_vin_rule_fix', 'nhtsa_test_vehicle_pattern', 'vpic_decode', 'assumption']); + const d = await decodeVin(ATLAS, {vpicFile: DB, fetch: noNetwork, now: NOW}); + // two test vehicles that say all-wheel drive do not outrank the reviewed fix + const tvAll = {vin: ATLAS, model_year: 2018, title: 'test', tests: [{test_no: 1, report_url: 'https://nrd-static.nhtsa.dot.gov/reports/x.pdf'}], values: {drive: {value: 'all', sources: ['data sheet']}}}; + let r = checkDecode(d, {vin: ATLAS, evidence: evidence(ATLAS, [tvAll, tvAll]), epa: null}); + let x = field(r, 'drive'); + assert.equal(x.status, 'corrected'); assert.equal(x.basis, 'mcp_vin_rule_fix'); assert.equal(x.rule, 'mcp_vin_rule_fix'); + assert.equal(x.original, 'AWD/All-Wheel Drive'); assert.equal(x.original_value, 'all'); assert.equal(x.shown_value, 'front'); + assert.equal(x.matching, 'checked_value'); + assert.match(x.note, /mcp\.vin rule fix .* gives front-wheel drive; the official decode says all-wheel or four-wheel drive\. .*Launch/); + assert.deepEqual(x.evidence.rule_fix.changed, [{field: 'DriveType', official_value: 'AWD/All-Wheel Drive', value: 'FWD/Front-Wheel Drive'}]); + assert.equal(x.evidence.rule_fix.fixes[0].id, 'rf-008'); + assert.deepEqual(x.candidates.map(c => c.tier), ['mcp_vin_rule_fix', 'nhtsa_test_vehicle_pattern', 'vpic_decode']); + assert.deepEqual(r.sources.rule_fixes.ids, ['rf-008']); assert.equal(r.sources.rule_fixes.status, 'used'); + assert.equal(checkedDecode(d, r).transmission.drive_type, 'FWD/Front-Wheel Drive'); + const c = compactDecodeChecks(r).fields.find(f => f.field === 'drive'); + assert.equal(c.official, 'AWD/All-Wheel Drive'); assert.deepEqual(c.rule_fixes, ['rf-008']); assert.match(c.fix_reports[0], /^https:\/\/nrd-static/); + // the owner outranks the fix (the fix stays listed) + r = checkDecode(d, {vin: ATLAS, evidence: evidence(ATLAS), epa: null, owner: {drive: 'awd'}}); + x = field(r, 'drive'); + assert.equal(x.basis, 'owner'); assert.equal(x.shown_value, 'all'); assert.equal(x.status, 'confirmed'); + assert.ok(x.candidates.some(k => k.tier === 'mcp_vin_rule_fix' && k.value === 'front')); + // a report rebuilt from its JSON checks the same way (raw_nhtsa is NHTSA's official decode) + const report = {vehicle: d.vehicle, engine: d.engine, transmission: d.transmission, dimensions: d.dimensions, plant: d.plant, safety_equipment: d.safety, + raw_nhtsa: officialDecode(d).raw, decode_source: d.decode_source, vpic_rule_fixes: d.vpic_rule_fixes}; + assert.equal(report.raw_nhtsa.DriveType, 'AWD/All-Wheel Drive'); + const again = checkDecode(decodedFromReport(report), {vin: ATLAS, evidence: evidence(ATLAS), epa: null}); + assert.equal(field(again, 'drive').basis, 'mcp_vin_rule_fix'); assert.equal(field(again, 'drive').original, 'AWD/All-Wheel Drive'); + // a live-API decode gets no rule fix, and says so + const live = await decodeVin(WRANGLER27, {vpicFile: DB, fetch: liveApi({[WRANGLER27]: LIVE_WRANGLER}).fetch, now: NOW}); + assert.equal(checkDecode(live, {vin: WRANGLER27, evidence: evidence(WRANGLER27), epa: null}).sources.rule_fixes.status, 'not_applied'); +}); + +const cfg = o => ({id: String(cfg.n = (cfg.n || 0) + 1), model: 'Accent', drive: 'front', size: 1.6, cylinders: 4, powertrain: 'gas', strict: true, ...o}); +const epaOf = configs => ({available: true, basis: 'test', models: ['Accent'], configs, strict: summarize(configs), broad: summarize(configs)}); +const tvManual = n => ({vin: ACCENT, model_year: 2020, title: '2020 Hyundai Accent', tests: [{test_no: 9000 + n, report_url: `https://nrd-static.nhtsa.dot.gov/reports/vehdb/v09000/v${9000 + n}R001.pdf`}], + values: {transmission: {value: 'manual', sources: ['data sheet']}, speeds: {value: 6, sources: ['data sheet']}, drive: {value: 'front', sources: ['data sheet']}}}); + +test('2020 Accent: test vehicles do not settle the transmission when EPA lists manual and automatic; the owner\'s does', async () => { + const d = await decodeVin(ACCENT, {vpicFile: DB, fetch: noNetwork, now: NOW}); + assert.equal(d.transmission.type, null); assert.equal(d.transmission.speeds, null); // vPIC leaves both blank + const both = epaOf([cfg({transmission: 'manual', speeds: 6}), cfg({transmission: 'cvt', speeds: null})]); + let r = checkDecode(d, {vin: ACCENT, evidence: evidence(ACCENT, [tvManual(1), tvManual(2)]), epa: both}); + for (const k of ['transmission', 'speeds']) { + const x = field(r, k); + assert.equal(x.status, 'unverified', k); assert.equal(x.shown_value, null, k); assert.equal(x.rule, 'test_vehicle_not_settled', k); + assert.equal(x.matching, 'official_value', k); + assert.match(x.note, /EPA lists both manual and automatic transmissions/); + } + assert.equal(checkedDecode(d, r).transmission.type, null); + // EPA lists only the manual: the test vehicles fill it (control) + r = checkDecode(d, {vin: ACCENT, evidence: evidence(ACCENT, [tvManual(1), tvManual(2)]), epa: epaOf([cfg({transmission: 'manual', speeds: 6})])}); + assert.equal(field(r, 'transmission').status, 'filled'); assert.equal(field(r, 'transmission').shown_value, 'manual'); + // the owner states the gearbox: used + r = checkDecode(d, {vin: ACCENT, evidence: evidence(ACCENT, [tvManual(1), tvManual(2)]), epa: both, owner: {transmission: 'cvt'}}); + assert.equal(field(r, 'transmission').basis, 'owner'); assert.equal(field(r, 'transmission').status, 'filled'); assert.equal(field(r, 'transmission').shown_value, 'cvt'); + assert.equal(checkedDecode(d, r).transmission.type, 'Continuously Variable Transmission (CVT)'); +}); diff --git a/tests/vpic_import_test.py b/tests/vpic_import_test.py new file mode 100644 index 0000000..eb7811e --- /dev/null +++ b/tests/vpic_import_test.py @@ -0,0 +1,122 @@ +"""The rule-fix step of scripts/import-vpic.py on the small fixture (tests/fixtures/vpic-mini.json): applying the +reviewed changeset, refusing an entry whose NHTSA row changed (reported, exit 4), and undoing the fixes exactly.""" +import importlib.util, json, pathlib, sqlite3, subprocess, sys, tempfile, unittest + +ROOT = pathlib.Path(__file__).resolve().parents[1] +spec = importlib.util.spec_from_file_location('importer', ROOT / 'scripts/import-vpic.py') +importer = importlib.util.module_from_spec(spec) +spec.loader.exec_module(importer) +FIXTURE = json.loads((ROOT / 'tests/fixtures/vpic-mini.json').read_text()) +CHANGESET = [json.loads(l) for l in (ROOT / 'data-src/vpic-rule-fixes.jsonl').read_text().splitlines() if l.strip()] +BY_ID = {e['id']: e for e in CHANGESET} + + +def build(path): + db = sqlite3.connect(path) + for sql in FIXTURE['schema']: + db.execute(sql) + for t, tab in FIXTURE['tables'].items(): + db.executemany(f"INSERT INTO {t} ({','.join(tab['columns'])}) VALUES ({','.join('?' * len(tab['columns']))})", tab['rows']) + db.commit() + return db + + +def rows(db): + return {'pattern': db.execute('SELECT * FROM pattern ORDER BY id').fetchall(), 'spec': db.execute('SELECT * FROM spec_pattern ORDER BY id').fetchall()} + + +class RuleFixTest(unittest.TestCase): + def setUp(self): + self.tmp = tempfile.TemporaryDirectory() + self.dir = pathlib.Path(self.tmp.name) + self.db = build(self.dir / 'vpic.db') + + def tearDown(self): + self.db.close() + self.tmp.cleanup() + + def write(self, entries, name='fixes.jsonl'): + p = self.dir / name + p.write_text(''.join(json.dumps(e) + '\n' for e in entries)) + return p + + def test_revert_then_apply_gives_the_same_tables(self): + fixed = rows(self.db) + importer.revert_rule_fixes(self.db) + pristine = rows(self.db) + self.assertFalse(any(r[0] < 0 for r in pristine['pattern']), 'added rows are gone on NHTSA\'s rules') + # the Atlas premise row and the GR Corolla spec row are NHTSA's own and untouched either way + self.assertIn((14854,), [(r[0],) for r in pristine['spec']]) + out = importer.apply_rule_fixes(self.db, self.write([BY_ID['rf-008'], BY_ID['rf-023']]), '2026_11') + self.assertEqual(out['summary']['applied'], 2) + self.assertEqual(out['summary']['needs_review'], 0) + self.assertEqual(rows(self.db), fixed) + new = self.db.execute('SELECT schema_id, keys, attribute_id FROM pattern WHERE id = -103').fetchone() + self.assertEqual(new, (15825, 'B**CA', '1')) + rec = self.db.execute("SELECT action, tbl, row_id FROM rule_fix WHERE fix_id = 'rf-008'").fetchall() + self.assertEqual(rec, [('add', 'pattern', -103)]) + + def test_an_entry_whose_nhtsa_row_changed_is_not_applied_and_is_reported(self): + importer.revert_rule_fixes(self.db) + # NHTSA changes the vehicle-spec row the Atlas fix relies on (Launch Model AWD -> 4WD) + self.db.execute("UPDATE spec_pattern SET attribute_id = '2' WHERE id = 14854") + before = rows(self.db) + out = importer.apply_rule_fixes(self.db, self.write([BY_ID['rf-008'], BY_ID['rf-023']]), '2026_11') + self.assertEqual(out['summary']['applied'], 1) + self.assertEqual(out['summary']['needs_review'], 1) + stale = [e for e in out['entries'] if e['status'] == 'needs_review'] + self.assertEqual(stale[0]['id'], 'rf-008') + self.assertIn('spec_pattern row 14854 changed', stale[0]['problems'][0]) + self.assertIsNone(self.db.execute('SELECT 1 FROM pattern WHERE id = -103').fetchone(), 'nothing of a stale entry is applied') + self.assertNotEqual(rows(self.db)['pattern'], before['pattern']) # rf-023 did apply + st = self.db.execute("SELECT status, problem FROM rule_fix_entry WHERE fix_id = 'rf-008'").fetchone() + self.assertEqual(st[0], 'needs_review') + # a modified row whose value NHTSA already corrected is reported too + e = json.loads(json.dumps(BY_ID['rf-023'])) + e['id'] = 'rf-900' + e['edits'][0]['new']['id'] = -900 + e['premise'][0]['row']['attribute_id'] = '3' + out = importer.apply_rule_fixes(self.db, self.write([e], 'b.jsonl'), '2026_11') + self.assertEqual(out['summary']['needs_review'], 1) + + def test_cli_exit_4_and_report_for_review(self): + self.db.close() + stale = json.loads(json.dumps(BY_ID['rf-023'])) + stale['premise'][0]['row']['attribute_id'] = '3' # written against another value than the release has + p = self.write([BY_ID['rf-008'], stale]) + r = subprocess.run([sys.executable, str(ROOT / 'scripts/import-vpic.py'), '--reapply-rule-fixes', str(self.dir / 'vpic.db'), '--rule-fixes', str(p)], + capture_output=True, text=True) + self.assertEqual(r.returncode, 4, r.stderr) + self.assertIn('RULE FIX NEEDS REVIEW rf-023', r.stderr) + db = sqlite3.connect(self.dir / 'vpic.db') + self.assertEqual(db.execute("SELECT fix_id, status FROM rule_fix_entry ORDER BY fix_id").fetchall(), [('rf-008', 'applied'), ('rf-023', 'needs_review')]) + self.assertEqual(json.loads(db.execute("SELECT value FROM meta WHERE key = 'rule_fixes'").fetchone()[0])['needs_review'], 1) + db.close() + self.db = sqlite3.connect(self.dir / 'vpic.db') + + def test_malformed_changeset_is_refused(self): + bad = dict(BY_ID['rf-008']) + del bad['reason'] + with self.assertRaises(SystemExit): + importer.apply_rule_fixes(self.db, self.write([bad]), '2026_11') + dup = [BY_ID['rf-008'], BY_ID['rf-008']] + importer.revert_rule_fixes(self.db) + with self.assertRaises(SystemExit): + importer.apply_rule_fixes(self.db, self.write(dup, 'dup.jsonl'), '2026_11') + + def test_every_entry_is_complete_and_names_its_rows(self): + for e in CHANGESET: + for k in ('id', 'release', 'case', 'errors', 'edits', 'reason', 'evidence', 'reviewed', 'checks'): + self.assertTrue(e.get(k), f"{e.get('id')}: {k}") + for ed in e['edits']: + src = ed.get('row') or ed.get('new') + self.assertIn(ed['action'], ('modify', 'delete', 'add')) + self.assertTrue(src.get('element') and str(src.get('attribute_id')), e['id']) + if ed['action'] == 'add': + self.assertLess(src['id'], 0) + for v in e['evidence']: + self.assertRegex(v['url'], r'^https://(nrd-static\.nhtsa\.dot\.gov|static\.nhtsa\.gov)/') + + +if __name__ == '__main__': + unittest.main()