<?php

declare(strict_types=1);

return [
    'schema_version' => '1.0',
    'policy' => 'READY_BRANCHES_ONLY_JCKH_DEFERRED',

    /*
     * Database migration/update propagation:
     * all configured hospital databases remain in scope.
     */
    'database_update_branches' => ['njch', 'jckh', 'mnh'],

    /*
     * Blocking business QA/live parity:
     * only branches whose data/schema readiness has been formally confirmed.
     */
    'blocking_qa_branches' => ['njch', 'mnh'],

    'branches' => [
        'njch' => [
            'state' => 'READY',
            'blocking_business_qa' => true,
            'include_in_live_parity' => true,
            'include_in_live_views' => true,
            'apply_database_updates' => true,
        ],
        'jckh' => [
            'state' => 'DEFERRED_NOT_READY',
            'blocking_business_qa' => false,
            'include_in_live_parity' => false,
            'include_in_live_views' => false,
            'apply_database_updates' => true,
            'reason_code' => 'DATABASE_NOT_PARITY_READY_WITH_NJCH_MNH',
        ],
        'mnh' => [
            'state' => 'READY',
            'blocking_business_qa' => true,
            'include_in_live_parity' => true,
            'include_in_live_views' => true,
            'apply_database_updates' => true,
        ],
    ],
];
