{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Decide whether an email attachment should be read to update the supplied customer or job record.",
  "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
  "choices": [
    "Read",
    "Skip",
    "Review"
  ],
  "actions": {
    "Read": {
      "action": "preview_jev_email_attachment_triage",
      "payload": {
        "decision": "Read"
      },
      "pending": true
    },
    "Skip": {
      "action": "preview_jev_email_attachment_triage",
      "payload": {
        "decision": "Skip"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_email_attachment_triage",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Quoted work",
      "expected": "Read",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Job J-82 kitchen repaint quote\",\n    \"message\": \"Attached is the revised quote for J-82.\",\n    \"attachment\": {\n      \"name\": \"quote.pdf\",\n      \"preview\": \"J-82: repaint kitchen walls; revised labor and materials.\"\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Signature image",
      "expected": "Skip",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Job J-82 quotation\",\n    \"message\": \"Please see the quote in the message.\",\n    \"attachment\": {\n      \"name\": \"logo.png\",\n      \"preview\": \"A company logo used in the email signature.\"\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Unreadable scan",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Job J-82 payment status\",\n    \"message\": \"Here is the document you asked for.\",\n    \"attachment\": {\n      \"name\": \"scan.pdf\",\n      \"preview\": null\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Different customer",
      "expected": "Skip",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Customer Alder, job J-82\",\n    \"message\": \"This invoice is for Birch, job B-12.\",\n    \"attachment\": {\n      \"name\": \"invoice.pdf\",\n      \"preview\": \"Birch, B-12; unrelated roof repair.\"\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Payment receipt",
      "expected": "Read",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Job J-82 payment record\",\n    \"message\": \"We have paid the deposit for J-82.\",\n    \"attachment\": {\n      \"name\": \"receipt.pdf\",\n      \"preview\": \"Receipt for J-82 deposit, customer Alder.\"\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Misleading filename",
      "expected": "Skip",
      "request": {
        "context": "{\n  \"task\": \"Decide whether an email attachment should be read to update the supplied customer or job record.\",\n  \"evidence\": {\n    \"target\": \"Job J-82 quotation\",\n    \"message\": \"Our latest public catalogue is attached.\",\n    \"attachment\": {\n      \"name\": \"J-82-quote.pdf\",\n      \"preview\": \"General retail catalogue; no job-specific work or pricing.\"\n    }\n  }\n}",
        "question": "Using the target record, message and attachment preview: Read if the attachment contains information needed for that record; Skip if it is clearly unrelated or only decoration; Review if it could matter but the supplied preview does not establish that. Judge relevance only, not file safety or permission to open it.",
        "choices": [
          "Read",
          "Skip",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
