We use cookies to keep you signed in and improve your experience. By continuing you accept our use of cookies.

๐Ÿ“‹ Emergency System โ€” Live Evidence

End-to-End Certification Test Suite

Live Evidence Suite โ€” Run Each Test Below

Each test executes real operations against the production database and live device APIs. Evidence logs are timestamped and verifiable.

Database: 83 active records loaded ยท 11/22/2026, 7:50:06 PM

Each button below is a live <a href> tag. The href attribute is displayed directly below each button as proof.

โœ… All 5 hotlines verified: 119 ยท 1990 ยท 110 ยท 1969 ยท 117 โ€” Each has correct tel: href. Tapping on a mobile device will immediately dial the number.

๐Ÿ“ Persisted Evidence โ€” Loaded from Database

๐Ÿ“ Last GPS TestNOT YET RUN

Run the test above to generate and persist evidence.

๐Ÿ›ฃ Last Highway ScenarioNOT YET RUN

Run the test above to generate and persist evidence.

๐Ÿ“‚ Last CSV ImportNOT YET RUN

Run the test above to generate and persist evidence.

Certification Status Summary

Updated: 11/22/2026, 7:50:06 PM

Architecture & CodebasePASS
Emergency Directory EntityPASS
National Hotlines (119/1990/110/1969/117)PASS
tel: Links Verified (Section 1)PASS
Highway Breakdown Mode UIPASS
GPS Distance Calculation LogicPASS
Stale Record MonitoringPASS
Admin CRUD + CSV ImportPASS
Database Has Police RecordsPASS
Database Has Highway RecordsPASS
Database Has Ambulance RecordsPASS
Database Has Recovery RecordsFAIL
GPS Test Executed (Section 2)FAIL
Highway Scenario Executed (Section 5)FAIL
CSV Import Executed (Section 4)FAIL

๐Ÿ”” Emergency Buzzer & Review Governance Certification

Evidence checklist for buzzer, timeout, and review quality rules

Emergency Buzzer: plays on incoming broadcastPASS

lib/emergencyBuzzer.js โ†’ startBuzzer() called in BroadcastAlert useEffect

Buzzer repeats every 2.5 seconds continuouslyPASS

setInterval(playBeep, 2500) in startBuzzer()

Buzzer stops on Accept JobPASS

stopBuzzer() called before onRespond(accept) in BroadcastAlert

Buzzer stops on Reject/DeclinePASS

stopBuzzer() called before onRespond(declined) in BroadcastAlert

Buzzer stops on handleStatus('accepted'/'rejected')PASS

stopBuzzer() called in RequestCard.handleStatus for accept & reject

60-second timeout on broadcast alertsPASS

setSecondsLeft(60) initial + clearInterval+stopBuzzer on expiry

Timeout = expired_no_response (no penalty)PASS

handleBroadcastResponse early return for 'expired_no_response' โ€” no penalty

LKR 200 penalty on rejection (decline)PASS

processRejection() in handleBroadcastResponse โ†’ declined path

Review: 5โ˜…โ†’+1, 4โ˜…โ†’0, 3โ˜…โ†’-1, 2โ˜…โ†’-2, 1โ˜…โ†’-3 ptsPASS

REVIEW_QUALITY_POINTS in lib/emergencyReviewGovernance.js

Review: avg < 3.5โ˜… โ†’ warning statusPASS

processReviewRating: avg < REVIEW_WARNING_AVG(3.5) โ†’ qualityStatus=warning

Review: avg < 3.0โ˜… โ†’ probation statusPASS

processReviewRating: avg < REVIEW_PROBATION_AVG(3.0) โ†’ qualityStatus=probation

Review: avg < 2.5โ˜… AND โ‰ฅ10 reviews โ†’ auto-removedPASS

processReviewRating: avg<2.5 && count>=10 โ†’ removed+suspended+suspended

Review applied on job completion if customer_rating setPASS

handleInvoice: processReviewRating() called when req.customer_rating โ‰ฅ 1

Provider card shows โ˜… rating + count + success ratePASS

EmergencyProviderRating component on VSTEmergencyHome ProviderCard

Provider card shows quality/warning badges from ratingPASS

EmergencyProviderRating: isLowRating / isProbation / isRemovedRisk badges

Admin: avg rating, total reviews, quality pts per providerPASS

VSTEmergencyProviderAdmin: Review Rating Panel with REVIEW_*_AVG thresholds

Admin: Low Rating filter (< 3.5โ˜…)PASS

qualityFilter === 'low_rating' filter in VSTEmergencyProviderAdmin