""" Static reference cases for the TraceScene demo. Sourced from deployment_ui_only/js/alt_app.js """ REFERENCE_CASES = { 9001: { "case": { "id": 9001, "case_number": "REF-2026-042", "officer_name": "Sgt. Miller", "location": "Hwy 101 N", "incident_date": "2026-03-01", "status": "complete", "created_at": "2026-03-01T08:14:00Z", "is_reference": True }, "photos": [ {"id": "ref_img_1", "filename": "01a252ba0708_car_8.jpg", "filepath": "images/demo/01a252ba0708_car_8.jpg"}, {"id": "ref_img_2", "filename": "bb7313c8f601_car_10.jpg", "filepath": "images/demo/bb7313c8f601_car_10.jpg"}, {"id": "ref_img_3", "filename": "413495119937_accident_6.jpg", "filepath": "images/demo/413495119937_accident_6.jpg"} ], "analyses": [ { "filename": "01a252ba0708_car_8.jpg", "raw_analysis": """### [AI Observation] - **Vehicles Involved**: 1 - **Vehicle 1 Make/Model**: 2018 Toyota Highlander (Silver SUV) - **Vehicle 1 License Plate**: CA 8XYZ123 - **Vehicle 1 Geographic Location**: California, USA - **Vehicle 1 Owner**: Sarah Jenkins - **Non-vehicle Parties**: None ### [Accident Severity] - **Accident Category**: critical - **Survival/Injury Estimation**: minor injury ### [Condition Assessment] - **Time of Incident**: Day - **Weather**: Clear - **Road Type**: 2-way - **Road Surface**: Dry - **Vehicle 1 Position**: Facing right, near the curb - **Vehicle 1 Tyre Direction**: Straight - **Vehicle 1 Tyre Condition**: Front-Left (Good, 6mm tread), Front-Right (Good, 6mm tread), Rears (Worn, 3mm tread) - **Area of Impact**: Front - **Visible Debris/Skid Marks**: Glass shards and fluid leak near the front bumper - **Airbag/Safety**: Deployed ### [Damage Analysis & Insurance Assessment] - **Front Bumper**: Severe crush damage (Intensity: High). - **Radiator & Core Support**: Destroyed (Intensity: High). - **Right Fender**: Crumpled (Intensity: High). ### [Summary] Severe front-end deformation observed consistent with high-speed frontal impact. Airbags deployed. Vehicle is likely a total loss.""" } ], "violations": [ {"rule_id": "SPEED-001", "rule_title": "Excessive Speed", "severity": "CRITICAL", "confidence": 0.92, "party_label": "Silver SUV", "evidence_summary": "Long skid marks and severe front-end crush profile indicate speeds greater than safe for conditions."}, {"rule_id": "FOLLOW-001", "rule_title": "Following Too Closely (Tailgating)", "severity": "HIGH", "confidence": 0.96, "party_label": "Silver SUV", "evidence_summary": "Impact pattern consistent with rear-ending a leading vehicle without sufficient braking distance."} ], "fault_analysis": { "determined": True, "primary_fault_party": "Silver SUV", "probable_cause": "Following too closely combined with excessive speed.", "fault_distribution_json": {"Silver SUV": 100, "Other": 0}, "overall_confidence": 0.94, "analysis_summary": "Based on severe front-end damage and skid marks, the Silver SUV is entirely at fault for failing to maintain a safe following distance and speed." }, "parties": [ {"label": "Silver SUV", "vehicle_type": "SUV", "vehicle_color": "Silver", "description": "2018 Toyota Highlander"} ] }, 9002: { "case": { "id": 9002, "case_number": "REF-2026-043", "officer_name": "Off. Davis", "location": "Downtown Intersection", "incident_date": "2026-03-02", "status": "complete", "created_at": "2026-03-02T10:30:00Z", "is_reference": True }, "photos": [ {"id": "ref_img_4", "filename": "a358e234c528_accident_scene_2.jpg", "filepath": "images/demo/a358e234c528_accident_scene_2.jpg"}, {"id": "ref_img_5", "filename": "e05bd82a2cfa_accident_9.jpg", "filepath": "images/demo/e05bd82a2cfa_accident_9.jpg"} ], "analyses": [ { "filename": "a358e234c528_accident_scene_2.jpg", "raw_analysis": """### [AI Observation] - **Vehicles Involved**: 2 - **Vehicle 1 Make/Model**: 2020 Honda Civic (Blue Sedan) - **Vehicle 1 License Plate**: TX LMN-4567 - **Vehicle 2 Make/Model**: 2015 Ford F-150 (White Truck) - **Vehicle 2 License Plate**: TX PQR-8910 ### [Accident Severity] - **Accident Category**: medium ### [Summary] T-bone intersection collision. Blue Sedan sustained heavy side impact; White Truck shows front-end damage. Airbags deployed on Blue Sedan.""" } ], "violations": [ {"rule_id": "SIGNAL-001", "rule_title": "Red Light Violation", "severity": "CRITICAL", "confidence": 0.95, "party_label": "White Truck", "evidence_summary": "Point of impact suggests White Truck entered intersection after signal turned red."}, {"rule_id": "MAINT-002", "rule_title": "Defective Tires", "severity": "HIGH", "confidence": 0.88, "party_label": "White Truck", "evidence_summary": "Rear left tire on White Truck is severely worn (bald)."} ], "fault_analysis": { "determined": True, "primary_fault_party": "White Truck", "probable_cause": "Failure to stop at red light.", "fault_distribution_json": {"White Truck": 100, "Blue Sedan": 0}, "overall_confidence": 0.91, "analysis_summary": "White Truck failed to stop for a red signal, directly causing the T-bone collision." }, "parties": [ {"label": "Blue Sedan", "vehicle_type": "Sedan", "vehicle_color": "Blue", "description": "2020 Honda Civic"}, {"label": "White Truck", "vehicle_type": "Truck", "vehicle_color": "White", "description": "2015 Ford F-150"} ] } }