{
 "checks": [
  {
   "detail": "12 regions sum to the national value for 2016-2024",
   "name": "regional_sum",
   "status": "pass"
  },
  {
   "detail": "no missing periods",
   "name": "no_missing_periods_national",
   "status": "pass"
  },
  {
   "detail": "no missing periods",
   "name": "no_missing_periods_regional",
   "status": "pass"
  },
  {
   "detail": "every label resolved to one of the 12 regions, every period complete",
   "name": "regions_resolve",
   "status": "pass"
  },
  {
   "detail": "categories add up to the Total row in all 108 region-years",
   "name": "categories_sum_to_total",
   "status": "pass"
  },
  {
   "detail": "newest period 2024 (last run 2024)",
   "name": "newest_period_not_older",
   "status": "pass"
  },
  {
   "detail": "totals = Lots + Logements until 2020, then Lots + Logements + Unites de restructuration from 2021",
   "name": "series_break_2021",
   "status": "pass"
  },
  {
   "detail": "1 changes beyond 30% to confirm",
   "name": "jumps_national",
   "status": "flag"
  },
  {
   "detail": "3 changes beyond 100% to confirm",
   "name": "jumps_regional",
   "status": "flag"
  },
  {
   "detail": "9 values recomputed from their source cells",
   "name": "provenance_consistent",
   "status": "pass"
  }
 ],
 "files": {
  "f1": {
   "fetch_state": "fresh",
   "file": "unites_achevees_national_par_typologie.csv",
   "file_url": "https://data.gov.ma/data/fr/dataset/e2414671-dbc6-4e99-abf2-a3536d7c5a59/resource/3ecbc725-d5e6-4646-8ca0-cdf336d2dc95/download/unites_achevees_national_par_typologie.csv",
   "kind": "ckan",
   "licence": "Open Data Commons Open Database License (ODbL)",
   "mirror_path": "data/raw/unites-achevees-au-niveau-national-ventile-par-typologie/8d4237733c54195fd94db05ee524d4f20f3fbaee6b2b547d4a71469fe34354ff/unites_achevees_national_par_typologie.csv",
   "page_url": "https://data.gov.ma/data/fr/dataset/unites-achevees-au-niveau-national-ventile-par-typologie",
   "producer_fr": "Ministère de l'Aménagement du Territoire National, de l'Urbanisme, de l'Habitat et de la Politique de la Ville",
   "publisher_date": "2026-11-20",
   "publisher_date_basis": "ckan_last_modified",
   "retrieved_at": "2026-11-26T14:33:38+00:00",
   "sha256": "8d4237733c54195fd94db05ee524d4f20f3fbaee6b2b547d4a71469fe34354ff",
   "source_id": "unites-achevees-au-niveau-national-ventile-par-typologie",
   "terms_fr": null
  },
  "f2": {
   "fetch_state": "fresh",
   "file": "unites_achevees_regions_detail.csv",
   "file_url": "https://data.gov.ma/data/fr/dataset/e44f343a-1fab-475e-b71d-06cd00ce9ff2/resource/4b604794-b9c0-46da-a85b-0d8a89baf569/download/unites_achevees_regions_detail.csv",
   "kind": "ckan",
   "licence": "Open Data Commons Open Database License (ODbL)",
   "mirror_path": "data/raw/unites-achevees-au-niveau-national-par-region-ventile-par-typologie/87df20273bfc5fe926157652f593c9ce9e403d65a5faa824196e1cd9ebfe44f5/unites_achevees_regions_detail.csv",
   "page_url": "https://data.gov.ma/data/fr/dataset/unites-achevees-au-niveau-national-par-region-ventile-par-typologie",
   "producer_fr": "Ministère de l'Aménagement du Territoire National, de l'Urbanisme, de l'Habitat et de la Politique de la Ville",
   "publisher_date": "2026-11-20",
   "publisher_date_basis": "ckan_last_modified",
   "retrieved_at": "2026-11-26T14:34:37+00:00",
   "sha256": "87df20273bfc5fe926157652f593c9ce9e403d65a5faa824196e1cd9ebfe44f5",
   "source_id": "unites-achevees-au-niveau-national-par-region-ventile-par-typologie",
   "terms_fr": null
  },
  "f3": {
   "fetch_state": "fresh",
   "file": "unites_achevees_regions_total.csv",
   "file_url": "https://data.gov.ma/data/fr/dataset/6908729e-2e9c-4d90-af4c-49fc1d112e42/resource/f4d3c0f8-7d9a-4dad-90e3-60854a8ac7ba/download/unites_achevees_regions_total.csv",
   "kind": "ckan",
   "licence": "Open Data Commons Open Database License (ODbL)",
   "mirror_path": "data/raw/unites-achevees_region/3732a024c1acbdf1e4d0f1a7d7f62d26995d6864b4014938d6a7f8d62a5cc479/unites_achevees_regions_total.csv",
   "page_url": "https://data.gov.ma/data/fr/dataset/unites-achevees_region",
   "producer_fr": "Ministère de l'Aménagement du Territoire National, de l'Urbanisme, de l'Habitat et de la Politique de la Ville",
   "publisher_date": "2026-11-20",
   "publisher_date_basis": "ckan_last_modified",
   "retrieved_at": "2026-11-26T14:35:29+00:00",
   "sha256": "3732a024c1acbdf1e4d0f1a7d7f62d26995d6864b4014938d6a7f8d62a5cc479",
   "source_id": "unites-achevees_region",
   "terms_fr": null
  }
 },
 "indicator": "logements-acheves",
 "level": "cell",
 "reviewed_flags": [
  {
   "by": "data analyst + data senior (Wadeh go-live review), approved on the owner's delegation (2026-11-26)",
   "detail": "1 changes beyond 30% to confirm",
   "evidence": "unites_achevees_national_par_typologie.csv rows 2022/2023 Logements; the 12 regional Logements totals of the detail file sum exactly to the national value every year 2016-2024",
   "items": [
    {
     "after": 168628,
     "before": 125171,
     "change_pct": 34.7,
     "from": 2022,
     "series": "MA",
     "to": 2023,
     "verdict": "confirmed"
    }
   ],
   "name": "jumps_national",
   "reviewed_on": "2026-11-26",
   "status": "flag",
   "verdict": "confirmed"
  },
  {
   "by": "data analyst + data senior (Wadeh go-live review), approved on the owner's delegation (2026-11-26)",
   "detail": "3 changes beyond 100% to confirm",
   "evidence": "unites_achevees_regions_detail.csv: categories sum to the Total row; Souss-Massa 2022 in the totals file is 33,977 = 27,800 Logements + 912 Lots + 5,265 Unites de restructuration",
   "items": [
    {
     "after": 16003,
     "before": 7855,
     "change_pct": 103.7,
     "from": 2022,
     "series": "MA-01",
     "to": 2023,
     "verdict": "confirmed"
    },
    {
     "after": 9371,
     "before": 4049,
     "change_pct": 131.4,
     "from": 2022,
     "series": "MA-02",
     "to": 2023,
     "verdict": "confirmed"
    },
    {
     "after": 27800,
     "before": 7666,
     "change_pct": 262.6,
     "from": 2021,
     "series": "MA-09",
     "to": 2022,
     "verdict": "confirmed"
    }
   ],
   "name": "jumps_regional",
   "reviewed_on": "2026-11-26",
   "status": "flag",
   "verdict": "confirmed"
  }
 ],
 "validations": {},
 "values": [
  {
   "inputs": [
    {
     "cell": "L3:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "121672",
     "row_label": "2016 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2016",
   "published": 121672,
   "recomputed": 121672,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L6:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "124016",
     "row_label": "2017 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2017",
   "published": 124016,
   "recomputed": 124016,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L9:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "143575",
     "row_label": "2018 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2018",
   "published": 143575,
   "recomputed": 143575,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L12:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "137210",
     "row_label": "2019 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2019",
   "published": 137210,
   "recomputed": 137210,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L15:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "109846",
     "row_label": "2020 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2020",
   "published": 109846,
   "recomputed": 109846,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L18:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "116618",
     "row_label": "2021 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2021",
   "published": 116618,
   "recomputed": 116618,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L21:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "125171",
     "row_label": "2022 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2022",
   "published": 125171,
   "recomputed": 125171,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L24:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "168628",
     "row_label": "2023 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2023",
   "published": 168628,
   "recomputed": 168628,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  },
  {
   "inputs": [
    {
     "cell": "L27:C3",
     "col_label": "nombre d'unités achevées au niveau national par typologie",
     "file": "f1",
     "raw": "168152",
     "row_label": "2024 / Logements",
     "sheet": null
    }
   ],
   "op": "cell",
   "period": "2024",
   "published": 168152,
   "recomputed": 168152,
   "scale": 1,
   "series": "value",
   "status": "checked",
   "transform": "aucune",
   "unit": "logements",
   "validation": null
  }
 ]
}
