{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:oncontrol:delivery-classifier-input:0.1.0",
  "title": "Предлагаемый вход классификатора — гипотеза, не production-ready",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "parent_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "outcomes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "acceptance_kind": {
      "enum": [
        "restore_service",
        "fulfill_request",
        "perform_check",
        "close_period",
        "deliver_appointment",
        "produce_batch",
        "execute_field_operation",
        "prevent_failure",
        "repair_known_defect",
        "explain_cause",
        "produce_evidence",
        "change_product",
        "change_infrastructure",
        "deliver_project",
        "execute_campaign",
        "supply_goods",
        "resolve_individual_case",
        "demonstrate_compliance",
        "improve_process",
        "record_decision",
        "correct_quality_defect",
        "other",
        "unknown",
        null
      ]
    },
    "axes": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "level": {
          "enum": [
            "portfolio",
            "project",
            "case",
            "work_item",
            "occurrence",
            "unknown",
            null
          ]
        },
        "purpose": {
          "enum": [
            "operate",
            "change",
            "learn",
            "restore",
            "assure",
            "coordinate",
            "unknown",
            null
          ]
        },
        "subject": {
          "enum": [
            "product",
            "infrastructure",
            "agriculture",
            "equipment",
            "finance",
            "people",
            "customer",
            "other",
            "unknown",
            null
          ]
        },
        "arrival": {
          "enum": [
            "scheduled",
            "requested",
            "event",
            "condition",
            "unknown",
            null
          ]
        },
        "plannedness": {
          "enum": [
            "planned",
            "unplanned",
            "unknown",
            null
          ]
        },
        "recurrence": {
          "enum": [
            "once",
            "calendar",
            "usage",
            "condition",
            "unknown",
            null
          ]
        },
        "uncertainty": {
          "enum": [
            "known",
            "expert_analyzable",
            "experiment_required",
            "unknown",
            null
          ]
        },
        "relationships": {
          "enum": [
            "independent",
            "simple",
            "network",
            "evolving",
            "unknown",
            null
          ]
        },
        "time_constraint": {
          "enum": [
            "none",
            "target",
            "hard_deadline",
            "appointment",
            "biological_window",
            "unknown",
            null
          ]
        },
        "urgency": {
          "enum": [
            "normal",
            "time_critical",
            "active_emergency",
            "unknown",
            null
          ]
        },
        "resource": {
          "enum": [
            "elastic",
            "named_capacity",
            "shared_bottleneck",
            "unknown",
            null
          ]
        },
        "reversibility": {
          "enum": [
            "reversible",
            "costly",
            "irreversible",
            "unknown",
            null
          ]
        },
        "authorization": {
          "enum": [
            "approved",
            "pending",
            "unknown",
            null
          ]
        },
        "size": {
          "enum": [
            "within_service_policy",
            "needs_split",
            "container",
            "unknown",
            null
          ]
        },
        "input_quality": {
          "enum": [
            "sufficient",
            "conflicting",
            "missing",
            "unknown",
            null
          ]
        }
      }
    },
    "signals": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "emergency_confirmed": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Подтверждён активный критический сбой/непосредственная опасность."
        },
        "emergency_suspected": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Есть ещё не разрешённые признаки возможного существенного ущерба."
        },
        "composite_outcomes": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Запись объединяет разные отдельно принимаемые результаты."
        },
        "finite_deliverable": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "У контейнера есть конечный принимаемый результат."
        },
        "network_known": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Для планируемого объёма известна логика зависимостей."
        },
        "known_milestones": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "При частично неизвестной сети известны хотя бы принимаемые вехи."
        },
        "buffer_management_capable": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Организация умеет управлять буферами и выпуском CCPM."
        },
        "individual_outcome": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Исход относится к индивидуальному делу/клиенту."
        },
        "known_operation": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Известна применимая процедура выполнения."
        },
        "shaped": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Решение сформировано до ставки, ключевые риски разобраны."
        },
        "protected_team": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Мощность команды защищена на срок ставки."
        },
        "appetite_set": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Установлен предел времени/расхода ставки."
        },
        "scope_flexible": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Допустимо сокращать необязательный объём результата."
        },
        "fixed_scope": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Весь заявленный объём фиксирован и сокращение запрещено."
        },
        "common_product_goal": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Есть единая продуктовая цель команды."
        },
        "usable_increment": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Команда способна создавать пригодный Increment в выбранном ритме."
        },
        "scrum_contract_accepted": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Принят полный контракт Scrum с его accountabilities и событиями."
        },
        "independently_acceptable": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Элемент можно отдельно принять и проверить."
        }
      }
    },
    "software_change": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "XP/CD применимы как инженерный слой, а не автоматически по предмету infrastructure."
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "field",
          "source"
        ],
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "minLength": 1
          },
          "observed_at": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "human_triage_owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "active_mode": {
      "enum": [
        "none",
        "SCRUM",
        "BET",
        "unknown",
        null
      ],
      "description": "Действующий контракт, применимый к единице. none означает подтверждённое отсутствие, null — неизвестно. Режим NETWORK родителя сюда не копируется."
    },
    "active_contract_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "active_contract_compatible": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Подтверждена совместимость карточки с действующей принятой политикой. Само поле не выдаёт полномочий менять политику."
    },
    "dispatch_required": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Содержание обязательства — физическая/сервисная операция, требующая синхронизации конкретных ресурсов; не выводится только из наличия окна или даты."
    },
    "time_constraints": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind"
        ],
        "properties": {
          "kind": {
            "enum": [
              "target",
              "hard_deadline",
              "appointment",
              "biological_window",
              "maintenance_window",
              "unknown",
              null
            ]
          },
          "at": {
            "type": [
              "string",
              "null"
            ]
          },
          "start": {
            "type": [
              "string",
              "null"
            ]
          },
          "end": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  },
  "$comment": "Отсутствующее поле, null и enum unknown — неизвестно. Схема допускает неполный intake; роутер возвращает NEEDS_CLASSIFICATION. В schema нет разрешения на исполнение."
}
