{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Select the next permitted operation in a supplied mobile-search workflow observation.",
  "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
  "choices": [
    "Focus",
    "Type",
    "Submit",
    "Wait",
    "Done",
    "Review"
  ],
  "actions": {
    "Focus": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Focus"
      },
      "pending": true
    },
    "Type": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Type"
      },
      "pending": true
    },
    "Submit": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Submit"
      },
      "pending": true
    },
    "Wait": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Wait"
      },
      "pending": true
    },
    "Done": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Done"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_mobile_search_next_step",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Field not focused",
      "expected": "Focus",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"state\": \"Search field visible, empty, not focused.\",\n    \"available\": [\n      \"Focus\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Ready to enter text",
      "expected": "Type",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"query\": \"Green Park\",\n    \"state\": \"Search field focused and empty.\",\n    \"available\": [\n      \"Type\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Entered but not sent",
      "expected": "Submit",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"state\": \"Search field contains Green Park; search has not been submitted.\",\n    \"available\": [\n      \"Submit\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Loading response",
      "expected": "Wait",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"state\": \"Search submitted once; a loading indicator is visible; results absent. The search field is currently not focused.\",\n    \"available\": [\n      \"Wait\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Results verified",
      "expected": "Done",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"state\": \"Search results are visible with the query Green Park and matching place entries. The search field is currently not focused.\",\n    \"available\": [\n      \"Done\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Success not observed",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Select the next permitted operation in a supplied mobile-search workflow observation.\",\n  \"evidence\": {\n    \"goal\": \"Search for Green Park\",\n    \"state\": \"A submit action was requested, but no device observation returned.\",\n    \"available\": [\n      \"Done\",\n      \"Review\"\n    ]\n  }\n}",
        "question": "Choose in order: Review for missing/conflicting evidence; Done when visible results satisfy the full goal; Wait when submission is confirmed and loading; Submit for the correct unsubmitted query; Type for a focused empty field with an exact query; Focus for a visible unfocused empty field before submission. Every action must be available; otherwise Review, always a permitted non-action. Results/loading take priority over field focus. No device action is executed.",
        "choices": [
          "Focus",
          "Type",
          "Submit",
          "Wait",
          "Done",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
