{
  "schema_version": "1.0",
  "phase": "H11.0-P2",
  "release": "11.0.2",
  "title": "Legacy Functional Inventory & Gap Baseline",
  "generated_from": {
    "known_legacy_function_matrix": "docs/legacy/LEGACY_FUNCTION_MASTER_MATRIX.csv",
    "route_map": "docs/legacy/LEGACY_ROUTE_MAP.csv",
    "filter_map": "docs/legacy/LEGACY_FILTER_MAP.csv",
    "permission_map": "docs/legacy/LEGACY_PERMISSION_MAP.csv",
    "live_evidence_phase": "H11.0-P1",
    "live_evidence_result": "PASS"
  },
  "discovery_boundary": {
    "legacy_archive_complete": false,
    "known_legacy_functions_inventory_count": 31,
    "statement": "This is the authoritative baseline for all legacy functions discovered in the supplied archive and existing legacy maps. It does not claim that the supplied legacy archive contains every historical page or function."
  },
  "function_baseline": {
    "total": 31,
    "matched": 18,
    "partial": 9,
    "missing": 4,
    "unknown": 0,
    "matched_pct": 58.1
  },
  "cross_cutting_gaps": {
    "missing_routes": 2,
    "missing_filters": 3,
    "partial_permissions": 2
  },
  "evidence_contract": {
    "exact_live_parity_gates_required": [
      "REVENUE_PARITY_GATE.json",
      "PATIENT_ACTIVITY_PARITY_GATE.json",
      "OPERATIONS_PARITY_GATE.json",
      "DIAGNOSTICS_PARITY_GATE.json",
      "DOCTORS_PARITY_GATE.json",
      "BEDS_UNITS_PARITY_GATE.json"
    ],
    "reconstructed_source_gate": "SPECIALTY_FINANCE_PARITY_GATE.json",
    "specialty_finance_source_boundary": "HISTORICAL_FUNCTION_BODIES_MISSING_RECONSTRUCTED_SOURCE_PARITY_ONLY"
  },
  "immediate_next_item": {
    "rank": 1,
    "legacy_fn": "acty",
    "legacy_function": "get_admission_category_type",
    "reason": "Missing implementation with partial legacy body and known Oracle sources; highest-value implementable P0 gap."
  },
  "priority_policy": "Legacy Functional Parity remains the immediate priority after H11.0-P2."
}