{
    "generatedAt":  "2026-09-03T11:11:41Z",
    "generatedBy":  "tools/regenerate-certification-summary.ps1 (fast-batch2 patch: business/land/hr/employment/finance/transport/insurance/iot/fleet/water/power/solidwaste/energy refreshed with full per-check detail; education and health remain on the prior snapshot pending completion)",
    "note":  "Single consolidated certification-results source for the FCTE marketplace site -- every \u0027N checks, N passed\u0027 headline should read from here, not a hand-typed number. Built by actually running each domain\u0027s real 09_certification.sql/10_realism_certification.sql battery (or health\u0027s 11-procedure battery, or demographics\u0027/household\u0027s certification procedure) against both live city databases -- these are not estimates. A nonzero \u0027fail\u0027 count is not necessarily a live defect: several are known, disclosed, permanent residuals (see failChecks[].detail on the domain for the platform\u0027s own dynamic explanation of each one, e.g. Employment\u0027s EMP-E32/E33 qualification/license residuals) -- report the real number, do not hide it, but do not conflate \u0027has a nonzero fail count\u0027 with \u0027is broken\u0027 without reading the detail text. Re-run this script after any generation/regeneration job to refresh. Patched 2026-09-02T16:01:33Z: education/lagos and health/both-cities re-run with a longer query budget after their first pass hit query timeouts on Lagos-scale tables. Patched again 2026-09-02T19:45:00Z: gas/GAS-R05 and wastewater/WW-R05 re-verified live at 0 violations, both cities, after a ledgered ConnectedDate repair (ops.UtilityConnectedDateRepair, RunId-scoped, 80 rows total) corrected each connection\u0027s ConnectedDate to its own earliest real billing-period start where billing already predated it -- no rows deleted or fabricated. The prior GAS-00002/WW-00003 \u0027structurally unfixable without deleting data\u0027 disclosure is superseded; see gas/wastewater CHANGELOG.md.",
    "cityTotals":  {
                       "nairobi":  {
                                       "pass":  485,
                                       "total":  528,
                                       "fail":  5
                                   },
                       "lagos":  {
                                     "pass":  438,
                                     "total":  523,
                                     "fail":  10
                                 }
                   },
    "categories":  {
                       "Human Lifecycle":  {
                                               "description":  "Birth, death, migration, household composition and education",
                                               "nairobi":  {
                                                               "pass":  57,
                                                               "total":  61
                                                           },
                                               "lagos":  {
                                                             "pass":  54,
                                                             "total":  61
                                                         }
                                           },
                       "Healthcare":  {
                                          "description":  "Patients, providers, visits, diagnoses and treatments",
                                          "nairobi":  {
                                                          "pass":  82,
                                                          "total":  94
                                                      },
                                          "lagos":  {
                                                        "pass":  47,
                                                        "total":  86
                                                    }
                                      },
                       "Employment":  {
                                          "description":  "Workers, employers, contracts, wages and payroll",
                                          "nairobi":  {
                                                          "pass":  61,
                                                          "total":  67
                                                      },
                                          "lagos":  {
                                                        "pass":  65,
                                                        "total":  71
                                                    }
                                      },
                       "Housing":  {
                                       "description":  "Ownership, tenancy, occupancy, land and construction",
                                       "nairobi":  {
                                                       "pass":  62,
                                                       "total":  66
                                                   },
                                       "lagos":  {
                                                     "pass":  64,
                                                     "total":  66
                                                 }
                                   },
                       "Transport":  {
                                         "description":  "Vehicles, licences, routes, trips and government fleet",
                                         "nairobi":  {
                                                         "pass":  49,
                                                         "total":  54
                                                     },
                                         "lagos":  {
                                                       "pass":  51,
                                                       "total":  58
                                                   }
                                     },
                       "Business":  {
                                        "description":  "Employers, sectors, registrations, finance and insurance",
                                        "nairobi":  {
                                                        "pass":  52,
                                                        "total":  60
                                                    },
                                        "lagos":  {
                                                      "pass":  36,
                                                      "total":  55
                                                  }
                                    },
                       "Other Domains":  {
                                             "description":  "Utilities (water, power, gas, wastewater, solid waste, energy) and IoT",
                                             "nairobi":  {
                                                             "pass":  122,
                                                             "total":  126
                                                         },
                                             "lagos":  {
                                                           "pass":  121,
                                                           "total":  126
                                                       }
                                         }
                   },
    "domains":  {
                    "business":  {
                                     "nairobi":  {
                                                     "total":  17,
                                                     "pass":  16,
                                                     "fail":  0,
                                                     "warn":  0,
                                                     "info":  1,
                                                     "na":  0,
                                                     "failChecks":  {

                                                                    },
                                                     "checks":  [
                                                                    {
                                                                        "code":  "BIZ-01",
                                                                        "name":  "business.SectorCrosswalk populated (16 canonical sectors)",
                                                                        "status":  "PASS",
                                                                        "detail":  "rows=16",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-02",
                                                                        "name":  "dbo.Business populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "business count=215384",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-03",
                                                                        "name":  "BusinessCode uniqueness",
                                                                        "status":  "PASS",
                                                                        "detail":  "duplicate codes=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-04",
                                                                        "name":  "Business.SectorCode within converged CHECK enum",
                                                                        "status":  "PASS",
                                                                        "detail":  "violations=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-05",
                                                                        "name":  "Business.SectorCode resolves in business.SectorCrosswalk",
                                                                        "status":  "PASS",
                                                                        "detail":  "unmapped=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-06",
                                                                        "name":  "Business.OwnerCitizenId FK integrity",
                                                                        "status":  "PASS",
                                                                        "detail":  "orphaned owner refs=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-07",
                                                                        "name":  "Business.RegistrationDate not in the future",
                                                                        "status":  "PASS",
                                                                        "detail":  "future-dated rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-08",
                                                                        "name":  "Business.EmployeeCount within its BusinessSize band",
                                                                        "status":  "PASS",
                                                                        "detail":  "violations=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-09",
                                                                        "name":  "transport.Operator.BusinessId FK integrity",
                                                                        "status":  "PASS",
                                                                        "detail":  "orphaned operator refs=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-10",
                                                                        "name":  "No non-liquidated business owned by a deceased citizen",
                                                                        "status":  "PASS",
                                                                        "detail":  "non-liquidated businesses with deceased owner=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-11",
                                                                        "name":  "No owner exceeds the per-owner business cap",
                                                                        "status":  "PASS",
                                                                        "detail":  "worst single-owner business count=5, cap=5",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R01",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "RegistrationDate before OwnerCitizenId.DOB: 0; owner under 18 at registration: 0 of 128261 owned businesses. Real root cause was usp_ReweightForeignOriginBusinessOwnership reassigning owners with no DOB/age eligibility check, not stale pre-fix data as BUS-00002 originally assumed -- fixed + backfilled + guarded by a DOB/Death trigger on dbo.Business, see CHANGELOG BUS-00003.",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R02",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "MICRO=55.08% SMALL=29.77% MEDIUM=10.06% (sourced target 55/30/10 per CAC/NBS 2023 Lagos State Business Survey, +-5pp band)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R03",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Distinct SectorCode values: 16 of 16; largest sector: 22.00% of 215384 businesses",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R04",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "EmployeeCount \u003e 1 but IsEmployer = 0: 0 of 215384 businesses",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R05",
                                                                        "name":  "",
                                                                        "status":  "INFO",
                                                                        "detail":  "Foreign-owned businesses: 8402 (3.90%) of 215384 -- no cited city-level benchmark, reporting only",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "BIZ-R06",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "ACTIVE businesses: 79.94% of 215384 (some DORMANT/SUSPENDED/LIQUIDATED expected, not 100% active)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    }
                                                                ]
                                                 },
                                     "lagos":  {
                                                   "total":  17,
                                                   "pass":  16,
                                                   "fail":  0,
                                                   "warn":  0,
                                                   "info":  1,
                                                   "na":  0,
                                                   "failChecks":  {

                                                                  },
                                                   "checks":  [
                                                                  {
                                                                      "code":  "BIZ-01",
                                                                      "name":  "business.SectorCrosswalk populated (16 canonical sectors)",
                                                                      "status":  "PASS",
                                                                      "detail":  "rows=16",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-02",
                                                                      "name":  "dbo.Business populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "business count=822190",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-03",
                                                                      "name":  "BusinessCode uniqueness",
                                                                      "status":  "PASS",
                                                                      "detail":  "duplicate codes=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-04",
                                                                      "name":  "Business.SectorCode within converged CHECK enum",
                                                                      "status":  "PASS",
                                                                      "detail":  "violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-05",
                                                                      "name":  "Business.SectorCode resolves in business.SectorCrosswalk",
                                                                      "status":  "PASS",
                                                                      "detail":  "unmapped=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-06",
                                                                      "name":  "Business.OwnerCitizenId FK integrity",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned owner refs=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-07",
                                                                      "name":  "Business.RegistrationDate not in the future",
                                                                      "status":  "PASS",
                                                                      "detail":  "future-dated rows=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-08",
                                                                      "name":  "Business.EmployeeCount within its BusinessSize band",
                                                                      "status":  "PASS",
                                                                      "detail":  "violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-09",
                                                                      "name":  "transport.Operator.BusinessId FK integrity",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned operator refs=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-10",
                                                                      "name":  "No non-liquidated business owned by a deceased citizen",
                                                                      "status":  "PASS",
                                                                      "detail":  "non-liquidated businesses with deceased owner=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-11",
                                                                      "name":  "No owner exceeds the per-owner business cap",
                                                                      "status":  "PASS",
                                                                      "detail":  "worst single-owner business count=5, cap=5",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R01",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "RegistrationDate before OwnerCitizenId.DOB: 0; owner under 18 at registration: 0 of 566598 owned businesses. Real root cause was usp_ReweightForeignOriginBusinessOwnership reassigning owners with no DOB/age eligibility check, not stale pre-fix data as BUS-00002 originally assumed -- fixed + backfilled + guarded by a DOB/Death trigger on dbo.Business, see CHANGELOG BUS-00003.",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R02",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "MICRO=54.97% SMALL=29.99% MEDIUM=10.06% (sourced target 55/30/10 per CAC/NBS 2023 Lagos State Business Survey, +-5pp band)",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R03",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "Distinct SectorCode values: 16 of 16; largest sector: 22.02% of 822190 businesses",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R04",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "EmployeeCount \u003e 1 but IsEmployer = 0: 0 of 822190 businesses",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R05",
                                                                      "name":  "",
                                                                      "status":  "INFO",
                                                                      "detail":  "Foreign-owned businesses: 7802 (0.95%) of 822190 -- no cited city-level benchmark, reporting only",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "BIZ-R06",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "ACTIVE businesses: 80.03% of 822190 (some DORMANT/SUSPENDED/LIQUIDATED expected, not 100% active)",
                                                                      "source":  "10_realism_certification.sql"
                                                                  }
                                                              ]
                                               }
                                 },
                    "education":  {
                                      "nairobi":  {
                                                      "total":  22,
                                                      "pass":  19,
                                                      "fail":  0,
                                                      "warn":  0,
                                                      "info":  0,
                                                      "na":  3,
                                                      "failChecks":  {

                                                                     },
                                                      "checks":  [
                                                                     {
                                                                         "code":  "EDU-H01",
                                                                         "name":  "Schools populated",
                                                                         "status":  "PASS",
                                                                         "detail":  "school count=2060 (min 100)",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H02",
                                                                         "name":  "Enrollment.CitizenId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphans=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H03",
                                                                         "name":  "Teacher.CitizenId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphans=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H04",
                                                                         "name":  "Student age at enrollment plausible",
                                                                         "status":  "PASS",
                                                                         "detail":  "out-of-band rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H05",
                                                                         "name":  "EnrollmentDate within SeedEpoch..NowDate",
                                                                         "status":  "PASS",
                                                                         "detail":  "out-of-range rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H06",
                                                                         "name":  "Exam scores in [0,100]",
                                                                         "status":  "PASS",
                                                                         "detail":  "out-of-range rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H07",
                                                                         "name":  "Bursary amount \u003e 0",
                                                                         "status":  "PASS",
                                                                         "detail":  "non-positive rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H08",
                                                                         "name":  "Teacher licence-number uniqueness",
                                                                         "status":  "PASS",
                                                                         "detail":  "duplicate licence numbers=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H09",
                                                                         "name":  "TertiaryEnrollment end year \u003e= start year",
                                                                         "status":  "PASS",
                                                                         "detail":  "bad rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H10",
                                                                         "name":  "Every populated ward has an active school",
                                                                         "status":  "PASS",
                                                                         "detail":  "uncovered populated wards=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H11",
                                                                         "name":  "Attendance date \u003e= Enrollment start",
                                                                         "status":  "PASS",
                                                                         "detail":  "violating rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H12",
                                                                         "name":  "TertiaryInstitution.WardId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphans=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-H13",
                                                                         "name":  "StudentPopulation.UniversityId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphans=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R01",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "enrollment rows with age outside their GradeLevel\u0027s plausible band=0",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R02",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "employed 25-34yr-olds with an Enrollment record=100.00% (KNBS NEMIS cites 82% school-enrollment ages 6-17; NBF R-03 ref=80%, band 50-100%)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R03",
                                                                         "name":  "",
                                                                         "status":  "N/A",
                                                                         "detail":  "Nigeria-only check (Lagos LSMOE-2022 age-band citation has no Kenya equivalent yet)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R04",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "max deviation from EDU-CAL-002 tier pyramid (5/15/30/50%)=0.42pp (band \u003c=10pp)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R05",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "rows with an implausible program length for their ProgramType=0",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-R06",
                                                                         "name":  "",
                                                                         "status":  "N/A",
                                                                         "detail":  "measurement only -- pupil:teacher ratio=13.90:1 -- no cited real pupil-teacher-ratio target exists for either city yet",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-C01",
                                                                         "name":  "Historical academic-year coverage",
                                                                         "status":  "N/A",
                                                                         "detail":  "expected years (1960-2026)=67, generated years=67 (100.00%), earliest=1960, latest=2026, fully-generated=66, partially-generated=1 (the single oldest generated year, 1960, is the only one that can be partial -- see check header)",
                                                                         "source":  "11_coverage_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-C02",
                                                                         "name":  "Grade/progression coverage completeness",
                                                                         "status":  "PASS",
                                                                         "detail":  "Expected grade-year cells=1072, SATISFIED=1070, EXHAUSTED_VARIANCE=2, INCOMPLETE=0, EXHAUSTED_ANOMALY=0, missing terminal-secondary cells=0 (exhaustion state from RunId 7E8B6B2C-5E1E-4E4B-B832-7D2E01BA4A70)",
                                                                         "source":  "11_coverage_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "EDU-C02b",
                                                                         "name":  "Examination/TertiaryEnrollment dependency guards",
                                                                         "status":  "PASS",
                                                                         "detail":  "Terminal-secondary Enrollment=2466309 -\u003e Examination terminal rows=92419; tertiary-eligible Examination rows=113693 -\u003e TertiaryEnrollment rows=16777",
                                                                         "source":  "11_coverage_certification.sql"
                                                                     }
                                                                 ]
                                                  },
                                      "lagos":  {
                                                    "total":  22,
                                                    "pass":  19,
                                                    "fail":  0,
                                                    "warn":  0,
                                                    "info":  0,
                                                    "na":  3,
                                                    "failChecks":  {

                                                                   },
                                                    "checks":  [
                                                                   {
                                                                       "code":  "EDU-H01",
                                                                       "name":  "Schools populated",
                                                                       "status":  "PASS",
                                                                       "detail":  "school count=1702 (min 100)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H02",
                                                                       "name":  "Enrollment.CitizenId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphans=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H03",
                                                                       "name":  "Teacher.CitizenId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphans=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H04",
                                                                       "name":  "Student age at enrollment plausible",
                                                                       "status":  "PASS",
                                                                       "detail":  "out-of-band rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H05",
                                                                       "name":  "EnrollmentDate within SeedEpoch..NowDate",
                                                                       "status":  "PASS",
                                                                       "detail":  "out-of-range rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H06",
                                                                       "name":  "Exam scores in [0,100]",
                                                                       "status":  "PASS",
                                                                       "detail":  "out-of-range rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H07",
                                                                       "name":  "Bursary amount \u003e 0",
                                                                       "status":  "PASS",
                                                                       "detail":  "non-positive rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H08",
                                                                       "name":  "Teacher licence-number uniqueness",
                                                                       "status":  "PASS",
                                                                       "detail":  "duplicate licence numbers=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H09",
                                                                       "name":  "TertiaryEnrollment end year \u003e= start year",
                                                                       "status":  "PASS",
                                                                       "detail":  "bad rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H10",
                                                                       "name":  "Every populated ward has an active school",
                                                                       "status":  "PASS",
                                                                       "detail":  "uncovered populated wards=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H11",
                                                                       "name":  "Attendance date \u003e= Enrollment start",
                                                                       "status":  "PASS",
                                                                       "detail":  "violating rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H12",
                                                                       "name":  "TertiaryInstitution.WardId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphans=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-H13",
                                                                       "name":  "StudentPopulation.UniversityId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphans=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "enrollment rows with age outside their GradeLevel\u0027s plausible band=0",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R02",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "employed 25-34yr-olds with an Enrollment record=100.00% (KNBS NEMIS cites 82% school-enrollment ages 6-17; NBF R-03 ref=80%, band 50-100%)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "latest fully-generated AcademicYear=2025, max deviation from LSMOE-2022 age-band citation=2.35pp (band \u003c=15pp)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R04",
                                                                       "name":  "",
                                                                       "status":  "N/A",
                                                                       "detail":  "Kenya-only check (secondary-tier pyramid is a Kenya-specific structure)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "rows with an implausible program length for their ProgramType=0",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-R06",
                                                                       "name":  "",
                                                                       "status":  "N/A",
                                                                       "detail":  "measurement only -- pupil:teacher ratio=0.00:1 -- no cited real pupil-teacher-ratio target exists for either city yet",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-C01",
                                                                       "name":  "Historical academic-year coverage",
                                                                       "status":  "N/A",
                                                                       "detail":  "expected years (1960-2026)=67, generated years=66 (98.51%), earliest=1960, latest=2025, fully-generated=65, partially-generated=1 (the single oldest generated year, 1960, is the only one that can be partial -- see check header)",
                                                                       "source":  "11_coverage_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-C02",
                                                                       "name":  "Grade/progression coverage completeness",
                                                                       "status":  "PASS",
                                                                       "detail":  "Expected grade-year cells=1056, SATISFIED=1056, EXHAUSTED_VARIANCE=0, INCOMPLETE=0, EXHAUSTED_ANOMALY=0, missing terminal-secondary cells=0 (exhaustion state from RunId A15FF2B7-DB4F-4C97-88C4-4E1F7FA89DCC)",
                                                                       "source":  "11_coverage_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "EDU-C02b",
                                                                       "name":  "Examination/TertiaryEnrollment dependency guards",
                                                                       "status":  "PASS",
                                                                       "detail":  "Terminal-secondary Enrollment=22993166 -\u003e Examination terminal rows=122990; tertiary-eligible Examination rows=85945 -\u003e TertiaryEnrollment rows=17631",
                                                                       "source":  "11_coverage_certification.sql"
                                                                   }
                                                               ]
                                                }
                                  },
                    "land":  {
                                 "nairobi":  {
                                                 "total":  20,
                                                 "pass":  17,
                                                 "fail":  0,
                                                 "warn":  0,
                                                 "info":  1,
                                                 "na":  2,
                                                 "failChecks":  {

                                                                },
                                                 "checks":  [
                                                                {
                                                                    "code":  "LND-L01",
                                                                    "name":  "Parcels populated (min 50/ward)",
                                                                    "status":  "PASS",
                                                                    "detail":  "parcels=200,000 (min 4,250 = 85 wards x 50)",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L02",
                                                                    "name":  "Parcel.CitizenOwnerId FK integrity",
                                                                    "status":  "PASS",
                                                                    "detail":  "orphaned citizen parcels=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L03",
                                                                    "name":  "Parcel.BusinessOwnerId FK integrity",
                                                                    "status":  "PASS",
                                                                    "detail":  "orphaned business parcels=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L04",
                                                                    "name":  "No parcel has both CitizenOwnerId and BusinessOwnerId",
                                                                    "status":  "PASS",
                                                                    "detail":  "dual-owner parcels=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L05",
                                                                    "name":  "Parcel.PlotSizeSqM \u003e 0",
                                                                    "status":  "PASS",
                                                                    "detail":  "violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L06",
                                                                    "name":  "Parcel.MarketValueLocal \u003e= 0 (where populated)",
                                                                    "status":  "PASS",
                                                                    "detail":  "violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L07",
                                                                    "name":  "Each parcel has an InitialGrant ownership record",
                                                                    "status":  "N/A",
                                                                    "detail":  "this jurisdiction\u0027s TransferReasonCatalog has no InitialGrant reason -- not applicable",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L08",
                                                                    "name":  "OwnershipHistory.TransactionDate within epochÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“NowDate",
                                                                    "status":  "PASS",
                                                                    "detail":  "violations=0 [1940-01-01 ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ 2026-07-02]",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L09",
                                                                    "name":  "LandTaxBill.BillAmountLocal \u003e 0",
                                                                    "status":  "PASS",
                                                                    "detail":  "violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-L10",
                                                                    "name":  "Ward coverage \u003e= 95% of wards have parcels",
                                                                    "status":  "PASS",
                                                                    "detail":  "wards with parcels=85 of 85",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R01",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "Parcels still owned by a deceased CitizenOwnerId: 0 of 200000",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R02",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "Distinct LandUseType values: 5; largest: 50.00% of 200000 parcels",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R03",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "Correlation(ward IncomeMultiplier, avg parcel MarketValueLocal): 1.002 (directional only -- wealthier wards should show higher land values)",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R04",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "IsEncumbered=1: 7.95% of 200000 parcels",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R05",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "IsServiced rate: Freehold/Leasehold=89.97% vs Informal/Disputed=30.07% (formal tenure should be more serviced)",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R06",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "OwnershipHistory rows with EndDate before TransactionDate: 0 of 24815",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R07",
                                                                    "name":  "",
                                                                    "status":  "INFO",
                                                                    "detail":  "This city\u0027s IsEncumbered rate (see LND-R04) should be compared against the other city\u0027s own run -- both should show a non-zero, non-trivial rate, not one flat at 0%",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R08",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "Correlation(PlotSizeSqM, MarketValueLocal): 0.34993 across 200000 parcels (directional only -- bigger plots should be worth more, sublinearly)",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R09",
                                                                    "name":  "",
                                                                    "status":  "N/A",
                                                                    "detail":  "Most common TransferValueLocal/MarketValueLocal ratio (4dp) accounts for N/A% of 0 Sale rows (a real negotiated-price distribution should not concentrate on one exact ratio)",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "LND-R10",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "Owner-lives-in-same-ward rate: 39.147% of 120000 individually-owned parcels vs random baseline 1.176% (1/85 wards) -- should be clearly above baseline, not statistically indistinguishable from it",
                                                                    "source":  "10_realism_certification.sql"
                                                                }
                                                            ]
                                             },
                                 "lagos":  {
                                               "total":  20,
                                               "pass":  19,
                                               "fail":  0,
                                               "warn":  0,
                                               "info":  1,
                                               "na":  0,
                                               "failChecks":  {

                                                              },
                                               "checks":  [
                                                              {
                                                                  "code":  "LND-L01",
                                                                  "name":  "Parcels populated (min 50/ward)",
                                                                  "status":  "PASS",
                                                                  "detail":  "parcels=77,976 (min 13,000 = 260 wards x 50)",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L02",
                                                                  "name":  "Parcel.CitizenOwnerId FK integrity",
                                                                  "status":  "PASS",
                                                                  "detail":  "orphaned citizen parcels=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L03",
                                                                  "name":  "Parcel.BusinessOwnerId FK integrity",
                                                                  "status":  "PASS",
                                                                  "detail":  "orphaned business parcels=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L04",
                                                                  "name":  "No parcel has both CitizenOwnerId and BusinessOwnerId",
                                                                  "status":  "PASS",
                                                                  "detail":  "dual-owner parcels=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L05",
                                                                  "name":  "Parcel.PlotSizeSqM \u003e 0",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L06",
                                                                  "name":  "Parcel.MarketValueLocal \u003e= 0 (where populated)",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L07",
                                                                  "name":  "Each parcel has an InitialGrant ownership record",
                                                                  "status":  "PASS",
                                                                  "detail":  "parcels missing initial grant=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L08",
                                                                  "name":  "OwnershipHistory.TransactionDate within epochÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“NowDate",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0 [1940-01-01 ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ 2026-07-02]",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L09",
                                                                  "name":  "LandTaxBill.BillAmountLocal \u003e 0",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-L10",
                                                                  "name":  "Ward coverage \u003e= 95% of wards have parcels",
                                                                  "status":  "PASS",
                                                                  "detail":  "wards with parcels=260 of 260",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R01",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Parcels still owned by a deceased CitizenOwnerId: 0 of 77976",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R02",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Distinct LandUseType values: 6; largest: 38.88% of 77976 parcels",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R03",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Correlation(ward IncomeMultiplier, avg parcel MarketValueLocal): 0.761 (directional only -- wealthier wards should show higher land values)",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R04",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "IsEncumbered=1: 8.00% of 77976 parcels",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R05",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "IsServiced rate: Freehold/Leasehold=90.01% vs Informal/Disputed=29.98% (formal tenure should be more serviced)",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R06",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "OwnershipHistory rows with EndDate before TransactionDate: 0 of 83462",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R07",
                                                                  "name":  "",
                                                                  "status":  "INFO",
                                                                  "detail":  "This city\u0027s IsEncumbered rate (see LND-R04) should be compared against the other city\u0027s own run -- both should show a non-zero, non-trivial rate, not one flat at 0%",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R08",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Correlation(PlotSizeSqM, MarketValueLocal): 0.46904 across 77976 parcels (directional only -- bigger plots should be worth more, sublinearly)",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R09",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Most common TransferValueLocal/MarketValueLocal ratio (4dp) accounts for 1.29% of 5486 Sale rows (a real negotiated-price distribution should not concentrate on one exact ratio)",
                                                                  "source":  "10_realism_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "LND-R10",
                                                                  "name":  "",
                                                                  "status":  "PASS",
                                                                  "detail":  "Owner-lives-in-same-ward rate: 36.065% of 54510 individually-owned parcels vs random baseline 0.385% (1/260 wards) -- should be clearly above baseline, not statistically indistinguishable from it",
                                                                  "source":  "10_realism_certification.sql"
                                                              }
                                                          ]
                                           }
                             },
                    "hr":  {
                               "nairobi":  {
                                               "total":  18,
                                               "pass":  15,
                                               "fail":  0,
                                               "warn":  0,
                                               "info":  0,
                                               "na":  3,
                                               "failChecks":  {

                                                              },
                                               "checks":  [
                                                              {
                                                                  "code":  "HR-H01",
                                                                  "name":  "employment.Job populated",
                                                                  "status":  "PASS",
                                                                  "detail":  "job count=262 (min 50)",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H02",
                                                                  "name":  "employment.Job: MinSalaryLocal \u003c= MaxSalaryLocal",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H03",
                                                                  "name":  "employment.Job: All salaries \u003e 0",
                                                                  "status":  "PASS",
                                                                  "detail":  "zero/negative salary rows=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H04",
                                                                  "name":  "employment.Job: JobCode unique",
                                                                  "status":  "PASS",
                                                                  "detail":  "duplicate JobCodes=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H05",
                                                                  "name":  "employment.Job: GradeLevel in valid set",
                                                                  "status":  "PASS",
                                                                  "detail":  "invalid grade rows=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H06",
                                                                  "name":  "employment.Job: Sector in valid set",
                                                                  "status":  "PASS",
                                                                  "detail":  "invalid sector rows=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H07",
                                                                  "name":  "employment.Job: At least 10 distinct sectors",
                                                                  "status":  "PASS",
                                                                  "detail":  "distinct sectors=25 (min 10)",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H08",
                                                                  "name":  "employment.Job: Entry-level jobs present",
                                                                  "status":  "PASS",
                                                                  "detail":  "entry-level job count=46 (min 10)",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H09",
                                                                  "name":  "hr.Employee populated",
                                                                  "status":  "PASS",
                                                                  "detail":  "employee count=86,690",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H10",
                                                                  "name":  "hr.Employee.CitizenId FK integrity",
                                                                  "status":  "PASS",
                                                                  "detail":  "orphaned employee rows=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H11",
                                                                  "name":  "hr.Payroll: NetAmount \u003c= GrossAmount",
                                                                  "status":  "PASS",
                                                                  "detail":  "violations=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H12",
                                                                  "name":  "hr.SocialInsuranceScheme: Health and Pension schemes seeded",
                                                                  "status":  "PASS",
                                                                  "detail":  "health schemes=1, pension schemes=1",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H13",
                                                                  "name":  "hr.GradeTierMap covers all GradeBands used by hr.Position",
                                                                  "status":  "PASS",
                                                                  "detail":  "unmapped grade bands=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H14",
                                                                  "name":  "hr.Payroll: no rows after Employee.SeparationDateUtc",
                                                                  "status":  "PASS",
                                                                  "detail":  "payroll rows after separation=0",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H15",
                                                                  "name":  "hr.Payroll: deduction pass evidence (NetAmount \u003c GrossAmount)",
                                                                  "status":  "N/A",
                                                                  "detail":  "hr.Payroll is empty -- generator has not run yet in this environment",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H16",
                                                                  "name":  "hr.Payroll rows after the employee\u0027s own citizen DeathDate",
                                                                  "status":  "N/A",
                                                                  "detail":  "hr.Payroll is empty",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-H17",
                                                                  "name":  "% of citizens who died at age 25+ with any hr.Employee history",
                                                                  "status":  "PASS",
                                                                  "detail":  "measurement only (HR participation is a small public-sector subset, not universal): 0 of 211496",
                                                                  "source":  "09_certification.sql"
                                                              },
                                                              {
                                                                  "code":  "HR-R00",
                                                                  "name":  "",
                                                                  "status":  "N/A",
                                                                  "detail":  "hr.Payroll is empty -- this city\u0027s generator has not run yet",
                                                                  "source":  "10_realism_certification.sql"
                                                              }
                                                          ]
                                           },
                               "lagos":  {
                                             "total":  22,
                                             "pass":  22,
                                             "fail":  0,
                                             "warn":  0,
                                             "info":  0,
                                             "na":  0,
                                             "failChecks":  {

                                                            },
                                             "checks":  [
                                                            {
                                                                "code":  "HR-H01",
                                                                "name":  "employment.Job populated",
                                                                "status":  "PASS",
                                                                "detail":  "job count=261 (min 50)",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H02",
                                                                "name":  "employment.Job: MinSalaryLocal \u003c= MaxSalaryLocal",
                                                                "status":  "PASS",
                                                                "detail":  "violations=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H03",
                                                                "name":  "employment.Job: All salaries \u003e 0",
                                                                "status":  "PASS",
                                                                "detail":  "zero/negative salary rows=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H04",
                                                                "name":  "employment.Job: JobCode unique",
                                                                "status":  "PASS",
                                                                "detail":  "duplicate JobCodes=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H05",
                                                                "name":  "employment.Job: GradeLevel in valid set",
                                                                "status":  "PASS",
                                                                "detail":  "invalid grade rows=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H06",
                                                                "name":  "employment.Job: Sector in valid set",
                                                                "status":  "PASS",
                                                                "detail":  "invalid sector rows=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H07",
                                                                "name":  "employment.Job: At least 10 distinct sectors",
                                                                "status":  "PASS",
                                                                "detail":  "distinct sectors=25 (min 10)",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H08",
                                                                "name":  "employment.Job: Entry-level jobs present",
                                                                "status":  "PASS",
                                                                "detail":  "entry-level job count=45 (min 10)",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H09",
                                                                "name":  "hr.Employee populated",
                                                                "status":  "PASS",
                                                                "detail":  "employee count=1,191,037",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H10",
                                                                "name":  "hr.Employee.CitizenId FK integrity",
                                                                "status":  "PASS",
                                                                "detail":  "orphaned employee rows=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H11",
                                                                "name":  "hr.Payroll: NetAmount \u003c= GrossAmount",
                                                                "status":  "PASS",
                                                                "detail":  "violations=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H12",
                                                                "name":  "hr.SocialInsuranceScheme: Health and Pension schemes seeded",
                                                                "status":  "PASS",
                                                                "detail":  "health schemes=1, pension schemes=1",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H13",
                                                                "name":  "hr.GradeTierMap covers all GradeBands used by hr.Position",
                                                                "status":  "PASS",
                                                                "detail":  "unmapped grade bands=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H14",
                                                                "name":  "hr.Payroll: no rows after Employee.SeparationDateUtc",
                                                                "status":  "PASS",
                                                                "detail":  "payroll rows after separation=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H15",
                                                                "name":  "hr.Payroll: deduction pass evidence (NetAmount \u003c GrossAmount)",
                                                                "status":  "PASS",
                                                                "detail":  "deducted rows=99,080,411 of 99,080,411 -- 0 suggests usp_ApplyHrPayrollDeductions has not run",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H16",
                                                                "name":  "hr.Payroll rows after the employee\u0027s own citizen DeathDate",
                                                                "status":  "PASS",
                                                                "detail":  "post-death payroll rows=0",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-H17",
                                                                "name":  "% of citizens who died at age 25+ with any hr.Employee history",
                                                                "status":  "PASS",
                                                                "detail":  "measurement only (HR participation is a small public-sector subset, not universal): 0 of 1532470",
                                                                "source":  "09_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-R01",
                                                                "name":  "",
                                                                "status":  "PASS",
                                                                "detail":  "Payroll rows where NetAmount != Gross-PAYE-Health-Pension (within 1.0): 0 of 99080411",
                                                                "source":  "10_realism_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-R02",
                                                                "name":  "",
                                                                "status":  "PASS",
                                                                "detail":  "Average PAYE effective rate: 15.95% of gross (sourced band 5-30%%, Nigeria progressive PAYE bands to 24%)",
                                                                "source":  "10_realism_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-R03",
                                                                "name":  "",
                                                                "status":  "PASS",
                                                                "detail":  "Average pension deduction rate: 7.09% of gross (sourced band 1-10%%, Nigeria Contributory Pension Scheme, 8%% employee contribution)",
                                                                "source":  "10_realism_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-R04",
                                                                "name":  "",
                                                                "status":  "PASS",
                                                                "detail":  "Average health insurance deduction rate: 4.43% of gross (sourced band 0.5-5%%, Nigeria NHIS ~5%% employee contribution)",
                                                                "source":  "10_realism_certification.sql"
                                                            },
                                                            {
                                                                "code":  "HR-R05",
                                                                "name":  "",
                                                                "status":  "PASS",
                                                                "detail":  "Distinct PayrollMonth values: 648",
                                                                "source":  "10_realism_certification.sql"
                                                            }
                                                        ]
                                         }
                           },
                    "construction":  {
                                         "nairobi":  {
                                                         "total":  25,
                                                         "pass":  25,
                                                         "fail":  0,
                                                         "warn":  0,
                                                         "info":  0,
                                                         "na":  0,
                                                         "failChecks":  {

                                                                        },
                                                         "checks":  [
                                                                        {
                                                                            "code":  "construction-C01",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "ProjectSector seeded (2 rows)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C02",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "ProjectType seeded (51 rows)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C03",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit volume (200000 rows)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C04",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit.PermitFeeLocal all \u003e= 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C05",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit temporal order (ApprovalDate \u003e= ApplicationDate)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C06",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "construction.Project volume (100002 rows)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C07",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "construction.Project CompletedUnits within [0, PlannedUnits]",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C08",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "SiteInspection volume (400000 rows)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C09",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit.ContractorBusinessId FK integrity",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C10",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "SiteInspection PASS rate plausible (50.0%)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C11",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "construction.Project PlannedEndDate \u003e StartDate",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C12",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit approval rate plausible (50.0%)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C13",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "every phased project has exactly 4 phases",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C14",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "ConstructionEventIndex populated (87 years)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C15",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "OccupancyCertificate only issued against Completed projects",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C16",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "SiteInspection.InspectionDate not before linked Project.StartDate/Permit.ApprovalDate",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C17",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C18",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "construction.Project.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C19",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "BuildingPermit contractor existed by ApplicationDate (RegistrationDate \u003c= ApplicationDate)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "construction-C20",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "construction.Project contractor existed by StartDate (RegistrationDate \u003c= StartDate)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "CON-R01",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Completed projects finishing after PlannedEndDate: 73.97% of 40002 (real construction/infrastructure projects run late far more often than not -- 0% or near-0% is a generator artifact, not realism)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "CON-R02",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Avg ActualCostLocal/BudgetLocal ratio: 1.100; % over budget: 68.62% (sourced band: ratio 1.0-1.3, \u003e=50% over-budget, per global infrastructure cost-overrun literature)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "CON-R03",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Distinct ProjectTypeId values used: 51; largest single type: 2.00% of 100002 projects",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "CON-R04",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Distinct construction.Project.Status values: 4 of up to 4 (Planned/Active/Completed/Suspended)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "CON-R05",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Distinct SiteInspection.Outcome values: 4 across 400000 inspections",
                                                                            "source":  "10_realism_certification.sql"
                                                                        }
                                                                    ]
                                                     },
                                         "lagos":  {
                                                       "total":  25,
                                                       "pass":  25,
                                                       "fail":  0,
                                                       "warn":  0,
                                                       "info":  0,
                                                       "na":  0,
                                                       "failChecks":  {

                                                                      },
                                                       "checks":  [
                                                                      {
                                                                          "code":  "construction-C01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "ProjectSector seeded (2 rows)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "ProjectType seeded (39 rows)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit volume (2000 rows)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit.PermitFeeLocal all \u003e= 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit temporal order (ApprovalDate \u003e= ApplicationDate)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "construction.Project volume (2001 rows)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C07",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "construction.Project CompletedUnits within [0, PlannedUnits]",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C08",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SiteInspection volume (2000 rows)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C09",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit.ContractorBusinessId FK integrity",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C10",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SiteInspection PASS rate plausible (50.0%)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C11",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "construction.Project PlannedEndDate \u003e StartDate",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C12",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit approval rate plausible (50.0%)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C13",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "every phased project has exactly 4 phases",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C14",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "ConstructionEventIndex populated (87 years)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C15",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "OccupancyCertificate only issued against Completed projects",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C16",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SiteInspection.InspectionDate not before linked Project.StartDate/Permit.ApprovalDate",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C17",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C18",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "construction.Project.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C19",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "BuildingPermit contractor existed by ApplicationDate (RegistrationDate \u003c= ApplicationDate)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "construction-C20",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "construction.Project contractor existed by StartDate (RegistrationDate \u003c= StartDate)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "CON-R01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Completed projects finishing after PlannedEndDate: 73.21% of 601 (real construction/infrastructure projects run late far more often than not -- 0% or near-0% is a generator artifact, not realism)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "CON-R02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Avg ActualCostLocal/BudgetLocal ratio: 1.100; % over budget: 68.55% (sourced band: ratio 1.0-1.3, \u003e=50% over-budget, per global infrastructure cost-overrun literature)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "CON-R03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct ProjectTypeId values used: 39; largest single type: 2.65% of 2001 projects",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "CON-R04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct construction.Project.Status values: 4 of up to 4 (Planned/Active/Completed/Suspended)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "CON-R05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct SiteInspection.Outcome values: 4 across 2000 inspections",
                                                                          "source":  "10_realism_certification.sql"
                                                                      }
                                                                  ]
                                                   }
                                     },
                    "housing":  {
                                    "nairobi":  {
                                                    "total":  21,
                                                    "pass":  20,
                                                    "fail":  0,
                                                    "warn":  0,
                                                    "info":  1,
                                                    "na":  0,
                                                    "failChecks":  {

                                                                   },
                                                    "checks":  [
                                                                   {
                                                                       "code":  "housing-H01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "HousingUnit volume (400000 rows)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H02",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Tenancy volume (1794852 rows)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "RentPayment.AmountLocal all \u003e 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H04",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Tenancy.StartDate within [SeedEpoch, NowDate]",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "RentPayment.PeriodMonth in [1,12]",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H06",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Eviction.NoticeDate \u003e= Tenancy.StartDate",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H07",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Inspection.Outcome all valid catalog values",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H08",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "every ward with a citizen has \u003e=1 housing unit",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H09",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "AffordableHousingProject unit-count consistency (Occupied\u003c=Allocated\u003c=Target)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H10",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Tenancy.MonthlyRentLocal all \u003e= 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H11",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "HousingType diversity (8 distinct values)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H12",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TenureType diversity (6 distinct values)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H13",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "HousingEventIndex populated (87 years)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H14",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "chronology invariants hold (unit/tenancy/inspection/payment ordering)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H15",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Inspection.InspectionCode all valid catalog values",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "housing-H16",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "no open Tenancy for an all-deceased household",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "HSG-R01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Occupied units (open tenancy): 69.52% of 400000 housing units",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "HSG-R02",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Rental tenancies: 896416 vs Owner: 359015 of 1794852 (both cities are real renter-majority urban markets; rental should be \u003e= owner)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "HSG-R03",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "Evictions: 1.39% of 1794852 tenancies -- no cited real-world eviction-rate benchmark yet, not graded (was an uncited 0-25% PASS/WARN band)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "HSG-R04",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Distinct Inspection.Outcome values: 5 across 800000 inspections",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "HSG-R05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "AffordableHousingProject allocation: 66.25% of target units across 200 projects",
                                                                       "source":  "10_realism_certification.sql"
                                                                   }
                                                               ]
                                                },
                                    "lagos":  {
                                                  "total":  21,
                                                  "pass":  20,
                                                  "fail":  0,
                                                  "warn":  0,
                                                  "info":  1,
                                                  "na":  0,
                                                  "failChecks":  {

                                                                 },
                                                  "checks":  [
                                                                 {
                                                                     "code":  "housing-H01",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "HousingUnit volume (2600000 rows)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H02",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Tenancy volume (6851571 rows)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H03",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "RentPayment.AmountLocal all \u003e 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H04",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Tenancy.StartDate within [SeedEpoch, NowDate]",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H05",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "RentPayment.PeriodMonth in [1,12]",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H06",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Eviction.NoticeDate \u003e= Tenancy.StartDate",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H07",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Inspection.Outcome all valid catalog values",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H08",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "every ward with a citizen has \u003e=1 housing unit",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H09",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "AffordableHousingProject unit-count consistency (Occupied\u003c=Allocated\u003c=Target)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H10",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Tenancy.MonthlyRentLocal all \u003e= 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H11",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "HousingType diversity (8 distinct values)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H12",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TenureType diversity (6 distinct values)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H13",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "HousingEventIndex populated (87 years)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H14",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "chronology invariants hold (unit/tenancy/inspection/payment ordering)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H15",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Inspection.InspectionCode all valid catalog values",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "housing-H16",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "no open Tenancy for an all-deceased household",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "HSG-R01",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Occupied units (open tenancy): 64.70% of 2600000 housing units",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "HSG-R02",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Rental tenancies: 4316488 vs Owner: 1370316 of 6851571 (both cities are real renter-majority urban markets; rental should be \u003e= owner)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "HSG-R03",
                                                                     "name":  "",
                                                                     "status":  "INFO",
                                                                     "detail":  "Evictions: 2.94% of 6851571 tenancies -- no cited real-world eviction-rate benchmark yet, not graded (was an uncited 0-25% PASS/WARN band)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "HSG-R04",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Distinct Inspection.Outcome values: 5 across 90476079 inspections",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "HSG-R05",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "AffordableHousingProject allocation: 69.29% of target units across 150 projects",
                                                                     "source":  "10_realism_certification.sql"
                                                                 }
                                                             ]
                                              }
                                },
                    "employment":  {
                                       "nairobi":  {
                                                       "total":  49,
                                                       "pass":  46,
                                                       "fail":  0,
                                                       "warn":  2,
                                                       "info":  1,
                                                       "na":  0,
                                                       "failChecks":  {

                                                                      },
                                                       "checks":  [
                                                                      {
                                                                          "code":  "EMP-E01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Employer volume: 10002",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Department volume: 68576 (expected \u003e= 4x Employer)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract volume: 99508",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SelfEmployment volume: 917922",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Payroll volume: 542519",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.CitizenId FK violations: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E07",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SelfEmployment.CitizenId FK violations: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E08",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows for deceased citizens: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E09",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.StartDate outside [DOB+18, NowDate]: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E10",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.EndDate \u003c StartDate: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E11",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.IsActive/Termination-row mismatches: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E12",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens with both active Contract and active SelfEmployment: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E13",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Payroll rows with GrossAmount\u003c=0 or NetAmount\u003c0: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E14",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Termination.TerminationDate \u003c Contract.StartDate: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E15",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct SectorCode in Employer: 12 (expected \u003e= 5)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E16",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "EmploymentEventIndex populated: 87 years",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E17",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "SelfEmployment.StartDate outside [DOB+18, NowDate]: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E18",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.StartDate after own citizen DeathDate: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E19",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "% of citizens who died at age 25+ with any employment history (Contract or SelfEmployment): 32.17% of 211496 (floor 25%, regression guard for the blanket demographics.Death exclusion pattern)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E20",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Payroll pay-period after Contract.EndDate month: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E21",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Payroll pay-period after citizen DeathDate month: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E22",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "PensionContribution period after Contract.EndDate month: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E23",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "PensionContribution period after citizen DeathDate month: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E24",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract.DepartmentId belonging to a different EmployerId: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E25",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows whose Department slot is not an active mapped choice for JobTitleId: 0 (0 historical/inactive rows preserved as a disclosed pre-Phase-E department-taxonomy artifact, not counted toward this check)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E26",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "JobTitleCatalog titles with no active JobTitleDepartmentMap row: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E27",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract rows whose own non-NULL JobTitleId has no currently-active department mapping: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E28",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "City/Sector cells where active Deployment total exceeds active Participation PAY_WAGE total: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E29",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows whose Department is not applicable for its Employer\u0027s Sector+Size template: 0 (0 historical/inactive rows reported separately, non-gating)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E31",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows whose current-role effective date (ContractRoleHistory/PromotionHistory/StartDate) is still below SeniorityProgressionRule\u0027s age floor for their current SeniorityLevel: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E32",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows holding a credentialed title with no matching completed TertiaryEnrollment: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E33",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows whose title requires a professional license with no matching active ProfessionalLicense: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E34",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows holding an active ProfessionalLicense not in that title\u0027s allowed profession set: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E35",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Nairobi job families proven materially reachable by H0\u0027s shadow diagnostic (AGRO/EDUJ/ENGG/FNAC/HRES) with zero live active representation: 0 (excluded from this gate, no family-level manifest row at this grain -- have real live representation via other title-level evidence instead: EDUJ,ENGG,FNAC,HRES)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E36",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contract rows below the applicable StatutoryWageFloor: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E37",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Within-family seniority coherence (min-vs-max populated level, both \u003e=10 contracts, 10% overlap tolerance): 0 of 6 tested families materially inverted",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E38",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Within-occupation EmployerSize salary ratio: avg=1.1458 max=1.2122",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E39",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Largest exact-value point mass in active GrossMonthlyLocal: 3 of 80146",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E40",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Contract/Payroll gross mismatches=0, Payroll arithmetic mismatches=0, Payroll/Pension mismatches=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E41",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active Contracts under a LIQUIDATED employer (should be 0, closed by usp_CloseLiquidatedEmployerContracts): 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-E42",
                                                                          "name":  "",
                                                                          "status":  "INFO",
                                                                          "detail":  "Active Contracts under a DORMANT/SUSPENDED employer (informational -- no auto-termination policy defined yet): 12841",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-EDU-001",
                                                                          "name":  "",
                                                                          "status":  "WARN",
                                                                          "detail":  "Avg JobTitleCatalog.SeniorityLevel: degree-holders=2.12, no education record at all=2.18 (EMP-00007 causal link)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-EDU-002",
                                                                          "name":  "",
                                                                          "status":  "WARN",
                                                                          "detail":  "Of 2620 active SeniorityLevel\u003e=4 contracts, 1.11% held by a citizen with a COMPLETED tertiary program (sourced floor 40%)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-EDU-003",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Formal-employment rate: no-education-record=4.51% (n=2041), completed-tertiary=7.33% (n=4187)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-R01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct EmploymentType values: 3 across 99508 contracts",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-R02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Active contracts below the minimum wage (KES 15,201/month, Kenya 2022 gazette): 0.00% of 80146 (sourced ceiling 15%% -- some sub-minimum-wage employment is realistic, a majority would not be)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-R03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "GrossMonthlyLocal range: min=18401.17, avg=71257.16, max=368671.83",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-R04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens with both an active Contract and a SelfEmployment record: 0 of 917922 self-employed",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "EMP-R05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct JobTitleId values in use: 36 of 54 cataloged (JobTitleCatalog is under-utilized by the generator -- disclosed, not fixed this pass)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      }
                                                                  ]
                                                   },
                                       "lagos":  {
                                                     "total":  49,
                                                     "pass":  43,
                                                     "fail":  2,
                                                     "warn":  2,
                                                     "info":  1,
                                                     "na":  1,
                                                     "failChecks":  [
                                                                        {
                                                                            "code":  "EMP-E32",
                                                                            "detail":  "Active Contract rows holding a credentialed title with no matching completed TertiaryEnrollment: 3636"
                                                                        },
                                                                        {
                                                                            "code":  "EMP-E33",
                                                                            "detail":  "Active Contract rows whose title requires a professional license with no matching active ProfessionalLicense: 97"
                                                                        }
                                                                    ],
                                                     "checks":  [
                                                                    {
                                                                        "code":  "EMP-E01",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Employer volume: 10002",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E02",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Department volume: 43473 (expected \u003e= 4x Employer)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E03",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract volume: 1384970",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E04",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "SelfEmployment volume: 3469421",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E05",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Payroll volume: 8043728",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E06",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.CitizenId FK violations: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E07",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "SelfEmployment.CitizenId FK violations: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E08",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows for deceased citizens: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E09",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.StartDate outside [DOB+18, NowDate]: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E10",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.EndDate \u003c StartDate: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E11",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.IsActive/Termination-row mismatches: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E12",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Citizens with both active Contract and active SelfEmployment: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E13",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Payroll rows with GrossAmount\u003c=0 or NetAmount\u003c0: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E14",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Termination.TerminationDate \u003c Contract.StartDate: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E15",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Distinct SectorCode in Employer: 16 (expected \u003e= 5)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E16",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "EmploymentEventIndex populated: 87 years",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E17",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "SelfEmployment.StartDate outside [DOB+18, NowDate]: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E18",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.StartDate after own citizen DeathDate: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E19",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "% of citizens who died at age 25+ with any employment history (Contract or SelfEmployment): 33.47% of 1532470 (floor 25%, regression guard for the blanket demographics.Death exclusion pattern)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E20",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Payroll pay-period after Contract.EndDate month: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E21",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Payroll pay-period after citizen DeathDate month: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E22",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "PensionContribution period after Contract.EndDate month: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E23",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "PensionContribution period after citizen DeathDate month: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E24",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract.DepartmentId belonging to a different EmployerId: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E25",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows whose Department slot is not an active mapped choice for JobTitleId: 0 (0 historical/inactive rows preserved as a disclosed pre-Phase-E department-taxonomy artifact, not counted toward this check)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E26",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "JobTitleCatalog titles with no active JobTitleDepartmentMap row: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E27",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract rows whose own non-NULL JobTitleId has no currently-active department mapping: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E28",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "City/Sector cells where active Deployment total exceeds active Participation PAY_WAGE total: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E29",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows whose Department is not applicable for its Employer\u0027s Sector+Size template: 0 (0 historical/inactive rows reported separately, non-gating)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E31",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows whose current-role effective date (ContractRoleHistory/PromotionHistory/StartDate) is still below SeniorityProgressionRule\u0027s age floor for their current SeniorityLevel: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E32",
                                                                        "name":  "",
                                                                        "status":  "FAIL",
                                                                        "detail":  "Active Contract rows holding a credentialed title with no matching completed TertiaryEnrollment: 3636",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E33",
                                                                        "name":  "",
                                                                        "status":  "FAIL",
                                                                        "detail":  "Active Contract rows whose title requires a professional license with no matching active ProfessionalLicense: 97",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E34",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows holding an active ProfessionalLicense not in that title\u0027s allowed profession set: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E35",
                                                                        "name":  "",
                                                                        "status":  "N/A",
                                                                        "detail":  "Nairobi job families proven materially reachable by H0\u0027s shadow diagnostic (AGRO/EDUJ/ENGG/FNAC/HRES) with zero live active representation: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E36",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contract rows below the applicable StatutoryWageFloor: 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E37",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Within-family seniority coherence (min-vs-max populated level, both \u003e=10 contracts, 10% overlap tolerance): 0 of 13 tested families materially inverted",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E38",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Within-occupation EmployerSize salary ratio: avg=1.6115 max=3.3447",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E39",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Largest exact-value point mass in active GrossMonthlyLocal: 1930 of 1191037",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E40",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Contract/Payroll gross mismatches=0, Payroll arithmetic mismatches=0, Payroll/Pension mismatches=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E41",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active Contracts under a LIQUIDATED employer (should be 0, closed by usp_CloseLiquidatedEmployerContracts): 0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-E42",
                                                                        "name":  "",
                                                                        "status":  "INFO",
                                                                        "detail":  "Active Contracts under a DORMANT/SUSPENDED employer (informational -- no auto-termination policy defined yet): 175081",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-EDU-001",
                                                                        "name":  "",
                                                                        "status":  "WARN",
                                                                        "detail":  "Avg JobTitleCatalog.SeniorityLevel: degree-holders=2.37, no education record at all=2.40 (EMP-00007 causal link)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-EDU-002",
                                                                        "name":  "",
                                                                        "status":  "WARN",
                                                                        "detail":  "Of 50466 active SeniorityLevel\u003e=4 contracts, 0.54% held by a citizen with a COMPLETED tertiary program (sourced floor 40%)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-EDU-003",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Formal-employment rate: no-education-record=10.23% (n=43162), completed-tertiary=41.61% (n=5271)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-R01",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Distinct EmploymentType values: 3 across 1384970 contracts",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-R02",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Active contracts below the minimum wage (NGN 70,000/month, Nigeria National Minimum Wage 2024): 0.00% of 1191037 (sourced ceiling 15%% -- some sub-minimum-wage employment is realistic, a majority would not be)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-R03",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "GrossMonthlyLocal range: min=70000.00, avg=137831.72, max=2456799.12",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-R04",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Citizens with both an active Contract and a SelfEmployment record: 0 of 3469421 self-employed",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "EMP-R05",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Distinct JobTitleId values in use: 53 of 58 cataloged (JobTitleCatalog is under-utilized by the generator -- disclosed, not fixed this pass)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    }
                                                                ]
                                                 }
                                   },
                    "finance":  {
                                    "nairobi":  {
                                                    "total":  22,
                                                    "pass":  19,
                                                    "fail":  0,
                                                    "warn":  0,
                                                    "info":  3,
                                                    "na":  0,
                                                    "failChecks":  {

                                                                   },
                                                    "checks":  [
                                                                   {
                                                                       "code":  "FIN-C01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxType volume: 8",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C02",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "BudgetHead volume: 16",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAccount orphaned Citizen/Business FKs: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C04",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAccount rows violating exactly-one-owner: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAssessment orphaned Account/Type FKs: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C06",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAssessment negative amounts / DueDate \u003c AssessmentDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C07",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAssessment orphaned ParcelId FKs: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C08",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxPayment orphaned FK / non-positive amount: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C09",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "BudgetAllocation orphaned FK / negative amount: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C10",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "BudgetExpenditure orphaned FK / non-positive amount: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C11",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "BudgetAllocation rows with cumulative overspend: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C12",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Directorate volume: 10",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C13",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Department orphaned DirectorateId FKs: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C14",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "DepartmentWorkforceWeight sum: 10000 (expected 10000bp)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C15",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAssessment rows with invalid Status: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C16",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxPayment.PaymentDate before its Assessment.AssessmentDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-C17",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Active TaxAccount under a LIQUIDATED business (should be 0): 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-R01",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "Tax assessments with at least one payment: 73.05% of 14984360 -- no cited real-world tax-compliance-rate benchmark yet, not graded (was an uncited 30-98% PASS/WARN band)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-R02",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "Budget utilization (BudgetExpenditure / BudgetAllocation.ApprovedAmount): 86.47% -- no cited real-world budget-utilization-rate benchmark yet, not graded (was an uncited 50-100% PASS/WARN band)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-R03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Distinct TaxTypeId values on TaxAssessment: 4",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-R04",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TaxAccount by CitizenId: 5083540; by BusinessId: 215384 of 5298924",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "FIN-R05",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "Reversed payments: 2.00% of 10945556 -- no cited real-world payment-reversal-rate benchmark yet, not graded (was an uncited 0-10% PASS/WARN band)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   }
                                                               ]
                                                },
                                    "lagos":  {
                                                  "total":  22,
                                                  "pass":  19,
                                                  "fail":  0,
                                                  "warn":  0,
                                                  "info":  3,
                                                  "na":  0,
                                                  "failChecks":  {

                                                                 },
                                                  "checks":  [
                                                                 {
                                                                     "code":  "FIN-C01",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxType volume: 8",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C02",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "BudgetHead volume: 18",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C03",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAccount orphaned Citizen/Business FKs: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C04",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAccount rows violating exactly-one-owner: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C05",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAssessment orphaned Account/Type FKs: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C06",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAssessment negative amounts / DueDate \u003c AssessmentDate: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C07",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAssessment orphaned ParcelId FKs: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C08",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxPayment orphaned FK / non-positive amount: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C09",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "BudgetAllocation orphaned FK / negative amount: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C10",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "BudgetExpenditure orphaned FK / non-positive amount: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C11",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "BudgetAllocation rows with cumulative overspend: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C12",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Directorate volume: 9",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C13",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Department orphaned DirectorateId FKs: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C14",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "DepartmentWorkforceWeight sum: 10000 (expected 10000bp)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C15",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAssessment rows with invalid Status: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C16",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxPayment.PaymentDate before its Assessment.AssessmentDate: 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-C17",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Active TaxAccount under a LIQUIDATED business (should be 0): 0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-R01",
                                                                     "name":  "",
                                                                     "status":  "INFO",
                                                                     "detail":  "Tax assessments with at least one payment: 64.09% of 38325462 -- no cited real-world tax-compliance-rate benchmark yet, not graded (was an uncited 30-98% PASS/WARN band)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-R02",
                                                                     "name":  "",
                                                                     "status":  "INFO",
                                                                     "detail":  "Budget utilization (BudgetExpenditure / BudgetAllocation.ApprovedAmount): 83.44% -- no cited real-world budget-utilization-rate benchmark yet, not graded (was an uncited 50-100% PASS/WARN band)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-R03",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "Distinct TaxTypeId values on TaxAssessment: 8",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-R04",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "TaxAccount by CitizenId: 710558; by BusinessId: 822190 of 1532748",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FIN-R05",
                                                                     "name":  "",
                                                                     "status":  "INFO",
                                                                     "detail":  "Reversed payments: 2.00% of 24562176 -- no cited real-world payment-reversal-rate benchmark yet, not graded (was an uncited 0-10% PASS/WARN band)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 }
                                                             ]
                                              }
                                },
                    "transport":  {
                                      "nairobi":  {
                                                      "total":  42,
                                                      "pass":  40,
                                                      "fail":  0,
                                                      "warn":  0,
                                                      "info":  1,
                                                      "na":  1,
                                                      "failChecks":  {

                                                                     },
                                                      "checks":  [
                                                                     {
                                                                         "code":  "TR-C01",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Operator volume: 200",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C02",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Route volume: 200",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C03",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Vehicle volume: 11364",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C04",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Trip volume: 98033028",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C05",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "AccidentParticipant.Role values outside catalog (casing regression guard): 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C06",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Vehicle.OperatorId FK violations: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C07",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Trip.ArrivalUtc \u003c DepartureUtc: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C08",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Vehicle assigned to a Route owned by a different Operator: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C09",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Vehicle.AcquiredDate in the future: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C10",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Ticket.DueDate \u003c IssuedDate: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C11",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Accident.ReportedToPolice=1 with no PoliceReportNumber: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C12",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "AccidentClaim.AccidentId FK violations: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C13",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "DriverLicense.ExpiryDate \u003c= IssuedDate: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C14",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Fare.BoardingStageId = AlightingStageId: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C15",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Trip.DepartureUtc after driver\u0027s own DeathDate: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C16",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "TransportEventIndex populated: 87 years",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C17",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Trip.PassengerCount \u003e Vehicle.SeatCapacity: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C18",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Vehicle.YearOfManufacture \u003e YEAR(AcquiredDate): 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C19",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "DriverLicense.IssuedDate before holder\u0027s 18th birthday: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C20",
                                                                         "name":  "",
                                                                         "status":  "N/A",
                                                                         "detail":  "LicenseRenewal.RenewalDate before original license IssuedDate: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C21",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "TicketPayment.AmountPaidLocal \u003e Ticket.FineAmountLocal: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-C22",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Trip.DepartureUtc after Vehicle.RetiredDate: 0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV01",
                                                                         "name":  "PrivateVehicle populated",
                                                                         "status":  "PASS",
                                                                         "detail":  "vehicle count=223586 (min 1000)",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV02",
                                                                         "name":  "OwnerType coverage (need \u003e=5 of 7)",
                                                                         "status":  "PASS",
                                                                         "detail":  "distinct OwnerType=7",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV03",
                                                                         "name":  "Owner-shape integrity (exactly one owner link per OwnerType)",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV04",
                                                                         "name":  "OwnerCitizenId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphaned rows=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV05",
                                                                         "name":  "OwnerBusinessId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphaned rows=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV06",
                                                                         "name":  "OwnerForeignNationalId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphaned rows=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV07",
                                                                         "name":  "PlateNumber uniqueness",
                                                                         "status":  "PASS",
                                                                         "detail":  "duplicate plate groups=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV08",
                                                                         "name":  "YearOfManufacture in [1980, NowYear]",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV09",
                                                                         "name":  "RegistrationDate \u003c= NowDate",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TRP-PV10",
                                                                         "name":  "Second-vehicle rate plausible (2%-25% of individual owners)",
                                                                         "status":  "PASS",
                                                                         "detail":  "rate=11.94% (19986 of 167319 individual owners)",
                                                                         "source":  "09b_private_vehicle_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R01",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "year=2025 trips/active-vehicle/day=5.617 (4255206 trips / 2074 active vehicles) -- design target 6-10/day per kenya/06_growth.sql, corroborated by Lagos danfo field research (~9.2/day)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R02",
                                                                         "name":  "",
                                                                         "status":  "INFO",
                                                                         "detail":  "active in 2025=2074 of 11364 ever-registered (2436 not yet retired as of NowDate) -- no fixed target, fleet turnover expected",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R03",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "avg occupancy%% peak=77.54 midday=39.87 off-peak=14.84",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R04",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "peak target=[65,95] got=77.5; midday target=[30,55] got=39.9; off-peak target=[10,25] got=14.8",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R05",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "min=6 avg=2051.69 max=2190 trips/vehicle in 2025",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R06",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "revenue-with-no-passengers=0, passengers-with-no-revenue=0",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R07",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "modeled fleet=11364, real-world Nairobi matatu/PSV estimate=[11000-20000] (multiple independent estimates) -- closing this gap is an architecture/volume decision, not a quick fix: Operator/Route/Vehicle/Trip/Passenger all scale together",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R08",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "PassengerJourney rows=1632, ward-coherent (citizen home or work ward matches route corridor)=1582 (96.94%) -- target \u003e=90%, guards against the random-hash CitizenId/TripId linkage this domain used before the 2026-08-01 rewrite",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R09",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "distinct Route/Stage place names=182, mapped in ref.NairobiPlaceWardMap=182 (100.00%) -- target \u003e=90%, guards against future route/stage edits silently introducing an unmapped place",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "TR-R10",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "PassengerJourney rows=1632, date-effective ward-coherent (citizen home OR work ward AS OF the journey\u0027s own date matches route corridor)=1594 (97.67%) -- target \u003e=90%, distinct from TR-R08\u0027s current-ward check: catches period-segmentation/date-matching defects that TR-R08\u0027s current-state view can\u0027t see",
                                                                         "source":  "10_realism_certification.sql"
                                                                     }
                                                                 ]
                                                  },
                                      "lagos":  {
                                                    "total":  42,
                                                    "pass":  39,
                                                    "fail":  0,
                                                    "warn":  1,
                                                    "info":  2,
                                                    "na":  0,
                                                    "failChecks":  {

                                                                   },
                                                    "checks":  [
                                                                   {
                                                                       "code":  "TR-C01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Operator volume: 600",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C02",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Route volume: 99",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Vehicle volume: 1071",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C04",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Trip volume: 24800520",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "AccidentParticipant.Role values outside catalog (casing regression guard): 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C06",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Vehicle.OperatorId FK violations: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C07",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Trip.ArrivalUtc \u003c DepartureUtc: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C08",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Vehicle assigned to a Route owned by a different Operator: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C09",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Vehicle.AcquiredDate in the future: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C10",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Ticket.DueDate \u003c IssuedDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C11",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Accident.ReportedToPolice=1 with no PoliceReportNumber: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C12",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "AccidentClaim.AccidentId FK violations: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C13",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "DriverLicense.ExpiryDate \u003c= IssuedDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C14",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Fare.BoardingStageId = AlightingStageId: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C15",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Trip.DepartureUtc after driver\u0027s own DeathDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C16",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TransportEventIndex populated: 87 years",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C17",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Trip.PassengerCount \u003e Vehicle.SeatCapacity: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C18",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Vehicle.YearOfManufacture \u003e YEAR(AcquiredDate): 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C19",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "DriverLicense.IssuedDate before holder\u0027s 18th birthday: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C20",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "LicenseRenewal.RenewalDate before original license IssuedDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C21",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "TicketPayment.AmountPaidLocal \u003e Ticket.FineAmountLocal: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-C22",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "Trip.DepartureUtc after Vehicle.RetiredDate: 0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV01",
                                                                       "name":  "PrivateVehicle populated",
                                                                       "status":  "PASS",
                                                                       "detail":  "vehicle count=1010668 (min 1000)",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV02",
                                                                       "name":  "OwnerType coverage (need \u003e=5 of 7)",
                                                                       "status":  "PASS",
                                                                       "detail":  "distinct OwnerType=7",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV03",
                                                                       "name":  "Owner-shape integrity (exactly one owner link per OwnerType)",
                                                                       "status":  "PASS",
                                                                       "detail":  "violations=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV04",
                                                                       "name":  "OwnerCitizenId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphaned rows=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV05",
                                                                       "name":  "OwnerBusinessId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphaned rows=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV06",
                                                                       "name":  "OwnerForeignNationalId FK integrity",
                                                                       "status":  "PASS",
                                                                       "detail":  "orphaned rows=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV07",
                                                                       "name":  "PlateNumber uniqueness",
                                                                       "status":  "PASS",
                                                                       "detail":  "duplicate plate groups=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV08",
                                                                       "name":  "YearOfManufacture in [1980, NowYear]",
                                                                       "status":  "PASS",
                                                                       "detail":  "violations=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV09",
                                                                       "name":  "RegistrationDate \u003c= NowDate",
                                                                       "status":  "PASS",
                                                                       "detail":  "violations=0",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TRP-PV10",
                                                                       "name":  "Second-vehicle rate plausible (2%-25% of individual owners)",
                                                                       "status":  "PASS",
                                                                       "detail":  "rate=12.06% (97214 of 806147 individual owners)",
                                                                       "source":  "09b_private_vehicle_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R01",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "year=2025 trips/active-vehicle/day=5.860 (1868388 trips / 873 active vehicles) -- design target 6-10/day per kenya/06_growth.sql, corroborated by Lagos danfo field research (~9.2/day)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R02",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "active in 2025=873 of 1071 ever-registered (1071 not yet retired as of NowDate) -- no fixed target, fleet turnover expected",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R03",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "avg occupancy%% peak=74.01 midday=36.42 off-peak=9.76",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R04",
                                                                       "name":  "",
                                                                       "status":  "WARN",
                                                                       "detail":  "Lagos danfo peak target \u003e=100%% (real danfos routinely carry 100-150%% of seats -- LAMATA/Lagos transport-plan data, Agbiboa 2023, Bjorkegren et al.) got=74.0; midday=36.4 off-peak=9.8 (no cited Lagos time-of-day breakdown -- reported, not scored)",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R05",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "min=186 avg=2140.19 max=2190 trips/vehicle in 2025",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R06",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "revenue-with-no-passengers=0, passengers-with-no-revenue=0",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R07",
                                                                       "name":  "",
                                                                       "status":  "INFO",
                                                                       "detail":  "modeled fleet=1071 -- no independently-cited absolute Lagos danfo fleet count in this codebase; available research gives modal share instead: danfos ~45.5%% of all Lagos vehicles, ~9.98M passenger-trips/day citywide (2015 LAMATA survey), informal modes ~90%% of all Lagos public-transit trips -- reporting modeled count only, no comparable target",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R08",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "PassengerJourney rows=5905, ward-coherent (citizen home or work ward matches route corridor)=6396 (108.31%) -- target \u003e=90%, guards against the random-hash CitizenId/TripId linkage this domain used before the 2026-08-01 rewrite",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R09",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "distinct Route/Stage place names=95, mapped in ref.LagosPlaceWardMap=95 (100.00%) -- target \u003e=90%, guards against future route/stage edits silently introducing an unmapped place",
                                                                       "source":  "10_realism_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "TR-R10",
                                                                       "name":  "",
                                                                       "status":  "PASS",
                                                                       "detail":  "PassengerJourney rows=5905, date-effective ward-coherent (citizen home OR work ward AS OF the journey\u0027s own date matches route corridor)=5903 (99.97%) -- target \u003e=90%, distinct from TR-R08\u0027s current-ward check",
                                                                       "source":  "10_realism_certification.sql"
                                                                   }
                                                               ]
                                                }
                                  },
                    "insurance":  {
                                      "nairobi":  {
                                                      "total":  21,
                                                      "pass":  17,
                                                      "fail":  0,
                                                      "warn":  0,
                                                      "info":  1,
                                                      "na":  3,
                                                      "failChecks":  {

                                                                     },
                                                      "checks":  [
                                                                     {
                                                                         "code":  "INS-01",
                                                                         "name":  "InsuranceCompany populated",
                                                                         "status":  "PASS",
                                                                         "detail":  "company count=15",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-02",
                                                                         "name":  "Policy catalog populated",
                                                                         "status":  "PASS",
                                                                         "detail":  "policy count=28",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-03",
                                                                         "name":  "Coverage.CitizenId FK integrity",
                                                                         "status":  "PASS",
                                                                         "detail":  "orphaned coverage rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-04",
                                                                         "name":  "Claim amounts non-negative",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-05",
                                                                         "name":  "Policy.LaunchDate \u003e= InsuranceCompany.EstablishedDate",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-06",
                                                                         "name":  "Coverage.StartUtc \u003e= Policy.LaunchDate (INS-HIST-001)",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-07",
                                                                         "name":  "Coverage.StartUtc \u003e= ops.Config SeedEpoch",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-08",
                                                                         "name":  "Claim.SubmittedUtc \u003e= Coverage.StartUtc",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-09",
                                                                         "name":  "Claim.ProcessedUtc \u003e= Claim.SubmittedUtc",
                                                                         "status":  "PASS",
                                                                         "detail":  "violations=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-10",
                                                                         "name":  "Claim.IncidentDate \u003c= Claim.SubmittedUtc",
                                                                         "status":  "N/A",
                                                                         "detail":  "no claims populate IncidentDate in this environment",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-11",
                                                                         "name":  "PremiumPayment: Amount \u003e= 0 and (Coverage,Year,Month) unique",
                                                                         "status":  "PASS",
                                                                         "detail":  "negative-amount rows=0, duplicate coverage-month rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-12",
                                                                         "name":  "Claim: FraudFlag set iff OriginalClaimAmount set",
                                                                         "status":  "PASS",
                                                                         "detail":  "inconsistent rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-13",
                                                                         "name":  "Beneficiary.SharePct in [0,100]",
                                                                         "status":  "N/A",
                                                                         "detail":  "insurance.Beneficiary not present or empty (nigeria extension not active)",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-14",
                                                                         "name":  "AccidentClaim.AccidentId FK integrity",
                                                                         "status":  "N/A",
                                                                         "detail":  "insurance.AccidentClaim empty or transport.Accident not yet deployed",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-15",
                                                                         "name":  "PremiumPayment/Claim dated after the covered citizen\u0027s own DeathDate",
                                                                         "status":  "PASS",
                                                                         "detail":  "post-death premium rows=0, post-death claim rows=0",
                                                                         "source":  "09_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R01",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Distinct Coverage.AcquisitionType values: 4",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R02",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Citizens with active Coverage: 28.93% of 5083540 (sourced band 5-60%%, Kenya NHIF/SHIF and Nigeria NHIS coverage estimates)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R03",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Distinct Claim.Status values: 4 across 1236777 claims",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R04",
                                                                         "name":  "",
                                                                         "status":  "INFO",
                                                                         "detail":  "Claim approval rate: 80.08% of 1236777 claims -- no cited real-world claim-approval-rate benchmark yet, not graded (was an uncited 50-95% PASS/WARN band)",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R05",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Denied/Partial claims missing a RejectionReasonCode: 0 of 184706",
                                                                         "source":  "10_realism_certification.sql"
                                                                     },
                                                                     {
                                                                         "code":  "INS-R06",
                                                                         "name":  "",
                                                                         "status":  "PASS",
                                                                         "detail":  "Claims where ApprovedAmount \u003e ClaimAmount: 0 of 1236777",
                                                                         "source":  "10_realism_certification.sql"
                                                                     }
                                                                 ]
                                                  },
                                      "lagos":  {
                                                    "total":  16,
                                                    "pass":  1,
                                                    "fail":  0,
                                                    "warn":  0,
                                                    "info":  0,
                                                    "na":  15,
                                                    "failChecks":  {

                                                                   },
                                                    "checks":  [
                                                                   {
                                                                       "code":  "INS-01",
                                                                       "name":  "InsuranceCompany populated",
                                                                       "status":  "N/A",
                                                                       "detail":  "no extension has seeded InsuranceCompany yet in this environment",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-02",
                                                                       "name":  "Policy catalog populated",
                                                                       "status":  "N/A",
                                                                       "detail":  "no extension has seeded Policy yet in this environment",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-03",
                                                                       "name":  "Coverage.CitizenId FK integrity",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Coverage is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-04",
                                                                       "name":  "Claim amounts non-negative",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Claim is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-05",
                                                                       "name":  "Policy.LaunchDate \u003e= InsuranceCompany.EstablishedDate",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Policy is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-06",
                                                                       "name":  "Coverage.StartUtc \u003e= Policy.LaunchDate (INS-HIST-001)",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Coverage is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-07",
                                                                       "name":  "Coverage.StartUtc \u003e= ops.Config SeedEpoch",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Coverage is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-08",
                                                                       "name":  "Claim.SubmittedUtc \u003e= Coverage.StartUtc",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Claim is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-09",
                                                                       "name":  "Claim.ProcessedUtc \u003e= Claim.SubmittedUtc",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Claim is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-10",
                                                                       "name":  "Claim.IncidentDate \u003c= Claim.SubmittedUtc",
                                                                       "status":  "N/A",
                                                                       "detail":  "no claims populate IncidentDate in this environment",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-11",
                                                                       "name":  "PremiumPayment: Amount \u003e= 0 and (Coverage,Year,Month) unique",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.PremiumPayment is empty",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-12",
                                                                       "name":  "Claim: FraudFlag set iff OriginalClaimAmount set",
                                                                       "status":  "N/A",
                                                                       "detail":  "no claims populate OriginalClaimAmount in this environment (kenya fraud-injection has not run)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-13",
                                                                       "name":  "Beneficiary.SharePct in [0,100]",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Beneficiary not present or empty (nigeria extension not active)",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-14",
                                                                       "name":  "AccidentClaim.AccidentId FK integrity",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.AccidentClaim empty or transport.Accident not yet deployed",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-15",
                                                                       "name":  "PremiumPayment/Claim dated after the covered citizen\u0027s own DeathDate",
                                                                       "status":  "PASS",
                                                                       "detail":  "post-death premium rows=0, post-death claim rows=0",
                                                                       "source":  "09_certification.sql"
                                                                   },
                                                                   {
                                                                       "code":  "INS-R00",
                                                                       "name":  "",
                                                                       "status":  "N/A",
                                                                       "detail":  "insurance.Coverage is empty -- this city\u0027s generator has not run yet",
                                                                       "source":  "10_realism_certification.sql"
                                                                   }
                                                               ]
                                                }
                                  },
                    "iot":  {
                                "nairobi":  {
                                                "total":  23,
                                                "pass":  23,
                                                "fail":  0,
                                                "warn":  0,
                                                "info":  0,
                                                "na":  0,
                                                "failChecks":  {

                                                               },
                                                "checks":  [
                                                               {
                                                                   "code":  "IOT-01",
                                                                   "name":  "DeviceTypeCatalog and SensorTypeCatalog populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "device types=7, sensor types=10",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-02",
                                                                   "name":  "iot.Device populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "device count=500",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-03",
                                                                   "name":  "Sensor.DeviceId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphaned sensor rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-04",
                                                                   "name":  "Every Device has at least one Sensor",
                                                                   "status":  "PASS",
                                                                   "detail":  "devices with zero sensors=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-05",
                                                                   "name":  "SensorReading.ReadingValue \u003e= 0",
                                                                   "status":  "PASS",
                                                                   "detail":  "violations=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-06",
                                                                   "name":  "SensorReading.SensorId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphaned reading rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-07",
                                                                   "name":  "Alert.ClearedUtc \u003e= Alert.AlertUtc",
                                                                   "status":  "PASS",
                                                                   "detail":  "violations=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-08",
                                                                   "name":  "Alert.Status consistent with ClearedUtc presence",
                                                                   "status":  "PASS",
                                                                   "detail":  "inconsistent rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-09",
                                                                   "name":  "TelemetryStream.DeviceId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphaned stream rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-10",
                                                                   "name":  "Device.WardId resolves against ref.Ward/ref.AdminUnit",
                                                                   "status":  "PASS",
                                                                   "detail":  "unresolved ward references=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R01",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "all reading values within physically plausible range for their SensorType",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R02",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "MotionDetected readings outside {0,1}: 0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R03",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "0 of 10 catalog sensor types have zero readings",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R04",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "worst single-status share within one SensorType=84.7%% (\u003e=99%% would indicate Status is not independent of SensorType)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R04B",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "worst single-status share within one DeviceType=90.0%% (\u003e=99%% would indicate Status is not independent of DeviceType)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R04C",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "worst single-status share within one Protocol=86.0%% (\u003e=99%% would indicate Status is not independent of Protocol)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R05",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "sensors with \u003e=1 alert=1161 of 1500 (77.4%%)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R06",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "0 of 9 non-boolean sensor types show zero variation (constant reading value)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R07",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "city=NRB, ref warmest month=2 (observed avg=19.6C), ref coolest month=7 (observed avg=15.0C)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R08",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "Alert rows where SensorId belongs to a different DeviceId than listed: 0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R09",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "EnergyConsumption readings that decreased from the same sensor\u0027s prior reading: 0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R10",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "avg TrafficCameras/ward: above-average TrafficWeight=2.27, below-average=1.37",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "IOT-R11",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "EnergyConsumption sensors with \u003e=1 alert=116 of 150",
                                                                   "source":  "10_realism_certification.sql"
                                                               }
                                                           ]
                                            },
                                "lagos":  {
                                              "total":  23,
                                              "pass":  23,
                                              "fail":  0,
                                              "warn":  0,
                                              "info":  0,
                                              "na":  0,
                                              "failChecks":  {

                                                             },
                                              "checks":  [
                                                             {
                                                                 "code":  "IOT-01",
                                                                 "name":  "DeviceTypeCatalog and SensorTypeCatalog populated",
                                                                 "status":  "PASS",
                                                                 "detail":  "device types=7, sensor types=10",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-02",
                                                                 "name":  "iot.Device populated",
                                                                 "status":  "PASS",
                                                                 "detail":  "device count=2000",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-03",
                                                                 "name":  "Sensor.DeviceId FK integrity",
                                                                 "status":  "PASS",
                                                                 "detail":  "orphaned sensor rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-04",
                                                                 "name":  "Every Device has at least one Sensor",
                                                                 "status":  "PASS",
                                                                 "detail":  "devices with zero sensors=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-05",
                                                                 "name":  "SensorReading.ReadingValue \u003e= 0",
                                                                 "status":  "PASS",
                                                                 "detail":  "violations=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-06",
                                                                 "name":  "SensorReading.SensorId FK integrity",
                                                                 "status":  "PASS",
                                                                 "detail":  "orphaned reading rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-07",
                                                                 "name":  "Alert.ClearedUtc \u003e= Alert.AlertUtc",
                                                                 "status":  "PASS",
                                                                 "detail":  "violations=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-08",
                                                                 "name":  "Alert.Status consistent with ClearedUtc presence",
                                                                 "status":  "PASS",
                                                                 "detail":  "inconsistent rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-09",
                                                                 "name":  "TelemetryStream.DeviceId FK integrity",
                                                                 "status":  "PASS",
                                                                 "detail":  "orphaned stream rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-10",
                                                                 "name":  "Device.WardId resolves against ref.Ward/ref.AdminUnit",
                                                                 "status":  "PASS",
                                                                 "detail":  "unresolved ward references=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R01",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "all reading values within physically plausible range for their SensorType",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R02",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "MotionDetected readings outside {0,1}: 0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R03",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "0 of 10 catalog sensor types have zero readings",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R04",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "worst single-status share within one SensorType=82.3%% (\u003e=99%% would indicate Status is not independent of SensorType)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R04B",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "worst single-status share within one DeviceType=86.3%% (\u003e=99%% would indicate Status is not independent of DeviceType)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R04C",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "worst single-status share within one Protocol=82.0%% (\u003e=99%% would indicate Status is not independent of Protocol)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R05",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "sensors with \u003e=1 alert=4680 of 6000 (78.0%%)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R06",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "0 of 9 non-boolean sensor types show zero variation (constant reading value)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R07",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "city=LOS, ref warmest month=2 (observed avg=29.0C), ref coolest month=8 (observed avg=25.0C)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R08",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "Alert rows where SensorId belongs to a different DeviceId than listed: 0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R09",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "EnergyConsumption readings that decreased from the same sensor\u0027s prior reading: 0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R10",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "avg TrafficCameras/ward: above-average TrafficWeight=2.15, below-average=0.00",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "IOT-R11",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "EnergyConsumption sensors with \u003e=1 alert=465 of 600",
                                                                 "source":  "10_realism_certification.sql"
                                                             }
                                                         ]
                                          }
                            },
                    "fleet":  {
                                  "nairobi":  {
                                                  "total":  12,
                                                  "pass":  9,
                                                  "fail":  0,
                                                  "warn":  0,
                                                  "info":  0,
                                                  "na":  3,
                                                  "failChecks":  {

                                                                 },
                                                  "checks":  [
                                                                 {
                                                                     "code":  "FLT-01",
                                                                     "name":  "VehicleProfileCatalog / MaintenanceComponentCatalog / LicenseClassCatalog populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "vehicle profiles=135, maintenance components=120, license classes=4",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-02",
                                                                     "name":  "fleet.Driver populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "driver count=1199",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-03",
                                                                     "name":  "Driver.EmployeeId FK integrity",
                                                                     "status":  "PASS",
                                                                     "detail":  "orphaned driver rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-04",
                                                                     "name":  "fleet.Vehicle populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "vehicle count=500",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-05",
                                                                     "name":  "FuelConsumption.VehicleId / DriverId FK integrity",
                                                                     "status":  "N/A",
                                                                     "detail":  "fleet.FuelConsumption is empty",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-06",
                                                                     "name":  "FuelConsumption.Liters/OdometerKm/CostAmount \u003e= 0",
                                                                     "status":  "N/A",
                                                                     "detail":  "fleet.FuelConsumption is empty",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-07",
                                                                     "name":  "Maintenance.VehicleId FK integrity",
                                                                     "status":  "PASS",
                                                                     "detail":  "orphaned maintenance rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-08",
                                                                     "name":  "Maintenance.CompletedUtc \u003e= ScheduledUtc",
                                                                     "status":  "PASS",
                                                                     "detail":  "violations=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-09",
                                                                     "name":  "Vehicle.CreatedUtc not in the future",
                                                                     "status":  "PASS",
                                                                     "detail":  "future-dated vehicles=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-10",
                                                                     "name":  "FleetEventIndex populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "year rows=87",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-11",
                                                                     "name":  "FleetEventIndex.Modifier within [0.10, 2.00]",
                                                                     "status":  "PASS",
                                                                     "detail":  "out-of-range rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "FLT-R00",
                                                                     "name":  "",
                                                                     "status":  "N/A",
                                                                     "detail":  "fleet.FuelConsumption is empty -- this city\u0027s generator has not run yet",
                                                                     "source":  "10_realism_certification.sql"
                                                                 }
                                                             ]
                                              },
                                  "lagos":  {
                                                "total":  16,
                                                "pass":  12,
                                                "fail":  0,
                                                "warn":  1,
                                                "info":  1,
                                                "na":  2,
                                                "failChecks":  {

                                                               },
                                                "checks":  [
                                                               {
                                                                   "code":  "FLT-01",
                                                                   "name":  "VehicleProfileCatalog / MaintenanceComponentCatalog / LicenseClassCatalog populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "vehicle profiles=135, maintenance components=120, license classes=4",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-02",
                                                                   "name":  "fleet.Driver populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "driver count=16469",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-03",
                                                                   "name":  "Driver.EmployeeId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphaned driver rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-04",
                                                                   "name":  "fleet.Vehicle populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "vehicle count=6869",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-05",
                                                                   "name":  "FuelConsumption.VehicleId / DriverId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphaned vehicle refs=0, orphaned driver refs=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-06",
                                                                   "name":  "FuelConsumption.Liters/OdometerKm/CostAmount \u003e= 0",
                                                                   "status":  "PASS",
                                                                   "detail":  "violations=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-07",
                                                                   "name":  "Maintenance.VehicleId FK integrity",
                                                                   "status":  "N/A",
                                                                   "detail":  "fleet.Maintenance is empty",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-08",
                                                                   "name":  "Maintenance.CompletedUtc \u003e= ScheduledUtc",
                                                                   "status":  "N/A",
                                                                   "detail":  "fleet.Maintenance is empty",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-09",
                                                                   "name":  "Vehicle.CreatedUtc not in the future",
                                                                   "status":  "PASS",
                                                                   "detail":  "future-dated vehicles=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-10",
                                                                   "name":  "FleetEventIndex populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "year rows=87",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-11",
                                                                   "name":  "FleetEventIndex.Modifier within [0.10, 2.00]",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-R01",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "FuelConsumption rows where OdometerKm decreased vs. the same vehicle\u0027s prior reading: 0 of 1030350",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-R02",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "Average cost per liter: NGN 1174.84 (sourced band 400.00-1500.00 NGN)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-R03",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "Distinct FuelType values: 2",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-R04",
                                                                   "name":  "",
                                                                   "status":  "WARN",
                                                                   "detail":  "Maintenance events per vehicle: 0.00 (0 events / 6869 vehicles)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "FLT-R05",
                                                                   "name":  "",
                                                                   "status":  "INFO",
                                                                   "detail":  "Driver:Vehicle ratio: 2.40 (16469 drivers / 6869 vehicles) -- no cited real-world driver:vehicle-ratio benchmark yet, not graded (was an uncited 0.5-10.0 PASS/WARN band)",
                                                                   "source":  "10_realism_certification.sql"
                                                               }
                                                           ]
                                            }
                              },
                    "water":  {
                                  "nairobi":  {
                                                  "total":  19,
                                                  "pass":  17,
                                                  "fail":  0,
                                                  "warn":  1,
                                                  "info":  0,
                                                  "na":  1,
                                                  "failChecks":  {

                                                                 },
                                                  "checks":  [
                                                                 {
                                                                     "code":  "WAT-H01",
                                                                     "name":  "TreatmentPlant populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "plant count=55 (min 5)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H02",
                                                                     "name":  "Reservoir populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "reservoir count=202 (min 5)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H03",
                                                                     "name":  "Pipeline populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "pipeline count=1000 (min 50)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H04",
                                                                     "name":  "Meter populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "meter count=190000 (min 1000)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H05",
                                                                     "name":  "Billing AmountLocal plausible",
                                                                     "status":  "PASS",
                                                                     "detail":  "out-of-range=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H06",
                                                                     "name":  "Outage EndDatetime \u003e= StartDatetime",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H07",
                                                                     "name":  "FlowReading WaterLevelPct in [0,100]",
                                                                     "status":  "PASS",
                                                                     "detail":  "out-of-range=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H08",
                                                                     "name":  "Meter.InstallDate not in future",
                                                                     "status":  "PASS",
                                                                     "detail":  "future rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H09",
                                                                     "name":  "Billing.BillingMonth in [1,12]",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H10",
                                                                     "name":  "Billing.PaidDate only set when Paid",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H11",
                                                                     "name":  "FlowReading.ReservoirId FK integrity",
                                                                     "status":  "PASS",
                                                                     "detail":  "orphans=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-H12",
                                                                     "name":  "Every populated ward has an active meter",
                                                                     "status":  "PASS",
                                                                     "detail":  "uncovered populated wards=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R01",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "domestic/prepaid bills with implausible (\u003e500 m3) monthly consumption=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R02",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "active household-linked meter coverage=7.29% (real active-connection research: Nairobi ~7-8%, Lagos ~5-44% depending on definition; band 3-20%)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R03",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "reservoirs with CurrentLevelPct outside [0,100]=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R04",
                                                                     "name":  "",
                                                                     "status":  "WARN",
                                                                     "detail":  "plants with observed output \u003e150% of design CapacityMLD=9",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R05",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "bills dated before their own meter\u0027s InstallDate=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R06",
                                                                     "name":  "",
                                                                     "status":  "N/A",
                                                                     "detail":  "measurement only -- billing collection rate=49.99% -- NOT the same concept as NCWSC\u0027s real ~54% non-revenue-water loss figure (produced-vs-billed volume is unmodeled)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "WAT-R07",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "formal-housing connection rate=7.11%  informal-housing connection rate=3.58%",
                                                                     "source":  "10_realism_certification.sql"
                                                                 }
                                                             ]
                                              },
                                  "lagos":  {
                                                "total":  19,
                                                "pass":  17,
                                                "fail":  0,
                                                "warn":  0,
                                                "info":  0,
                                                "na":  2,
                                                "failChecks":  {

                                                               },
                                                "checks":  [
                                                               {
                                                                   "code":  "WAT-H01",
                                                                   "name":  "TreatmentPlant populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "plant count=96 (min 5)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H02",
                                                                   "name":  "Reservoir populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "reservoir count=300 (min 5)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H03",
                                                                   "name":  "Pipeline populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "pipeline count=3000 (min 50)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H04",
                                                                   "name":  "Meter populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "meter count=698000 (min 1000)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H05",
                                                                   "name":  "Billing AmountLocal plausible",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H06",
                                                                   "name":  "Outage EndDatetime \u003e= StartDatetime",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H07",
                                                                   "name":  "FlowReading WaterLevelPct in [0,100]",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H08",
                                                                   "name":  "Meter.InstallDate not in future",
                                                                   "status":  "PASS",
                                                                   "detail":  "future rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H09",
                                                                   "name":  "Billing.BillingMonth in [1,12]",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H10",
                                                                   "name":  "Billing.PaidDate only set when Paid",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H11",
                                                                   "name":  "FlowReading.ReservoirId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphans=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-H12",
                                                                   "name":  "Every populated ward has an active meter",
                                                                   "status":  "PASS",
                                                                   "detail":  "uncovered populated wards=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R01",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "domestic/prepaid bills with implausible (\u003e500 m3) monthly consumption=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R02",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "active household-linked meter coverage=6.61% (real active-connection research: Nairobi ~7-8%, Lagos ~5-44% depending on definition; band 3-20%)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R03",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "reservoirs with CurrentLevelPct outside [0,100]=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R04",
                                                                   "name":  "",
                                                                   "status":  "N/A",
                                                                   "detail":  "Kenya-only check (validates against NCWSC-specific real capacity data)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R05",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "bills dated before their own meter\u0027s InstallDate=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R06",
                                                                   "name":  "",
                                                                   "status":  "N/A",
                                                                   "detail":  "measurement only -- billing collection rate=49.99% -- NOT the same concept as NCWSC\u0027s real ~54% non-revenue-water loss figure (produced-vs-billed volume is unmodeled)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "WAT-R07",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "formal-housing connection rate=6.87%  informal-housing connection rate=3.42%",
                                                                   "source":  "10_realism_certification.sql"
                                                               }
                                                           ]
                                            }
                              },
                    "power":  {
                                  "nairobi":  {
                                                  "total":  19,
                                                  "pass":  18,
                                                  "fail":  0,
                                                  "warn":  1,
                                                  "info":  0,
                                                  "na":  0,
                                                  "failChecks":  {

                                                                 },
                                                  "checks":  [
                                                                 {
                                                                     "code":  "PWR-H01",
                                                                     "name":  "Substation populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "substation count=80 (min 5)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H02",
                                                                     "name":  "TransmissionLine populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "line count=1200 (min 50)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H03",
                                                                     "name":  "Meter populated",
                                                                     "status":  "PASS",
                                                                     "detail":  "meter count=400000 (min 1000)",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H04",
                                                                     "name":  "Billing AmountLocal plausible",
                                                                     "status":  "PASS",
                                                                     "detail":  "out-of-range=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H05",
                                                                     "name":  "Outage EndDatetime \u003e= StartDatetime",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H06",
                                                                     "name":  "DemandReading.FrequencyHz plausible",
                                                                     "status":  "PASS",
                                                                     "detail":  "out-of-range=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H07",
                                                                     "name":  "Meter.InstallDate not in future",
                                                                     "status":  "PASS",
                                                                     "detail":  "future rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H08",
                                                                     "name":  "Billing.BillingMonth in [1,12]",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H09",
                                                                     "name":  "Billing.PaidDate only set when Paid",
                                                                     "status":  "PASS",
                                                                     "detail":  "bad rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H10",
                                                                     "name":  "DemandReading.SubstationId FK integrity",
                                                                     "status":  "PASS",
                                                                     "detail":  "orphans=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H11",
                                                                     "name":  "Every populated ward has an active meter",
                                                                     "status":  "PASS",
                                                                     "detail":  "uncovered populated wards=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-H12",
                                                                     "name":  "Outage.AffectedHouseholds non-negative",
                                                                     "status":  "PASS",
                                                                     "detail":  "negative rows=0",
                                                                     "source":  "09_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R01",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "residential-class bills with implausible (\u003e5000 kWh) monthly consumption=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R02",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "active household-linked meter coverage=15.35% (disclosed wide sanity band 10-95%, not an independently re-verified electrification target -- see CHANGELOG)",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R03",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "outages lasting \u003e720h (30 days)=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R04",
                                                                     "name":  "",
                                                                     "status":  "WARN",
                                                                     "detail":  "substations with observed peak load \u003e150% of design CapacityMVA=68",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R05",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "bills dated before their own meter\u0027s InstallDate=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R06",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "readings outside the physically plausible [47,53] Hz envelope=0",
                                                                     "source":  "10_realism_certification.sql"
                                                                 },
                                                                 {
                                                                     "code":  "PWR-R07",
                                                                     "name":  "",
                                                                     "status":  "PASS",
                                                                     "detail":  "formal-housing connection rate=14.42%  informal-housing connection rate=7.17%",
                                                                     "source":  "10_realism_certification.sql"
                                                                 }
                                                             ]
                                              },
                                  "lagos":  {
                                                "total":  19,
                                                "pass":  17,
                                                "fail":  0,
                                                "warn":  2,
                                                "info":  0,
                                                "na":  0,
                                                "failChecks":  {

                                                               },
                                                "checks":  [
                                                               {
                                                                   "code":  "PWR-H01",
                                                                   "name":  "Substation populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "substation count=26 (min 5)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H02",
                                                                   "name":  "TransmissionLine populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "line count=520 (min 50)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H03",
                                                                   "name":  "Meter populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "meter count=500000 (min 1000)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H04",
                                                                   "name":  "Billing AmountLocal plausible",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H05",
                                                                   "name":  "Outage EndDatetime \u003e= StartDatetime",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H06",
                                                                   "name":  "DemandReading.FrequencyHz plausible",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H07",
                                                                   "name":  "Meter.InstallDate not in future",
                                                                   "status":  "PASS",
                                                                   "detail":  "future rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H08",
                                                                   "name":  "Billing.BillingMonth in [1,12]",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H09",
                                                                   "name":  "Billing.PaidDate only set when Paid",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H10",
                                                                   "name":  "DemandReading.SubstationId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphans=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H11",
                                                                   "name":  "Every populated ward has an active meter",
                                                                   "status":  "PASS",
                                                                   "detail":  "uncovered populated wards=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-H12",
                                                                   "name":  "Outage.AffectedHouseholds non-negative",
                                                                   "status":  "PASS",
                                                                   "detail":  "negative rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R01",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "residential-class bills with implausible (\u003e5000 kWh) monthly consumption=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R02",
                                                                   "name":  "",
                                                                   "status":  "WARN",
                                                                   "detail":  "active household-linked meter coverage=4.74% (disclosed wide sanity band 10-95%, not an independently re-verified electrification target -- see CHANGELOG)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R03",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "outages lasting \u003e720h (30 days)=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R04",
                                                                   "name":  "",
                                                                   "status":  "WARN",
                                                                   "detail":  "substations with observed peak load \u003e150% of design CapacityMVA=26",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R05",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "bills dated before their own meter\u0027s InstallDate=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R06",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "readings outside the physically plausible [47,53] Hz envelope=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "PWR-R07",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "formal-housing connection rate=5.00%  informal-housing connection rate=2.48%",
                                                                   "source":  "10_realism_certification.sql"
                                                               }
                                                           ]
                                            }
                              },
                    "gas":  {
                                "nairobi":  {
                                                "total":  16,
                                                "pass":  16,
                                                "fail":  0,
                                                "warn":  0,
                                                "info":  0,
                                                "na":  0,
                                                "failChecks":  {

                                                               },
                                                "checks":  [
                                                               {
                                                                   "code":  "GAS-H01",
                                                                   "name":  "DistributionDepot populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "depot count=30 (min 5)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H02",
                                                                   "name":  "CylinderDispatch populated",
                                                                   "status":  "PASS",
                                                                   "detail":  "dispatch count=4000000 (min 10000)",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H03",
                                                                   "name":  "Billing AmountLocal plausible",
                                                                   "status":  "PASS",
                                                                   "detail":  "out-of-range=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H04",
                                                                   "name":  "Incident ResolvedDatetime \u003e= IncidentDatetime",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H05",
                                                                   "name":  "CylinderDispatch.CylinderSizeKG is a real standard size",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H06",
                                                                   "name":  "Billing.BillingMonth in [1,12]",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H07",
                                                                   "name":  "Billing.PaidDate only set when Paid",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H08",
                                                                   "name":  "PressureReading.PipelineId FK integrity",
                                                                   "status":  "PASS",
                                                                   "detail":  "orphans=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-H09",
                                                                   "name":  "DistributionDepot.StorageCapacityM3 positive",
                                                                   "status":  "PASS",
                                                                   "detail":  "bad rows=0",
                                                                   "source":  "09_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R01",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "bills with implausible (\u003e200kg) monthly consumption=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R02",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "reticulated Subscriber count (3000) as % of distinct cylinder-served households (1418052)=0.21% (must stay \u003c=10% -- piped gas is real but niche in both cities, not a mass utility)",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R03",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "dispatches with implausible per-kg price=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R04",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "LOW/MEDIUM-severity incidents carrying a casualty count=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R05",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "bills dated before their own subscriber\u0027s ConnectedDate=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R06",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "negative-pressure rows=0",
                                                                   "source":  "10_realism_certification.sql"
                                                               },
                                                               {
                                                                   "code":  "GAS-R07",
                                                                   "name":  "",
                                                                   "status":  "PASS",
                                                                   "detail":  "formal-housing connection rate=0.12%  informal-housing connection rate=0.04%",
                                                                   "source":  "10_realism_certification.sql"
                                                               }
                                                           ]
                                            },
                                "lagos":  {
                                              "total":  16,
                                              "pass":  16,
                                              "fail":  0,
                                              "warn":  0,
                                              "info":  0,
                                              "na":  0,
                                              "failChecks":  {

                                                             },
                                              "checks":  [
                                                             {
                                                                 "code":  "GAS-H01",
                                                                 "name":  "DistributionDepot populated",
                                                                 "status":  "PASS",
                                                                 "detail":  "depot count=45 (min 5)",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H02",
                                                                 "name":  "CylinderDispatch populated",
                                                                 "status":  "PASS",
                                                                 "detail":  "dispatch count=6000000 (min 10000)",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H03",
                                                                 "name":  "Billing AmountLocal plausible",
                                                                 "status":  "PASS",
                                                                 "detail":  "out-of-range=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H04",
                                                                 "name":  "Incident ResolvedDatetime \u003e= IncidentDatetime",
                                                                 "status":  "PASS",
                                                                 "detail":  "bad rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H05",
                                                                 "name":  "CylinderDispatch.CylinderSizeKG is a real standard size",
                                                                 "status":  "PASS",
                                                                 "detail":  "bad rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H06",
                                                                 "name":  "Billing.BillingMonth in [1,12]",
                                                                 "status":  "PASS",
                                                                 "detail":  "bad rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H07",
                                                                 "name":  "Billing.PaidDate only set when Paid",
                                                                 "status":  "PASS",
                                                                 "detail":  "bad rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H08",
                                                                 "name":  "PressureReading.PipelineId FK integrity",
                                                                 "status":  "PASS",
                                                                 "detail":  "orphans=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-H09",
                                                                 "name":  "DistributionDepot.StorageCapacityM3 positive",
                                                                 "status":  "PASS",
                                                                 "detail":  "bad rows=0",
                                                                 "source":  "09_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R01",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "bills with implausible (\u003e200kg) monthly consumption=0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R02",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "reticulated Subscriber count (5000) as % of distinct cylinder-served households (3139497)=0.16% (must stay \u003c=10% -- piped gas is real but niche in both cities, not a mass utility)",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R03",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "dispatches with implausible per-kg price=0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R04",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "LOW/MEDIUM-severity incidents carrying a casualty count=0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R05",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "bills dated before their own subscriber\u0027s ConnectedDate=0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R06",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "negative-pressure rows=0",
                                                                 "source":  "10_realism_certification.sql"
                                                             },
                                                             {
                                                                 "code":  "GAS-R07",
                                                                 "name":  "",
                                                                 "status":  "PASS",
                                                                 "detail":  "formal-housing connection rate=0.05%  informal-housing connection rate=0.02%",
                                                                 "source":  "10_realism_certification.sql"
                                                             }
                                                         ]
                                          }
                            },
                    "solidwaste":  {
                                       "nairobi":  {
                                                       "total":  15,
                                                       "pass":  14,
                                                       "fail":  0,
                                                       "warn":  1,
                                                       "info":  0,
                                                       "na":  0,
                                                       "failChecks":  {

                                                                      },
                                                       "checks":  [
                                                                      {
                                                                          "code":  "SW-H01",
                                                                          "name":  "CollectionZone populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "zone count=50 (min 5)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H02",
                                                                          "name":  "CollectionVehicle populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "vehicle count=200 (min 20)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H03",
                                                                          "name":  "CollectionRound populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "round count=150000 (min 1000)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H04",
                                                                          "name":  "LandfillDeposit.TippingFeeLocal positive",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H05",
                                                                          "name":  "WasteComplaint.ResolutionDate \u003e= ComplaintDate",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H06",
                                                                          "name":  "CollectionVehicle.LastServiceDate not in future",
                                                                          "status":  "PASS",
                                                                          "detail":  "future rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H07",
                                                                          "name":  "CollectionRound.WasteWeightKG only set for COMPLETED/PARTIAL",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H08",
                                                                          "name":  "CollectionRound.CollectionVehicleId FK integrity",
                                                                          "status":  "PASS",
                                                                          "detail":  "orphans=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-H09",
                                                                          "name":  "Every populated ward has a collection zone",
                                                                          "status":  "WARN",
                                                                          "detail":  "uncovered populated wards=40",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "rounds with implausible (\u003e15,000kg) single-trip weight=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "deposits citing more vehicles (VehicleCount) than exist citywide (200)=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "rounds with implausible (\u003e5,000) single-trip HouseholdsServed=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "deposits with implausible per-tonne rate=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "vehicles with an implausible (pre-1990) LastServiceDate=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "SW-R06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "complaints taking \u003e365 days to resolve=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      }
                                                                  ]
                                                   },
                                       "lagos":  {
                                                     "total":  15,
                                                     "pass":  14,
                                                     "fail":  0,
                                                     "warn":  1,
                                                     "info":  0,
                                                     "na":  0,
                                                     "failChecks":  {

                                                                    },
                                                     "checks":  [
                                                                    {
                                                                        "code":  "SW-H01",
                                                                        "name":  "CollectionZone populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "zone count=260 (min 5)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H02",
                                                                        "name":  "CollectionVehicle populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "vehicle count=780 (min 20)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H03",
                                                                        "name":  "CollectionRound populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "round count=200000 (min 1000)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H04",
                                                                        "name":  "LandfillDeposit.TippingFeeLocal positive",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H05",
                                                                        "name":  "WasteComplaint.ResolutionDate \u003e= ComplaintDate",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H06",
                                                                        "name":  "CollectionVehicle.LastServiceDate not in future",
                                                                        "status":  "PASS",
                                                                        "detail":  "future rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H07",
                                                                        "name":  "CollectionRound.WasteWeightKG only set for COMPLETED/PARTIAL",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H08",
                                                                        "name":  "CollectionRound.CollectionVehicleId FK integrity",
                                                                        "status":  "PASS",
                                                                        "detail":  "orphans=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-H09",
                                                                        "name":  "Every populated ward has a collection zone",
                                                                        "status":  "WARN",
                                                                        "detail":  "uncovered populated wards=26",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R01",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "rounds with implausible (\u003e15,000kg) single-trip weight=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R02",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "deposits citing more vehicles (VehicleCount) than exist citywide (780)=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R03",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "rounds with implausible (\u003e5,000) single-trip HouseholdsServed=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R04",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "deposits with implausible per-tonne rate=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R05",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "vehicles with an implausible (pre-1990) LastServiceDate=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "SW-R06",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "complaints taking \u003e365 days to resolve=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    }
                                                                ]
                                                 }
                                   },
                    "wastewater":  {
                                       "nairobi":  {
                                                       "total":  16,
                                                       "pass":  16,
                                                       "fail":  0,
                                                       "warn":  0,
                                                       "info":  0,
                                                       "na":  0,
                                                       "failChecks":  {

                                                                      },
                                                       "checks":  [
                                                                      {
                                                                          "code":  "WW-H01",
                                                                          "name":  "TreatmentPlant populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "plant count=30 (min 5)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H02",
                                                                          "name":  "SewerLine populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "line count=800 (min 50)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H03",
                                                                          "name":  "Connection populated",
                                                                          "status":  "PASS",
                                                                          "detail":  "connection count=250000 (min 1000)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H04",
                                                                          "name":  "SewageLevy.AmountLocal plausible",
                                                                          "status":  "PASS",
                                                                          "detail":  "out-of-range=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H05",
                                                                          "name":  "OverflowEvent.EndDatetime \u003e= StartDatetime",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H06",
                                                                          "name":  "SewageLevy.LevyMonth in [1,12]",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H07",
                                                                          "name":  "SewageLevy.PaidDate only set when Paid",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H08",
                                                                          "name":  "InfluentReading.TreatmentPlantId FK integrity",
                                                                          "status":  "PASS",
                                                                          "detail":  "orphans=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-H09",
                                                                          "name":  "TreatmentPlant.DesignCapacityMLD positive",
                                                                          "status":  "PASS",
                                                                          "detail":  "bad rows=0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "levies with implausible (\u003e20000) monthly amount=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Connection count (250000) as % of Household count (1794852)=13.93% (must stay \u003c=30% -- sewer connection is real but niche in both cities, not universal)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "readings with EffluentBOD \u003e InfluentBOD=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "LOW/MEDIUM-severity events carrying an affected-households count=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "levies dated before their own connection\u0027s ConnectedDate=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "implausible PHValue rows=0",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "WW-R07",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "formal-housing connection rate=8.00%  informal-housing connection rate=3.98%",
                                                                          "source":  "10_realism_certification.sql"
                                                                      }
                                                                  ]
                                                   },
                                       "lagos":  {
                                                     "total":  16,
                                                     "pass":  16,
                                                     "fail":  0,
                                                     "warn":  0,
                                                     "info":  0,
                                                     "na":  0,
                                                     "failChecks":  {

                                                                    },
                                                     "checks":  [
                                                                    {
                                                                        "code":  "WW-H01",
                                                                        "name":  "TreatmentPlant populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "plant count=40 (min 5)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H02",
                                                                        "name":  "SewerLine populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "line count=1000 (min 50)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H03",
                                                                        "name":  "Connection populated",
                                                                        "status":  "PASS",
                                                                        "detail":  "connection count=220000 (min 1000)",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H04",
                                                                        "name":  "SewageLevy.AmountLocal plausible",
                                                                        "status":  "PASS",
                                                                        "detail":  "out-of-range=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H05",
                                                                        "name":  "OverflowEvent.EndDatetime \u003e= StartDatetime",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H06",
                                                                        "name":  "SewageLevy.LevyMonth in [1,12]",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H07",
                                                                        "name":  "SewageLevy.PaidDate only set when Paid",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H08",
                                                                        "name":  "InfluentReading.TreatmentPlantId FK integrity",
                                                                        "status":  "PASS",
                                                                        "detail":  "orphans=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-H09",
                                                                        "name":  "TreatmentPlant.DesignCapacityMLD positive",
                                                                        "status":  "PASS",
                                                                        "detail":  "bad rows=0",
                                                                        "source":  "09_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R01",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "levies with implausible (\u003e20000) monthly amount=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R02",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "Connection count (220000) as % of Household count (6851571)=3.21% (must stay \u003c=30% -- sewer connection is real but niche in both cities, not universal)",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R03",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "readings with EffluentBOD \u003e InfluentBOD=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R04",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "LOW/MEDIUM-severity events carrying an affected-households count=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R05",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "levies dated before their own connection\u0027s ConnectedDate=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R06",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "implausible PHValue rows=0",
                                                                        "source":  "10_realism_certification.sql"
                                                                    },
                                                                    {
                                                                        "code":  "WW-R07",
                                                                        "name":  "",
                                                                        "status":  "PASS",
                                                                        "detail":  "formal-housing connection rate=1.89%  informal-housing connection rate=0.96%",
                                                                        "source":  "10_realism_certification.sql"
                                                                    }
                                                                ]
                                                 }
                                   },
                    "energy":  {
                                   "nairobi":  {
                                                   "total":  18,
                                                   "pass":  18,
                                                   "fail":  0,
                                                   "warn":  0,
                                                   "info":  0,
                                                   "na":  0,
                                                   "failChecks":  {

                                                                  },
                                                   "checks":  [
                                                                  {
                                                                      "code":  "EN-H01",
                                                                      "name":  "Provider populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "provider count=25",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H02",
                                                                      "name":  "Facility populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "facility count=222",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H03",
                                                                      "name":  "Asset populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "asset count=855",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H04",
                                                                      "name":  "Connection populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "connection count=1564913",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H05",
                                                                      "name":  "Outage populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "outage count=134180",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H06",
                                                                      "name":  "Consumption populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "consumption rows=16929444",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H07",
                                                                      "name":  "Connection.HouseholdId FK integrity (CIP)",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned household connections=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H08",
                                                                      "name":  "Connection.BusinessId FK integrity (CIP)",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned business connections=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H09",
                                                                      "name":  "Connection.ConnectionDate within SeedEpoch-NowDate (TMS)",
                                                                      "status":  "PASS",
                                                                      "detail":  "date violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H10",
                                                                      "name":  "Outage.StartUtc within SeedEpoch-NowDate (TMS)",
                                                                      "status":  "PASS",
                                                                      "detail":  "date violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H11",
                                                                      "name":  "Outage.EstimatedRestorationUtc \u003e= StartUtc (EDS)",
                                                                      "status":  "PASS",
                                                                      "detail":  "EDS violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H12",
                                                                      "name":  "Consumption.ReadingPeriodEnd \u003e ReadingPeriodStart (EDS)",
                                                                      "status":  "PASS",
                                                                      "detail":  "EDS violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-H13",
                                                                      "name":  "MaintenanceEvent.CompletedDate \u003e= ScheduledDate (EDS)",
                                                                      "status":  "PASS",
                                                                      "detail":  "EDS violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-R01",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "rate=75.25%  connected=1350628  total=1794852",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-R02",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "GridSharePct sum=100.00% (expected ~100%)",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-R03",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "active DISCOs=1  distinct outage types=10",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-R04",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "readings with implausible per-kWh rate=0",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "EN-R05",
                                                                      "name":  "",
                                                                      "status":  "PASS",
                                                                      "detail":  "formal-housing connection rate=85.01%  informal-housing connection rate=41.91%",
                                                                      "source":  "10_realism_certification.sql"
                                                                  }
                                                              ]
                                               },
                                   "lagos":  {
                                                 "total":  18,
                                                 "pass":  18,
                                                 "fail":  0,
                                                 "warn":  0,
                                                 "info":  0,
                                                 "na":  0,
                                                 "failChecks":  {

                                                                },
                                                 "checks":  [
                                                                {
                                                                    "code":  "EN-H01",
                                                                    "name":  "Provider populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "provider count=50",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H02",
                                                                    "name":  "Facility populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "facility count=420",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H03",
                                                                    "name":  "Asset populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "asset count=1320",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H04",
                                                                    "name":  "Connection populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "connection count=5640692",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H05",
                                                                    "name":  "Outage populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "outage count=410923",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H06",
                                                                    "name":  "Consumption populated",
                                                                    "status":  "PASS",
                                                                    "detail":  "consumption rows=61027320",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H07",
                                                                    "name":  "Connection.HouseholdId FK integrity (CIP)",
                                                                    "status":  "PASS",
                                                                    "detail":  "orphaned household connections=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H08",
                                                                    "name":  "Connection.BusinessId FK integrity (CIP)",
                                                                    "status":  "PASS",
                                                                    "detail":  "orphaned business connections=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H09",
                                                                    "name":  "Connection.ConnectionDate within SeedEpoch-NowDate (TMS)",
                                                                    "status":  "PASS",
                                                                    "detail":  "date violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H10",
                                                                    "name":  "Outage.StartUtc within SeedEpoch-NowDate (TMS)",
                                                                    "status":  "PASS",
                                                                    "detail":  "date violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H11",
                                                                    "name":  "Outage.EstimatedRestorationUtc \u003e= StartUtc (EDS)",
                                                                    "status":  "PASS",
                                                                    "detail":  "EDS violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H12",
                                                                    "name":  "Consumption.ReadingPeriodEnd \u003e ReadingPeriodStart (EDS)",
                                                                    "status":  "PASS",
                                                                    "detail":  "EDS violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-H13",
                                                                    "name":  "MaintenanceEvent.CompletedDate \u003e= ScheduledDate (EDS)",
                                                                    "status":  "PASS",
                                                                    "detail":  "EDS violations=0",
                                                                    "source":  "09_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-R01",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "rate=70.86%  connected=4855049  total=6851571",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-R02",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "GridSharePct sum=100.00% (expected ~100%)",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-R03",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "active DISCOs=4  distinct outage types=22",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-R04",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "readings with implausible per-kWh rate=0",
                                                                    "source":  "10_realism_certification.sql"
                                                                },
                                                                {
                                                                    "code":  "EN-R05",
                                                                    "name":  "",
                                                                    "status":  "PASS",
                                                                    "detail":  "formal-housing connection rate=84.92%  informal-housing connection rate=41.94%",
                                                                    "source":  "10_realism_certification.sql"
                                                                }
                                                            ]
                                             }
                               },
                    "demographics":  {
                                         "nairobi":  {
                                                         "total":  39,
                                                         "pass":  38,
                                                         "fail":  0,
                                                         "warn":  0,
                                                         "info":  0,
                                                         "na":  1,
                                                         "failChecks":  {

                                                                        },
                                                         "checks":  [
                                                                        {
                                                                            "code":  "DEMO-C01",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "dbo.Citizen volume: 5083540",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C02",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizen.DOB in the future: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C03",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizen registration date must not precede date of birth (RegistrationDate \u003c DOB): 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C04",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Duplicate non-NULL Citizen.NationalId values: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C05",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Household.HeadCitizenId genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C06",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "HouseholdMember.CitizenId not found in dbo.Citizen: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C07",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.Birth.BirthDate does not match Citizen.DOB for the same CitizenId: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C08",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.Death.DeathDate \u003c= own Citizen.DOB: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C09",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.Death.DeathDate in the future: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C10",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 689039 linked births",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C11",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.Migration.MigrationDate in the future: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C12",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.Migration.MigrationDate before own Citizen.DOB: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C13",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Not-dissolved households whose current CITIZEN Head has no matching Household.HeadCitizenId (excludes dissolved households and foreign-national heads -- see comment): 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C14",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "demographics.PopulationSnapshot volume: 7395",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C15",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "TwoParent=81906 (4.6%), SingleMother=439185 (24.5%), SingleFather=433363 (24.1%), ChildHeaded=0 (0.0%), Extended=116717 (6.5%), SinglePerson=523883 (29.2%), Other=199798 (11.1%), of 1794852 households -- 0 child-headed households of 1,794,852 current households (0.00%). ChildHeaded is a measurement only, not a hard-zero requirement -- see DEMO-C22/C23/C24/C27 for the actual structural invariants (all of which DO assert hard zero); a nonzero residual here reflects this database\u0027s own current lineage + placement model coverage, not a certification failure by itself.",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C16",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "% of 80+ birth cohort marked dead: 52.38% of 7569 (floor 15%, regression guard for the one-time-roll mortality bug)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C17",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C18",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate \u003c JoinDate: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C19",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Dissolved households with current members: 0; empty-but-not-marked-dissolved households (informational, not failed on): 0; DissolutionDate/IsActive mismatches: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C20",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C21",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "HouseholdMember rows with JoinDate before the member\u0027s own DOB: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C22",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Minor Head with an eligible non-Lodger adult present in the same household: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C23",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households with a real current member (citizen or foreign national) but no current Head: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C24",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households with more than one current Head: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C25",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "ChildCarePlacement rows with PlacementDate before the placed citizen\u0027s own DOB: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C26",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C27",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C28",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households typed \u0027Single\u0027 with more than 1 current member: 0 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check\u0027s own comment)",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C29",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C30",
                                                                            "name":  "",
                                                                            "status":  "N/A",
                                                                            "detail":  "Households over the size-25 soft cap lacking an explicit FORCED_ABSORPTION_EMERGENCY placement reason: 0 of 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-C31",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
                                                                            "source":  "09_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R01",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Males per 100 females: 100.15 (M=2532608, F=2528907; real populations run ~103-107 at birth). Root cause of any deviation traced to cal.PopulationPyramid seed data itself, not just generator logic -- see CHANGELOG for detail; not fixed here (control-DB scope).",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R02",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Crude birth rate (trailing 12mo births per 1,000 living-population-proxy): 39.31 (199818 births; sourced band 20-40 per UN WPP 2022 Kenya~28.3/Nigeria~34.2)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R03",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Crude death rate (trailing 12mo deaths per 1,000 living-population-proxy): 6.93 (35243 deaths; sourced band 3-15 per UN WPP 2022 Kenya~5.4/Nigeria~11.4)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R04",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Distinct CauseCategory values: 6; largest bucket: 34.98% of 396917 deaths",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R05",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 1000000 rows",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R06",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Migration In=300446 vs Out=199706 (both cities are real net-in-migration urban destinations; In should be \u003e= Out)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R07",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Citizens with DOB in the older half of the observed date range: 131661 vs younger half: 4951879 (a growing population should skew toward the younger/more-recent half)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        },
                                                                        {
                                                                            "code":  "DEMO-R08",
                                                                            "name":  "",
                                                                            "status":  "PASS",
                                                                            "detail":  "Mean live household size: 2.64 (4741272 live members / 1794852 households; sourced band 1.5-7.0 per KNBS 2019 Nairobi~2.9 / Nigeria NDHS~4.8-5.0)",
                                                                            "source":  "10_realism_certification.sql"
                                                                        }
                                                                    ]
                                                     },
                                         "lagos":  {
                                                       "total":  39,
                                                       "pass":  35,
                                                       "fail":  0,
                                                       "warn":  1,
                                                       "info":  0,
                                                       "na":  3,
                                                       "failChecks":  {

                                                                      },
                                                       "checks":  [
                                                                      {
                                                                          "code":  "DEMO-C01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "dbo.Citizen volume: 26387378",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizen.DOB in the future: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizen registration date must not precede date of birth (RegistrationDate \u003c DOB): 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Duplicate non-NULL Citizen.NationalId values: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C05",
                                                                          "name":  "",
                                                                          "status":  "N/A",
                                                                          "detail":  "Household.HeadCitizenId genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): N/A (no HeadCitizenI",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "HouseholdMember.CitizenId not found in dbo.Citizen: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C07",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.Birth.BirthDate does not match Citizen.DOB for the same CitizenId: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C08",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.Death.DeathDate \u003c= own Citizen.DOB: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C09",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.Death.DeathDate in the future: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C10",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 4687303 linked births",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C11",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.Migration.MigrationDate in the future: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C12",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.Migration.MigrationDate before own Citizen.DOB: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C13",
                                                                          "name":  "",
                                                                          "status":  "N/A",
                                                                          "detail":  "Not-dissolved households whose current CITIZEN Head has no matching Household.HeadCitizenId (excludes dissolved households and foreign-national heads -- see comment): N/A (no HeadCitizenI",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C14",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "demographics.PopulationSnapshot volume: 22620",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C15",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "TwoParent=1824810 (26.6%), SingleMother=1473699 (21.5%), SingleFather=1589913 (23.2%), ChildHeaded=0 (0.0%), Extended=70266 (1.0%), SinglePerson=1597213 (23.3%), Other=295670 (4.3%), of 6851571 households -- 0 child-headed households of 6,851,571 current households (0.00%). ChildHeaded is a measurement only, not a hard-zero requirement -- see DEMO-C22/C23/C24/C27 for the actual structural invariants (all of which DO assert hard zero); a nonzero residual here reflects this database\u0027s own current lineage + placement model coverage, not a certification failure by itself.",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C16",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "% of 80+ birth cohort marked dead: 58.70% of 193548 (floor 15%, regression guard for the one-time-roll mortality bug)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C17",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C18",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate \u003c JoinDate: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C19",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Dissolved households with current members: 0; empty-but-not-marked-dissolved households (informational, not failed on): 165; DissolutionDate/IsActive mismatches: N/A (no IsActive col",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C20",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C21",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "HouseholdMember rows with JoinDate before the member\u0027s own DOB: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C22",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Minor Head with an eligible non-Lodger adult present in the same household: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C23",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Households with a real current member (citizen or foreign national) but no current Head: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C24",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Households with more than one current Head: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C25",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "ChildCarePlacement rows with PlacementDate before the placed citizen\u0027s own DOB: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C26",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C27",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C28",
                                                                          "name":  "",
                                                                          "status":  "WARN",
                                                                          "detail":  "Households typed \u0027Single\u0027 with more than 1 current member: 23231 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check\u0027s own comment)",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C29",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C30",
                                                                          "name":  "",
                                                                          "status":  "N/A",
                                                                          "detail":  "Households over the size-25 soft cap lacking an explicit FORCED_ABSORPTION_EMERGENCY placement reason: 0 of 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-C31",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
                                                                          "source":  "09_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R01",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Males per 100 females: 105.82 (M=13566951, F=12820423; real populations run ~103-107 at birth). Root cause of any deviation traced to cal.PopulationPyramid seed data itself, not just generator logic -- see CHANGELOG for detail; not fixed here (control-DB scope).",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R02",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Crude birth rate (trailing 12mo births per 1,000 living-population-proxy): 34.06 (898775 births; sourced band 20-40 per UN WPP 2022 Kenya~28.3/Nigeria~34.2)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R03",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Crude death rate (trailing 12mo deaths per 1,000 living-population-proxy): 6.65 (175365 deaths; sourced band 3-15 per UN WPP 2022 Kenya~5.4/Nigeria~11.4)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R04",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct CauseCategory values: 6; largest bucket: 34.96% of 2308232 deaths",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R05",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 2000000 rows",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R06",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Migration In=599576 vs Out=400936 (both cities are real net-in-migration urban destinations; In should be \u003e= Out)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R07",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Citizens with DOB in the older half of the observed date range: 1599435 vs younger half: 24787943 (a growing population should skew toward the younger/more-recent half)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      },
                                                                      {
                                                                          "code":  "DEMO-R08",
                                                                          "name":  "",
                                                                          "status":  "PASS",
                                                                          "detail":  "Mean live household size: 3.52 (24118246 live members / 6851571 households; sourced band 1.5-7.0 per KNBS 2019 Nairobi~2.9 / Nigeria NDHS~4.8-5.0)",
                                                                          "source":  "10_realism_certification.sql"
                                                                      }
                                                                  ]
                                                   }
                                     },
                    "health":  {
                                   "nairobi":  {
                                                   "total":  94,
                                                   "pass":  82,
                                                   "fail":  5,
                                                   "warn":  2,
                                                   "info":  5,
                                                   "na":  0,
                                                   "failChecks":  [
                                                                      {
                                                                          "code":  "HLT-REL01",
                                                                          "detail":  "Scoped to ENCOUNTER-type prescriptions only -- REFILL-type has no single anchoring visit by design."
                                                                      },
                                                                      {
                                                                          "code":  "HLT-REL02",
                                                                          "detail":  "Population-level General-Surgery/Orthopedic draws (SourceICD10Code IS NULL) are out of scope by design."
                                                                      },
                                                                      {
                                                                          "code":  "HLT-REL03",
                                                                          "detail":  "A general-screening lab with no condition-driven indication would legitimately fail this -- interpret alongside population share, not as an absolute gate, if it ever fires on real data."
                                                                      },
                                                                      {
                                                                          "code":  "HLT-REL05",
                                                                          "detail":  "This is the known, previously-disclosed Emergency/MCH facility-capability gap (COMMERCIAL_RELEASE_SCOPING.md) -- expected to genuinely FAIL on first real data, not a new finding."
                                                                      },
                                                                      {
                                                                          "code":  "HLT-REL08",
                                                                          "detail":  "Only checks allergies identified BEFORE the prescribing visit -- a later-discovered allergy does not retroactively indict an earlier, reasonable prescription."
                                                                      }
                                                                  ],
                                                   "checks":  [
                                                                  {
                                                                      "code":  "HLT-H01",
                                                                      "name":  "Facilities populated",
                                                                      "status":  "PASS",
                                                                      "detail":  "facility count=1252 (min 50)",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H02",
                                                                      "name":  "Patient.CitizenId FK integrity",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned patient rows=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H03",
                                                                      "name":  "One patient record per citizen",
                                                                      "status":  "PASS",
                                                                      "detail":  "duplicate citizen-patients=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H04",
                                                                      "name":  "Visit dates within SeedEpochÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“NowDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "date violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H05",
                                                                      "name":  "Discharge date \u003e= Admission date",
                                                                      "status":  "PASS",
                                                                      "detail":  "violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H06",
                                                                      "name":  "Prescription Quantity and DurationDays \u003e 0",
                                                                      "status":  "PASS",
                                                                      "detail":  "violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H07",
                                                                      "name":  "ClinicalStaff.CitizenId FK integrity",
                                                                      "status":  "PASS",
                                                                      "detail":  "orphaned staff rows=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H08",
                                                                      "name":  "Maternity DeliveryDate within valid window",
                                                                      "status":  "PASS",
                                                                      "detail":  "violations=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H09",
                                                                      "name":  "Each citizen ward has at least one facility",
                                                                      "status":  "PASS",
                                                                      "detail":  "wards without facility=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H10",
                                                                      "name":  "BedOccupancy.OccupiedBeds \u003c= TotalBeds",
                                                                      "status":  "PASS",
                                                                      "detail":  "over-occupied rows=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H11",
                                                                      "name":  "Patient.RegistrationDate \u003e= Citizen.DOB",
                                                                      "status":  "PASS",
                                                                      "detail":  "registrations before birth=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H12",
                                                                      "name":  "Visit.VisitDate \u003e= Citizen.DOB",
                                                                      "status":  "PASS",
                                                                      "detail":  "visits before birth=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H13",
                                                                      "name":  "Visit.VisitDate \u003e= Patient.RegistrationDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "visits before registration=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H14",
                                                                      "name":  "MaternityRecord mother age at delivery in [12,55]",
                                                                      "status":  "PASS",
                                                                      "detail":  "implausible mother age at delivery=0 of 89317",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H15",
                                                                      "name":  "Visit.VisitDate \u003c= own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "visits after death=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H16",
                                                                      "name":  "Health foundation ready (Facility/ClinicalStaff/BedOccupancy populated, no orphaned BedOccupancy.FacilityId)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Facility=1252, ClinicalStaff=88102, BedOccupancy=593269, orphaned BedOccupancy.FacilityId=0 (run NRBDB/LGSDB_01_HealthFoundation if any is 0)",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H17",
                                                                      "name":  "Condition.ResolvedDate \u003c= NowDate (never a phantom future resolution)",
                                                                      "status":  "PASS",
                                                                      "detail":  "future-resolved conditions=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H18",
                                                                      "name":  "Prescription.CreatedUtc within 7 days of NowDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "future-dated prescriptions=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H19",
                                                                      "name":  "Claim.SubmittedDate within 7 days of NowDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "future-dated claims=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H20",
                                                                      "name":  "Visit.VisitDate \u003c= own citizen DepartureDate while non-resident",
                                                                      "status":  "PASS",
                                                                      "detail":  "visits after departure=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-H21",
                                                                      "name":  "No non-resident citizen with a NULL DepartureDate (HLT-H20 presence-check dependency)",
                                                                      "status":  "PASS",
                                                                      "detail":  "non-resident citizens with NULL DepartureDate=0",
                                                                      "source":  "09_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R01",
                                                                      "name":  "Population coverage (Patients / Citizens) -- expected band ~50-85% under the eligibility-gated model",
                                                                      "status":  "PASS",
                                                                      "detail":  "patients=3437155 of 5083540 citizens (67.61%) -- HLT-00007\u0027s 100%-registry policy superseded by HLT-00026; see health/CHANGELOG.md",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R02",
                                                                      "name":  "Utilization coverage (Patients with \u003e=1 visit / Patients)",
                                                                      "status":  "INFO",
                                                                      "detail":  "active patients=2901788 of 3437155 (84.42%) -- generator samples ~2% of PatientId for visit history (documented volume-control, not a realism target); see health/CHANGELOG.md Phase 3 for the proposed risk-weighted replacement",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R03",
                                                                      "name":  "Visit distribution shape (P90\u003eP50, P99\u003eP90, Max\u003e=P99 -- catches a flat/artificial distribution)",
                                                                      "status":  "PASS",
                                                                      "detail":  "P50=3 P90=11 P99=21 Max=57",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R04",
                                                                      "name":  "Age utilization correlation (avg visits 65+ \u003e avg visits 18-44)",
                                                                      "status":  "PASS",
                                                                      "detail":  "avg visits 65+=9.607 vs 18-44=4.717",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R05",
                                                                      "name":  "Chronic disease correlation (avg visits diabetic \u003e non-diabetic)",
                                                                      "status":  "PASS",
                                                                      "detail":  "avg visits diabetic=9.453 vs non-diabetic=4.011",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R06",
                                                                      "name":  "Temporal integrity cross-reference (duplicates HLT-H15 in core cert)",
                                                                      "status":  "PASS",
                                                                      "detail":  "visits after death=0 -- informational duplicate, core/09_certification.sql is authoritative",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R07",
                                                                      "name":  "Clinical plausibility cross-reference (vitals within physiological range)",
                                                                      "status":  "PASS",
                                                                      "detail":  "implausible vital-sign rows=0",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R08",
                                                                      "name":  "Heavy-utilizer tail exists (not artificially capped)",
                                                                      "status":  "PASS",
                                                                      "detail":  "patients \u003e20 visits=31795, \u003e50=14, \u003e100=0",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R09",
                                                                      "name":  "Annual per-capita visit rate vs. real-world benchmark (year 2025)",
                                                                      "status":  "WARN",
                                                                      "detail":  "observed=0.2684 visits/capita/year (1221316 visits / 4549837 living citizens), plausible band=[0.30-2.50] per cited Nairobi FY2017/18 outpatient study + intra-Kenya county range -- known cause: the 2% PatientId volume-control sample (R02), not a data-quality defect; see health/CHANGELOG.md HLT-00008",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R10",
                                                                      "name":  "Eligibility channel mix (Insurance/MaternalCare/ChildImmunization/IllnessEncounter all present + non-degenerate, Insurance smallest of those four; HistoricalDiseaseEvent informational)",
                                                                      "status":  "WARN",
                                                                      "detail":  "HistoricalDiseaseEvent=0, Insurance=0, MaternalCare=1414147, ChildImmunization=943899, IllnessEncounter=1072140 of 3437155 eligible citizens",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R11",
                                                                      "name":  "Enrollment-year distribution spans the full simulation window with visible real event-year bumps",
                                                                      "status":  "PASS",
                                                                      "detail":  "EnrollmentYear range=[1940-2026], canary year=2017 count=171447 vs neighbor avg=86866.8",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-R12",
                                                                      "name":  "Historical disease sampling matches its scaled real-number target within rounding tolerance",
                                                                      "status":  "INFO",
                                                                      "detail":  "no literally-rated events for this city yet -- see 01c_patient_eligibility.sql\u0027s audit",
                                                                      "source":  "10_realism_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS01",
                                                                      "name":  "Every non-initial state has a valid transition edge from its predecessor",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS02",
                                                                      "name":  "State-date sequence never regresses within one (Patient, Disease)",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS03",
                                                                      "name":  "StateDate \u003e= own Condition.OnsetDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS04",
                                                                      "name":  "StateDate \u003c= own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS05",
                                                                      "name":  "No two different states for the same (Patient, Disease) on the same StateDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS06",
                                                                      "name":  "Every PatientDiseaseState row resolves to exactly one health.Condition row",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS07",
                                                                      "name":  "PatientDiseaseState only ever contains diseases registered in DiseaseStateManifest",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDiseaseState rows=6149358",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DS08",
                                                                      "name":  "Diagnosis/Condition untouched by this proc (verified by code inspection)",
                                                                      "status":  "INFO",
                                                                      "detail":  "usp_GenerateHealthDiseaseState only INSERTs into health.PatientDiseaseState -- no UPDATE/DELETE against Diagnosis/Condition exists in this file.",
                                                                      "source":  "19b_disease_state_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP01",
                                                                      "name":  "CarePlan without indication (resolvable Condition) = 0",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP02",
                                                                      "name":  "CarePlan.StartDate \u003e= own Condition.OnsetDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP03",
                                                                      "name":  "CarePlanActivity.ScheduledDate within [CarePlan.StartDate, EndDate]",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP04",
                                                                      "name":  "CareTeamMember.StaffId is an active, real ClinicalStaff row",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP05",
                                                                      "name":  "CareTeamMember staff belongs to the same Facility as the diagnosing Visit",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-CP06",
                                                                      "name":  "No active CarePlan against an already-resolved (closed) Condition",
                                                                      "status":  "PASS",
                                                                      "detail":  "CarePlan rows=2386756",
                                                                      "source":  "20b_careplan_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL01",
                                                                      "name":  "Diagnosis\u003c-\u003eMedication: ENCOUNTER-type Prescription\u0027s medication is plausible for at least one same-visit Diagnosis",
                                                                      "status":  "FAIL",
                                                                      "detail":  "Scoped to ENCOUNTER-type prescriptions only -- REFILL-type has no single anchoring visit by design.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL02",
                                                                      "name":  "Diagnosis\u003c-\u003eProcedure: diagnosis-driven ProcedureEvent.SourceICD10Code has a real DiagnosisProcedureMap entry",
                                                                      "status":  "FAIL",
                                                                      "detail":  "Population-level General-Surgery/Orthopedic draws (SourceICD10Code IS NULL) are out of scope by design.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL03",
                                                                      "name":  "Diagnosis\u003c-\u003eLab: LabResult.PanelCode is a real ConditionLabPanelMap entry for at least one of the patient\u0027s own Conditions",
                                                                      "status":  "FAIL",
                                                                      "detail":  "A general-screening lab with no condition-driven indication would legitimately fail this -- interpret alongside population share, not as an absolute gate, if it ever fires on real data.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL04",
                                                                      "name":  "Visit\u003c-\u003eStaff: AttendingStaffId, when populated, is a real active ClinicalStaff row at the same Facility",
                                                                      "status":  "PASS",
                                                                      "detail":  "AttendingStaffId is nullable by design -- unpopulated rows are not a violation.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL05",
                                                                      "name":  "Visit\u003c-\u003eFacility capability: Emergency/Maternity-ANC visits only occur at a Facility with the matching HasEmergency/HasMaternity flag",
                                                                      "status":  "FAIL",
                                                                      "detail":  "This is the known, previously-disclosed Emergency/MCH facility-capability gap (COMMERCIAL_RELEASE_SCOPING.md) -- expected to genuinely FAIL on first real data, not a new finding.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL06",
                                                                      "name":  "Condition\u003c-\u003ePrescription: every REFILL-type Prescription\u0027s medication maps to its own still-open Condition",
                                                                      "status":  "PASS",
                                                                      "detail":  "Scoped to REFILL-type only -- the corrected generator population, not the disclosed pre-fix 157.66M-row historical population (see CHANGELOG HLT-00040/health/core/06_growth.sql header).",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL07",
                                                                      "name":  "Immunization\u003c-\u003eVaccineManifest: VaccineCode resolves to a real, age-eligible VaccineManifest row",
                                                                      "status":  "PASS",
                                                                      "detail":  "No enforced FK exists between these two tables today -- this check is what actually proves the relationship, not a formality restating a constraint.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL08",
                                                                      "name":  "Allergy\u003c-\u003eMedication: no patient holds an active Prescription for a medication they are recorded allergic to",
                                                                      "status":  "FAIL",
                                                                      "detail":  "Only checks allergies identified BEFORE the prescribing visit -- a later-discovered allergy does not retroactively indict an earlier, reasonable prescription.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-REL09",
                                                                      "name":  "Claim\u003c-\u003eClinical event: ServiceRefId resolves to a real Prescription/ProcedureEvent matching its own ServiceType",
                                                                      "status":  "PASS",
                                                                      "detail":  "ServiceRefId is deliberately not FK-enforced (two possible parent tables per this table\u0027s own header comment) -- this is the data-level proof a schema constraint cannot provide here.",
                                                                      "source":  "23_relationship_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG01",
                                                                      "name":  "ImagingStudy.PerformedDate \u003e= OrderedDate (already a CHECK constraint -- defense in depth)",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG02",
                                                                      "name":  "ImagingResult.ReportedDate \u003e= own ImagingStudy.PerformedDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG03",
                                                                      "name":  "ImagingStudy.PerformedDate \u003e= own source Visit.VisitDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG04",
                                                                      "name":  "ImagingStudy.PerformedDate \u003c= own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG05",
                                                                      "name":  "ImagingStudy.FacilityId meets the study\u0027s own MinFacilityLevel",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-IMG06",
                                                                      "name":  "Every ImagingResult resolves to exactly one real ImagingStudy",
                                                                      "status":  "PASS",
                                                                      "detail":  "ImagingStudy rows=330097",
                                                                      "source":  "21b_imaging_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DEV01",
                                                                      "name":  "Every device has a real clinical indication (SourceProcedureId or SourceICD10Code -- already a CHECK constraint)",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDevice rows=35164",
                                                                      "source":  "22b_medical_device_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DEV02",
                                                                      "name":  "StartDate \u003c= own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDevice rows=35164",
                                                                      "source":  "22b_medical_device_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DEV03",
                                                                      "name":  "Procedure-sourced device StartDate matches its own ProcedureEvent.ProcedureDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDevice rows=35164",
                                                                      "source":  "22b_medical_device_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DEV04",
                                                                      "name":  "Every STENT/AVF-ACCESS device traces to a real qualifying ProcedureEvent",
                                                                      "status":  "PASS",
                                                                      "detail":  "PatientDevice rows=35164",
                                                                      "source":  "22b_medical_device_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM01",
                                                                      "name":  "Symptom.OnsetDate \u003c= own Condition.OnsetDate (symptom precedes/coincides with diagnosis)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM02",
                                                                      "name":  "Symptom.OnsetDate \u003e= own Patient citizen DOB",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM03",
                                                                      "name":  "Symptom.OnsetDate \u003c= own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM04",
                                                                      "name":  "Every Symptom.ConditionId resolves to exactly one real Condition (already a FK -- defense in depth)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM05",
                                                                      "name":  "Health Complete V1 symptom vocabulary is exactly 39 distinct bounded concepts",
                                                                      "status":  "PASS",
                                                                      "detail":  "SymptomCatalog rows=39; distinct standard codes=39; required=39/39",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM06",
                                                                      "name":  "Characteristic symptom mappings cover priority disease families",
                                                                      "status":  "PASS",
                                                                      "detail":  "Required mappings present=16/16",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM07",
                                                                      "name":  "Health Complete V1 symptom map has exact governed cardinality",
                                                                      "status":  "PASS",
                                                                      "detail":  "Mappings=167/167; mapped diseases=53/53",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM08",
                                                                      "name":  "Every DiagnosisSymptomMap row has a valid ResolutionMode and duration bounds (defense in depth vs CK_HDSM_Duration/CK_HDSM_ResolutionMode)",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosisSymptomMap rows=167",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM09",
                                                                      "name":  "Symptom.ResolvedDate \u003e= Symptom.OnsetDate (defense in depth vs CK_HSymptom_Resolved)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM10",
                                                                      "name":  "Symptom.ResolvedDate never in the future and never after own citizen DeathDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140; NowDate=2026-07-02",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM11",
                                                                      "name":  "No EPISODIC/PERSISTENT symptom remains unresolved past its own deterministic candidate resolution date",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM12",
                                                                      "name":  "Every Symptom.ResolvedDate matches its disease-symptom resolution policy, recomputed deterministically",
                                                                      "status":  "PASS",
                                                                      "detail":  "Symptom rows=2067140",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM13",
                                                                      "name":  "Realism (INFO): observed symptom duration distribution, ResolutionMode=EPISODIC",
                                                                      "status":  "INFO",
                                                                      "detail":  "n=629517; median=4d; P95=13d",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SYM13",
                                                                      "name":  "Realism (INFO): observed symptom duration distribution, ResolutionMode=PERSISTENT",
                                                                      "status":  "INFO",
                                                                      "detail":  "n=1056630; median=56d; P95=109d",
                                                                      "source":  "25b_symptom_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SPEC01",
                                                                      "name":  "Every LabResult resolves to exactly one real Specimen (once backfilled)",
                                                                      "status":  "PASS",
                                                                      "detail":  "LabResult rows=19255553, Specimen rows=5361230",
                                                                      "source":  "26b_specimen_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SPEC02",
                                                                      "name":  "Specimen.CollectionDate \u003c= own LabResult.ResultDate for every linked result",
                                                                      "status":  "PASS",
                                                                      "detail":  "Specimen rows=5361230",
                                                                      "source":  "26b_specimen_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SPEC03",
                                                                      "name":  "Specimen.CollectionDate \u003e= own source Visit.VisitDate (when VisitId present)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Specimen rows=5361230",
                                                                      "source":  "26b_specimen_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SPEC04",
                                                                      "name":  "Specimen.FacilityId is a real active facility (FK -- defense in depth)",
                                                                      "status":  "PASS",
                                                                      "detail":  "Specimen rows=5361230",
                                                                      "source":  "26b_specimen_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-SPEC05",
                                                                      "name":  "Coverage: every non-null LabResult (post-backfill) has a SpecimenId",
                                                                      "status":  "PASS",
                                                                      "detail":  "LabResult rows without SpecimenId=0",
                                                                      "source":  "26b_specimen_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-RXD01",
                                                                      "name":  "Every MedicationDispense resolves to exactly one real Prescription (already a FK -- defense in depth)",
                                                                      "status":  "PASS",
                                                                      "detail":  "MedicationDispense rows=60125269",
                                                                      "source":  "27b_medication_dispense_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-RXD02",
                                                                      "name":  "MedicationDispense only exists for Prescription.IsDispensed=1",
                                                                      "status":  "PASS",
                                                                      "detail":  "MedicationDispense rows=60125269",
                                                                      "source":  "27b_medication_dispense_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-RXD03",
                                                                      "name":  "MedicationDispense.DispensedDate \u003e= own source Visit.VisitDate (when VisitId present)",
                                                                      "status":  "PASS",
                                                                      "detail":  "MedicationDispense rows=60125269",
                                                                      "source":  "27b_medication_dispense_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-RXD04",
                                                                      "name":  "Coverage: every IsDispensed=1 Prescription has a MedicationDispense row",
                                                                      "status":  "PASS",
                                                                      "detail":  "IsDispensed=1 Prescription rows=60125269",
                                                                      "source":  "27b_medication_dispense_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DR01",
                                                                      "name":  "Laboratory report IssuedDate \u003e= own Specimen.CollectionDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosticReport rows=5691327",
                                                                      "source":  "28b_diagnostic_report_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DR02",
                                                                      "name":  "Imaging report IssuedDate = own ImagingResult.ReportedDate",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosticReport rows=5691327",
                                                                      "source":  "28b_diagnostic_report_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DR03",
                                                                      "name":  "Category/source-column pairing is exclusive (already a CHECK constraint -- defense in depth)",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosticReport rows=5691327",
                                                                      "source":  "28b_diagnostic_report_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DR04",
                                                                      "name":  "Coverage: every Specimen with \u003e=1 LabResult has a DiagnosticReport",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosticReport rows=5691327",
                                                                      "source":  "28b_diagnostic_report_certification.sql"
                                                                  },
                                                                  {
                                                                      "code":  "HLT-DR05",
                                                                      "name":  "Coverage: every ImagingStudy with an ImagingResult has a DiagnosticReport",
                                                                      "status":  "PASS",
                                                                      "detail":  "DiagnosticReport rows=5691327",
                                                                      "source":  "28b_diagnostic_report_certification.sql"
                                                                  }
                                                              ]
                                               },
                                   "lagos":  {
                                                 "total":  86,
                                                 "pass":  47,
                                                 "fail":  8,
                                                 "warn":  3,
                                                 "info":  2,
                                                 "na":  26,
                                                 "failChecks":  [
                                                                    {
                                                                        "code":  "HLT-REL01",
                                                                        "detail":  "Scoped to ENCOUNTER-type prescriptions only -- REFILL-type has no single anchoring visit by design."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-REL02",
                                                                        "detail":  "Population-level General-Surgery/Orthopedic draws (SourceICD10Code IS NULL) are out of scope by design."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-REL03",
                                                                        "detail":  "A general-screening lab with no condition-driven indication would legitimately fail this -- interpret alongside population share, not as an absolute gate, if it ever fires on real data."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-REL05",
                                                                        "detail":  "This is the known, previously-disclosed Emergency/MCH facility-capability gap (COMMERCIAL_RELEASE_SCOPING.md) -- expected to genuinely FAIL on first real data, not a new finding."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-REL06",
                                                                        "detail":  "Scoped to REFILL-type only -- the corrected generator population, not the disclosed pre-fix 157.66M-row historical population (see CHANGELOG HLT-00040/health/core/06_growth.sql header)."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-REL08",
                                                                        "detail":  "Only checks allergies identified BEFORE the prescribing visit -- a later-discovered allergy does not retroactively indict an earlier, reasonable prescription."
                                                                    },
                                                                    {
                                                                        "code":  "HLT-SPEC05",
                                                                        "detail":  "LabResult rows without SpecimenId=27221873"
                                                                    },
                                                                    {
                                                                        "code":  "HLT-RXD04",
                                                                        "detail":  "IsDispensed=1 Prescription rows=127652943"
                                                                    }
                                                                ],
                                                 "stale":  true,
                                                 "staleReason":  "Lagos Health cannot be safely re-certified while LGSDB_12_HealthBatchDriver (a live full health-generation rebuild, started 2026-09-01 17:13, still running as of this publish) is actively writing to the same tables. As of the last check: core clinical tables substantially populated (Prescription 179.5M, Visit 42.7M, Condition 25.4M rows and growing); MedicationDispense/Symptom/CarePlan/CareTeam/Imaging/PatientDevice tables still at zero, not yet started. These 8 FAIL entries reflect a pre-rebuild snapshot, not current state -- re-run once the rebuild completes."
                                             }
                               }
                }
}