{
  "product": "Baltique OS",
  "release": "2.2.0.1",
  "title": "Upgrade Bootstrap & Preflight Schema-Safety Repair",
  "release_type": "hotfix-overlay",
  "base_required": "2.2.0 files deployed (upgrade may be incomplete)",
  "migration_key": "235_core_2_2_0_1_upgrade_bootstrap_preflight_repair",
  "root_cause": "The 2.2.0 upgrade page executed module preflight queries before the 2.2.0 schema existed. An unguarded query to enterprise_preop_lab_ai_rules was reproduced as the first failure.",
  "entrypoints": [
    "/upgrade_2_2_0_1.php",
    "/upgrade_2_2_0.php"
  ],
  "safety": {
    "auto_patient_send": false,
    "auto_clinical_decision": false,
    "auto_cron_enable": false,
    "patient_data_changes": false
  },
  "validation": {
    "php_lint": "13/13 PASS",
    "static_checks": "25/25 PASS",
    "missing_schema_preflight_test": "PASS",
    "merge_test_with_2_2_0": "PASS"
  },
  "files": [
    {
      "path": "PATCHED_FILES_CORE_2_2_0_1.txt",
      "size_bytes": 558,
      "sha256": "d6e1cb1370ea26af722009364dd3a9ee535d8d56335272a0afd8766ecc741c2e"
    },
    {
      "path": "README_CORE_2_2_0_1.md",
      "size_bytes": 1894,
      "sha256": "0c485229d32ccc7b308f5a4116f97376829b5e9d811f96ca1e68bc14d3927ea3"
    },
    {
      "path": "README_UPGRADE_2_2_0_1.md",
      "size_bytes": 1415,
      "sha256": "d46687138ac8ea63566f68cea350f54e131aa654409ec920fcadeff691f4aa88"
    },
    {
      "path": "app/bootstrap.php",
      "size_bytes": 10165,
      "sha256": "9404dee982d79ef7f1925524acb9bbaaed226c978f38b9be449cfe37b865a454"
    },
    {
      "path": "app/enterprise_codebase_normalization.php",
      "size_bytes": 33090,
      "sha256": "083ff9ff4e02219441bb4df90083109abda5c91b49ef9b767b1cb87aaa02733f"
    },
    {
      "path": "app/enterprise_document_language_governance.php",
      "size_bytes": 5657,
      "sha256": "3af3c8a0544db10363191b4045f7f3bc9ab233b141b097c0d4003c6f2ed56b49"
    },
    {
      "path": "app/enterprise_patient_care_guide.php",
      "size_bytes": 23576,
      "sha256": "ec3c6250fb1311c787b589f07e0fd959753da629556debe5ebd82f3d5a8a1ada"
    },
    {
      "path": "app/enterprise_preop_lab_intelligence.php",
      "size_bytes": 33274,
      "sha256": "2d1f0747a3c04eb6f5117510801f53640d6e94edcb7a00454ea5e32cf3967009"
    },
    {
      "path": "app/enterprise_release_220.php",
      "size_bytes": 20608,
      "sha256": "4a6615926caf9ec7a0a98edd78ee7ff9cb62d41f9ef29d22cd374e44972fc7ee"
    },
    {
      "path": "app/enterprise_release_2201.php",
      "size_bytes": 4508,
      "sha256": "20b47a3c52ad25c623ab58269b35b069d0ba919289a96474f12739a272edc4dc"
    },
    {
      "path": "app/system_runtime_preflight.php",
      "size_bytes": 189741,
      "sha256": "8a37125996606151b5542cd04a736665df0ac5868977efba7ba67e34d4a74022"
    },
    {
      "path": "database/migrations/235_core_2_2_0_1_upgrade_bootstrap_preflight_repair.sql",
      "size_bytes": 636,
      "sha256": "77a0233e71f5c275b113cebc17e3feb280ce1b71c2c9d646c3fff994a68c476b"
    },
    {
      "path": "docs/ROOT_CAUSE_AND_REPAIR_2_2_0_1.md",
      "size_bytes": 994,
      "sha256": "5a1b553589627f77e559d3cb5834181c5e6ffa901d9312593dfe7d586f1f991a"
    },
    {
      "path": "docs/VALIDATION_REPORT_CORE_2_2_0_1.md",
      "size_bytes": 1300,
      "sha256": "6005f23fe93d7b7b767ab6399714dc2f5a43e7a2c2a5284897d2db1ee61afcfa"
    },
    {
      "path": "public_html/system_clinical_experience_220.php",
      "size_bytes": 8018,
      "sha256": "2ddab8dea9e856d29826a3aaf6d5ee40169f953650f95dedc8738d2af2fdef2f"
    },
    {
      "path": "public_html/upgrade_2_2_0.php",
      "size_bytes": 3869,
      "sha256": "249653e6f0f0b4207f8fd44f136404cfb13619232583df6d152d15feb3607880"
    },
    {
      "path": "public_html/upgrade_2_2_0_1.php",
      "size_bytes": 3234,
      "sha256": "1fb51e762486bfb099ed48a614fbb739beb152bb1a1ac41780d310bbd1e7b011"
    },
    {
      "path": "tools/test_core_2_2_0_1_preflight_schema_safe.php",
      "size_bytes": 2237,
      "sha256": "8d14da9d1efb0b7baae73caecda47f08298c5d58e96a5acf2a68699fe14f1528"
    },
    {
      "path": "tools/validate_core_2_2_0_1_static.php",
      "size_bytes": 2896,
      "sha256": "4b11c3e3ffb5e30a3fa7e669108377a86d5c829963c54cd6cdcbce25c9cd8c5b"
    }
  ]
}
