{
  "$defs": {
    "Confidentiality": {
      "description": "Cross-cutting confidentiality classification used across privacy,\nsecurity, knowledge, IR pillars. Default rendering rule: `corpospec-report`\nexcludes `Restricted | BoardOnly | InvestorOnly` records from public output\nunless an explicit audience parameter overrides. See BDR 0076 §1.",
      "oneOf": [
        {
          "const": "public",
          "description": "Safe to publish anywhere.",
          "type": "string"
        },
        {
          "const": "customer",
          "description": "Visible to customers under standard ToS.",
          "type": "string"
        },
        {
          "const": "internal",
          "description": "Employees and contractors only.",
          "type": "string"
        },
        {
          "const": "restricted",
          "description": "Need-to-know subset of internal.",
          "type": "string"
        },
        {
          "const": "board_only",
          "description": "Board members and direct staff.",
          "type": "string"
        },
        {
          "const": "investor_only",
          "description": "Existing investors + prospective with NDA.",
          "type": "string"
        }
      ]
    },
    "InitiativeCategory": {
      "description": "Initiative category.",
      "oneOf": [
        {
          "const": "product",
          "description": "Product capability.",
          "type": "string"
        },
        {
          "const": "go_to_market",
          "description": "Go-to-market / commercial.",
          "type": "string"
        },
        {
          "const": "operations",
          "description": "Operational efficiency.",
          "type": "string"
        },
        {
          "const": "governance",
          "description": "Governance / risk / compliance.",
          "type": "string"
        },
        {
          "const": "hiring",
          "description": "Hiring + team-building.",
          "type": "string"
        },
        {
          "const": "platform",
          "description": "Infrastructure / platform.",
          "type": "string"
        },
        {
          "const": "brand",
          "description": "Brand / marketing.",
          "type": "string"
        },
        {
          "const": "research",
          "description": "Research / discovery.",
          "type": "string"
        },
        {
          "const": "customer_success",
          "description": "Customer success.",
          "type": "string"
        },
        {
          "const": "corporate",
          "description": "M&A / partnership.",
          "type": "string"
        }
      ]
    },
    "InitiativeMilestone": {
      "description": "One milestone.",
      "properties": {
        "actual_date": {
          "anyOf": [
            {
              "$ref": "#/$defs/IsoDate"
            },
            {
              "type": "null"
            }
          ],
          "description": "Actual completion (if Achieved / Missed)."
        },
        "evidence_ref": {
          "anyOf": [
            {
              "$ref": "#/$defs/PathRef"
            },
            {
              "type": "null"
            }
          ],
          "description": "PathRef to evidence of completion."
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/PathRef"
        },
        "status": {
          "$ref": "#/$defs/MilestoneStatus"
        },
        "target_date": {
          "$ref": "#/$defs/IsoDate",
          "description": "Target completion date."
        }
      },
      "required": [
        "id",
        "label",
        "target_date",
        "status",
        "owner"
      ],
      "type": "object"
    },
    "InitiativeStatus": {
      "description": "Lifecycle.",
      "oneOf": [
        {
          "const": "proposed",
          "description": "Proposed but not yet ratified.",
          "type": "string"
        },
        {
          "const": "committed",
          "description": "Ratified + committed (board / leadership approved).",
          "type": "string"
        },
        {
          "const": "in_progress",
          "description": "Active execution.",
          "type": "string"
        },
        {
          "const": "on_hold",
          "description": "On hold / paused.",
          "type": "string"
        },
        {
          "const": "completed",
          "description": "Completed (success).",
          "type": "string"
        },
        {
          "const": "cancelled",
          "description": "Cancelled (no longer pursuing).",
          "type": "string"
        },
        {
          "const": "spun_off",
          "description": "Spun off into a separate body of work.",
          "type": "string"
        }
      ]
    },
    "IsoCurrency": {
      "description": "ISO 4217 currency code.",
      "pattern": "^[A-Z]{3}$",
      "type": "string"
    },
    "IsoDate": {
      "description": "ISO 8601 date (YYYY-MM-DD).",
      "format": "date",
      "type": "string"
    },
    "MilestoneStatus": {
      "description": "Milestone status.",
      "oneOf": [
        {
          "enum": [
            "planned",
            "in_progress",
            "achieved",
            "missed",
            "cancelled"
          ],
          "type": "string"
        },
        {
          "const": "rescheduled",
          "description": "Pushed to a later date.",
          "type": "string"
        }
      ]
    },
    "PathRef": {
      "description": "Path-based cross-reference relative to .corpospec/ root.\nPattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$`",
      "pattern": "^[a-z0-9_-]+(/[a-z0-9_.-]+)+$",
      "type": "string"
    }
  },
  "$id": "https://corpospec.com/schemas/v0.16.0/roadmap-initiative.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Strategic initiative.",
  "properties": {
    "actual_end_date": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoDate"
        },
        {
          "type": "null"
        }
      ]
    },
    "actual_spend": {
      "description": "Actual spend to date.",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "budget_amount": {
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "budget_currency": {
      "anyOf": [
        {
          "$ref": "#/$defs/IsoCurrency"
        },
        {
          "type": "null"
        }
      ],
      "description": "Budget allocated."
    },
    "category": {
      "$ref": "#/$defs/InitiativeCategory"
    },
    "confidentiality": {
      "$ref": "#/$defs/Confidentiality"
    },
    "dependencies": {
      "description": "Dependencies (PathRefs to other initiatives / vendors).",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "description": {
      "description": "Longer narrative description.",
      "type": "string"
    },
    "dri": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "Single-threaded leader (DRI / TPM)."
    },
    "entity": {
      "$ref": "#/$defs/PathRef"
    },
    "id": {
      "$ref": "#/$defs/PathRef"
    },
    "linked_risks": {
      "description": "PathRefs to risks (risk_register.rs) raised by this initiative.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "milestones": {
      "items": {
        "$ref": "#/$defs/InitiativeMilestone"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "objective": {
      "description": "One-sentence objective.",
      "type": "string"
    },
    "okr_refs": {
      "description": "PathRefs to associated OKR objectives.",
      "items": {
        "$ref": "#/$defs/PathRef"
      },
      "type": "array"
    },
    "owner": {
      "$ref": "#/$defs/PathRef"
    },
    "ratifying_bdr": {
      "anyOf": [
        {
          "$ref": "#/$defs/PathRef"
        },
        {
          "type": "null"
        }
      ],
      "description": "PathRef to the BDR that ratified the initiative."
    },
    "start_date": {
      "$ref": "#/$defs/IsoDate"
    },
    "status": {
      "$ref": "#/$defs/InitiativeStatus"
    },
    "target_end_date": {
      "$ref": "#/$defs/IsoDate"
    }
  },
  "required": [
    "id",
    "entity",
    "category",
    "status",
    "name",
    "objective",
    "description",
    "owner",
    "start_date",
    "target_end_date",
    "milestones",
    "confidentiality"
  ],
  "title": "RoadmapInitiative",
  "type": "object",
  "x-corpospec-pillar": "product"
}