{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.",
  "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
  "choices": [
    "A",
    "B",
    "C",
    "Unresolved"
  ],
  "actions": {
    "A": {
      "action": "preview_jev_canvas_pointing_target",
      "payload": {
        "decision": "A"
      },
      "pending": true
    },
    "B": {
      "action": "preview_jev_canvas_pointing_target",
      "payload": {
        "decision": "B"
      },
      "pending": true
    },
    "C": {
      "action": "preview_jev_canvas_pointing_target",
      "payload": {
        "decision": "C"
      },
      "pending": true
    },
    "Unresolved": {
      "action": "preview_jev_canvas_pointing_target",
      "payload": {
        "decision": "Unresolved"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Named appearance",
      "expected": "B",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Move the blue circle.\",\n    \"shapes\": {\n      \"A\": \"red square\",\n      \"B\": \"blue circle\",\n      \"C\": \"green triangle\"\n    },\n    \"pointedAt\": \"A\"\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Pointing at speech time",
      "expected": "C",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Make this one larger.\",\n    \"utteranceTime\": 12.0,\n    \"pointingRecords\": [\n      {\n        \"time\": 12.0,\n        \"id\": \"C\"\n      },\n      {\n        \"time\": 13.0,\n        \"id\": \"A\"\n      }\n    ],\n    \"shapes\": {\n      \"A\": \"square\",\n      \"B\": \"circle\",\n      \"C\": \"triangle\"\n    }\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Repeat reference",
      "expected": "A",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Rotate that again.\",\n    \"lastChangedId\": \"A\",\n    \"selectedId\": \"B\",\n    \"shapes\": {\n      \"A\": \"square\",\n      \"B\": \"circle\",\n      \"C\": \"triangle\"\n    }\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Selection reference",
      "expected": "B",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Move the selected one.\",\n    \"selectedId\": \"B\",\n    \"lastChangedId\": \"C\",\n    \"shapes\": {\n      \"A\": \"square\",\n      \"B\": \"circle\",\n      \"C\": \"triangle\"\n    }\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "No pointing record",
      "expected": "Unresolved",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Change this one.\",\n    \"utteranceTime\": 12.0,\n    \"pointingRecords\": [],\n    \"selectedId\": \"A\",\n    \"shapes\": {\n      \"A\": \"square\",\n      \"B\": \"circle\",\n      \"C\": \"triangle\"\n    }\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Two matching shapes",
      "expected": "Unresolved",
      "request": {
        "context": "{\n  \"task\": \"Resolve a textual canvas instruction to one supplied shape ID using explicit description, pointing at utterance time and selection history.\",\n  \"evidence\": {\n    \"transcript\": \"Move the blue circle.\",\n    \"shapes\": {\n      \"A\": \"blue circle\",\n      \"B\": \"blue circle\",\n      \"C\": \"green triangle\"\n    },\n    \"pointingRecords\": []\n  }\n}",
        "question": "Resolve the target shape ID. Use an explicit unique shape description first; for \"this one\" use the shape pointed at when those words were spoken; for \"that again\" use the last changed shape; for \"selected one\" use the selected ID. Return Unresolved for missing required context, conflicting records or multiple matches. Available IDs are A, B and C. Do not infer pointing from images, guess coordinates or carry out the edit.",
        "choices": [
          "A",
          "B",
          "C",
          "Unresolved"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
