{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify an agent's latest dominant activity from observed steps and stated intent.",
  "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
  "choices": [
    "Read context",
    "Plan approach",
    "Edit files",
    "Run checks",
    "Other phase",
    "Need activity"
  ],
  "actions": {
    "Read context": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Read context"
      },
      "pending": true
    },
    "Plan approach": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Plan approach"
      },
      "pending": true
    },
    "Edit files": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Edit files"
      },
      "pending": true
    },
    "Run checks": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Run checks"
      },
      "pending": true
    },
    "Other phase": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Other phase"
      },
      "pending": true
    },
    "Need activity": {
      "action": "preview_jev_agent_work_phase",
      "payload": {
        "decision": "Need activity"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Read the caller",
      "expected": "Read context",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Fix duplicated receipts\",\n    \"latest\": \"I am tracing where receipt IDs are assigned.\",\n    \"steps\": [\n      \"read src/receipts/create.ts\",\n      \"read src/orders/complete.ts\"\n    ],\n    \"editsMade\": false\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Choose the approach",
      "expected": "Plan approach",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Add CSV export\",\n    \"latest\": \"Reading is finished. I am deciding between streaming rows and building the whole file in memory.\",\n    \"steps\": [],\n    \"editsMade\": false\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Fix after a failed check",
      "expected": "Edit files",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Handle empty customer names\",\n    \"latest\": \"I am changing the formatter to preserve an empty name.\",\n    \"steps\": [\n      \"test empty-name: failed\",\n      \"edit src/name-format.ts: applied\"\n    ]\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Run validation",
      "expected": "Run checks",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Handle empty customer names\",\n    \"latest\": \"The edit is saved; the regression suite is running now.\",\n    \"steps\": [\n      \"edit src/name-format.ts: applied\",\n      \"test name-format: running\"\n    ]\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Explicitly stuck",
      "expected": "Other phase",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Build the desktop package\",\n    \"latest\": \"I am stuck repeating the same failing build without new evidence.\",\n    \"steps\": [\n      \"build: missing bundle\",\n      \"same build: missing bundle\",\n      \"same build: missing bundle\"\n    ]\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "No current activity",
      "expected": "Need activity",
      "request": {
        "context": "{\n  \"task\": \"Classify an agent's latest dominant activity from observed steps and stated intent.\",\n  \"evidence\": {\n    \"goal\": \"Add CSV export\",\n    \"latest\": null,\n    \"steps\": null\n  }\n}",
        "question": "First choose Need activity for missing, conflicting, equally current or unlisted activity. Otherwise classify the latest dominant activity. Other phase: explicitly waiting, wrapping up or stuck; this takes priority. Read context: gathering information. Plan approach: deciding how before edits. Edit files: changing files, including fixes. Run checks: tests, builds or validation. A phase does not establish completion.",
        "choices": [
          "Read context",
          "Plan approach",
          "Edit files",
          "Run checks",
          "Other phase",
          "Need activity"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
