Skip to main content

What the UI shows that is not live data

Every value on every Vaazhvu screen that is simulated, estimated, set by hand in config or hardcoded, rather than measured from the live system. Use it before a demonstration or a deployment, so nobody presents a generated number as a real one.

Audited 2026-10-04 on the fix+fake-values branch, across the web apps, the iOS apps and the backend endpoints behind them. Re-checked against main (working tree, including the crew in-app navigation) on 2026-10-04.

Verdicts

VerdictMeaning
SIMULATEDProduced by the simulator (fleet movement, sim clock, patient monitor, demo storylines)
ESTIMATEDInferred from a proxy: an LLM guess, an optimiser, OSM localities, a placeholder default
CONFIGA number set by hand in config/*.yaml; not measured, often not sourced
HARDCODEDWritten into the code
EMPTYThe feature is real but no data has been loaded, so it shows only test traffic
REALMeasured from the live system

The Labelled column says whether the screen tells the user. "no" is a remaining gap (listed in §15).

How the screens label it: SIM (simulated unit, sim-clock ETA, simulated vitals), DEMO (a scripted storyline call), EST (estimated hospital capability or readiness), "estimated" in map tooltips and the map layer list. Every payload that carries a unit now carries position_source (device | last_known | sim), with two exceptions in the crew assignment (GET /units/{id}/assignment): its fleet[] of other ambulances has none, and its own unit sends only device | sim, never last_known; vitals carry source (monitor-sim… = simulator); incidents carry demo and vitals_simulated; escalation and deterioration events carry simulated.


1. Where the fake values come from​

Most entries in the screen tables below trace back to one of these sources. Fix a source and every screen that uses it becomes real.

#SourceWhat it isWhereWhat would make it real
S1Simulated ambulance fleet37 units placed by the MEXCLP optimiser at emergency-profiled hospitals. Not real 108 bases or vehicles. position_source: "sim"backend/app/data/fleet_plan.json, ops/fleet.py, ops/fleet_sources.py (SimulatedPlanSource)EMRI CAD/AVL feed (CadAvlSource, VAAZHVU_AVL_URL), or onboarded private units reporting GPS from the crew app; then VAAZHVU_FLEET_SOURCES=registry,avl
S2Simulated police and fire units8 police units placed on OSM police stations, one fire tender per OSM fire station. No real rosterops/fleet.py, config/fleet.yaml first_respondersPolice and TNFRS rosters
S3Sim clock at 3×Unit movement, every ETA countdown, and the scene and handover timers run at 3 simulated seconds per wall second (was 6×), times the console's ×1 / 2 / 5 / 10 demo playback. A unit placed by a crew phone still counts its ETA down on the sim clock (tr.remaining_sec(sim_time))config/fleet.yaml simulation.speed, ops/sim.pyspeed: 1.0 for a real deployment, together with real crews
S4Automatic job stepsArrival on scene, departure, at hospital and handover are moved forward by sim timers unless a crew taps the status. Simulated units accept job offers instantly ("auto (simulated)")ops/controller.py (on_timer, crew_driven), ops/offers.pyCrews using the crew app
S5Simulated patient monitorVitals (HR, SpO₂, RR, BP, temperature, AVPU, ECG) from vitals/physiology.py, source monitor-sim. These readings drive real NEWS2 escalations and re-routingops/sim.py, ops/controller.py (_new_monitor)Crew-entered or BLE device readings (they stop the simulator for that patient). Switch the simulator off with simulation.vitals: false or VAAZHVU_SIM_VITALS=0
S6Demo storylinesScripted calls (caller msisdn: "demo") and road closures fed through the real pipelineconfig/demo.yaml, OpsController.run_demo, ops/demo.pyNot used in production. Left out of analytics and hotspots
S7LLM-guessed hospital capabilityCath lab, trauma, level and "emergency department" for 7,153 hospitals were guessed by gemma3:4b / deepseek-flash from the OSM name and tagsbackend/app/data/hospital_profiles.json, scripts/profile_hospitals.py, geo/gis.pyOfficial lists (TAEI centres, Idhayam Kaappom hubs, stroke-ready, PREM), the ABDM facility registry, or hospitals correcting their own record. See docs/judge-qa-brief.md §6 (Siddu's area)
S8Hospital load placeholderLoad is assumed 0.5 for every hospital until its ER reports one (or the report ages out). The screens show "—", but dispatch readiness still uses 0.5: acceptance = 1 − 0.6 × 0.5 = 70% (85% for time-critical needs, penalty 0.3), so a capable hospital with no specialty claim always scores 70% ready; specialty claims are further multiplied by the LLM profile's confidence; an unprofiled hospital gets 0.1config/destination.yaml readiness (load_prior, load_penalty, time_critical_load_penalty), dispatch/risk.py (fit: readiness = static × live × accept)ER boards reporting load. The readiness model itself is Nitil's area (docs/dispatch-optimization-research.md §8.3)
S9K-means zonesDemand and coverage zones are K-means clusters of 656 OSM localities, named after the locality nearest the centre. "Demand %" is the cluster's share of localities, not of callsgeo/gis.py (_kmeans_zones)Greater Chennai Corporation wards or 108 service areas as GeoJSON
S10Demand forecast inputscity_calls_per_hour: 40 (the sourced Chennai figure is about 7.6/h, 2018 [R31]); hour_profile is 24 ones (flat, no sourced profile); the spatial prior is locality countsconfig/dispatch.yaml coverage, forecast; ops/forecast.py108 CAD call history (a Poisson model per zone and hour). The call rate is also a J weight (Nitil's area)
S11Coverage busy probabilityMEXCLP q = max(0.35 from config, share of in-service ambulances committed now)config/fleet.yaml busy_fraction, OpsController.busy_q108 unit-status logs
S12Dispatch (J) weightsλ critical 0.015 / urgent 0.003 / non-urgent 0.0003 per min, θ 0.14, κ 0.39 (calibrated by scripts/calibrate from Larsen 1993, TITCO-I and De Luca 2004, but the critical case mix of 20% arrest is assumed and non-urgent is not trainable); specialty-ambulance effect 0.3, ρ 0.5, secondary-transfer penalty 2400 s, scene 600 s, handover 600 s, severity mix 0.2/0.5/0.3 are assumptions or value judgements; readiness priors (0.3 absent, 0.1 unknown, 0.6 / 0.3 load penalty, 0.5 restricted) are [ASSUMPTION]. The old 0.10 / 0.01 / 0.002 and 0.4 now drive only the simulated patient monitor (monitor_hazard_per_min)config/dispatch.yaml (parameter_sources gives each one's source and status), config/destination.yaml readiness, dispatch/risk.pyCalibration plan in docs/dispatch-optimization-research.md §7 (Nitil's area)
S13Empty crash historycrash_history has 0 rows, so hotspots come only from stored calls (mostly test calls)ops/hotspots.pyImport iRAD / blackspot CSVs (scripts/import_irad.py, POST /api/ops/hotspots/import)
S14No live traffic in routingRoad closures exist only when a dispatcher draws one or a demo injects one. The Mappls live-congestion layer is display only: ETAs never use it. Mappls traffic-aware routing (routing/mappls.py) would feed ETAs, but only with VAAZHVU_MAPPLS_KEY set (off by default; unverified against the live API). In that mode dispatch ETAs and the coverage matrix use Mappls durationsOpsController.add_disruption, routing/live_traffic.py, routing/provider.py (default_routing), routing/mappls.pyA traffic-police feed for closures; live congestion in the ETA model
S15Straight-line ETAs without OSRMWith no VAAZHVU_OSRM_URL, ETAs are straight-line distance × 1.25 detour at 11 m/s, the route drawn on the maps is a 3-point line with an invented bend, and crew navigation gets only "head out" and "arrive", no turnsrouting/provider.pyRun OSRM (Docker Compose does)
S16Simulated junction signalsGreen-corridor signals and junction alerts are simulated unless mSiren is configuredops/traffic_police.py, TrafficCorridors.jsxmSiren / traffic-police integration

2. Dispatcher terminal (/)​

Map layers (Shift+L)​

The layer list notes which layers are estimated or simulated.

LayerShowsVerdictLabelled
UnitsAmbulance markers, heading, statusSIMULATED (S1, S3)yes, SIM badge (GPS / LAST / OFF for crew devices)
RoutesUnit routesReal OSRM road shapes, driven by the simulator (S3); straight lines without OSRM (S15)no
ZonesCircles with coverage % and demand %ESTIMATED (S9, S10, S11)yes, "estimated zone" in the tooltip and layer list
Heat (call pressure)Kernel density of recent calls + next-hour forecastReal recent calls blended with a CONFIG baseline (S10). With few calls it mostly shows locality densitypartly (layer list only)
HotspotsTop cells with calls, crashes, peak hoursEMPTY (S13): stored calls only, demo calls excludedyes (layer list)
Closures (traffic)Road closures, drawn as "CLOSED · road" / "SLOW · road" markersManual or demo only (S14)partly: layer list note; "DEMO ·" only in the hover tooltip, the on-map CLOSED label does not say DEMO
Live trafficCongestion on configured corridorsREAL (Mappls) when VAAZHVU_MAPPLS_TRAFFIC_KEY is set; display only, never used for dispatch ETAs—
HospitalsDots, tooltip with level, cath lab, trauma, diversionLocation REAL (OSM); capability ESTIMATED (S7)yes, "capability estimated, not verified"
IncidentsIncident markers, location uncertaintyREAL—

Header, ticker and status bar​

ItemVerdictLabelled
ACTIVE, HOLD, CRITICALREAL—
AMB available / in service, AMB FREECounts REAL, fleet SIMULATED (S1)yes in the header (SIM tag and tooltip); the ticker's AMB FREE has none
COV≤NLive coverage, computed from simulated positions (S1) over K-means zones (S9), forecast demand (S10) and q (S11). Shows "—" until the first check. N comes from response_target_secno in the header (the tooltip never says estimated); the Coverage panel says "estimated zones and demand"
STRESSReal formula; weights CONFIG (config/dispatch.yaml pressure); inputs include the simulated fleetno
Per-job ETA in the tickerSIMULATED (S3)yes ("sim")
SIM T+Nm, SIM ×N / PAUSEDSIMULATED clockyes
Clock, LIVE / SSE, SEQ, EV/MINREAL—

Panels​

PanelItemVerdictLabelled
QueueSeverity, confidence, status, flagsREAL—
QueueNEWS2 chipSIMULATED when the latest reading is monitor-sim (S5)yes, SIM
QueueDemo callsSIMULATED (S6)yes, DEMO
IncidentStep tracker after "dispatched"SIMULATED unless crew-driven (S4)no
DispatchBundle, alternatives, "why the nearest was rejected"REAL engine output on CONFIG weights (S12), simulated fleet (S1), "hospital ready" from S7 + S8no
Triage, ConversationFindings, quotes, language chain, messagesREAL—
VitalsMonitor, ECG, escalation linesSIMULATED (S5)yes, SIM
Toasts"Patient deteriorating", "Escalated"SIMULATED when from monitor-simyes: "(simulated vitals)" in the deteriorating title; "Escalated" only through the server's trigger text in its body
UnitsPositions, status, ETASIMULATED (S1, S3)yes, SIM
UnitsOOS buttonREAL action (marks a unit out of service, re-dispatches its job)—
HospitalsLevel, cath lab, traumaESTIMATED (S7)yes, EST with confidence on hover
HospitalsLoadREAL when reported, otherwise "—"—
CoverageBig number, zone bars, forecast, redeploy suggestionESTIMATED (S9, S10, S11) on the simulated fleetyes, "estimated zones and demand"
EventsEvent streamREAL events, many caused by simulated activityno
CopilotAnswersREAL tool results phrased by the LLM; calls and vitals it simulates are demo calls and monitor-sim/mcp readingsyes, SIM chip, "SIMULATED" in the answer, mcp.action event
AnalyticsIncidents, call → dispatchREAL; demo calls excluded ("N demo not counted")yes
AnalyticsCall → sceneSimulated drives timed on the sim clock ("N/M simulated drives")yes
AnalyticsUnits availableSIMULATED fleet (S1)yes ("N simulated")
Integrations → Servicesup / down, latencyREAL probe of each configured service; synthea, qambo, openems, crowdcad are reference entriesyes ("reference")

3. Classic console (/classic)​

ItemVerdictLabelled
"Coverage ≤N min X%" KPILive coverage (S1, S9–S11); N from config; "—" until the first checkno
"Ambulances a/b"SIMULATED fleet (S1)yes, SIM
Coverage-gap banner "+x calls/h covered"ESTIMATED (S10)no
Demo incidents in the queueSIMULATED (S6)yes, DEMO
NEWS2 in the queueSIMULATED when from monitor-simyes, SIM
Map unit markersSIMULATED (S1)yes, "SIMULATED unit" in the tooltip
Map hospital tooltipESTIMATED (S7)yes, "estimated, not verified"
Zone circlesESTIMATED (S9)yes, "estimated zone"
Dispatch factors "Hospital ready X%"ESTIMATED (S7, S8)no
Live vitals, ECG, escalation linesSIMULATED (S5)yes
Trip log stage durationsSim-clock durations next to wall-clock stage timesyes ("sim" on each duration)

4. ER command (/hospital?h=)​

ItemVerdictLabelled
Incoming patients: vitals tiles, sparklinesSIMULATED (S5)yes, SIM beside "Current vitals" and the "last reading" line
NEWS2 lineSIMULATED when from sim vitalsyes (via the tiles above it)
"⚑ Escalated … (NEWS2 n)"SIMULATED when from sim vitalsyes, SIM
ETA mm:ssSIMULATED (S3), jumps about 15 s per 5 s refresh (more at a demo playback above ×1)yes, SIM
Demo storyline patientsSIMULATED (S6)yes, DEMO
Hospital pickerFiltered on ESTIMATED capability (S7)no
Record form prefill (level, capabilities, beds)ESTIMATED until the hospital saves ityes ("estimated from the map listing")
ER load sliderREAL; "not reported" when empty (thumb sits at 0)yes
Referrals "fleet free: N ambulances (M ALS)"SIMULATED fleet (S1)no
Prepare checklistCONFIG rules (config/er_prep.yaml); statuses REAL and saved (er_prep_status)—
ETA before the patient is on boardESTIMATE: to the scene + scene_time_sec + drive hereyes, "estimate: to the patient, on scene, then here"
Resource figures and specialistsREAL when reported, with source and LIVE / recent / stale; never reported = "no information"yes
Capability flagsESTIMATED (S7) until a field is reported or the record confirmedyes, EST
"No answer" on a pre-alert / referralREAL (age of the request on the board); "unreachable" only after a phone call actually failed (needs VAAZHVU_VOICE_OUTBOUND_URL)yes
Crew names, patient name, caller's relationshipNOT RECORDED anywhereyes, "not recorded"
FHIR status, alerts, referralsREAL—

5. Crew app, web (/ambulance?unit=)​

ItemVerdictLabelled
GPS badgeREAL or SIMULATEDyes ("GPS: simulated position")
Scene / hospital ETASIMULATED (S3)yes, SIM on the scene / hospital ETA
Hospital options "readiness X%"ESTIMATED (S7 × S8): a capable hospital always shows 70%yes, EST
"ER busy / ER has room" reasonsRead from the 0.5 placeholder, so they never fire—
Vitals header NEWS2SIMULATED when the latest reading is monitor-simyes, SIM
"⚑ Escalated"SIMULATED when from sim vitalsyes, "SIM vitals"
Vitals historyREAL (sim readings filtered out)—
Trip kmESTIMATED from the route unless odometer enteredyes ("estimated")
Offer countdown, outbox, crew phoneREAL—

6. ERC physician board (/ercp)​

ItemVerdictLabelled
Vitals tiles, NEWS2 flagSIMULATED (S5)yes, SIM
Demo incidentsSIMULATED (S6)yes, DEMO
Consults, messages, triage summaryREAL—

7. Agency boards (/agency?a=police|fire|traffic)​

ItemVerdictLabelled
Police / fire units, "Units free x/y", unit dropdownSIMULATED (S2). Shown only after sign-in and only for agencies with units: the traffic board has no station picker or countyes, SIM on the count and each unit tag (not on the dropdown options)
Unit ETASIMULATED (S3)yes (on the unit tag)
Green-corridor junction signals and alertsSIMULATED unless mSiren is configured (S16)yes ("simulated")
Corridor and per-junction ETASIMULATED clock (S3)no
Corridor route and junctionsREAL (from OSRM)—

8. Caller line (/caller)​

ItemVerdictLabelled
ETA "N min", "Arriving" countdown, hospital ETA, marker, route, km, callsignSIMULATED (S1, S3)yes, "Simulated ambulance: its position and ETA come from the simulator" (Tamil and English, config/app.yaml sim_unit)
Hospital nameREAL hospital, chosen using estimated capability (S7)no
"Call 108"Connects to the Vaazhvu AI call-takeryes, "Connects to the Vaazhvu AI call-taker, not the public 108 line" (calls_vaazhvu)
"Call crew" numberREAL (only if the crew entered one)—
Messages, keypad, my reports, status textREAL / CONFIG text (config/app.yaml)—

9. Share page (/s/<token>)​

ItemVerdictLabelled
"Arriving in about mm:ss"SIMULATED (S3)yes ("Simulated ambulance…")
Handover vitals table and NEWS2SIMULATED (S5)yes ("simulated vitals", "(sim)" per row)
Severity, confidenceREAL—

10. Landing page (/welcome)​

ItemVerdictLabelled
"Running right now": incidents 24 h, active, median call → dispatchREAL; demo calls excluded—
"Ambulances free"SIMULATED fleet (S1)yes ("N simulated")
"Run a scenario" cardScripted calls (S6) through the real pipelineyes ("scripted calls … tagged DEMO")
Explainer slider 45 / 35 / 20HARDCODED starting valuesyes ("Try it")
Explainer policy thresholdsREAL: read live from config/policy.yaml via /api/config—

/help (renders docs/) and the sign-in page show no fake data.

11. iOS apps (ios/Vaazhvu)​

No preview, mock or sample data, no demo mode. The server URL is entered by the user; the emergency number comes from the server.

AppItemVerdictLabelled
CitizenNearby ambulances (faded on the tracking map)Positions SIMULATED (S1)yes, note under the status steps
CitizenTracking: ETA, hospital ETA, km, markerSIMULATED (S1, S3)yes, "Sim" pill by the ambulance line, "· Sim" on the marker
CrewGPS source pillREAL / SIMULATED. A phone that goes quiet leaves the unit held at its last fix, but the pill reads "Simulated" (the assignment never sends last_known). Hidden while navigatingyes ("Simulated"), wrong for a quiet device
CrewOther ambulances on the map (FleetDot)SIMULATED positions (S1); no position_source in the payloadno
CrewETA heroSIMULATED (S3)no
CrewIn-app navigation: next turn "In N m", ETA, km left, follow cameraTurns REAL (OSRM steps; only depart / arrive without OSRM, S15). Distances and spoken turn prompts from the phone's GPS when the device places the unit, otherwise from the SIMULATED position (S1); ETA always on the sim clock (S3), even with live GPS. Navigation replaces the status rail, so the GPS pill (the only sim label there) disappearsno
CrewPatient tab vitals, NEWS2, trend; latest vitals on the mission cardIncludes monitor-sim readings (S5)yes, "Simulated vitals" / "Sim" pills
Crew"Call caller"Offered only for dialable numbers (never tel:demo)—
CrewCrew phone number (person icon on the status rail)REAL (entered by the crew, empty by default)—

12. Legacy views (/legacy*)​

Off unless VAAZHVU_LEGACY=1 (otherwise "Legacy views are off"). With the flag on they run the scripted scenarios in backend/app/sim/scenarios.py: the CAD console auto-runs scenario_02_als_required without a legacy label; /legacy/ambulance says "LEGACY DEMO · SCRIPTED DATA, NOT LIVE"; /legacy/hospital says "Legacy board".


13. Hardcoded in the frontend​

WhereWhat
terminal/panels.jsx, terminal/TerminalMap.jsx, live/LiveMap.jsxCoverage colour bands 35% / 65% (all three); heat colour bands 0.33 / 0.66 (TerminalMap.jsx only)
terminal/TerminalMap.jsx, live/LiveMap.jsxUNIT_COLOR in both, with different hex for the same status; ROUTE_COLOR in TerminalMap.jsx only (LiveMap.jsx inlines its route colour). Severity colours are shared (platform/severity.js)
terminal/Terminal.jsxLAYER_NOTE: the estimated / simulated notes in the layer list; CLOSURE_DEDUP_M (a click within 40 m of a closure is the same road)
pages/Landing.jsxAPPS, FAQ, explainer start 45/35/20 (policy thresholds come from /api/config, severity labels from platform/severity.js)
live/AmbulanceApp.jsxGPS pacing fallback mirroring config/app.yaml
live/AgencyBoard.jsxAgencies list
live/HospitalRecordForm.jsxCapability, level and TAEI option lists (choices, not data)
platform/clientConfig.jsOffline fallbacks for the emergency number, region and tiles (build-time env)

No view keeps a vital-sign threshold: the legacy views colour vitals by the NEWS2 bands served in /api/config (news2Red). Every medical number and mapping is listed in Clinical values.

The coverage target in the labels ("≤N min") is no longer hardcoded: /state sends coverage_target_sec from config/fleet.yaml.

Data files and config are covered in Data "What is hardcoded" and Configuration.


14. Fixed on this branch​

Values that were wrong

  • COV and the Coverage panel no longer show the offline plan's 94% (terminal and /classic): /state returns coverage_share, and a coverage check runs at startup.
  • Hospital load reads "—" until the ER reports it; saving a diversion no longer stores the 0.5 placeholder as a report.
  • Integrations → Services works and checks whether each configured service actually answers.
  • AMB counts agree between header and ticker.
  • Analytics: call → scene times simulated drives on the sim clock; demo calls are left out; simulated units are counted.
  • Coverage uses the live busy share, the same rule as dispatch.
  • Demo calls are left out of hotspots; demo closures are labelled.
  • Trip-log durations say which clock they use.
  • Patient simulator switch (simulation.vitals, VAAZHVU_SIM_VITALS).
  • The landing explainer reads the policy thresholds from /api/config instead of a hardcoded copy.

Labels added (SIM, DEMO, EST, "estimated"): on every web view and both iOS apps, as listed in §2–11. position_source is now in the public tracking, nearby, ER board, agency and analytics payloads.

Text corrected: the onboarding tour, the "Run a scenario" card, the ER board's "from the map" wording, the classic console's "nothing here is mocked" comment, "fail" renamed OOS.

Tests: tests/test_honest_values.py.

15. Still not labelled​

  1. Route lines on the maps (simulated driving).
  2. Incident step tracker after "dispatched" when the sim timers move it (S4).
  3. Dispatch panel and /classic "Hospital ready X%" (S7, S8).
  4. STRESS gauge, the header COV≤N and AMB FREE in the ticker, and the /classic coverage KPI and gap banner.
  5. ER board hospital picker and referrals "fleet free".
  6. Agency corridor ETAs; crew iOS ETA hero and in-app navigation (turn distance, spoken prompts, ETA, km on a simulated unit; the GPS pill is hidden while navigating); other ambulances on the crew map.
  7. Hospital name on the caller page (chosen with estimated capability).
  8. Demo road closures on the terminal map: the CLOSED marker does not say DEMO (only the tooltip does).
  9. Crew iOS GPS pill reads "Simulated" for a quiet device held at its last fix: unit_assignment (api_ops.py) sets position_source itself instead of calling ctl.position_source().

What needs outside data or a partner organisation (S7, S8, S10, S12), is listed in the "What would make it real" column of §1.