{
  "release": "5.70",
  "sourceGeneratedAt": "2026-09-03T11:11:41Z",
  "sourcePath": "assets/data/certification-summary.json",
  "review": "Publisher-reported results. Review the publication date and scope for each finding.",
  "cities": {
    "lagos": {
      "demographics": {
        "name": "Demographics",
        "status": "sample",
        "sourceKey": "demographics",
        "sourceShared": false,
        "result": {
          "total": 39,
          "pass": 35,
          "fail": 0,
          "warn": 1,
          "info": 0,
          "na": 3,
          "failChecks": {},
          "checks": [
            {
              "code": "DEMO-C01",
              "name": "",
              "status": "PASS",
              "detail": "Citizen volume: 26387378",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C02",
              "name": "",
              "status": "PASS",
              "detail": "resident date of birth in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C03",
              "name": "",
              "status": "PASS",
              "detail": "Citizen registration date must not precede date of birth (RegistrationDate < DOB): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C04",
              "name": "",
              "status": "PASS",
              "detail": "Duplicate non-NULL Citizen.NationalId values: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C05",
              "name": "",
              "status": "N/A",
              "detail": "household leader reference genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): N/A (no HeadCitizenI",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C06",
              "name": "",
              "status": "PASS",
              "detail": "household member resident reference not found in Citizen: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C07",
              "name": "",
              "status": "PASS",
              "detail": "Birth.BirthDate does not match resident date of birth for the same CitizenId: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C08",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate <= own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C09",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C10",
              "name": "",
              "status": "PASS",
              "detail": "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 4687303 linked births",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C11",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C12",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate before own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C13",
              "name": "",
              "status": "N/A",
              "detail": "Not-dissolved households whose current CITIZEN Head has no matching household leader reference (excludes dissolved households and foreign-national heads): N/A (no HeadCitizenI",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C14",
              "name": "",
              "status": "PASS",
              "detail": "PopulationSnapshot volume: 22620",
              "source": "Structural checks"
            },
            {
              "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's own current lineage + placement model coverage, not a certification failure by itself.",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C17",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C18",
              "name": "",
              "status": "PASS",
              "detail": "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate < JoinDate: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C20",
              "name": "",
              "status": "PASS",
              "detail": "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C21",
              "name": "",
              "status": "PASS",
              "detail": "HouseholdMember rows with JoinDate before the member's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C22",
              "name": "",
              "status": "PASS",
              "detail": "Minor Head with an eligible non-Lodger adult present in the same household: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C23",
              "name": "",
              "status": "PASS",
              "detail": "Households with a real current member (citizen or foreign national) but no current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C24",
              "name": "",
              "status": "PASS",
              "detail": "Households with more than one current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C25",
              "name": "",
              "status": "PASS",
              "detail": "ChildCarePlacement rows with PlacementDate before the placed citizen's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C26",
              "name": "",
              "status": "PASS",
              "detail": "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C27",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C28",
              "name": "",
              "status": "WARN",
              "detail": "Households typed 'Single' with more than 1 current member: 23231 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check's own comment)",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C29",
              "name": "",
              "status": "PASS",
              "detail": "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C31",
              "name": "",
              "status": "PASS",
              "detail": "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "DEMO-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct CauseCategory values: 6; largest bucket: 34.96% of 2308232 deaths",
              "source": "Realism checks"
            },
            {
              "code": "DEMO-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 2000000 rows",
              "source": "Realism checks"
            },
            {
              "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 >= Out)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/demographics-certification.html"
      },
      "household": {
        "name": "Households",
        "status": "sample",
        "sourceKey": "demographics",
        "sourceShared": true,
        "result": {
          "total": 39,
          "pass": 35,
          "fail": 0,
          "warn": 1,
          "info": 0,
          "na": 3,
          "failChecks": {},
          "checks": [
            {
              "code": "DEMO-C01",
              "name": "",
              "status": "PASS",
              "detail": "Citizen volume: 26387378",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C02",
              "name": "",
              "status": "PASS",
              "detail": "resident date of birth in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C03",
              "name": "",
              "status": "PASS",
              "detail": "Citizen registration date must not precede date of birth (RegistrationDate < DOB): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C04",
              "name": "",
              "status": "PASS",
              "detail": "Duplicate non-NULL Citizen.NationalId values: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C05",
              "name": "",
              "status": "N/A",
              "detail": "household leader reference genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): N/A (no HeadCitizenI",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C06",
              "name": "",
              "status": "PASS",
              "detail": "household member resident reference not found in Citizen: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C07",
              "name": "",
              "status": "PASS",
              "detail": "Birth.BirthDate does not match resident date of birth for the same CitizenId: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C08",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate <= own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C09",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C10",
              "name": "",
              "status": "PASS",
              "detail": "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 4687303 linked births",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C11",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C12",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate before own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C13",
              "name": "",
              "status": "N/A",
              "detail": "Not-dissolved households whose current CITIZEN Head has no matching household leader reference (excludes dissolved households and foreign-national heads): N/A (no HeadCitizenI",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C14",
              "name": "",
              "status": "PASS",
              "detail": "PopulationSnapshot volume: 22620",
              "source": "Structural checks"
            },
            {
              "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's own current lineage + placement model coverage, not a certification failure by itself.",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C17",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C18",
              "name": "",
              "status": "PASS",
              "detail": "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate < JoinDate: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C20",
              "name": "",
              "status": "PASS",
              "detail": "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C21",
              "name": "",
              "status": "PASS",
              "detail": "HouseholdMember rows with JoinDate before the member's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C22",
              "name": "",
              "status": "PASS",
              "detail": "Minor Head with an eligible non-Lodger adult present in the same household: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C23",
              "name": "",
              "status": "PASS",
              "detail": "Households with a real current member (citizen or foreign national) but no current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C24",
              "name": "",
              "status": "PASS",
              "detail": "Households with more than one current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C25",
              "name": "",
              "status": "PASS",
              "detail": "ChildCarePlacement rows with PlacementDate before the placed citizen's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C26",
              "name": "",
              "status": "PASS",
              "detail": "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C27",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C28",
              "name": "",
              "status": "WARN",
              "detail": "Households typed 'Single' with more than 1 current member: 23231 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check's own comment)",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C29",
              "name": "",
              "status": "PASS",
              "detail": "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C31",
              "name": "",
              "status": "PASS",
              "detail": "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "DEMO-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct CauseCategory values: 6; largest bucket: 34.96% of 2308232 deaths",
              "source": "Realism checks"
            },
            {
              "code": "DEMO-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 2000000 rows",
              "source": "Realism checks"
            },
            {
              "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 >= Out)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/household-certification.html"
      },
      "education": {
        "name": "Education",
        "status": "sample",
        "sourceKey": "education",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EDU-H02",
              "name": "Enrollment.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H03",
              "name": "Teacher.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H04",
              "name": "Student age at enrollment plausible",
              "status": "PASS",
              "detail": "out-of-band rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H05",
              "name": "EnrollmentDate within SeedEpoch..NowDate",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H06",
              "name": "Exam scores in [0,100]",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H07",
              "name": "Bursary amount > 0",
              "status": "PASS",
              "detail": "non-positive rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H08",
              "name": "Teacher licence-number uniqueness",
              "status": "PASS",
              "detail": "duplicate licence numbers=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H09",
              "name": "TertiaryEnrollment end year >= start year",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H10",
              "name": "Every populated ward has an active school",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H11",
              "name": "Attendance date >= Enrollment start",
              "status": "PASS",
              "detail": "violating rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H12",
              "name": "TertiaryInstitution.WardId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H13",
              "name": "StudentPopulation.UniversityId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-R01",
              "name": "",
              "status": "PASS",
              "detail": "enrollment rows with age outside their GradeLevel's plausible band=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EDU-R03",
              "name": "",
              "status": "PASS",
              "detail": "latest fully-generated AcademicYear=2025, max deviation from LSMOE-2022 age-band citation=2.35pp (band <=15pp)",
              "source": "Realism checks"
            },
            {
              "code": "EDU-R04",
              "name": "",
              "status": "N/A",
              "detail": "Kenya-only check (secondary-tier pyramid is a Kenya-specific structure)",
              "source": "Realism checks"
            },
            {
              "code": "EDU-R05",
              "name": "",
              "status": "PASS",
              "detail": "rows with an implausible program length for their ProgramType=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Coverage checks"
            },
            {
              "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": "Coverage checks"
            },
            {
              "code": "EDU-C02b",
              "name": "Examination/TertiaryEnrollment dependency guards",
              "status": "PASS",
              "detail": "Terminal-secondary Enrollment=22993166 -> Examination terminal rows=122990; tertiary-eligible Examination rows=85945 -> TertiaryEnrollment rows=17631",
              "source": "Coverage checks"
            }
          ]
        },
        "report": "cities/lagos/domains/education-certification.html"
      },
      "employment": {
        "name": "Employment",
        "status": "sample",
        "sourceKey": "employment",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EMP-E02",
              "name": "",
              "status": "PASS",
              "detail": "Department volume: 43473 (expected >= 4x Employer)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E03",
              "name": "",
              "status": "PASS",
              "detail": "Contract volume: 1384970",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E04",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment volume: 3469421",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E05",
              "name": "",
              "status": "PASS",
              "detail": "Payroll volume: 8043728",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E06",
              "name": "",
              "status": "PASS",
              "detail": "Contract.CitizenId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E07",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment.CitizenId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E08",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows for deceased citizens: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E09",
              "name": "",
              "status": "PASS",
              "detail": "Contract.StartDate outside [DOB+18, NowDate]: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E10",
              "name": "",
              "status": "PASS",
              "detail": "Contract.EndDate < StartDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E11",
              "name": "",
              "status": "PASS",
              "detail": "Contract.IsActive/Termination-row mismatches: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E12",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with both active Contract and active SelfEmployment: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E13",
              "name": "",
              "status": "PASS",
              "detail": "Payroll rows with GrossAmount<=0 or NetAmount<0: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E14",
              "name": "",
              "status": "PASS",
              "detail": "Termination.TerminationDate < Contract.StartDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E15",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SectorCode in Employer: 16 (expected >= 5)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E16",
              "name": "",
              "status": "PASS",
              "detail": "EmploymentEventIndex populated: 87 years",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E17",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment.StartDate outside [DOB+18, NowDate]: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E18",
              "name": "",
              "status": "PASS",
              "detail": "Contract.StartDate after own citizen DeathDate: 0",
              "source": "Structural checks"
            },
            {
              "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%, check that deceased residents retain employment history)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E20",
              "name": "",
              "status": "PASS",
              "detail": "Payroll pay-period after Contract.EndDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E21",
              "name": "",
              "status": "PASS",
              "detail": "Payroll pay-period after citizen DeathDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E22",
              "name": "",
              "status": "PASS",
              "detail": "PensionContribution period after Contract.EndDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E23",
              "name": "",
              "status": "PASS",
              "detail": "PensionContribution period after citizen DeathDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E24",
              "name": "",
              "status": "PASS",
              "detail": "Contract.DepartmentId belonging to a different EmployerId: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "EMP-E26",
              "name": "",
              "status": "PASS",
              "detail": "JobTitleCatalog titles with no active JobTitleDepartmentMap row: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E27",
              "name": "",
              "status": "PASS",
              "detail": "Contract rows whose own non-NULL JobTitleId has no currently-active department mapping: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E28",
              "name": "",
              "status": "PASS",
              "detail": "City/Sector cells where active Deployment total exceeds active Participation PAY_WAGE total: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E29",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows whose Department is not applicable for its Employer's Sector+Size template: 0 (0 historical/inactive rows reported separately, non-gating)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E31",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows whose current-role effective date (ContractRoleHistory/PromotionHistory/StartDate) is still below SeniorityProgressionRule's age floor for their current SeniorityLevel: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E32",
              "name": "",
              "status": "FAIL",
              "detail": "Active Contract rows holding a credentialed title with no matching completed TertiaryEnrollment: 3636",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E33",
              "name": "",
              "status": "FAIL",
              "detail": "Active Contract rows whose title requires a professional license with no matching active ProfessionalLicense: 97",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E34",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows holding an active ProfessionalLicense not in that title's allowed profession set: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E35",
              "name": "",
              "status": "N/A",
              "detail": "Nairobi job families proven materially reachable by H0's shadow diagnostic (AGRO/EDUJ/ENGG/FNAC/HRES) with zero live active representation: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E36",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows below the applicable StatutoryWageFloor: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E37",
              "name": "",
              "status": "PASS",
              "detail": "Within-family seniority coherence (min-vs-max populated level, both >=10 contracts, 10% overlap tolerance): 0 of 13 tested families materially inverted",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E38",
              "name": "",
              "status": "PASS",
              "detail": "Within-occupation EmployerSize salary ratio: avg=1.6115 max=3.3447",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E39",
              "name": "",
              "status": "PASS",
              "detail": "Largest exact-value point mass in active GrossMonthlyLocal: 1930 of 1191037",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E40",
              "name": "",
              "status": "PASS",
              "detail": "Contract/Payroll gross mismatches=0, Payroll arithmetic mismatches=0, Payroll/Pension mismatches=0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E41",
              "name": "",
              "status": "PASS",
              "detail": "Active Contracts under a LIQUIDATED employer (should be 0): 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E42",
              "name": "",
              "status": "INFO",
              "detail": "Active Contracts under a DORMANT/SUSPENDED employer (informational -- no auto-termination policy defined yet): 175081",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-EDU-002",
              "name": "",
              "status": "WARN",
              "detail": "Of 50466 active SeniorityLevel>=4 contracts, 0.54% held by a citizen with a COMPLETED tertiary program (sourced floor 40%)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-R01",
              "name": "",
              "status": "PASS",
              "detail": "Distinct EmploymentType values: 3 across 1384970 contracts",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-R03",
              "name": "",
              "status": "PASS",
              "detail": "GrossMonthlyLocal range: min=70000.00, avg=137831.72, max=2456799.12",
              "source": "Realism checks"
            },
            {
              "code": "EMP-R04",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with both an active Contract and a SelfEmployment record: 0 of 3469421 self-employed",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/employment-certification.html"
      },
      "health": {
        "name": "Health",
        "status": "sample",
        "sourceKey": "health",
        "sourceShared": false,
        "result": {
          "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 updated population, not the disclosed earlier 157.66M-record population."
            },
            {
              "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": "These 8 failed checks describe an earlier Lagos Health version. Updated certification was unavailable when this report was published. At the last reported check, prescriptions (179.5M), visits (42.7M) and conditions (25.4M) were present, while medication dispensing, symptoms, care plans, care teams, imaging and patient devices had no published records. A newer review is needed to establish current coverage."
        },
        "report": "cities/lagos/domains/health-certification.html"
      },
      "hr": {
        "name": "HR",
        "status": "sample",
        "sourceKey": "hr",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "HR-H02",
              "name": "employment.Job: MinSalaryLocal <= MaxSalaryLocal",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H03",
              "name": "employment.Job: All salaries > 0",
              "status": "PASS",
              "detail": "zero/negative salary rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H04",
              "name": "employment.Job: JobCode unique",
              "status": "PASS",
              "detail": "duplicate JobCodes=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H05",
              "name": "employment.Job: GradeLevel in valid set",
              "status": "PASS",
              "detail": "invalid grade rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H06",
              "name": "employment.Job: Sector in valid set",
              "status": "PASS",
              "detail": "invalid sector rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H07",
              "name": "employment.Job: At least 10 distinct sectors",
              "status": "PASS",
              "detail": "distinct sectors=25 (min 10)",
              "source": "Structural checks"
            },
            {
              "code": "HR-H08",
              "name": "employment.Job: Entry-level jobs present",
              "status": "PASS",
              "detail": "entry-level job count=45 (min 10)",
              "source": "Structural checks"
            },
            {
              "code": "HR-H09",
              "name": "Employee populated",
              "status": "PASS",
              "detail": "employee count=1,191,037",
              "source": "Structural checks"
            },
            {
              "code": "HR-H10",
              "name": "Employee.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned employee rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H11",
              "name": "Payroll: NetAmount <= GrossAmount",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H12",
              "name": "SocialInsuranceScheme: Health and Pension schemes seeded",
              "status": "PASS",
              "detail": "health schemes=1, pension schemes=1",
              "source": "Structural checks"
            },
            {
              "code": "HR-H13",
              "name": "GradeTierMap covers all GradeBands used by Position",
              "status": "PASS",
              "detail": "unmapped grade bands=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H14",
              "name": "Payroll: no rows after Employee.SeparationDateUtc",
              "status": "PASS",
              "detail": "payroll rows after separation=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H15",
              "name": "Payroll: deduction pass evidence (NetAmount < GrossAmount)",
              "status": "PASS",
              "detail": "deducted rows=99,080,411 of 99,080,411 -- 0 would indicate that deductions are absent",
              "source": "Structural checks"
            },
            {
              "code": "HR-H16",
              "name": "Payroll rows after the employee's own citizen DeathDate",
              "status": "PASS",
              "detail": "post-death payroll rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H17",
              "name": "% of citizens who died at age 25+ with any Employee history",
              "status": "PASS",
              "detail": "measurement only (HR participation is a small public-sector subset, not universal): 0 of 1532470",
              "source": "Structural checks"
            },
            {
              "code": "HR-R01",
              "name": "",
              "status": "PASS",
              "detail": "Payroll rows where NetAmount != Gross-PAYE-Health-Pension (within 1.0): 0 of 99080411",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "HR-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct PayrollMonth values: 648",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/hr-certification.html"
      },
      "civil-registration": {
        "name": "Civil Registration",
        "status": "documentation",
        "sourceKey": "civil-registration",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/civil-registration-certification.html"
      },
      "economy": {
        "name": "Economy",
        "status": "documentation",
        "sourceKey": "economy",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/economy-certification.html"
      },
      "business": {
        "name": "Business",
        "status": "sample",
        "sourceKey": "business",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "BIZ-02",
              "name": "Business populated",
              "status": "PASS",
              "detail": "business count=822190",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-03",
              "name": "BusinessCode uniqueness",
              "status": "PASS",
              "detail": "duplicate codes=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-04",
              "name": "Business.SectorCode within converged CHECK enum",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-05",
              "name": "Business.SectorCode resolves in business.SectorCrosswalk",
              "status": "PASS",
              "detail": "unmapped=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-06",
              "name": "Business.OwnerCitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned owner refs=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-07",
              "name": "Business.RegistrationDate not in the future",
              "status": "PASS",
              "detail": "future-dated rows=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-08",
              "name": "Business.EmployeeCount within its BusinessSize band",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-09",
              "name": "transport.Operator.BusinessId FK integrity",
              "status": "PASS",
              "detail": "orphaned operator refs=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-10",
              "name": "No non-liquidated business owned by a deceased citizen",
              "status": "PASS",
              "detail": "non-liquidated businesses with deceased owner=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-11",
              "name": "No owner exceeds the per-owner business cap",
              "status": "PASS",
              "detail": "worst single-owner business count=5, cap=5",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-R01",
              "name": "",
              "status": "PASS",
              "detail": "RegistrationDate before owner date of birth: 0; owner under 18 at registration: 0 of 566598 owned businesses. Ownership timing has been corrected and is checked against the owner’s lifetime.",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "BIZ-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SectorCode values: 16 of 16; largest sector: 22.02% of 822190 businesses",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R04",
              "name": "",
              "status": "PASS",
              "detail": "EmployeeCount > 1 but IsEmployer = 0: 0 of 822190 businesses",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R05",
              "name": "",
              "status": "INFO",
              "detail": "Foreign-owned businesses: 7802 (0.95%) of 822190 -- no cited city-level benchmark, reporting only",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R06",
              "name": "",
              "status": "PASS",
              "detail": "ACTIVE businesses: 80.03% of 822190 (some DORMANT/SUSPENDED/LIQUIDATED expected, not 100% active)",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/business-certification.html"
      },
      "banking": {
        "name": "Banking",
        "status": "planned",
        "sourceKey": "banking",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/banking-certification.html"
      },
      "finance": {
        "name": "Finance",
        "status": "planned",
        "sourceKey": "finance",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "FIN-C02",
              "name": "",
              "status": "PASS",
              "detail": "BudgetHead volume: 18",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C03",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount orphaned Citizen/Business FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C04",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount rows violating exactly-one-owner: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C05",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment orphaned Account/Type FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C06",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment negative amounts / DueDate < AssessmentDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C07",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment orphaned ParcelId FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C08",
              "name": "",
              "status": "PASS",
              "detail": "TaxPayment orphaned FK / non-positive amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C09",
              "name": "",
              "status": "PASS",
              "detail": "BudgetAllocation orphaned FK / negative amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C10",
              "name": "",
              "status": "PASS",
              "detail": "BudgetExpenditure orphaned FK / non-positive amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C11",
              "name": "",
              "status": "PASS",
              "detail": "BudgetAllocation rows with cumulative overspend: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C12",
              "name": "",
              "status": "PASS",
              "detail": "Directorate volume: 9",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C13",
              "name": "",
              "status": "PASS",
              "detail": "Department orphaned DirectorateId FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C14",
              "name": "",
              "status": "PASS",
              "detail": "DepartmentWorkforceWeight sum: 10000 (expected 10000bp)",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C15",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment rows with invalid Status: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C16",
              "name": "",
              "status": "PASS",
              "detail": "TaxPayment.PaymentDate before its Assessment.AssessmentDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C17",
              "name": "",
              "status": "PASS",
              "detail": "Active TaxAccount under a LIQUIDATED business (should be 0): 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "FIN-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct TaxTypeId values on TaxAssessment: 8",
              "source": "Realism checks"
            },
            {
              "code": "FIN-R04",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount by CitizenId: 710558; by BusinessId: 822190 of 1532748",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/finance-certification.html"
      },
      "insurance": {
        "name": "Insurance",
        "status": "sample",
        "sourceKey": "insurance",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "INS-02",
              "name": "Policy catalog populated",
              "status": "N/A",
              "detail": "no extension has seeded Policy yet in this environment",
              "source": "Structural checks"
            },
            {
              "code": "INS-03",
              "name": "Coverage.CitizenId FK integrity",
              "status": "N/A",
              "detail": "insurance.Coverage is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-04",
              "name": "Claim amounts non-negative",
              "status": "N/A",
              "detail": "insurance.Claim is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-05",
              "name": "Policy.LaunchDate >= InsuranceCompany.EstablishedDate",
              "status": "N/A",
              "detail": "insurance.Policy is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-06",
              "name": "Coverage.StartUtc >= Policy.LaunchDate (INS-HIST-001)",
              "status": "N/A",
              "detail": "insurance.Coverage is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-07",
              "name": "Coverage.StartUtc >= ops.Config SeedEpoch",
              "status": "N/A",
              "detail": "insurance.Coverage is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-08",
              "name": "Claim.SubmittedUtc >= Coverage.StartUtc",
              "status": "N/A",
              "detail": "insurance.Claim is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-09",
              "name": "Claim.ProcessedUtc >= Claim.SubmittedUtc",
              "status": "N/A",
              "detail": "insurance.Claim is empty",
              "source": "Structural checks"
            },
            {
              "code": "INS-10",
              "name": "Claim.IncidentDate <= Claim.SubmittedUtc",
              "status": "N/A",
              "detail": "no claims populate IncidentDate in this environment",
              "source": "Structural checks"
            },
            {
              "code": "INS-11",
              "name": "PremiumPayment: Amount >= 0 and (Coverage,Year,Month) unique",
              "status": "N/A",
              "detail": "insurance.PremiumPayment is empty",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "INS-13",
              "name": "Beneficiary.SharePct in [0,100]",
              "status": "N/A",
              "detail": "insurance.Beneficiary not present or empty (nigeria extension not active)",
              "source": "Structural checks"
            },
            {
              "code": "INS-14",
              "name": "AccidentClaim.AccidentId FK integrity",
              "status": "N/A",
              "detail": "insurance.AccidentClaim empty or transport.Accident not yet deployed",
              "source": "Structural checks"
            },
            {
              "code": "INS-15",
              "name": "PremiumPayment/Claim dated after the covered citizen's own DeathDate",
              "status": "PASS",
              "detail": "post-death premium rows=0, post-death claim rows=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-R00",
              "name": "",
              "status": "N/A",
              "detail": "insurance.Coverage is empty -- this city's generator has not run yet",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/insurance-certification.html"
      },
      "commerce": {
        "name": "Commerce",
        "status": "planned",
        "sourceKey": "commerce",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/commerce-certification.html"
      },
      "hospitality": {
        "name": "Hospitality",
        "status": "planned",
        "sourceKey": "hospitality",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/hospitality-certification.html"
      },
      "manufacturing": {
        "name": "Manufacturing",
        "status": "planned",
        "sourceKey": "manufacturing",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/manufacturing-certification.html"
      },
      "agriculture": {
        "name": "Agriculture",
        "status": "planned",
        "sourceKey": "agriculture",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/agriculture-certification.html"
      },
      "housing": {
        "name": "Housing",
        "status": "sample",
        "sourceKey": "housing",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "housing-H02",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy volume (6851571 rows)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H03",
              "name": "",
              "status": "PASS",
              "detail": "RentPayment.AmountLocal all > 0",
              "source": "Structural checks"
            },
            {
              "code": "housing-H04",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy.StartDate within [SeedEpoch, NowDate]",
              "source": "Structural checks"
            },
            {
              "code": "housing-H05",
              "name": "",
              "status": "PASS",
              "detail": "RentPayment.PeriodMonth in [1,12]",
              "source": "Structural checks"
            },
            {
              "code": "housing-H06",
              "name": "",
              "status": "PASS",
              "detail": "Eviction.NoticeDate >= Tenancy.StartDate",
              "source": "Structural checks"
            },
            {
              "code": "housing-H07",
              "name": "",
              "status": "PASS",
              "detail": "Inspection.Outcome all valid catalog values",
              "source": "Structural checks"
            },
            {
              "code": "housing-H08",
              "name": "",
              "status": "PASS",
              "detail": "every ward with a citizen has >=1 housing unit",
              "source": "Structural checks"
            },
            {
              "code": "housing-H09",
              "name": "",
              "status": "PASS",
              "detail": "AffordableHousingProject unit-count consistency (Occupied<=Allocated<=Target)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H10",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy.MonthlyRentLocal all >= 0",
              "source": "Structural checks"
            },
            {
              "code": "housing-H11",
              "name": "",
              "status": "PASS",
              "detail": "HousingType diversity (8 distinct values)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H12",
              "name": "",
              "status": "PASS",
              "detail": "TenureType diversity (6 distinct values)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H13",
              "name": "",
              "status": "PASS",
              "detail": "HousingEventIndex populated (87 years)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H14",
              "name": "",
              "status": "PASS",
              "detail": "chronology invariants hold (unit/tenancy/inspection/payment ordering)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H15",
              "name": "",
              "status": "PASS",
              "detail": "Inspection.InspectionCode all valid catalog values",
              "source": "Structural checks"
            },
            {
              "code": "housing-H16",
              "name": "",
              "status": "PASS",
              "detail": "no open Tenancy for an all-deceased household",
              "source": "Structural checks"
            },
            {
              "code": "HSG-R01",
              "name": "",
              "status": "PASS",
              "detail": "Occupied units (open tenancy): 64.70% of 2600000 housing units",
              "source": "Realism checks"
            },
            {
              "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 >= owner)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "HSG-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct Inspection.Outcome values: 5 across 90476079 inspections",
              "source": "Realism checks"
            },
            {
              "code": "HSG-R05",
              "name": "",
              "status": "PASS",
              "detail": "AffordableHousingProject allocation: 69.29% of target units across 150 projects",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/housing-certification.html"
      },
      "land": {
        "name": "Land",
        "status": "sample",
        "sourceKey": "land",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "LND-L02",
              "name": "Parcel.CitizenOwnerId FK integrity",
              "status": "PASS",
              "detail": "orphaned citizen parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L03",
              "name": "Parcel.BusinessOwnerId FK integrity",
              "status": "PASS",
              "detail": "orphaned business parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L04",
              "name": "No parcel has both CitizenOwnerId and BusinessOwnerId",
              "status": "PASS",
              "detail": "dual-owner parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L05",
              "name": "Parcel.PlotSizeSqM > 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L06",
              "name": "Parcel.MarketValueLocal >= 0 (where populated)",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L07",
              "name": "Each parcel has an InitialGrant ownership record",
              "status": "PASS",
              "detail": "parcels missing initial grant=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L08",
              "name": "OwnershipHistory.TransactionDate within epochÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“NowDate",
              "status": "PASS",
              "detail": "violations=0 [1940-01-01 ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ 2026-07-02]",
              "source": "Structural checks"
            },
            {
              "code": "LND-L09",
              "name": "LandTaxBill.BillAmountLocal > 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L10",
              "name": "Ward coverage >= 95% of wards have parcels",
              "status": "PASS",
              "detail": "wards with parcels=260 of 260",
              "source": "Structural checks"
            },
            {
              "code": "LND-R01",
              "name": "",
              "status": "PASS",
              "detail": "Parcels still owned by a deceased CitizenOwnerId: 0 of 77976",
              "source": "Realism checks"
            },
            {
              "code": "LND-R02",
              "name": "",
              "status": "PASS",
              "detail": "Distinct LandUseType values: 6; largest: 38.88% of 77976 parcels",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "LND-R04",
              "name": "",
              "status": "PASS",
              "detail": "IsEncumbered=1: 8.00% of 77976 parcels",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "LND-R06",
              "name": "",
              "status": "PASS",
              "detail": "OwnershipHistory rows with EndDate before TransactionDate: 0 of 83462",
              "source": "Realism checks"
            },
            {
              "code": "LND-R07",
              "name": "",
              "status": "INFO",
              "detail": "This city's IsEncumbered rate (see LND-R04) should be compared against the other city's own run -- both should show a non-zero, non-trivial rate, not one flat at 0%",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/land-certification.html"
      },
      "construction": {
        "name": "Construction",
        "status": "sample",
        "sourceKey": "construction",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "construction-C02",
              "name": "",
              "status": "PASS",
              "detail": "ProjectType seeded (39 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C03",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit volume (2000 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C04",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.PermitFeeLocal all >= 0",
              "source": "Structural checks"
            },
            {
              "code": "construction-C05",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit temporal order (ApprovalDate >= ApplicationDate)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C06",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project volume (2001 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C07",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project CompletedUnits within [0, PlannedUnits]",
              "source": "Structural checks"
            },
            {
              "code": "construction-C08",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection volume (2000 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C09",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.ContractorBusinessId FK integrity",
              "source": "Structural checks"
            },
            {
              "code": "construction-C10",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection PASS rate plausible (50.0%)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C11",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project PlannedEndDate > StartDate",
              "source": "Structural checks"
            },
            {
              "code": "construction-C12",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit approval rate plausible (50.0%)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C13",
              "name": "",
              "status": "PASS",
              "detail": "every phased project has exactly 4 phases",
              "source": "Structural checks"
            },
            {
              "code": "construction-C14",
              "name": "",
              "status": "PASS",
              "detail": "ConstructionEventIndex populated (87 years)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C15",
              "name": "",
              "status": "PASS",
              "detail": "OccupancyCertificate only issued against Completed projects",
              "source": "Structural checks"
            },
            {
              "code": "construction-C16",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection.InspectionDate not before linked Project.StartDate/Permit.ApprovalDate",
              "source": "Structural checks"
            },
            {
              "code": "construction-C17",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C18",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C19",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit contractor existed by ApplicationDate (RegistrationDate <= ApplicationDate)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C20",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project contractor existed by StartDate (RegistrationDate <= StartDate)",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "CON-R02",
              "name": "",
              "status": "PASS",
              "detail": "Avg ActualCostLocal/BudgetLocal ratio: 1.100; % over budget: 68.55% (sourced band: ratio 1.0-1.3, >=50% over-budget, per global infrastructure cost-overrun literature)",
              "source": "Realism checks"
            },
            {
              "code": "CON-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct ProjectTypeId values used: 39; largest single type: 2.65% of 2001 projects",
              "source": "Realism checks"
            },
            {
              "code": "CON-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct construction.Project.Status values: 4 of up to 4 (Planned/Active/Completed/Suspended)",
              "source": "Realism checks"
            },
            {
              "code": "CON-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SiteInspection.Outcome values: 4 across 2000 inspections",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/construction-certification.html"
      },
      "infrastructure": {
        "name": "Infrastructure",
        "status": "planned",
        "sourceKey": "infrastructure",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/infrastructure-certification.html"
      },
      "urban-planning": {
        "name": "Urban Planning",
        "status": "planned",
        "sourceKey": "urban-planning",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/urban-planning-certification.html"
      },
      "real-estate": {
        "name": "Real Estate",
        "status": "planned",
        "sourceKey": "real-estate",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/real-estate-certification.html"
      },
      "transport": {
        "name": "Transport",
        "status": "sample",
        "sourceKey": "transport",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "TR-C02",
              "name": "",
              "status": "PASS",
              "detail": "Route volume: 99",
              "source": "Structural checks"
            },
            {
              "code": "TR-C03",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle volume: 1071",
              "source": "Structural checks"
            },
            {
              "code": "TR-C04",
              "name": "",
              "status": "PASS",
              "detail": "Trip volume: 24800520",
              "source": "Structural checks"
            },
            {
              "code": "TR-C05",
              "name": "",
              "status": "PASS",
              "detail": "AccidentParticipant.Role values outside catalog (casing regression guard): 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C06",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.OperatorId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C07",
              "name": "",
              "status": "PASS",
              "detail": "Trip.ArrivalUtc < DepartureUtc: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C08",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle assigned to a Route owned by a different Operator: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C09",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.AcquiredDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C10",
              "name": "",
              "status": "PASS",
              "detail": "Ticket.DueDate < IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C11",
              "name": "",
              "status": "PASS",
              "detail": "Accident.ReportedToPolice=1 with no PoliceReportNumber: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C12",
              "name": "",
              "status": "PASS",
              "detail": "AccidentClaim.AccidentId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C13",
              "name": "",
              "status": "PASS",
              "detail": "DriverLicense.ExpiryDate <= IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C14",
              "name": "",
              "status": "PASS",
              "detail": "Fare.BoardingStageId = AlightingStageId: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C15",
              "name": "",
              "status": "PASS",
              "detail": "Trip.DepartureUtc after driver's own DeathDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C16",
              "name": "",
              "status": "PASS",
              "detail": "TransportEventIndex populated: 87 years",
              "source": "Structural checks"
            },
            {
              "code": "TR-C17",
              "name": "",
              "status": "PASS",
              "detail": "Trip.PassengerCount > Vehicle.SeatCapacity: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C18",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.YearOfManufacture > YEAR(AcquiredDate): 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C19",
              "name": "",
              "status": "PASS",
              "detail": "DriverLicense.IssuedDate before holder's 18th birthday: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C20",
              "name": "",
              "status": "PASS",
              "detail": "LicenseRenewal.RenewalDate before original license IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C21",
              "name": "",
              "status": "PASS",
              "detail": "TicketPayment.AmountPaidLocal > Ticket.FineAmountLocal: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C22",
              "name": "",
              "status": "PASS",
              "detail": "Trip.DepartureUtc after Vehicle.RetiredDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TRP-PV01",
              "name": "PrivateVehicle populated",
              "status": "PASS",
              "detail": "vehicle count=1010668 (min 1000)",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV02",
              "name": "OwnerType coverage (need >=5 of 7)",
              "status": "PASS",
              "detail": "distinct OwnerType=7",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV03",
              "name": "Owner-shape integrity (exactly one owner link per OwnerType)",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV04",
              "name": "OwnerCitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV05",
              "name": "OwnerBusinessId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV06",
              "name": "OwnerForeignNationalId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV07",
              "name": "PlateNumber uniqueness",
              "status": "PASS",
              "detail": "duplicate plate groups=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV08",
              "name": "YearOfManufacture in [1980, NowYear]",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV09",
              "name": "RegistrationDate <= NowDate",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "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": "Private vehicle checks"
            },
            {
              "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, corroborated by Lagos danfo field research (~9.2/day)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "TR-R03",
              "name": "",
              "status": "PASS",
              "detail": "avg occupancy%% peak=74.01 midday=36.42 off-peak=9.76",
              "source": "Realism checks"
            },
            {
              "code": "TR-R04",
              "name": "",
              "status": "WARN",
              "detail": "Lagos danfo peak target >=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": "Realism checks"
            },
            {
              "code": "TR-R05",
              "name": "",
              "status": "PASS",
              "detail": "min=186 avg=2140.19 max=2190 trips/vehicle in 2025",
              "source": "Realism checks"
            },
            {
              "code": "TR-R06",
              "name": "",
              "status": "PASS",
              "detail": "revenue-with-no-passengers=0, passengers-with-no-revenue=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "TR-R08",
              "name": "",
              "status": "PASS",
              "detail": "PassengerJourney rows=5905, ward-coherent (citizen home or work ward matches route corridor)=6396 (108.31%) -- target >=90%, guards against the random-hash CitizenId/TripId linkage this domain used before the 2026-08-01 rewrite",
              "source": "Realism checks"
            },
            {
              "code": "TR-R09",
              "name": "",
              "status": "PASS",
              "detail": "distinct Route/Stage place names=95, mapped in ref.LagosPlaceWardMap=95 (100.00%) -- target >=90%, guards against future route/stage edits silently introducing an unmapped place",
              "source": "Realism checks"
            },
            {
              "code": "TR-R10",
              "name": "",
              "status": "PASS",
              "detail": "PassengerJourney rows=5905, date-effective ward-coherent (citizen home OR work ward AS OF the journey's own date matches route corridor)=5903 (99.97%) -- target >=90%, distinct from TR-R08's current-ward check",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/transport-certification.html"
      },
      "vehicles": {
        "name": "Vehicles",
        "status": "documentation",
        "sourceKey": "vehicles",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/vehicles-certification.html"
      },
      "fleet": {
        "name": "Fleet",
        "status": "sample",
        "sourceKey": "fleet",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "FLT-02",
              "name": "fleet.Driver populated",
              "status": "PASS",
              "detail": "driver count=16469",
              "source": "Structural checks"
            },
            {
              "code": "FLT-03",
              "name": "Driver.EmployeeId FK integrity",
              "status": "PASS",
              "detail": "orphaned driver rows=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-04",
              "name": "fleet.Vehicle populated",
              "status": "PASS",
              "detail": "vehicle count=6869",
              "source": "Structural checks"
            },
            {
              "code": "FLT-05",
              "name": "FuelConsumption.VehicleId / DriverId FK integrity",
              "status": "PASS",
              "detail": "orphaned vehicle refs=0, orphaned driver refs=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-06",
              "name": "FuelConsumption.Liters/OdometerKm/CostAmount >= 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-07",
              "name": "Maintenance.VehicleId FK integrity",
              "status": "N/A",
              "detail": "fleet.Maintenance is empty",
              "source": "Structural checks"
            },
            {
              "code": "FLT-08",
              "name": "Maintenance.CompletedUtc >= ScheduledUtc",
              "status": "N/A",
              "detail": "fleet.Maintenance is empty",
              "source": "Structural checks"
            },
            {
              "code": "FLT-09",
              "name": "Vehicle.CreatedUtc not in the future",
              "status": "PASS",
              "detail": "future-dated vehicles=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-10",
              "name": "FleetEventIndex populated",
              "status": "PASS",
              "detail": "year rows=87",
              "source": "Structural checks"
            },
            {
              "code": "FLT-11",
              "name": "FleetEventIndex.Modifier within [0.10, 2.00]",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-R01",
              "name": "",
              "status": "PASS",
              "detail": "FuelConsumption rows where OdometerKm decreased vs. the same vehicle's prior reading: 0 of 1030350",
              "source": "Realism checks"
            },
            {
              "code": "FLT-R02",
              "name": "",
              "status": "PASS",
              "detail": "Average cost per liter: NGN 1174.84 (sourced band 400.00-1500.00 NGN)",
              "source": "Realism checks"
            },
            {
              "code": "FLT-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct FuelType values: 2",
              "source": "Realism checks"
            },
            {
              "code": "FLT-R04",
              "name": "",
              "status": "WARN",
              "detail": "Maintenance events per vehicle: 0.00 (0 events / 6869 vehicles)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/fleet-certification.html"
      },
      "roads": {
        "name": "Roads",
        "status": "planned",
        "sourceKey": "roads",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/roads-certification.html"
      },
      "postal-logistics": {
        "name": "Postal & Logistics",
        "status": "planned",
        "sourceKey": "postal-logistics",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/postal-logistics-certification.html"
      },
      "government": {
        "name": "Government",
        "status": "planned",
        "sourceKey": "government",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/government-certification.html"
      },
      "publicfinance": {
        "name": "Public Finance",
        "status": "sample",
        "sourceKey": "publicfinance",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/publicfinance-certification.html"
      },
      "emergency-services": {
        "name": "Emergency Services",
        "status": "planned",
        "sourceKey": "emergency-services",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/emergency-services-certification.html"
      },
      "socialprotection": {
        "name": "Social Protection",
        "status": "documentation",
        "sourceKey": "socialprotection",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/socialprotection-certification.html"
      },
      "justice": {
        "name": "Justice",
        "status": "planned",
        "sourceKey": "justice",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/justice-certification.html"
      },
      "taxation": {
        "name": "Taxation",
        "status": "sample",
        "sourceKey": "taxation",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/taxation-certification.html"
      },
      "pensions": {
        "name": "Pensions",
        "status": "planned",
        "sourceKey": "pensions",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/pensions-certification.html"
      },
      "energy": {
        "name": "Energy",
        "status": "sample",
        "sourceKey": "energy",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EN-H02",
              "name": "Facility populated",
              "status": "PASS",
              "detail": "facility count=420",
              "source": "Structural checks"
            },
            {
              "code": "EN-H03",
              "name": "Asset populated",
              "status": "PASS",
              "detail": "asset count=1320",
              "source": "Structural checks"
            },
            {
              "code": "EN-H04",
              "name": "Connection populated",
              "status": "PASS",
              "detail": "connection count=5640692",
              "source": "Structural checks"
            },
            {
              "code": "EN-H05",
              "name": "Outage populated",
              "status": "PASS",
              "detail": "outage count=410923",
              "source": "Structural checks"
            },
            {
              "code": "EN-H06",
              "name": "Consumption populated",
              "status": "PASS",
              "detail": "consumption rows=61027320",
              "source": "Structural checks"
            },
            {
              "code": "EN-H07",
              "name": "Connection.HouseholdId FK integrity (CIP)",
              "status": "PASS",
              "detail": "orphaned household connections=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H08",
              "name": "Connection.BusinessId FK integrity (CIP)",
              "status": "PASS",
              "detail": "orphaned business connections=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H09",
              "name": "Connection.ConnectionDate within SeedEpoch-NowDate (TMS)",
              "status": "PASS",
              "detail": "date violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H10",
              "name": "Outage.StartUtc within SeedEpoch-NowDate (TMS)",
              "status": "PASS",
              "detail": "date violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H11",
              "name": "Outage.EstimatedRestorationUtc >= StartUtc (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H12",
              "name": "Consumption.ReadingPeriodEnd > ReadingPeriodStart (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H13",
              "name": "MaintenanceEvent.CompletedDate >= ScheduledDate (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-R01",
              "name": "",
              "status": "PASS",
              "detail": "rate=70.86%  connected=4855049  total=6851571",
              "source": "Realism checks"
            },
            {
              "code": "EN-R02",
              "name": "",
              "status": "PASS",
              "detail": "GridSharePct sum=100.00% (expected ~100%)",
              "source": "Realism checks"
            },
            {
              "code": "EN-R03",
              "name": "",
              "status": "PASS",
              "detail": "active DISCOs=4  distinct outage types=22",
              "source": "Realism checks"
            },
            {
              "code": "EN-R04",
              "name": "",
              "status": "PASS",
              "detail": "readings with implausible per-kWh rate=0",
              "source": "Realism checks"
            },
            {
              "code": "EN-R05",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=84.92%  informal-housing connection rate=41.94%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/energy-certification.html"
      },
      "power": {
        "name": "Power",
        "status": "documentation",
        "sourceKey": "power",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "PWR-H02",
              "name": "TransmissionLine populated",
              "status": "PASS",
              "detail": "line count=520 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H03",
              "name": "Meter populated",
              "status": "PASS",
              "detail": "meter count=500000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H04",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H05",
              "name": "Outage EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H06",
              "name": "DemandReading.FrequencyHz plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H07",
              "name": "Meter.InstallDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H08",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H09",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H10",
              "name": "DemandReading.SubstationId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H11",
              "name": "Every populated ward has an active meter",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H12",
              "name": "Outage.AffectedHouseholds non-negative",
              "status": "PASS",
              "detail": "negative rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-R01",
              "name": "",
              "status": "PASS",
              "detail": "residential-class bills with implausible (>5000 kWh) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "PWR-R03",
              "name": "",
              "status": "PASS",
              "detail": "outages lasting >720h (30 days)=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R04",
              "name": "",
              "status": "WARN",
              "detail": "substations with observed peak load >150% of design CapacityMVA=26",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own meter's InstallDate=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R06",
              "name": "",
              "status": "PASS",
              "detail": "readings outside the physically plausible [47,53] Hz envelope=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=5.00%  informal-housing connection rate=2.48%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/power-certification.html"
      },
      "gas": {
        "name": "Gas",
        "status": "sample",
        "sourceKey": "gas",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "GAS-H02",
              "name": "CylinderDispatch populated",
              "status": "PASS",
              "detail": "dispatch count=6000000 (min 10000)",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H03",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H04",
              "name": "Incident ResolvedDatetime >= IncidentDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H05",
              "name": "CylinderDispatch.CylinderSizeKG is a real standard size",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H06",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H07",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H08",
              "name": "PressureReading.PipelineId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H09",
              "name": "DistributionDepot.StorageCapacityM3 positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-R01",
              "name": "",
              "status": "PASS",
              "detail": "bills with implausible (>200kg) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R02",
              "name": "",
              "status": "PASS",
              "detail": "reticulated Subscriber count (5000) as % of distinct cylinder-served households (3139497)=0.16% (must stay <=10% -- piped gas is real but niche in both cities, not a mass utility)",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R03",
              "name": "",
              "status": "PASS",
              "detail": "dispatches with implausible per-kg price=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R04",
              "name": "",
              "status": "PASS",
              "detail": "LOW/MEDIUM-severity incidents carrying a casualty count=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own subscriber's ConnectedDate=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R06",
              "name": "",
              "status": "PASS",
              "detail": "negative-pressure rows=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=0.05%  informal-housing connection rate=0.02%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/gas-certification.html"
      },
      "water": {
        "name": "Water",
        "status": "sample",
        "sourceKey": "water",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "WAT-H02",
              "name": "Reservoir populated",
              "status": "PASS",
              "detail": "reservoir count=300 (min 5)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H03",
              "name": "Pipeline populated",
              "status": "PASS",
              "detail": "pipeline count=3000 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H04",
              "name": "Meter populated",
              "status": "PASS",
              "detail": "meter count=698000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H05",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H06",
              "name": "Outage EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H07",
              "name": "FlowReading WaterLevelPct in [0,100]",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H08",
              "name": "Meter.InstallDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H09",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H10",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H11",
              "name": "FlowReading.ReservoirId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H12",
              "name": "Every populated ward has an active meter",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-R01",
              "name": "",
              "status": "PASS",
              "detail": "domestic/prepaid bills with implausible (>500 m3) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "WAT-R03",
              "name": "",
              "status": "PASS",
              "detail": "reservoirs with CurrentLevelPct outside [0,100]=0",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R04",
              "name": "",
              "status": "N/A",
              "detail": "Kenya-only check (validates against NCWSC-specific real capacity data)",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own meter's InstallDate=0",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R06",
              "name": "",
              "status": "N/A",
              "detail": "measurement only -- billing collection rate=49.99% -- NOT the same concept as NCWSC's real ~54% non-revenue-water loss figure (produced-vs-billed volume is unmodeled)",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=6.87%  informal-housing connection rate=3.42%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/water-certification.html"
      },
      "wastewater": {
        "name": "Wastewater",
        "status": "sample",
        "sourceKey": "wastewater",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "WW-H02",
              "name": "SewerLine populated",
              "status": "PASS",
              "detail": "line count=1000 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "WW-H03",
              "name": "Connection populated",
              "status": "PASS",
              "detail": "connection count=220000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "WW-H04",
              "name": "SewageLevy.AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H05",
              "name": "OverflowEvent.EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H06",
              "name": "SewageLevy.LevyMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H07",
              "name": "SewageLevy.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H08",
              "name": "InfluentReading.TreatmentPlantId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H09",
              "name": "TreatmentPlant.DesignCapacityMLD positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-R01",
              "name": "",
              "status": "PASS",
              "detail": "levies with implausible (>20000) monthly amount=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R02",
              "name": "",
              "status": "PASS",
              "detail": "Connection count (220000) as % of Household count (6851571)=3.21% (must stay <=30% -- sewer connection is real but niche in both cities, not universal)",
              "source": "Realism checks"
            },
            {
              "code": "WW-R03",
              "name": "",
              "status": "PASS",
              "detail": "readings with EffluentBOD > InfluentBOD=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R04",
              "name": "",
              "status": "PASS",
              "detail": "LOW/MEDIUM-severity events carrying an affected-households count=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R05",
              "name": "",
              "status": "PASS",
              "detail": "levies dated before their own connection's ConnectedDate=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R06",
              "name": "",
              "status": "PASS",
              "detail": "implausible PHValue rows=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=1.89%  informal-housing connection rate=0.96%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/wastewater-certification.html"
      },
      "waste": {
        "name": "Solid Waste",
        "status": "sample",
        "sourceKey": "solidwaste",
        "sourceShared": true,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "SW-H02",
              "name": "CollectionVehicle populated",
              "status": "PASS",
              "detail": "vehicle count=780 (min 20)",
              "source": "Structural checks"
            },
            {
              "code": "SW-H03",
              "name": "CollectionRound populated",
              "status": "PASS",
              "detail": "round count=200000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "SW-H04",
              "name": "LandfillDeposit.TippingFeeLocal positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H05",
              "name": "WasteComplaint.ResolutionDate >= ComplaintDate",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H06",
              "name": "CollectionVehicle.LastServiceDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H07",
              "name": "CollectionRound.WasteWeightKG only set for COMPLETED/PARTIAL",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H08",
              "name": "CollectionRound.CollectionVehicleId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H09",
              "name": "Every populated ward has a collection zone",
              "status": "WARN",
              "detail": "uncovered populated wards=26",
              "source": "Structural checks"
            },
            {
              "code": "SW-R01",
              "name": "",
              "status": "PASS",
              "detail": "rounds with implausible (>15,000kg) single-trip weight=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R02",
              "name": "",
              "status": "PASS",
              "detail": "deposits citing more vehicles (VehicleCount) than exist citywide (780)=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R03",
              "name": "",
              "status": "PASS",
              "detail": "rounds with implausible (>5,000) single-trip HouseholdsServed=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R04",
              "name": "",
              "status": "PASS",
              "detail": "deposits with implausible per-tonne rate=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R05",
              "name": "",
              "status": "PASS",
              "detail": "vehicles with an implausible (pre-1990) LastServiceDate=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R06",
              "name": "",
              "status": "PASS",
              "detail": "complaints taking >365 days to resolve=0",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/waste-certification.html"
      },
      "telecom": {
        "name": "Telecom",
        "status": "planned",
        "sourceKey": "telecom",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/telecom-certification.html"
      },
      "iot": {
        "name": "IoT",
        "status": "planned",
        "sourceKey": "iot",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "IOT-02",
              "name": "iot.Device populated",
              "status": "PASS",
              "detail": "device count=2000",
              "source": "Structural checks"
            },
            {
              "code": "IOT-03",
              "name": "Sensor.DeviceId FK integrity",
              "status": "PASS",
              "detail": "orphaned sensor rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-04",
              "name": "Every Device has at least one Sensor",
              "status": "PASS",
              "detail": "devices with zero sensors=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-05",
              "name": "SensorReading.ReadingValue >= 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-06",
              "name": "SensorReading.SensorId FK integrity",
              "status": "PASS",
              "detail": "orphaned reading rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-07",
              "name": "Alert.ClearedUtc >= Alert.AlertUtc",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-08",
              "name": "Alert.Status consistent with ClearedUtc presence",
              "status": "PASS",
              "detail": "inconsistent rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-09",
              "name": "TelemetryStream.DeviceId FK integrity",
              "status": "PASS",
              "detail": "orphaned stream rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-10",
              "name": "Device.WardId resolves against ref.Ward/ref.AdminUnit",
              "status": "PASS",
              "detail": "unresolved ward references=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-R01",
              "name": "",
              "status": "PASS",
              "detail": "all reading values within physically plausible range for their SensorType",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R02",
              "name": "",
              "status": "PASS",
              "detail": "MotionDetected readings outside {0,1}: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R03",
              "name": "",
              "status": "PASS",
              "detail": "0 of 10 catalog sensor types have zero readings",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one SensorType=82.3%% (>=99%% would indicate Status is not independent of SensorType)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04B",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one DeviceType=86.3%% (>=99%% would indicate Status is not independent of DeviceType)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04C",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one Protocol=82.0%% (>=99%% would indicate Status is not independent of Protocol)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R05",
              "name": "",
              "status": "PASS",
              "detail": "sensors with >=1 alert=4680 of 6000 (78.0%%)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R06",
              "name": "",
              "status": "PASS",
              "detail": "0 of 9 non-boolean sensor types show zero variation (constant reading value)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "IOT-R08",
              "name": "",
              "status": "PASS",
              "detail": "Alert rows where SensorId belongs to a different DeviceId than listed: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R09",
              "name": "",
              "status": "PASS",
              "detail": "EnergyConsumption readings that decreased from the same sensor's prior reading: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R10",
              "name": "",
              "status": "PASS",
              "detail": "avg TrafficCameras/ward: above-average TrafficWeight=2.15, below-average=0.00",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R11",
              "name": "",
              "status": "PASS",
              "detail": "EnergyConsumption sensors with >=1 alert=465 of 600",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/lagos/domains/iot-certification.html"
      },
      "environment": {
        "name": "Environment & Climate",
        "status": "partial",
        "sourceKey": "environment",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/environment-certification.html"
      },
      "media-broadcasting": {
        "name": "Media & Broadcasting",
        "status": "planned",
        "sourceKey": "media-broadcasting",
        "sourceShared": false,
        "result": null,
        "report": "cities/lagos/domains/media-broadcasting-certification.html"
      }
    },
    "nairobi": {
      "demographics": {
        "name": "Demographics",
        "status": "sample",
        "sourceKey": "demographics",
        "sourceShared": false,
        "result": {
          "total": 39,
          "pass": 38,
          "fail": 0,
          "warn": 0,
          "info": 0,
          "na": 1,
          "failChecks": {},
          "checks": [
            {
              "code": "DEMO-C01",
              "name": "",
              "status": "PASS",
              "detail": "Citizen volume: 5083540",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C02",
              "name": "",
              "status": "PASS",
              "detail": "resident date of birth in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C03",
              "name": "",
              "status": "PASS",
              "detail": "Citizen registration date must not precede date of birth (RegistrationDate < DOB): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C04",
              "name": "",
              "status": "PASS",
              "detail": "Duplicate non-NULL Citizen.NationalId values: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C05",
              "name": "",
              "status": "PASS",
              "detail": "household leader reference genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C06",
              "name": "",
              "status": "PASS",
              "detail": "household member resident reference not found in Citizen: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C07",
              "name": "",
              "status": "PASS",
              "detail": "Birth.BirthDate does not match resident date of birth for the same CitizenId: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C08",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate <= own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C09",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C10",
              "name": "",
              "status": "PASS",
              "detail": "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 689039 linked births",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C11",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C12",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate before own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C13",
              "name": "",
              "status": "PASS",
              "detail": "Not-dissolved households whose current CITIZEN Head has no matching household leader reference (excludes dissolved households and foreign-national heads): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C14",
              "name": "",
              "status": "PASS",
              "detail": "PopulationSnapshot volume: 7395",
              "source": "Structural checks"
            },
            {
              "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's own current lineage + placement model coverage, not a certification failure by itself.",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C17",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C18",
              "name": "",
              "status": "PASS",
              "detail": "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate < JoinDate: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C20",
              "name": "",
              "status": "PASS",
              "detail": "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C21",
              "name": "",
              "status": "PASS",
              "detail": "HouseholdMember rows with JoinDate before the member's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C22",
              "name": "",
              "status": "PASS",
              "detail": "Minor Head with an eligible non-Lodger adult present in the same household: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C23",
              "name": "",
              "status": "PASS",
              "detail": "Households with a real current member (citizen or foreign national) but no current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C24",
              "name": "",
              "status": "PASS",
              "detail": "Households with more than one current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C25",
              "name": "",
              "status": "PASS",
              "detail": "ChildCarePlacement rows with PlacementDate before the placed citizen's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C26",
              "name": "",
              "status": "PASS",
              "detail": "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C27",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C28",
              "name": "",
              "status": "PASS",
              "detail": "Households typed 'Single' with more than 1 current member: 0 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check's own comment)",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C29",
              "name": "",
              "status": "PASS",
              "detail": "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C31",
              "name": "",
              "status": "PASS",
              "detail": "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "DEMO-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct CauseCategory values: 6; largest bucket: 34.98% of 396917 deaths",
              "source": "Realism checks"
            },
            {
              "code": "DEMO-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 1000000 rows",
              "source": "Realism checks"
            },
            {
              "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 >= Out)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/demographics-certification.html"
      },
      "household": {
        "name": "Households",
        "status": "sample",
        "sourceKey": "demographics",
        "sourceShared": true,
        "result": {
          "total": 39,
          "pass": 38,
          "fail": 0,
          "warn": 0,
          "info": 0,
          "na": 1,
          "failChecks": {},
          "checks": [
            {
              "code": "DEMO-C01",
              "name": "",
              "status": "PASS",
              "detail": "Citizen volume: 5083540",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C02",
              "name": "",
              "status": "PASS",
              "detail": "resident date of birth in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C03",
              "name": "",
              "status": "PASS",
              "detail": "Citizen registration date must not precede date of birth (RegistrationDate < DOB): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C04",
              "name": "",
              "status": "PASS",
              "detail": "Duplicate non-NULL Citizen.NationalId values: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C05",
              "name": "",
              "status": "PASS",
              "detail": "household leader reference genuinely orphaned or unsynced (excludes legitimate foreign-national-headed NULLs): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C06",
              "name": "",
              "status": "PASS",
              "detail": "household member resident reference not found in Citizen: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C07",
              "name": "",
              "status": "PASS",
              "detail": "Birth.BirthDate does not match resident date of birth for the same CitizenId: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C08",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate <= own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C09",
              "name": "",
              "status": "PASS",
              "detail": "Death.DeathDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C10",
              "name": "",
              "status": "PASS",
              "detail": "Birth.MotherCitizenId under 12 years old at the recorded BirthDate: 0 of 689039 linked births",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C11",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C12",
              "name": "",
              "status": "PASS",
              "detail": "Migration.MigrationDate before own resident date of birth: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C13",
              "name": "",
              "status": "PASS",
              "detail": "Not-dissolved households whose current CITIZEN Head has no matching household leader reference (excludes dissolved households and foreign-national heads): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C14",
              "name": "",
              "status": "PASS",
              "detail": "PopulationSnapshot volume: 7395",
              "source": "Structural checks"
            },
            {
              "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's own current lineage + placement model coverage, not a certification failure by itself.",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C17",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with zero current household memberships: 0; citizens with 2+ current memberships (constraint violation): 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C18",
              "name": "",
              "status": "PASS",
              "detail": "Households with 2+ current Spouse-role members: 0; HouseholdMember rows with LeaveDate < JoinDate: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C20",
              "name": "",
              "status": "PASS",
              "detail": "Citizens whose Nth household transition starts before their (N-1)th one ended: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C21",
              "name": "",
              "status": "PASS",
              "detail": "HouseholdMember rows with JoinDate before the member's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C22",
              "name": "",
              "status": "PASS",
              "detail": "Minor Head with an eligible non-Lodger adult present in the same household: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C23",
              "name": "",
              "status": "PASS",
              "detail": "Households with a real current member (citizen or foreign national) but no current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C24",
              "name": "",
              "status": "PASS",
              "detail": "Households with more than one current Head: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C25",
              "name": "",
              "status": "PASS",
              "detail": "ChildCarePlacement rows with PlacementDate before the placed citizen's own DOB: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C26",
              "name": "",
              "status": "PASS",
              "detail": "Current HouseholdMember rows with neither CitizenId nor ForeignNationalId populated: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C27",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with more than one ACTIVE CHILD_HEADED placement: 0",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C28",
              "name": "",
              "status": "PASS",
              "detail": "Households typed 'Single' with more than 1 current member: 0 (known pre-existing HouseholdType staleness, broader than Tier 4 -- see this check's own comment)",
              "source": "Structural checks"
            },
            {
              "code": "DEMO-C29",
              "name": "",
              "status": "PASS",
              "detail": "Households whose ordinary (non-emergency) FORCED_ABSORPTION placements alone exceed the size-25 soft cap: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "DEMO-C31",
              "name": "",
              "status": "PASS",
              "detail": "Households over the group-concentration-8 soft cap without an explicit emergency placement reason: 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "DEMO-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct CauseCategory values: 6; largest bucket: 34.98% of 396917 deaths",
              "source": "Realism checks"
            },
            {
              "code": "DEMO-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct MigrationType values represented: 3 of 3 (In/Out/Internal), across 1000000 rows",
              "source": "Realism checks"
            },
            {
              "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 >= Out)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/household-certification.html"
      },
      "education": {
        "name": "Education",
        "status": "sample",
        "sourceKey": "education",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EDU-H02",
              "name": "Enrollment.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H03",
              "name": "Teacher.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H04",
              "name": "Student age at enrollment plausible",
              "status": "PASS",
              "detail": "out-of-band rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H05",
              "name": "EnrollmentDate within SeedEpoch..NowDate",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H06",
              "name": "Exam scores in [0,100]",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H07",
              "name": "Bursary amount > 0",
              "status": "PASS",
              "detail": "non-positive rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H08",
              "name": "Teacher licence-number uniqueness",
              "status": "PASS",
              "detail": "duplicate licence numbers=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H09",
              "name": "TertiaryEnrollment end year >= start year",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H10",
              "name": "Every populated ward has an active school",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H11",
              "name": "Attendance date >= Enrollment start",
              "status": "PASS",
              "detail": "violating rows=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H12",
              "name": "TertiaryInstitution.WardId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-H13",
              "name": "StudentPopulation.UniversityId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "EDU-R01",
              "name": "",
              "status": "PASS",
              "detail": "enrollment rows with age outside their GradeLevel's plausible band=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EDU-R03",
              "name": "",
              "status": "N/A",
              "detail": "Nigeria-only check (Lagos LSMOE-2022 age-band citation has no Kenya equivalent yet)",
              "source": "Realism checks"
            },
            {
              "code": "EDU-R04",
              "name": "",
              "status": "PASS",
              "detail": "max deviation from EDU-CAL-002 tier pyramid (5/15/30/50%)=0.42pp (band <=10pp)",
              "source": "Realism checks"
            },
            {
              "code": "EDU-R05",
              "name": "",
              "status": "PASS",
              "detail": "rows with an implausible program length for their ProgramType=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Coverage checks"
            },
            {
              "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": "Coverage checks"
            },
            {
              "code": "EDU-C02b",
              "name": "Examination/TertiaryEnrollment dependency guards",
              "status": "PASS",
              "detail": "Terminal-secondary Enrollment=2466309 -> Examination terminal rows=92419; tertiary-eligible Examination rows=113693 -> TertiaryEnrollment rows=16777",
              "source": "Coverage checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/education-certification.html"
      },
      "employment": {
        "name": "Employment",
        "status": "sample",
        "sourceKey": "employment",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EMP-E02",
              "name": "",
              "status": "PASS",
              "detail": "Department volume: 68576 (expected >= 4x Employer)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E03",
              "name": "",
              "status": "PASS",
              "detail": "Contract volume: 99508",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E04",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment volume: 917922",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E05",
              "name": "",
              "status": "PASS",
              "detail": "Payroll volume: 542519",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E06",
              "name": "",
              "status": "PASS",
              "detail": "Contract.CitizenId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E07",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment.CitizenId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E08",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows for deceased citizens: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E09",
              "name": "",
              "status": "PASS",
              "detail": "Contract.StartDate outside [DOB+18, NowDate]: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E10",
              "name": "",
              "status": "PASS",
              "detail": "Contract.EndDate < StartDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E11",
              "name": "",
              "status": "PASS",
              "detail": "Contract.IsActive/Termination-row mismatches: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E12",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with both active Contract and active SelfEmployment: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E13",
              "name": "",
              "status": "PASS",
              "detail": "Payroll rows with GrossAmount<=0 or NetAmount<0: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E14",
              "name": "",
              "status": "PASS",
              "detail": "Termination.TerminationDate < Contract.StartDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E15",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SectorCode in Employer: 12 (expected >= 5)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E16",
              "name": "",
              "status": "PASS",
              "detail": "EmploymentEventIndex populated: 87 years",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E17",
              "name": "",
              "status": "PASS",
              "detail": "SelfEmployment.StartDate outside [DOB+18, NowDate]: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E18",
              "name": "",
              "status": "PASS",
              "detail": "Contract.StartDate after own citizen DeathDate: 0",
              "source": "Structural checks"
            },
            {
              "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%, check that deceased residents retain employment history)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E20",
              "name": "",
              "status": "PASS",
              "detail": "Payroll pay-period after Contract.EndDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E21",
              "name": "",
              "status": "PASS",
              "detail": "Payroll pay-period after citizen DeathDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E22",
              "name": "",
              "status": "PASS",
              "detail": "PensionContribution period after Contract.EndDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E23",
              "name": "",
              "status": "PASS",
              "detail": "PensionContribution period after citizen DeathDate month: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E24",
              "name": "",
              "status": "PASS",
              "detail": "Contract.DepartmentId belonging to a different EmployerId: 0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "EMP-E26",
              "name": "",
              "status": "PASS",
              "detail": "JobTitleCatalog titles with no active JobTitleDepartmentMap row: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E27",
              "name": "",
              "status": "PASS",
              "detail": "Contract rows whose own non-NULL JobTitleId has no currently-active department mapping: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E28",
              "name": "",
              "status": "PASS",
              "detail": "City/Sector cells where active Deployment total exceeds active Participation PAY_WAGE total: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E29",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows whose Department is not applicable for its Employer's Sector+Size template: 0 (0 historical/inactive rows reported separately, non-gating)",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E31",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows whose current-role effective date (ContractRoleHistory/PromotionHistory/StartDate) is still below SeniorityProgressionRule's age floor for their current SeniorityLevel: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E32",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows holding a credentialed title with no matching completed TertiaryEnrollment: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E33",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows whose title requires a professional license with no matching active ProfessionalLicense: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E34",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows holding an active ProfessionalLicense not in that title's allowed profession set: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E35",
              "name": "",
              "status": "PASS",
              "detail": "Nairobi job families proven materially reachable by H0's 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": "Structural checks"
            },
            {
              "code": "EMP-E36",
              "name": "",
              "status": "PASS",
              "detail": "Active Contract rows below the applicable StatutoryWageFloor: 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E37",
              "name": "",
              "status": "PASS",
              "detail": "Within-family seniority coherence (min-vs-max populated level, both >=10 contracts, 10% overlap tolerance): 0 of 6 tested families materially inverted",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E38",
              "name": "",
              "status": "PASS",
              "detail": "Within-occupation EmployerSize salary ratio: avg=1.1458 max=1.2122",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E39",
              "name": "",
              "status": "PASS",
              "detail": "Largest exact-value point mass in active GrossMonthlyLocal: 3 of 80146",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E40",
              "name": "",
              "status": "PASS",
              "detail": "Contract/Payroll gross mismatches=0, Payroll arithmetic mismatches=0, Payroll/Pension mismatches=0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E41",
              "name": "",
              "status": "PASS",
              "detail": "Active Contracts under a LIQUIDATED employer (should be 0): 0",
              "source": "Structural checks"
            },
            {
              "code": "EMP-E42",
              "name": "",
              "status": "INFO",
              "detail": "Active Contracts under a DORMANT/SUSPENDED employer (informational -- no auto-termination policy defined yet): 12841",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-EDU-002",
              "name": "",
              "status": "WARN",
              "detail": "Of 2620 active SeniorityLevel>=4 contracts, 1.11% held by a citizen with a COMPLETED tertiary program (sourced floor 40%)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-R01",
              "name": "",
              "status": "PASS",
              "detail": "Distinct EmploymentType values: 3 across 99508 contracts",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "EMP-R03",
              "name": "",
              "status": "PASS",
              "detail": "GrossMonthlyLocal range: min=18401.17, avg=71257.16, max=368671.83",
              "source": "Realism checks"
            },
            {
              "code": "EMP-R04",
              "name": "",
              "status": "PASS",
              "detail": "Citizens with both an active Contract and a SelfEmployment record: 0 of 917922 self-employed",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/employment-certification.html"
      },
      "health": {
        "name": "Health",
        "status": "sample",
        "sourceKey": "health",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "HLT-H02",
              "name": "Patient.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned patient rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H03",
              "name": "One patient record per citizen",
              "status": "PASS",
              "detail": "duplicate citizen-patients=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H04",
              "name": "Visit dates within SeedEpochÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“NowDate",
              "status": "PASS",
              "detail": "date violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H05",
              "name": "Discharge date >= Admission date",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H06",
              "name": "Prescription Quantity and DurationDays > 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H07",
              "name": "ClinicalStaff.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned staff rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H08",
              "name": "Maternity DeliveryDate within valid window",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H09",
              "name": "Each citizen ward has at least one facility",
              "status": "PASS",
              "detail": "wards without facility=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H10",
              "name": "BedOccupancy.OccupiedBeds <= TotalBeds",
              "status": "PASS",
              "detail": "over-occupied rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H11",
              "name": "Patient.RegistrationDate >= resident date of birth",
              "status": "PASS",
              "detail": "registrations before birth=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H12",
              "name": "Visit.VisitDate >= resident date of birth",
              "status": "PASS",
              "detail": "visits before birth=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H13",
              "name": "Visit.VisitDate >= Patient.RegistrationDate",
              "status": "PASS",
              "detail": "visits before registration=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H14",
              "name": "MaternityRecord mother age at delivery in [12,55]",
              "status": "PASS",
              "detail": "implausible mother age at delivery=0 of 89317",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H15",
              "name": "Visit.VisitDate <= own citizen DeathDate",
              "status": "PASS",
              "detail": "visits after death=0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "code": "HLT-H17",
              "name": "Condition.ResolvedDate <= NowDate (never a phantom future resolution)",
              "status": "PASS",
              "detail": "future-resolved conditions=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H18",
              "name": "Prescription.CreatedUtc within 7 days of NowDate",
              "status": "PASS",
              "detail": "future-dated prescriptions=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H19",
              "name": "Claim.SubmittedDate within 7 days of NowDate",
              "status": "PASS",
              "detail": "future-dated claims=0",
              "source": "Structural checks"
            },
            {
              "code": "HLT-H20",
              "name": "Visit.VisitDate <= own citizen DepartureDate while non-resident",
              "status": "PASS",
              "detail": "visits after departure=0",
              "source": "Structural checks"
            },
            {
              "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": "Structural checks"
            },
            {
              "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's 100%-registry policy superseded by HLT-00026; see health/CHANGELOG.md",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R02",
              "name": "Utilization coverage (Patients with >=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": "Realism checks"
            },
            {
              "code": "HLT-R03",
              "name": "Visit distribution shape (P90>P50, P99>P90, Max>=P99 -- catches a flat/artificial distribution)",
              "status": "PASS",
              "detail": "P50=3 P90=11 P99=21 Max=57",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R04",
              "name": "Age utilization correlation (avg visits 65+ > avg visits 18-44)",
              "status": "PASS",
              "detail": "avg visits 65+=9.607 vs 18-44=4.717",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R05",
              "name": "Chronic disease correlation (avg visits diabetic > non-diabetic)",
              "status": "PASS",
              "detail": "avg visits diabetic=9.453 vs non-diabetic=4.011",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R06",
              "name": "Temporal integrity cross-reference (duplicates HLT-H15 in core cert)",
              "status": "PASS",
              "detail": "visits after death=0 -- informational duplicate of the core structural check",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R07",
              "name": "Clinical plausibility cross-reference (vitals within physiological range)",
              "status": "PASS",
              "detail": "implausible vital-sign rows=0",
              "source": "Realism checks"
            },
            {
              "code": "HLT-R08",
              "name": "Heavy-utilizer tail exists (not artificially capped)",
              "status": "PASS",
              "detail": "patients >20 visits=31795, >50=14, >100=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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], comparison year=2017 count=171447 vs neighbor avg=86866.8",
              "source": "Realism checks"
            },
            {
              "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",
              "source": "Realism checks"
            },
            {
              "code": "HLT-DS01",
              "name": "Every non-initial state has a valid transition edge from its predecessor",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS02",
              "name": "State-date sequence never regresses within one (Patient, Disease)",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS03",
              "name": "StateDate >= own Condition.OnsetDate",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS04",
              "name": "StateDate <= own citizen DeathDate",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS05",
              "name": "No two different states for the same (Patient, Disease) on the same StateDate",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS06",
              "name": "Every PatientDiseaseState row resolves to exactly one Condition row",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS07",
              "name": "PatientDiseaseState only ever contains diseases registered in DiseaseStateManifest",
              "status": "PASS",
              "detail": "PatientDiseaseState rows=6149358",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-DS08",
              "name": "Diagnoses and conditions remain unchanged (implementation review)",
              "status": "INFO",
              "detail": "Disease-state records are added without changing existing diagnoses or conditions. Reported from an implementation review.",
              "source": "Disease-state checks"
            },
            {
              "code": "HLT-CP01",
              "name": "CarePlan without indication (resolvable Condition) = 0",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-CP02",
              "name": "CarePlan.StartDate >= own Condition.OnsetDate",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-CP03",
              "name": "CarePlanActivity.ScheduledDate within [CarePlan.StartDate, EndDate]",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-CP04",
              "name": "CareTeamMember.StaffId is an active, real ClinicalStaff row",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-CP05",
              "name": "CareTeamMember staff belongs to the same Facility as the diagnosing Visit",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-CP06",
              "name": "No active CarePlan against an already-resolved (closed) Condition",
              "status": "PASS",
              "detail": "CarePlan rows=2386756",
              "source": "Care-plan checks"
            },
            {
              "code": "HLT-REL01",
              "name": "Diagnosis<->Medication: ENCOUNTER-type Prescription's 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": "Relationship checks"
            },
            {
              "code": "HLT-REL02",
              "name": "Diagnosis<->Procedure: 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": "Relationship checks"
            },
            {
              "code": "HLT-REL03",
              "name": "Diagnosis<->Lab: LabResult.PanelCode is a real ConditionLabPanelMap entry for at least one of the patient's 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": "Relationship checks"
            },
            {
              "code": "HLT-REL04",
              "name": "Visit<->Staff: 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": "Relationship checks"
            },
            {
              "code": "HLT-REL05",
              "name": "Visit<->Facility 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": "Relationship checks"
            },
            {
              "code": "HLT-REL06",
              "name": "Condition<->Prescription: every REFILL-type Prescription's medication maps to its own still-open Condition",
              "status": "PASS",
              "detail": "Scoped to REFILL-type only -- the updated population, not the disclosed earlier 157.66M-record population.",
              "source": "Relationship checks"
            },
            {
              "code": "HLT-REL07",
              "name": "Immunization<->VaccineManifest: 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": "Relationship checks"
            },
            {
              "code": "HLT-REL08",
              "name": "Allergy<->Medication: 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": "Relationship checks"
            },
            {
              "code": "HLT-REL09",
              "name": "Claim<->Clinical 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's own header comment) -- this is the data-level proof a schema constraint cannot provide here.",
              "source": "Relationship checks"
            },
            {
              "code": "HLT-IMG01",
              "name": "ImagingStudy.PerformedDate >= OrderedDate (already a CHECK constraint -- defense in depth)",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "code": "HLT-IMG02",
              "name": "ImagingResult.ReportedDate >= own ImagingStudy.PerformedDate",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "code": "HLT-IMG03",
              "name": "ImagingStudy.PerformedDate >= own source Visit.VisitDate",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "code": "HLT-IMG04",
              "name": "ImagingStudy.PerformedDate <= own citizen DeathDate",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "code": "HLT-IMG05",
              "name": "ImagingStudy.FacilityId meets the study's own MinFacilityLevel",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "code": "HLT-IMG06",
              "name": "Every ImagingResult resolves to exactly one real ImagingStudy",
              "status": "PASS",
              "detail": "ImagingStudy rows=330097",
              "source": "Imaging checks"
            },
            {
              "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": "Medical-device checks"
            },
            {
              "code": "HLT-DEV02",
              "name": "StartDate <= own citizen DeathDate",
              "status": "PASS",
              "detail": "PatientDevice rows=35164",
              "source": "Medical-device checks"
            },
            {
              "code": "HLT-DEV03",
              "name": "Procedure-sourced device StartDate matches its own ProcedureEvent.ProcedureDate",
              "status": "PASS",
              "detail": "PatientDevice rows=35164",
              "source": "Medical-device checks"
            },
            {
              "code": "HLT-DEV04",
              "name": "Every STENT/AVF-ACCESS device traces to a real qualifying ProcedureEvent",
              "status": "PASS",
              "detail": "PatientDevice rows=35164",
              "source": "Medical-device checks"
            },
            {
              "code": "HLT-SYM01",
              "name": "Symptom.OnsetDate <= own Condition.OnsetDate (symptom precedes/coincides with diagnosis)",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM02",
              "name": "Symptom.OnsetDate >= own Patient citizen DOB",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM03",
              "name": "Symptom.OnsetDate <= own citizen DeathDate",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "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": "Symptom checks"
            },
            {
              "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": "Symptom checks"
            },
            {
              "code": "HLT-SYM06",
              "name": "Characteristic symptom mappings cover priority disease families",
              "status": "PASS",
              "detail": "Required mappings present=16/16",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM07",
              "name": "Health Complete V1 symptom map has exact governed cardinality",
              "status": "PASS",
              "detail": "Mappings=167/167; mapped diseases=53/53",
              "source": "Symptom checks"
            },
            {
              "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": "Symptom checks"
            },
            {
              "code": "HLT-SYM09",
              "name": "Symptom.ResolvedDate >= Symptom.OnsetDate (defense in depth vs CK_HSymptom_Resolved)",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "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": "Symptom checks"
            },
            {
              "code": "HLT-SYM11",
              "name": "No EPISODIC/PERSISTENT symptom remains unresolved past its own deterministic candidate resolution date",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM12",
              "name": "Every Symptom.ResolvedDate matches its disease-symptom resolution policy, recomputed deterministically",
              "status": "PASS",
              "detail": "Symptom rows=2067140",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM13",
              "name": "Realism (INFO): observed symptom duration distribution, ResolutionMode=EPISODIC",
              "status": "INFO",
              "detail": "n=629517; median=4d; P95=13d",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SYM13",
              "name": "Realism (INFO): observed symptom duration distribution, ResolutionMode=PERSISTENT",
              "status": "INFO",
              "detail": "n=1056630; median=56d; P95=109d",
              "source": "Symptom checks"
            },
            {
              "code": "HLT-SPEC01",
              "name": "Every LabResult resolves to exactly one real Specimen (once backfilled)",
              "status": "PASS",
              "detail": "LabResult rows=19255553, Specimen rows=5361230",
              "source": "Specimen checks"
            },
            {
              "code": "HLT-SPEC02",
              "name": "Specimen.CollectionDate <= own LabResult.ResultDate for every linked result",
              "status": "PASS",
              "detail": "Specimen rows=5361230",
              "source": "Specimen checks"
            },
            {
              "code": "HLT-SPEC03",
              "name": "Specimen.CollectionDate >= own source Visit.VisitDate (when VisitId present)",
              "status": "PASS",
              "detail": "Specimen rows=5361230",
              "source": "Specimen checks"
            },
            {
              "code": "HLT-SPEC04",
              "name": "Specimen.FacilityId is a real active facility (FK -- defense in depth)",
              "status": "PASS",
              "detail": "Specimen rows=5361230",
              "source": "Specimen checks"
            },
            {
              "code": "HLT-SPEC05",
              "name": "Coverage: every non-null LabResult (post-backfill) has a SpecimenId",
              "status": "PASS",
              "detail": "LabResult rows without SpecimenId=0",
              "source": "Specimen checks"
            },
            {
              "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": "Medication-dispensing checks"
            },
            {
              "code": "HLT-RXD02",
              "name": "MedicationDispense only exists for Prescription.IsDispensed=1",
              "status": "PASS",
              "detail": "MedicationDispense rows=60125269",
              "source": "Medication-dispensing checks"
            },
            {
              "code": "HLT-RXD03",
              "name": "MedicationDispense.DispensedDate >= own source Visit.VisitDate (when VisitId present)",
              "status": "PASS",
              "detail": "MedicationDispense rows=60125269",
              "source": "Medication-dispensing checks"
            },
            {
              "code": "HLT-RXD04",
              "name": "Coverage: every IsDispensed=1 Prescription has a MedicationDispense row",
              "status": "PASS",
              "detail": "IsDispensed=1 Prescription rows=60125269",
              "source": "Medication-dispensing checks"
            },
            {
              "code": "HLT-DR01",
              "name": "Laboratory report IssuedDate >= own Specimen.CollectionDate",
              "status": "PASS",
              "detail": "DiagnosticReport rows=5691327",
              "source": "Diagnostic-report checks"
            },
            {
              "code": "HLT-DR02",
              "name": "Imaging report IssuedDate = own ImagingResult.ReportedDate",
              "status": "PASS",
              "detail": "DiagnosticReport rows=5691327",
              "source": "Diagnostic-report checks"
            },
            {
              "code": "HLT-DR03",
              "name": "Category/source-column pairing is exclusive (already a CHECK constraint -- defense in depth)",
              "status": "PASS",
              "detail": "DiagnosticReport rows=5691327",
              "source": "Diagnostic-report checks"
            },
            {
              "code": "HLT-DR04",
              "name": "Coverage: every Specimen with >=1 LabResult has a DiagnosticReport",
              "status": "PASS",
              "detail": "DiagnosticReport rows=5691327",
              "source": "Diagnostic-report checks"
            },
            {
              "code": "HLT-DR05",
              "name": "Coverage: every ImagingStudy with an ImagingResult has a DiagnosticReport",
              "status": "PASS",
              "detail": "DiagnosticReport rows=5691327",
              "source": "Diagnostic-report checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/health-certification.html"
      },
      "hr": {
        "name": "HR",
        "status": "sample",
        "sourceKey": "hr",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "HR-H02",
              "name": "employment.Job: MinSalaryLocal <= MaxSalaryLocal",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H03",
              "name": "employment.Job: All salaries > 0",
              "status": "PASS",
              "detail": "zero/negative salary rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H04",
              "name": "employment.Job: JobCode unique",
              "status": "PASS",
              "detail": "duplicate JobCodes=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H05",
              "name": "employment.Job: GradeLevel in valid set",
              "status": "PASS",
              "detail": "invalid grade rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H06",
              "name": "employment.Job: Sector in valid set",
              "status": "PASS",
              "detail": "invalid sector rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H07",
              "name": "employment.Job: At least 10 distinct sectors",
              "status": "PASS",
              "detail": "distinct sectors=25 (min 10)",
              "source": "Structural checks"
            },
            {
              "code": "HR-H08",
              "name": "employment.Job: Entry-level jobs present",
              "status": "PASS",
              "detail": "entry-level job count=46 (min 10)",
              "source": "Structural checks"
            },
            {
              "code": "HR-H09",
              "name": "Employee populated",
              "status": "PASS",
              "detail": "employee count=86,690",
              "source": "Structural checks"
            },
            {
              "code": "HR-H10",
              "name": "Employee.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned employee rows=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H11",
              "name": "Payroll: NetAmount <= GrossAmount",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H12",
              "name": "SocialInsuranceScheme: Health and Pension schemes seeded",
              "status": "PASS",
              "detail": "health schemes=1, pension schemes=1",
              "source": "Structural checks"
            },
            {
              "code": "HR-H13",
              "name": "GradeTierMap covers all GradeBands used by Position",
              "status": "PASS",
              "detail": "unmapped grade bands=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H14",
              "name": "Payroll: no rows after Employee.SeparationDateUtc",
              "status": "PASS",
              "detail": "payroll rows after separation=0",
              "source": "Structural checks"
            },
            {
              "code": "HR-H15",
              "name": "Payroll: deduction pass evidence (NetAmount < GrossAmount)",
              "status": "N/A",
              "detail": "Payroll is empty -- generator has not run yet in this environment",
              "source": "Structural checks"
            },
            {
              "code": "HR-H16",
              "name": "Payroll rows after the employee's own citizen DeathDate",
              "status": "N/A",
              "detail": "Payroll is empty",
              "source": "Structural checks"
            },
            {
              "code": "HR-H17",
              "name": "% of citizens who died at age 25+ with any Employee history",
              "status": "PASS",
              "detail": "measurement only (HR participation is a small public-sector subset, not universal): 0 of 211496",
              "source": "Structural checks"
            },
            {
              "code": "HR-R00",
              "name": "",
              "status": "N/A",
              "detail": "Payroll is empty -- this city's generator has not run yet",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/hr-certification.html"
      },
      "civil-registration": {
        "name": "Civil Registration",
        "status": "documentation",
        "sourceKey": "civil-registration",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/civil-registration-certification.html"
      },
      "economy": {
        "name": "Economy",
        "status": "documentation",
        "sourceKey": "economy",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/economy-certification.html"
      },
      "business": {
        "name": "Business",
        "status": "sample",
        "sourceKey": "business",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "BIZ-02",
              "name": "Business populated",
              "status": "PASS",
              "detail": "business count=215384",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-03",
              "name": "BusinessCode uniqueness",
              "status": "PASS",
              "detail": "duplicate codes=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-04",
              "name": "Business.SectorCode within converged CHECK enum",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-05",
              "name": "Business.SectorCode resolves in business.SectorCrosswalk",
              "status": "PASS",
              "detail": "unmapped=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-06",
              "name": "Business.OwnerCitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned owner refs=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-07",
              "name": "Business.RegistrationDate not in the future",
              "status": "PASS",
              "detail": "future-dated rows=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-08",
              "name": "Business.EmployeeCount within its BusinessSize band",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-09",
              "name": "transport.Operator.BusinessId FK integrity",
              "status": "PASS",
              "detail": "orphaned operator refs=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-10",
              "name": "No non-liquidated business owned by a deceased citizen",
              "status": "PASS",
              "detail": "non-liquidated businesses with deceased owner=0",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-11",
              "name": "No owner exceeds the per-owner business cap",
              "status": "PASS",
              "detail": "worst single-owner business count=5, cap=5",
              "source": "Structural checks"
            },
            {
              "code": "BIZ-R01",
              "name": "",
              "status": "PASS",
              "detail": "RegistrationDate before owner date of birth: 0; owner under 18 at registration: 0 of 128261 owned businesses. Ownership timing has been corrected and is checked against the owner’s lifetime.",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "BIZ-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SectorCode values: 16 of 16; largest sector: 22.00% of 215384 businesses",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R04",
              "name": "",
              "status": "PASS",
              "detail": "EmployeeCount > 1 but IsEmployer = 0: 0 of 215384 businesses",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R05",
              "name": "",
              "status": "INFO",
              "detail": "Foreign-owned businesses: 8402 (3.90%) of 215384 -- no cited city-level benchmark, reporting only",
              "source": "Realism checks"
            },
            {
              "code": "BIZ-R06",
              "name": "",
              "status": "PASS",
              "detail": "ACTIVE businesses: 79.94% of 215384 (some DORMANT/SUSPENDED/LIQUIDATED expected, not 100% active)",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/business-certification.html"
      },
      "banking": {
        "name": "Banking",
        "status": "planned",
        "sourceKey": "banking",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/banking-certification.html"
      },
      "finance": {
        "name": "Finance",
        "status": "planned",
        "sourceKey": "finance",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "FIN-C02",
              "name": "",
              "status": "PASS",
              "detail": "BudgetHead volume: 16",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C03",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount orphaned Citizen/Business FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C04",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount rows violating exactly-one-owner: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C05",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment orphaned Account/Type FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C06",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment negative amounts / DueDate < AssessmentDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C07",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment orphaned ParcelId FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C08",
              "name": "",
              "status": "PASS",
              "detail": "TaxPayment orphaned FK / non-positive amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C09",
              "name": "",
              "status": "PASS",
              "detail": "BudgetAllocation orphaned FK / negative amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C10",
              "name": "",
              "status": "PASS",
              "detail": "BudgetExpenditure orphaned FK / non-positive amount: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C11",
              "name": "",
              "status": "PASS",
              "detail": "BudgetAllocation rows with cumulative overspend: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C12",
              "name": "",
              "status": "PASS",
              "detail": "Directorate volume: 10",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C13",
              "name": "",
              "status": "PASS",
              "detail": "Department orphaned DirectorateId FKs: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C14",
              "name": "",
              "status": "PASS",
              "detail": "DepartmentWorkforceWeight sum: 10000 (expected 10000bp)",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C15",
              "name": "",
              "status": "PASS",
              "detail": "TaxAssessment rows with invalid Status: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C16",
              "name": "",
              "status": "PASS",
              "detail": "TaxPayment.PaymentDate before its Assessment.AssessmentDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "FIN-C17",
              "name": "",
              "status": "PASS",
              "detail": "Active TaxAccount under a LIQUIDATED business (should be 0): 0",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "FIN-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct TaxTypeId values on TaxAssessment: 4",
              "source": "Realism checks"
            },
            {
              "code": "FIN-R04",
              "name": "",
              "status": "PASS",
              "detail": "TaxAccount by CitizenId: 5083540; by BusinessId: 215384 of 5298924",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/finance-certification.html"
      },
      "insurance": {
        "name": "Insurance",
        "status": "sample",
        "sourceKey": "insurance",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "INS-02",
              "name": "Policy catalog populated",
              "status": "PASS",
              "detail": "policy count=28",
              "source": "Structural checks"
            },
            {
              "code": "INS-03",
              "name": "Coverage.CitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned coverage rows=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-04",
              "name": "Claim amounts non-negative",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-05",
              "name": "Policy.LaunchDate >= InsuranceCompany.EstablishedDate",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-06",
              "name": "Coverage.StartUtc >= Policy.LaunchDate (INS-HIST-001)",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-07",
              "name": "Coverage.StartUtc >= ops.Config SeedEpoch",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-08",
              "name": "Claim.SubmittedUtc >= Coverage.StartUtc",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-09",
              "name": "Claim.ProcessedUtc >= Claim.SubmittedUtc",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-10",
              "name": "Claim.IncidentDate <= Claim.SubmittedUtc",
              "status": "N/A",
              "detail": "no claims populate IncidentDate in this environment",
              "source": "Structural checks"
            },
            {
              "code": "INS-11",
              "name": "PremiumPayment: Amount >= 0 and (Coverage,Year,Month) unique",
              "status": "PASS",
              "detail": "negative-amount rows=0, duplicate coverage-month rows=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-12",
              "name": "Claim: FraudFlag set iff OriginalClaimAmount set",
              "status": "PASS",
              "detail": "inconsistent rows=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-13",
              "name": "Beneficiary.SharePct in [0,100]",
              "status": "N/A",
              "detail": "insurance.Beneficiary not present or empty (nigeria extension not active)",
              "source": "Structural checks"
            },
            {
              "code": "INS-14",
              "name": "AccidentClaim.AccidentId FK integrity",
              "status": "N/A",
              "detail": "insurance.AccidentClaim empty or transport.Accident not yet deployed",
              "source": "Structural checks"
            },
            {
              "code": "INS-15",
              "name": "PremiumPayment/Claim dated after the covered citizen's own DeathDate",
              "status": "PASS",
              "detail": "post-death premium rows=0, post-death claim rows=0",
              "source": "Structural checks"
            },
            {
              "code": "INS-R01",
              "name": "",
              "status": "PASS",
              "detail": "Distinct Coverage.AcquisitionType values: 4",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "INS-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct Claim.Status values: 4 across 1236777 claims",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "INS-R05",
              "name": "",
              "status": "PASS",
              "detail": "Denied/Partial claims missing a RejectionReasonCode: 0 of 184706",
              "source": "Realism checks"
            },
            {
              "code": "INS-R06",
              "name": "",
              "status": "PASS",
              "detail": "Claims where ApprovedAmount > ClaimAmount: 0 of 1236777",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/insurance-certification.html"
      },
      "commerce": {
        "name": "Commerce",
        "status": "planned",
        "sourceKey": "commerce",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/commerce-certification.html"
      },
      "hospitality": {
        "name": "Hospitality",
        "status": "planned",
        "sourceKey": "hospitality",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/hospitality-certification.html"
      },
      "manufacturing": {
        "name": "Manufacturing",
        "status": "planned",
        "sourceKey": "manufacturing",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/manufacturing-certification.html"
      },
      "agriculture": {
        "name": "Agriculture",
        "status": "planned",
        "sourceKey": "agriculture",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/agriculture-certification.html"
      },
      "housing": {
        "name": "Housing",
        "status": "sample",
        "sourceKey": "housing",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "housing-H02",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy volume (1794852 rows)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H03",
              "name": "",
              "status": "PASS",
              "detail": "RentPayment.AmountLocal all > 0",
              "source": "Structural checks"
            },
            {
              "code": "housing-H04",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy.StartDate within [SeedEpoch, NowDate]",
              "source": "Structural checks"
            },
            {
              "code": "housing-H05",
              "name": "",
              "status": "PASS",
              "detail": "RentPayment.PeriodMonth in [1,12]",
              "source": "Structural checks"
            },
            {
              "code": "housing-H06",
              "name": "",
              "status": "PASS",
              "detail": "Eviction.NoticeDate >= Tenancy.StartDate",
              "source": "Structural checks"
            },
            {
              "code": "housing-H07",
              "name": "",
              "status": "PASS",
              "detail": "Inspection.Outcome all valid catalog values",
              "source": "Structural checks"
            },
            {
              "code": "housing-H08",
              "name": "",
              "status": "PASS",
              "detail": "every ward with a citizen has >=1 housing unit",
              "source": "Structural checks"
            },
            {
              "code": "housing-H09",
              "name": "",
              "status": "PASS",
              "detail": "AffordableHousingProject unit-count consistency (Occupied<=Allocated<=Target)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H10",
              "name": "",
              "status": "PASS",
              "detail": "Tenancy.MonthlyRentLocal all >= 0",
              "source": "Structural checks"
            },
            {
              "code": "housing-H11",
              "name": "",
              "status": "PASS",
              "detail": "HousingType diversity (8 distinct values)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H12",
              "name": "",
              "status": "PASS",
              "detail": "TenureType diversity (6 distinct values)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H13",
              "name": "",
              "status": "PASS",
              "detail": "HousingEventIndex populated (87 years)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H14",
              "name": "",
              "status": "PASS",
              "detail": "chronology invariants hold (unit/tenancy/inspection/payment ordering)",
              "source": "Structural checks"
            },
            {
              "code": "housing-H15",
              "name": "",
              "status": "PASS",
              "detail": "Inspection.InspectionCode all valid catalog values",
              "source": "Structural checks"
            },
            {
              "code": "housing-H16",
              "name": "",
              "status": "PASS",
              "detail": "no open Tenancy for an all-deceased household",
              "source": "Structural checks"
            },
            {
              "code": "HSG-R01",
              "name": "",
              "status": "PASS",
              "detail": "Occupied units (open tenancy): 69.52% of 400000 housing units",
              "source": "Realism checks"
            },
            {
              "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 >= owner)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "HSG-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct Inspection.Outcome values: 5 across 800000 inspections",
              "source": "Realism checks"
            },
            {
              "code": "HSG-R05",
              "name": "",
              "status": "PASS",
              "detail": "AffordableHousingProject allocation: 66.25% of target units across 200 projects",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/housing-certification.html"
      },
      "land": {
        "name": "Land",
        "status": "sample",
        "sourceKey": "land",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "LND-L02",
              "name": "Parcel.CitizenOwnerId FK integrity",
              "status": "PASS",
              "detail": "orphaned citizen parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L03",
              "name": "Parcel.BusinessOwnerId FK integrity",
              "status": "PASS",
              "detail": "orphaned business parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L04",
              "name": "No parcel has both CitizenOwnerId and BusinessOwnerId",
              "status": "PASS",
              "detail": "dual-owner parcels=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L05",
              "name": "Parcel.PlotSizeSqM > 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L06",
              "name": "Parcel.MarketValueLocal >= 0 (where populated)",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L07",
              "name": "Each parcel has an InitialGrant ownership record",
              "status": "N/A",
              "detail": "this jurisdiction's TransferReasonCatalog has no InitialGrant reason -- not applicable",
              "source": "Structural checks"
            },
            {
              "code": "LND-L08",
              "name": "OwnershipHistory.TransactionDate within epochÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“NowDate",
              "status": "PASS",
              "detail": "violations=0 [1940-01-01 ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ 2026-07-02]",
              "source": "Structural checks"
            },
            {
              "code": "LND-L09",
              "name": "LandTaxBill.BillAmountLocal > 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "LND-L10",
              "name": "Ward coverage >= 95% of wards have parcels",
              "status": "PASS",
              "detail": "wards with parcels=85 of 85",
              "source": "Structural checks"
            },
            {
              "code": "LND-R01",
              "name": "",
              "status": "PASS",
              "detail": "Parcels still owned by a deceased CitizenOwnerId: 0 of 200000",
              "source": "Realism checks"
            },
            {
              "code": "LND-R02",
              "name": "",
              "status": "PASS",
              "detail": "Distinct LandUseType values: 5; largest: 50.00% of 200000 parcels",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "LND-R04",
              "name": "",
              "status": "PASS",
              "detail": "IsEncumbered=1: 7.95% of 200000 parcels",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "LND-R06",
              "name": "",
              "status": "PASS",
              "detail": "OwnershipHistory rows with EndDate before TransactionDate: 0 of 24815",
              "source": "Realism checks"
            },
            {
              "code": "LND-R07",
              "name": "",
              "status": "INFO",
              "detail": "This city's IsEncumbered rate (see LND-R04) should be compared against the other city's own run -- both should show a non-zero, non-trivial rate, not one flat at 0%",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "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": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/land-certification.html"
      },
      "construction": {
        "name": "Construction",
        "status": "sample",
        "sourceKey": "construction",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "construction-C02",
              "name": "",
              "status": "PASS",
              "detail": "ProjectType seeded (51 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C03",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit volume (200000 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C04",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.PermitFeeLocal all >= 0",
              "source": "Structural checks"
            },
            {
              "code": "construction-C05",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit temporal order (ApprovalDate >= ApplicationDate)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C06",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project volume (100002 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C07",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project CompletedUnits within [0, PlannedUnits]",
              "source": "Structural checks"
            },
            {
              "code": "construction-C08",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection volume (400000 rows)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C09",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.ContractorBusinessId FK integrity",
              "source": "Structural checks"
            },
            {
              "code": "construction-C10",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection PASS rate plausible (50.0%)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C11",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project PlannedEndDate > StartDate",
              "source": "Structural checks"
            },
            {
              "code": "construction-C12",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit approval rate plausible (50.0%)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C13",
              "name": "",
              "status": "PASS",
              "detail": "every phased project has exactly 4 phases",
              "source": "Structural checks"
            },
            {
              "code": "construction-C14",
              "name": "",
              "status": "PASS",
              "detail": "ConstructionEventIndex populated (87 years)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C15",
              "name": "",
              "status": "PASS",
              "detail": "OccupancyCertificate only issued against Completed projects",
              "source": "Structural checks"
            },
            {
              "code": "construction-C16",
              "name": "",
              "status": "PASS",
              "detail": "SiteInspection.InspectionDate not before linked Project.StartDate/Permit.ApprovalDate",
              "source": "Structural checks"
            },
            {
              "code": "construction-C17",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C18",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project.ContractorBusinessId sector coherence (SectorCode=CONSTRUCTION)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C19",
              "name": "",
              "status": "PASS",
              "detail": "BuildingPermit contractor existed by ApplicationDate (RegistrationDate <= ApplicationDate)",
              "source": "Structural checks"
            },
            {
              "code": "construction-C20",
              "name": "",
              "status": "PASS",
              "detail": "construction.Project contractor existed by StartDate (RegistrationDate <= StartDate)",
              "source": "Structural checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "CON-R02",
              "name": "",
              "status": "PASS",
              "detail": "Avg ActualCostLocal/BudgetLocal ratio: 1.100; % over budget: 68.62% (sourced band: ratio 1.0-1.3, >=50% over-budget, per global infrastructure cost-overrun literature)",
              "source": "Realism checks"
            },
            {
              "code": "CON-R03",
              "name": "",
              "status": "PASS",
              "detail": "Distinct ProjectTypeId values used: 51; largest single type: 2.00% of 100002 projects",
              "source": "Realism checks"
            },
            {
              "code": "CON-R04",
              "name": "",
              "status": "PASS",
              "detail": "Distinct construction.Project.Status values: 4 of up to 4 (Planned/Active/Completed/Suspended)",
              "source": "Realism checks"
            },
            {
              "code": "CON-R05",
              "name": "",
              "status": "PASS",
              "detail": "Distinct SiteInspection.Outcome values: 4 across 400000 inspections",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/construction-certification.html"
      },
      "infrastructure": {
        "name": "Infrastructure",
        "status": "planned",
        "sourceKey": "infrastructure",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/infrastructure-certification.html"
      },
      "urban-planning": {
        "name": "Urban Planning",
        "status": "planned",
        "sourceKey": "urban-planning",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/urban-planning-certification.html"
      },
      "real-estate": {
        "name": "Real Estate",
        "status": "planned",
        "sourceKey": "real-estate",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/real-estate-certification.html"
      },
      "transport": {
        "name": "Transport",
        "status": "sample",
        "sourceKey": "transport",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "TR-C02",
              "name": "",
              "status": "PASS",
              "detail": "Route volume: 200",
              "source": "Structural checks"
            },
            {
              "code": "TR-C03",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle volume: 11364",
              "source": "Structural checks"
            },
            {
              "code": "TR-C04",
              "name": "",
              "status": "PASS",
              "detail": "Trip volume: 98033028",
              "source": "Structural checks"
            },
            {
              "code": "TR-C05",
              "name": "",
              "status": "PASS",
              "detail": "AccidentParticipant.Role values outside catalog (casing regression guard): 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C06",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.OperatorId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C07",
              "name": "",
              "status": "PASS",
              "detail": "Trip.ArrivalUtc < DepartureUtc: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C08",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle assigned to a Route owned by a different Operator: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C09",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.AcquiredDate in the future: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C10",
              "name": "",
              "status": "PASS",
              "detail": "Ticket.DueDate < IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C11",
              "name": "",
              "status": "PASS",
              "detail": "Accident.ReportedToPolice=1 with no PoliceReportNumber: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C12",
              "name": "",
              "status": "PASS",
              "detail": "AccidentClaim.AccidentId FK violations: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C13",
              "name": "",
              "status": "PASS",
              "detail": "DriverLicense.ExpiryDate <= IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C14",
              "name": "",
              "status": "PASS",
              "detail": "Fare.BoardingStageId = AlightingStageId: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C15",
              "name": "",
              "status": "PASS",
              "detail": "Trip.DepartureUtc after driver's own DeathDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C16",
              "name": "",
              "status": "PASS",
              "detail": "TransportEventIndex populated: 87 years",
              "source": "Structural checks"
            },
            {
              "code": "TR-C17",
              "name": "",
              "status": "PASS",
              "detail": "Trip.PassengerCount > Vehicle.SeatCapacity: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C18",
              "name": "",
              "status": "PASS",
              "detail": "Vehicle.YearOfManufacture > YEAR(AcquiredDate): 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C19",
              "name": "",
              "status": "PASS",
              "detail": "DriverLicense.IssuedDate before holder's 18th birthday: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C20",
              "name": "",
              "status": "N/A",
              "detail": "LicenseRenewal.RenewalDate before original license IssuedDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C21",
              "name": "",
              "status": "PASS",
              "detail": "TicketPayment.AmountPaidLocal > Ticket.FineAmountLocal: 0",
              "source": "Structural checks"
            },
            {
              "code": "TR-C22",
              "name": "",
              "status": "PASS",
              "detail": "Trip.DepartureUtc after Vehicle.RetiredDate: 0",
              "source": "Structural checks"
            },
            {
              "code": "TRP-PV01",
              "name": "PrivateVehicle populated",
              "status": "PASS",
              "detail": "vehicle count=223586 (min 1000)",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV02",
              "name": "OwnerType coverage (need >=5 of 7)",
              "status": "PASS",
              "detail": "distinct OwnerType=7",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV03",
              "name": "Owner-shape integrity (exactly one owner link per OwnerType)",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV04",
              "name": "OwnerCitizenId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV05",
              "name": "OwnerBusinessId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV06",
              "name": "OwnerForeignNationalId FK integrity",
              "status": "PASS",
              "detail": "orphaned rows=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV07",
              "name": "PlateNumber uniqueness",
              "status": "PASS",
              "detail": "duplicate plate groups=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV08",
              "name": "YearOfManufacture in [1980, NowYear]",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "code": "TRP-PV09",
              "name": "RegistrationDate <= NowDate",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Private vehicle checks"
            },
            {
              "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": "Private vehicle checks"
            },
            {
              "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, corroborated by Lagos danfo field research (~9.2/day)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "TR-R03",
              "name": "",
              "status": "PASS",
              "detail": "avg occupancy%% peak=77.54 midday=39.87 off-peak=14.84",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "TR-R05",
              "name": "",
              "status": "PASS",
              "detail": "min=6 avg=2051.69 max=2190 trips/vehicle in 2025",
              "source": "Realism checks"
            },
            {
              "code": "TR-R06",
              "name": "",
              "status": "PASS",
              "detail": "revenue-with-no-passengers=0, passengers-with-no-revenue=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "TR-R08",
              "name": "",
              "status": "PASS",
              "detail": "PassengerJourney rows=1632, ward-coherent (citizen home or work ward matches route corridor)=1582 (96.94%) -- target >=90%, guards against the random-hash CitizenId/TripId linkage this domain used before the 2026-08-01 rewrite",
              "source": "Realism checks"
            },
            {
              "code": "TR-R09",
              "name": "",
              "status": "PASS",
              "detail": "distinct Route/Stage place names=182, mapped in ref.NairobiPlaceWardMap=182 (100.00%) -- target >=90%, guards against future route/stage edits silently introducing an unmapped place",
              "source": "Realism checks"
            },
            {
              "code": "TR-R10",
              "name": "",
              "status": "PASS",
              "detail": "PassengerJourney rows=1632, date-effective ward-coherent (citizen home OR work ward AS OF the journey's own date matches route corridor)=1594 (97.67%) -- target >=90%, distinct from TR-R08's current-ward check: catches period-segmentation/date-matching defects that TR-R08's current-state view can't see",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/transport-certification.html"
      },
      "vehicles": {
        "name": "Vehicles",
        "status": "documentation",
        "sourceKey": "vehicles",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/vehicles-certification.html"
      },
      "fleet": {
        "name": "Fleet",
        "status": "sample",
        "sourceKey": "fleet",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "FLT-02",
              "name": "fleet.Driver populated",
              "status": "PASS",
              "detail": "driver count=1199",
              "source": "Structural checks"
            },
            {
              "code": "FLT-03",
              "name": "Driver.EmployeeId FK integrity",
              "status": "PASS",
              "detail": "orphaned driver rows=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-04",
              "name": "fleet.Vehicle populated",
              "status": "PASS",
              "detail": "vehicle count=500",
              "source": "Structural checks"
            },
            {
              "code": "FLT-05",
              "name": "FuelConsumption.VehicleId / DriverId FK integrity",
              "status": "N/A",
              "detail": "fleet.FuelConsumption is empty",
              "source": "Structural checks"
            },
            {
              "code": "FLT-06",
              "name": "FuelConsumption.Liters/OdometerKm/CostAmount >= 0",
              "status": "N/A",
              "detail": "fleet.FuelConsumption is empty",
              "source": "Structural checks"
            },
            {
              "code": "FLT-07",
              "name": "Maintenance.VehicleId FK integrity",
              "status": "PASS",
              "detail": "orphaned maintenance rows=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-08",
              "name": "Maintenance.CompletedUtc >= ScheduledUtc",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-09",
              "name": "Vehicle.CreatedUtc not in the future",
              "status": "PASS",
              "detail": "future-dated vehicles=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-10",
              "name": "FleetEventIndex populated",
              "status": "PASS",
              "detail": "year rows=87",
              "source": "Structural checks"
            },
            {
              "code": "FLT-11",
              "name": "FleetEventIndex.Modifier within [0.10, 2.00]",
              "status": "PASS",
              "detail": "out-of-range rows=0",
              "source": "Structural checks"
            },
            {
              "code": "FLT-R00",
              "name": "",
              "status": "N/A",
              "detail": "fleet.FuelConsumption is empty -- this city's generator has not run yet",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/fleet-certification.html"
      },
      "roads": {
        "name": "Roads",
        "status": "planned",
        "sourceKey": "roads",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/roads-certification.html"
      },
      "postal-logistics": {
        "name": "Postal & Logistics",
        "status": "planned",
        "sourceKey": "postal-logistics",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/postal-logistics-certification.html"
      },
      "government": {
        "name": "Government",
        "status": "planned",
        "sourceKey": "government",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/government-certification.html"
      },
      "publicfinance": {
        "name": "Public Finance",
        "status": "sample",
        "sourceKey": "publicfinance",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/publicfinance-certification.html"
      },
      "emergency-services": {
        "name": "Emergency Services",
        "status": "planned",
        "sourceKey": "emergency-services",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/emergency-services-certification.html"
      },
      "socialprotection": {
        "name": "Social Protection",
        "status": "documentation",
        "sourceKey": "socialprotection",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/socialprotection-certification.html"
      },
      "justice": {
        "name": "Justice",
        "status": "planned",
        "sourceKey": "justice",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/justice-certification.html"
      },
      "taxation": {
        "name": "Taxation",
        "status": "sample",
        "sourceKey": "taxation",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/taxation-certification.html"
      },
      "pensions": {
        "name": "Pensions",
        "status": "planned",
        "sourceKey": "pensions",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/pensions-certification.html"
      },
      "energy": {
        "name": "Energy",
        "status": "sample",
        "sourceKey": "energy",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "EN-H02",
              "name": "Facility populated",
              "status": "PASS",
              "detail": "facility count=222",
              "source": "Structural checks"
            },
            {
              "code": "EN-H03",
              "name": "Asset populated",
              "status": "PASS",
              "detail": "asset count=855",
              "source": "Structural checks"
            },
            {
              "code": "EN-H04",
              "name": "Connection populated",
              "status": "PASS",
              "detail": "connection count=1564913",
              "source": "Structural checks"
            },
            {
              "code": "EN-H05",
              "name": "Outage populated",
              "status": "PASS",
              "detail": "outage count=134180",
              "source": "Structural checks"
            },
            {
              "code": "EN-H06",
              "name": "Consumption populated",
              "status": "PASS",
              "detail": "consumption rows=16929444",
              "source": "Structural checks"
            },
            {
              "code": "EN-H07",
              "name": "Connection.HouseholdId FK integrity (CIP)",
              "status": "PASS",
              "detail": "orphaned household connections=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H08",
              "name": "Connection.BusinessId FK integrity (CIP)",
              "status": "PASS",
              "detail": "orphaned business connections=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H09",
              "name": "Connection.ConnectionDate within SeedEpoch-NowDate (TMS)",
              "status": "PASS",
              "detail": "date violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H10",
              "name": "Outage.StartUtc within SeedEpoch-NowDate (TMS)",
              "status": "PASS",
              "detail": "date violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H11",
              "name": "Outage.EstimatedRestorationUtc >= StartUtc (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H12",
              "name": "Consumption.ReadingPeriodEnd > ReadingPeriodStart (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-H13",
              "name": "MaintenanceEvent.CompletedDate >= ScheduledDate (EDS)",
              "status": "PASS",
              "detail": "EDS violations=0",
              "source": "Structural checks"
            },
            {
              "code": "EN-R01",
              "name": "",
              "status": "PASS",
              "detail": "rate=75.25%  connected=1350628  total=1794852",
              "source": "Realism checks"
            },
            {
              "code": "EN-R02",
              "name": "",
              "status": "PASS",
              "detail": "GridSharePct sum=100.00% (expected ~100%)",
              "source": "Realism checks"
            },
            {
              "code": "EN-R03",
              "name": "",
              "status": "PASS",
              "detail": "active DISCOs=1  distinct outage types=10",
              "source": "Realism checks"
            },
            {
              "code": "EN-R04",
              "name": "",
              "status": "PASS",
              "detail": "readings with implausible per-kWh rate=0",
              "source": "Realism checks"
            },
            {
              "code": "EN-R05",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=85.01%  informal-housing connection rate=41.91%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/energy-certification.html"
      },
      "power": {
        "name": "Power",
        "status": "documentation",
        "sourceKey": "power",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "PWR-H02",
              "name": "TransmissionLine populated",
              "status": "PASS",
              "detail": "line count=1200 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H03",
              "name": "Meter populated",
              "status": "PASS",
              "detail": "meter count=400000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H04",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H05",
              "name": "Outage EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H06",
              "name": "DemandReading.FrequencyHz plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H07",
              "name": "Meter.InstallDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H08",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H09",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H10",
              "name": "DemandReading.SubstationId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H11",
              "name": "Every populated ward has an active meter",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-H12",
              "name": "Outage.AffectedHouseholds non-negative",
              "status": "PASS",
              "detail": "negative rows=0",
              "source": "Structural checks"
            },
            {
              "code": "PWR-R01",
              "name": "",
              "status": "PASS",
              "detail": "residential-class bills with implausible (>5000 kWh) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "PWR-R03",
              "name": "",
              "status": "PASS",
              "detail": "outages lasting >720h (30 days)=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R04",
              "name": "",
              "status": "WARN",
              "detail": "substations with observed peak load >150% of design CapacityMVA=68",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own meter's InstallDate=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R06",
              "name": "",
              "status": "PASS",
              "detail": "readings outside the physically plausible [47,53] Hz envelope=0",
              "source": "Realism checks"
            },
            {
              "code": "PWR-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=14.42%  informal-housing connection rate=7.17%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/power-certification.html"
      },
      "gas": {
        "name": "Gas",
        "status": "sample",
        "sourceKey": "gas",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "GAS-H02",
              "name": "CylinderDispatch populated",
              "status": "PASS",
              "detail": "dispatch count=4000000 (min 10000)",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H03",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H04",
              "name": "Incident ResolvedDatetime >= IncidentDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H05",
              "name": "CylinderDispatch.CylinderSizeKG is a real standard size",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H06",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H07",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H08",
              "name": "PressureReading.PipelineId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-H09",
              "name": "DistributionDepot.StorageCapacityM3 positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "GAS-R01",
              "name": "",
              "status": "PASS",
              "detail": "bills with implausible (>200kg) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R02",
              "name": "",
              "status": "PASS",
              "detail": "reticulated Subscriber count (3000) as % of distinct cylinder-served households (1418052)=0.21% (must stay <=10% -- piped gas is real but niche in both cities, not a mass utility)",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R03",
              "name": "",
              "status": "PASS",
              "detail": "dispatches with implausible per-kg price=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R04",
              "name": "",
              "status": "PASS",
              "detail": "LOW/MEDIUM-severity incidents carrying a casualty count=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own subscriber's ConnectedDate=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R06",
              "name": "",
              "status": "PASS",
              "detail": "negative-pressure rows=0",
              "source": "Realism checks"
            },
            {
              "code": "GAS-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=0.12%  informal-housing connection rate=0.04%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/gas-certification.html"
      },
      "water": {
        "name": "Water",
        "status": "sample",
        "sourceKey": "water",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "WAT-H02",
              "name": "Reservoir populated",
              "status": "PASS",
              "detail": "reservoir count=202 (min 5)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H03",
              "name": "Pipeline populated",
              "status": "PASS",
              "detail": "pipeline count=1000 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H04",
              "name": "Meter populated",
              "status": "PASS",
              "detail": "meter count=190000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H05",
              "name": "Billing AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H06",
              "name": "Outage EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H07",
              "name": "FlowReading WaterLevelPct in [0,100]",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H08",
              "name": "Meter.InstallDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H09",
              "name": "Billing.BillingMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H10",
              "name": "Billing.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H11",
              "name": "FlowReading.ReservoirId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-H12",
              "name": "Every populated ward has an active meter",
              "status": "PASS",
              "detail": "uncovered populated wards=0",
              "source": "Structural checks"
            },
            {
              "code": "WAT-R01",
              "name": "",
              "status": "PASS",
              "detail": "domestic/prepaid bills with implausible (>500 m3) monthly consumption=0",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "WAT-R03",
              "name": "",
              "status": "PASS",
              "detail": "reservoirs with CurrentLevelPct outside [0,100]=0",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R04",
              "name": "",
              "status": "WARN",
              "detail": "plants with observed output >150% of design CapacityMLD=9",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R05",
              "name": "",
              "status": "PASS",
              "detail": "bills dated before their own meter's InstallDate=0",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R06",
              "name": "",
              "status": "N/A",
              "detail": "measurement only -- billing collection rate=49.99% -- NOT the same concept as NCWSC's real ~54% non-revenue-water loss figure (produced-vs-billed volume is unmodeled)",
              "source": "Realism checks"
            },
            {
              "code": "WAT-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=7.11%  informal-housing connection rate=3.58%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/water-certification.html"
      },
      "wastewater": {
        "name": "Wastewater",
        "status": "sample",
        "sourceKey": "wastewater",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "WW-H02",
              "name": "SewerLine populated",
              "status": "PASS",
              "detail": "line count=800 (min 50)",
              "source": "Structural checks"
            },
            {
              "code": "WW-H03",
              "name": "Connection populated",
              "status": "PASS",
              "detail": "connection count=250000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "WW-H04",
              "name": "SewageLevy.AmountLocal plausible",
              "status": "PASS",
              "detail": "out-of-range=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H05",
              "name": "OverflowEvent.EndDatetime >= StartDatetime",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H06",
              "name": "SewageLevy.LevyMonth in [1,12]",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H07",
              "name": "SewageLevy.PaidDate only set when Paid",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H08",
              "name": "InfluentReading.TreatmentPlantId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-H09",
              "name": "TreatmentPlant.DesignCapacityMLD positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "WW-R01",
              "name": "",
              "status": "PASS",
              "detail": "levies with implausible (>20000) monthly amount=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R02",
              "name": "",
              "status": "PASS",
              "detail": "Connection count (250000) as % of Household count (1794852)=13.93% (must stay <=30% -- sewer connection is real but niche in both cities, not universal)",
              "source": "Realism checks"
            },
            {
              "code": "WW-R03",
              "name": "",
              "status": "PASS",
              "detail": "readings with EffluentBOD > InfluentBOD=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R04",
              "name": "",
              "status": "PASS",
              "detail": "LOW/MEDIUM-severity events carrying an affected-households count=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R05",
              "name": "",
              "status": "PASS",
              "detail": "levies dated before their own connection's ConnectedDate=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R06",
              "name": "",
              "status": "PASS",
              "detail": "implausible PHValue rows=0",
              "source": "Realism checks"
            },
            {
              "code": "WW-R07",
              "name": "",
              "status": "PASS",
              "detail": "formal-housing connection rate=8.00%  informal-housing connection rate=3.98%",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/wastewater-certification.html"
      },
      "waste": {
        "name": "Solid Waste",
        "status": "sample",
        "sourceKey": "solidwaste",
        "sourceShared": true,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "SW-H02",
              "name": "CollectionVehicle populated",
              "status": "PASS",
              "detail": "vehicle count=200 (min 20)",
              "source": "Structural checks"
            },
            {
              "code": "SW-H03",
              "name": "CollectionRound populated",
              "status": "PASS",
              "detail": "round count=150000 (min 1000)",
              "source": "Structural checks"
            },
            {
              "code": "SW-H04",
              "name": "LandfillDeposit.TippingFeeLocal positive",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H05",
              "name": "WasteComplaint.ResolutionDate >= ComplaintDate",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H06",
              "name": "CollectionVehicle.LastServiceDate not in future",
              "status": "PASS",
              "detail": "future rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H07",
              "name": "CollectionRound.WasteWeightKG only set for COMPLETED/PARTIAL",
              "status": "PASS",
              "detail": "bad rows=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H08",
              "name": "CollectionRound.CollectionVehicleId FK integrity",
              "status": "PASS",
              "detail": "orphans=0",
              "source": "Structural checks"
            },
            {
              "code": "SW-H09",
              "name": "Every populated ward has a collection zone",
              "status": "WARN",
              "detail": "uncovered populated wards=40",
              "source": "Structural checks"
            },
            {
              "code": "SW-R01",
              "name": "",
              "status": "PASS",
              "detail": "rounds with implausible (>15,000kg) single-trip weight=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R02",
              "name": "",
              "status": "PASS",
              "detail": "deposits citing more vehicles (VehicleCount) than exist citywide (200)=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R03",
              "name": "",
              "status": "PASS",
              "detail": "rounds with implausible (>5,000) single-trip HouseholdsServed=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R04",
              "name": "",
              "status": "PASS",
              "detail": "deposits with implausible per-tonne rate=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R05",
              "name": "",
              "status": "PASS",
              "detail": "vehicles with an implausible (pre-1990) LastServiceDate=0",
              "source": "Realism checks"
            },
            {
              "code": "SW-R06",
              "name": "",
              "status": "PASS",
              "detail": "complaints taking >365 days to resolve=0",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/waste-certification.html"
      },
      "telecom": {
        "name": "Telecom",
        "status": "planned",
        "sourceKey": "telecom",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/telecom-certification.html"
      },
      "iot": {
        "name": "IoT",
        "status": "planned",
        "sourceKey": "iot",
        "sourceShared": false,
        "result": {
          "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": "Structural checks"
            },
            {
              "code": "IOT-02",
              "name": "iot.Device populated",
              "status": "PASS",
              "detail": "device count=500",
              "source": "Structural checks"
            },
            {
              "code": "IOT-03",
              "name": "Sensor.DeviceId FK integrity",
              "status": "PASS",
              "detail": "orphaned sensor rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-04",
              "name": "Every Device has at least one Sensor",
              "status": "PASS",
              "detail": "devices with zero sensors=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-05",
              "name": "SensorReading.ReadingValue >= 0",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-06",
              "name": "SensorReading.SensorId FK integrity",
              "status": "PASS",
              "detail": "orphaned reading rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-07",
              "name": "Alert.ClearedUtc >= Alert.AlertUtc",
              "status": "PASS",
              "detail": "violations=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-08",
              "name": "Alert.Status consistent with ClearedUtc presence",
              "status": "PASS",
              "detail": "inconsistent rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-09",
              "name": "TelemetryStream.DeviceId FK integrity",
              "status": "PASS",
              "detail": "orphaned stream rows=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-10",
              "name": "Device.WardId resolves against ref.Ward/ref.AdminUnit",
              "status": "PASS",
              "detail": "unresolved ward references=0",
              "source": "Structural checks"
            },
            {
              "code": "IOT-R01",
              "name": "",
              "status": "PASS",
              "detail": "all reading values within physically plausible range for their SensorType",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R02",
              "name": "",
              "status": "PASS",
              "detail": "MotionDetected readings outside {0,1}: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R03",
              "name": "",
              "status": "PASS",
              "detail": "0 of 10 catalog sensor types have zero readings",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one SensorType=84.7%% (>=99%% would indicate Status is not independent of SensorType)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04B",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one DeviceType=90.0%% (>=99%% would indicate Status is not independent of DeviceType)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R04C",
              "name": "",
              "status": "PASS",
              "detail": "worst single-status share within one Protocol=86.0%% (>=99%% would indicate Status is not independent of Protocol)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R05",
              "name": "",
              "status": "PASS",
              "detail": "sensors with >=1 alert=1161 of 1500 (77.4%%)",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R06",
              "name": "",
              "status": "PASS",
              "detail": "0 of 9 non-boolean sensor types show zero variation (constant reading value)",
              "source": "Realism checks"
            },
            {
              "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": "Realism checks"
            },
            {
              "code": "IOT-R08",
              "name": "",
              "status": "PASS",
              "detail": "Alert rows where SensorId belongs to a different DeviceId than listed: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R09",
              "name": "",
              "status": "PASS",
              "detail": "EnergyConsumption readings that decreased from the same sensor's prior reading: 0",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R10",
              "name": "",
              "status": "PASS",
              "detail": "avg TrafficCameras/ward: above-average TrafficWeight=2.27, below-average=1.37",
              "source": "Realism checks"
            },
            {
              "code": "IOT-R11",
              "name": "",
              "status": "PASS",
              "detail": "EnergyConsumption sensors with >=1 alert=116 of 150",
              "source": "Realism checks"
            }
          ]
        },
        "report": "cities/nairobi/domains/iot-certification.html"
      },
      "environment": {
        "name": "Environment & Climate",
        "status": "partial",
        "sourceKey": "environment",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/environment-certification.html"
      },
      "media-broadcasting": {
        "name": "Media & Broadcasting",
        "status": "planned",
        "sourceKey": "media-broadcasting",
        "sourceShared": false,
        "result": null,
        "report": "cities/nairobi/domains/media-broadcasting-certification.html"
      }
    }
  },
  "benchmarks": {
    "lagos": {
      "source": "cities/lagos/audits/event-ablation-dashboard.html",
      "rows": [
        [
          "FP2020 Commitment / Renewed Family Planning Push",
          "Confirmed explanatory signal"
        ],
        [
          "Boko Haram Insurgency Displacement",
          "Confirmed explanatory signal"
        ],
        [
          "Structural Adjustment Programme (Nigeria)",
          "Confirmed explanatory signal"
        ],
        [
          "National Policy on Population for Development",
          "Confirmed explanatory signal"
        ],
        [
          "Nigerian Oil Boom",
          "No confirmed signal in available benchmark window"
        ],
        [
          "COVID-19 Pandemic (Nigeria)",
          "No confirmed signal in available benchmark window"
        ],
        [
          "Nigerian Civil War (Biafra)",
          "No confirmed signal in available benchmark window"
        ],
        [
          "Fertility Decline Stall/Rebound",
          "Recalibration review candidate"
        ]
      ],
      "scope": "Published event-ablation categories. Numerical error scores and calibration parameters are not disclosed in these public reports."
    },
    "nairobi": {
      "source": "cities/nairobi/audits/event-ablation-dashboard.html",
      "rows": [
        [
          "Fertility Decline Resumption",
          "Confirmed explanatory signal"
        ],
        [
          "Family Planning Programme Intensification",
          "Confirmed explanatory signal"
        ],
        [
          "East Africa Drought",
          "Confirmed explanatory signal"
        ],
        [
          "Asian Financial Crisis Impact",
          "Confirmed explanatory signal"
        ],
        [
          "2007-08 Post-Election Violence",
          "No confirmed signal in available benchmark window"
        ],
        [
          "COVID-19 Pandemic",
          "No confirmed signal in available benchmark window"
        ],
        [
          "Structural Adjustment Programme",
          "No confirmed signal in available benchmark window"
        ],
        [
          "Fertility Decline Stall",
          "Recalibration review candidate"
        ],
        [
          "Post-COVID Economic Recovery",
          "Recalibration review candidate"
        ],
        [
          "National Family Planning Programme Launch",
          "Recalibration review candidate"
        ]
      ],
      "scope": "Published event-ablation categories. Numerical error scores and calibration parameters are not disclosed in these public reports."
    }
  }
}
