Files
boc/landvex-admin-backend/app/routers/__pycache__/life_kpi.cpython-39.pyc
T

47 lines
7.9 KiB
Plaintext
Raw Normal View History

a
IjR4ã@s”dZddlmZddlZddlZddlmZmZddlmZm Z eddgdZ
d Z d
d Z e
 
d ¡d
dƒZe
 
d¡ddƒZe
 
d¡ddƒZdS)uM
LIFE KPI Pyramid + Reality Latency
Mission: Improve decisions about the physical world
Customer North Star: Decision Confidence Improvement (DCI)
Platform North Star: Verified Reality Coverage (VRC)
Signature Metric: Reality Latency (RL)
Pyramid:
Mission → Customer Outcomes → Platform Health → Operational → Engineering
é)Ú APIRouterN)ÚdatetimeÚ timedelta)ÚDictÚAnyz /life-kpiÚlife_kpi)ÚprefixÚtagsz4/home/bernt/.openclaw/workspace/rivp-pilot-1/rivp.dbcCst t¡}tj|_|S)N)Úsqlite3ÚconnectÚDB_PATHÚRowÚ row_factory)Úconn©rúM/home/bernt/.openclaw/workspace/landvex-admin-backend/app/routers/life_kpi.pyÚget_dbs
rz/public/kpi-pyramidcÃs:tƒ}| ¡}| d¡| ¡d}| d¡| ¡d}| d¡| ¡dpRd}| d¡| ¡d}| d¡| ¡d}| ¡ddd œd
d dd d
ddgd¢dœddt|t|dƒddƒd d
dt|t|ddƒddƒddt|ddƒddœdœdddd d!d"d#d$d%d&d'œd(d)d'œd*d+d'œd,d-d'œgd.d/œ
d0d1d2dd3d4œd5d6dd7d4œd8d9dd:d4œd;d<dd
d4œgd=œd>d?t|t|dƒddƒdd@dAœdBt|ddƒd3d@dAœdCddDdEdAœdFddGd@dAœgd=œdHdIdJdKdLd4œdMdNdOdPd4œdQdRdSdTd4œdUdVt|dWdXƒdYd4œgd=œdZd[d\d]d^œd_d`dad^œdbdcddd^œdedfdgd^œgd=œdhœS)iz'
Complete KPI Pyramid for LIFE
zSELECT COUNT(*) FROM roadsrz!SELECT COUNT(*) FROM observationsz(SELECT AVG(confidence) FROM observationsz4SELECT COUNT(*) FROM observations WHERE verified = 1z=SELECT COUNT(*) FROM observations WHERE severity = 'critical'z*Improve decisions about the physical worldz¾LIFE helps organizations make better, faster, and more confident decisions about infrastructure, projects, and assets by providing continuous, verified intelligence about observable reality.)Ú statementÚ descriptionz%Decision Confidence Improvement (DCI)zZHow much LIFE increases a decision-maker's confidence compared to previous working methodséé2ú)Before/after surveys with pilot customerszP(Confidence_with_LIFE - Confidence_without_LIFE) / Confidence_without_LIFE * 100)zfA municipality's road maintenance manager feels 40% more confident prioritizing repairs with LIFE dataz=An aid agency can verify 3x more projects with the same staffzKAn insurance company reduces claim verification time from 2 weeks to 2 days)ÚmetricÚ
definitionÚ
current_valueÚ target_2026Ú target_2027Ú measurementÚformulaÚexampleszVerified Reality Coverage (VRC)z„Percentage of observable reality represented in LIFE with current, independently verified evidence above a defined quality thresholdéédéKé
é"éé\)Úobject_coverageÚmulti_source_verificationZevidence_freshness_daysÚaverage_confidenceÚ traceability)rrrrrÚ target_2028Ú breakdownzReality Latency (RL)z?Time between reality changing and LIFE knowing about the changeé0Úhourséé ézHow 'alive' the platform iszRoad construction startsz36 hours)ÚeventZdetection_timezBridge closurez12 hoursz Flood damagez6 hourszPothole formationz72 hoursz@Compare satellite pass timestamp with change detection timestamp)
rrrÚunitrrr+rrÚmeasurement_methodzCustomer OutcomeszBetter Decisionsz-Percentage of decisions improved by LIFE dataéP)ÚnamerÚcurrentÚtargetzFaster Verificationz%Time reduction for field verificationéFz
Lower Riskz/Reduction in undetected infrastructure failuresé<zEfficient Prioritizationz-Improvement in resource allocation efficiency)ÚlevelÚmetricszPlatform HealthZVRCú%)r6Úvaluer8r3Ú
ConfidenceZ FreshnesséÚdaysÚ TraceabilityébzOperational MetricszIngestion Latencyz)Time from image capture to database entryz4 hoursz1 hourzMission Completionz1Percentage of QUIXZOOM missions completed on timez78%z95%z AI Precisionz&Accuracy of automated change detectionz72%z85%zEvidence Densityz#Average observations per km of roadi4éézEngineering MetricsÚUptimez99.5%z99.9%)r6r>r8zAPI Response TimeZ120msZ50mszCost per km monitoredz$0.45z$0.20zGPU Utilizationz65%z80%)ÚmissionZcustomer_north_starZplatform_north_starZsignature_metricZcustomer_outcomesZplatform_healthÚ operationalZ engineering)rÚcursorÚexecuteÚfetchoneÚcloseÚroundÚmax)rÚ total_roadsZ total_obsÚavg_confidenceZ verified_obsZcritical_countrrrÚget_kpi_pyramids
 
 

 
 þø ûùüñüüüüíþü üüüíþüüü üíþýýýýðþïrRz/public/reality-latencycÃddddddddd œd
d d d
ddddd œddddddddd œdddddddd d œd!d"d#d$d%d&dd'd œg}td(d)„|Dƒƒt|ƒ}d*d+t|d,ƒd-d.|dd,d/œdd,d/œdd,d/œdd,d/œd&d,d/œd0œd1d2d3œd4d5d3œd6d7d3œd8d9d3œd:d;d3œgd<œiS)=z<
Reality Latency - How quickly LIFE detects changes
zevt-001Úconstruction_startzRoad work began on E4 km 45z2026-07-03T08:00:00Zz2026-07-04T14:00:00ZéÚ satelliteg…ëQ¸í?)Zevent_idÚ
event_typerZ actual_timeZ
detected_timeÚ