{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review whether a supplied defensive monitoring alert matches the stated authorized maintenance context or has unexplained conflicting evidence. Original harmless monitoring descriptions; no vulnerability scan, intrusion verdict or alert suppression.",
  "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
  "choices": [
    "Explained maintenance",
    "Investigate",
    "Need evidence"
  ],
  "actions": {
    "Explained maintenance": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Explained maintenance",
        "workflow": "security-alert-context"
      },
      "pending": false
    },
    "Investigate": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Investigate",
        "workflow": "security-alert-context"
      },
      "pending": false
    },
    "Need evidence": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Need evidence",
        "workflow": "security-alert-context"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "match",
      "label": "An authorized restart",
      "expected": "Explained maintenance",
      "request": {
        "context": "{\n  \"task\": \"Authorization: operator Mira may restart the preview service. Event: authenticated Mira restarted only that preview service, matching the maintenance scope.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    },
    {
      "id": "scope",
      "label": "A scope conflict",
      "expected": "Investigate",
      "request": {
        "context": "{\n  \"task\": \"Authorization: restart preview service only. Event: production database export, explicitly outside that scope.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    },
    {
      "id": "identity",
      "label": "An unknown actor",
      "expected": "Need evidence",
      "request": {
        "context": "{\n  \"task\": \"Authorization: Mira may restart preview. Event: preview restart but actor identity is unavailable.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    },
    {
      "id": "denied",
      "label": "An explicit unauthorized action",
      "expected": "Investigate",
      "request": {
        "context": "{\n  \"task\": \"Authorization: no operator approved a configuration change. Event: a configuration change occurred and the audit record explicitly says unauthorized.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    },
    {
      "id": "missing",
      "label": "No event facts",
      "expected": "Need evidence",
      "request": {
        "context": "{\n  \"task\": \"Authorization: preview maintenance. Alert description contains no event, identity or target.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    },
    {
      "id": "read",
      "label": "An authorized health check",
      "expected": "Explained maintenance",
      "request": {
        "context": "{\n  \"task\": \"Authorization: operator Evan may read preview health status. Event: Evan read that status only; no write or export occurred.\"\n}",
        "question": "Review alert context. Explained maintenance: the described event matches explicitly authorized maintenance and supplied evidence. Investigate: explicit event conflicts with maintenance or authorization. Need evidence: identity, scope or event facts are missing or ambiguous. Do not declare a system safe, suppress alerts or infer intent from an IP address. Only compare supplied event and authorization descriptions.",
        "choices": [
          "Explained maintenance",
          "Investigate",
          "Need evidence"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
