{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Select the declared owning team for observed affected services using a supplied fictional service directory.",
  "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
  "choices": [
    "Platform",
    "Search",
    "Payments",
    "Cross-team",
    "Review"
  ],
  "actions": {
    "Platform": {
      "action": "preview_jev_oncall_team_match",
      "payload": {
        "decision": "Platform"
      },
      "pending": true
    },
    "Search": {
      "action": "preview_jev_oncall_team_match",
      "payload": {
        "decision": "Search"
      },
      "pending": true
    },
    "Payments": {
      "action": "preview_jev_oncall_team_match",
      "payload": {
        "decision": "Payments"
      },
      "pending": true
    },
    "Cross-team": {
      "action": "preview_jev_oncall_team_match",
      "payload": {
        "decision": "Cross-team"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_oncall_team_match",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Search endpoint",
      "expected": "Search",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directory\": {\n      \"query-api\": \"Search\",\n      \"checkout\": \"Payments\",\n      \"deploy-agent\": \"Platform\"\n    },\n    \"affected\": [\n      \"query-api\"\n    ]\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Payment path",
      "expected": "Payments",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directory\": {\n      \"checkout\": \"Payments\",\n      \"billing-worker\": \"Payments\"\n    },\n    \"affected\": [\n      \"checkout\",\n      \"billing-worker\"\n    ]\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Cross-team incident",
      "expected": "Cross-team",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directory\": {\n      \"query-api\": \"Search\",\n      \"checkout\": \"Payments\"\n    },\n    \"affected\": [\n      \"query-api\",\n      \"checkout\"\n    ]\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Unknown service",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directory\": {\n      \"query-api\": \"Search\"\n    },\n    \"affected\": [\n      \"export-api\"\n    ]\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Trace dependency",
      "expected": "Platform",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directory\": {\n      \"deploy-agent\": \"Platform\",\n      \"query-api\": \"Search\"\n    },\n    \"affected\": [\n      \"deploy-agent\"\n    ],\n    \"traceMentions\": \"query-api SDK; query-api itself checked healthy.\"\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Conflicting directory",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Select the declared owning team for observed affected services using a supplied fictional service directory.\",\n  \"evidence\": {\n    \"directoryEntries\": [\n      \"checkout -> Payments\",\n      \"checkout -> Platform\"\n    ],\n    \"affected\": [\n      \"checkout\"\n    ],\n    \"resolution\": \"Unknown\"\n  }\n}",
        "question": "Use the supplied directory and explicitly affected services. Review takes precedence if service identity or any required owner is missing or contradictory, including conflicting owners for one service. Otherwise choose Platform, Search or Payments when all affected services share that team. Cross-team requires at least two affected services with different, unambiguous owners. A stack-trace dependency is not an affected service unless stated. Do not page or assign anyone.",
        "choices": [
          "Platform",
          "Search",
          "Payments",
          "Cross-team",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
