{
  "module_name": "platform_ops",
  "module_root": "pypos/modules/platform_ops",
  "effective_date": "2026-04-12",
  "score": {
    "max": 100,
    "pass_score": 90
  },
  "kpis": [
    {
      "id": "KPI-01",
      "name": "Function Budget",
      "weight": 20
    },
    {
      "id": "KPI-02",
      "name": "Exception Hygiene",
      "weight": 25
    },
    {
      "id": "KPI-03",
      "name": "Error Contract",
      "weight": 20
    },
    {
      "id": "KPI-04",
      "name": "Test Maturity",
      "weight": 25
    },
    {
      "id": "KPI-05",
      "name": "Governance Controls",
      "weight": 10
    }
  ],
  "critical_functions": [
    {
      "file_path": "pypos/modules/platform_ops/services/dr_backup_policy_service.py",
      "class_name": "DrBackupPolicyService",
      "function_name": "run_backup",
      "max_loc": 80
    },
    {
      "file_path": "pypos/modules/platform_ops/services/dr_restore_drill_service.py",
      "class_name": "DrRestoreDrillService",
      "function_name": "run_restore_drill",
      "max_loc": 170
    }
  ],
  "exception_hygiene": {
    "baseline_generic_exception": 4,
    "max_allowed_generic_exception": 1,
    "min_reduction_pct": 70
  },
  "error_contract_targets": [
    {
      "file_path": "pypos/modules/platform_ops/services/dr_restore_drill_service.py",
      "required_tokens": [
        "error_code",
        "reason",
        "trace_id"
      ]
    }
  ],
  "test_matrix": {
    "platform_ops_core": {
      "files": [
        "tests/p2/test_dr_backup_policy_service.py",
        "tests/p2/test_dr_restore_drill_service.py",
        "tests/p2/test_fleet_rollout_service.py"
      ],
      "min_cases": 6
    }
  },
  "governance_checks": [
    {
      "file_path": "pypos/modules/platform_ops/services/fleet_rollout_gate_service.py",
      "required_tokens": [
        "halt_and_rollback",
        "threshold_exceeded"
      ]
    }
  ]
}
