{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.",
  "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
  "choices": [
    "Derived",
    "External",
    "Mixed",
    "Unclear"
  ],
  "actions": {
    "Derived": {
      "action": "preview_jev_react_derived_state",
      "payload": {
        "decision": "Derived"
      },
      "pending": true
    },
    "External": {
      "action": "preview_jev_react_derived_state",
      "payload": {
        "decision": "External"
      },
      "pending": true
    },
    "Mixed": {
      "action": "preview_jev_react_derived_state",
      "payload": {
        "decision": "Mixed"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_react_derived_state",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Computed full name",
      "expected": "Derived",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => setFullName(first + \\\" \\\" + last), [first, last]);\",\n    \"context\": \"fullName is read-only display text, never edited\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Filtered display list",
      "expected": "Derived",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => setVisible(items.filter(item => item.active)), [items]);\",\n    \"context\": \"visible is display-only; it is never separately edited\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Player synchronization",
      "expected": "External",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => { player.setVolume(volume); }, [player, volume]);\",\n    \"helper\": \"setVolume changes the external player volume\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Editable draft reset",
      "expected": "Mixed",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => setDraft(savedText), [recordId]);\",\n    \"context\": \"Users edit draft locally; changing records resets it\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Two jobs together",
      "expected": "Mixed",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => { setLabel(first + last); analytics.setUserLabel(first + last); }, [first, last]);\",\n    \"context\": \"label is read-only; analytics writes an external client\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Unavailable function",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Read effect code, value ownership and helper contracts. Return Derived, External, Mixed or Unclear; Mixed includes editable reset policies, and Unclear preserves missing behavior.\",\n  \"evidence\": {\n    \"code\": \"useEffect(() => syncModel(input), [input]);\",\n    \"helper\": \"implementation unavailable\"\n  }\n}",
        "question": "Classify the shown effect: Derived if its only job is storing a value calculated from current props or state, with no independent editing need; External if it synchronizes an external system; Mixed if both occur or user-editable/reset behavior requires a separate policy. Use Unclear for missing value ownership, editing context or helper behavior. Seeing setState alone does not establish unnecessary derived state.",
        "choices": [
          "Derived",
          "External",
          "Mixed",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
