{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.",
  "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
  "choices": [
    "Discussion needed",
    "Existing design applies",
    "Local implementation",
    "Need design context"
  ],
  "actions": {
    "Discussion needed": {
      "action": "preview_jev_architecture_review_trigger",
      "payload": {
        "decision": "Discussion needed"
      },
      "pending": true
    },
    "Existing design applies": {
      "action": "preview_jev_architecture_review_trigger",
      "payload": {
        "decision": "Existing design applies"
      },
      "pending": true
    },
    "Local implementation": {
      "action": "preview_jev_architecture_review_trigger",
      "payload": {
        "decision": "Local implementation"
      },
      "pending": true
    },
    "Need design context": {
      "action": "preview_jev_architecture_review_trigger",
      "payload": {
        "decision": "Need design context"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "New shared owner",
      "expected": "Discussion needed",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Move event ordering from each service to a new shared coordinator.\",\n    \"designStatus\": \"No architecture agreement exists for this ownership change.\"\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Agreed queue interface",
      "expected": "Existing design applies",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Implement the queue interface and retry ownership specified in ADR-12.\",\n    \"designStatus\": \"ADR-12 is approved and relevant; the packet states no deviation.\"\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Private refactor",
      "expected": "Local implementation",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Extract two lines into a private helper with identical behavior.\",\n    \"scope\": \"No public interface, owner or lifecycle changes.\"\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Design contradicted",
      "expected": "Discussion needed",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Send writes directly to the database.\",\n    \"designStatus\": \"Approved ADR-12 requires writes through the owner service; this bypasses it.\"\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unknown agreement",
      "expected": "Need design context",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Replace the shared messaging contract.\",\n    \"designStatus\": null\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Unrelated design document",
      "expected": "Discussion needed",
      "request": {
        "context": "{\n  \"task\": \"Identify changes that introduce an unresolved architecture decision rather than simply implementing an agreed design.\",\n  \"evidence\": {\n    \"change\": \"Transfer connection ownership to a new shared pool.\",\n    \"designStatus\": \"Only the unrelated color-palette design is approved; no agreement covers connection ownership.\"\n  }\n}",
        "question": "Classify the change. Local implementation: evidence explicitly establishes unchanged architecture boundaries. For a boundary change: Discussion needed if no relevant agreement exists or it is contradicted; Existing design applies if a supplied relevant agreement covers it without deviation; Need design context if the change or agreement status is unresolved. A stated deviation takes priority. Do not approve architecture.",
        "choices": [
          "Discussion needed",
          "Existing design applies",
          "Local implementation",
          "Need design context"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
