{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Identify visible cross-test dependencies through mutable state and incomplete reset behavior.",
  "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
  "choices": [
    "Dependent",
    "Isolated",
    "Readonly",
    "Unclear"
  ],
  "actions": {
    "Dependent": {
      "action": "preview_jev_test_state_isolation",
      "payload": {
        "decision": "Dependent"
      },
      "pending": true
    },
    "Isolated": {
      "action": "preview_jev_test_state_isolation",
      "payload": {
        "decision": "Isolated"
      },
      "pending": true
    },
    "Readonly": {
      "action": "preview_jev_test_state_isolation",
      "payload": {
        "decision": "Readonly"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_test_state_isolation",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Earlier test supplies data",
      "expected": "Dependent",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"const items=[]; test(\\\"add\\\",()=>items.push(\\\"x\\\")); test(\\\"read\\\",()=>expect(items[0]).toBe(\\\"x\\\"));\",\n    \"context\": \"Complete file; no lifecycle reset\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Reset for each test",
      "expected": "Isolated",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"let items; beforeEach(()=>{items=[];}); test(\\\"add\\\",()=>{items.push(\\\"x\\\");expect(items).toHaveLength(1)}); test(\\\"empty\\\",()=>expect(items).toHaveLength(0));\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Shared constants",
      "expected": "Readonly",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"const fixture=Object.freeze({name:\\\"Alder\\\"}); test(\\\"name\\\",()=>expect(fixture.name).toBe(\\\"Alder\\\"));\",\n    \"context\": \"Complete suite; fixture fields are primitive\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Local setup",
      "expected": "Isolated",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"test(\\\"add\\\",()=>{const items=[];items.push(\\\"x\\\");expect(items).toHaveLength(1)});\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Serial dependency",
      "expected": "Dependent",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"test.describe.serial(()=>{test(\\\"create\\\",async()=>{recordId=await createRecord()});test(\\\"read\\\",async()=>expect(await exists(recordId)).toBe(true));});\",\n    \"context\": \"recordId is shared; no per-test creation\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Reset helper unknown",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Identify visible cross-test dependencies through mutable state and incomplete reset behavior.\",\n  \"evidence\": {\n    \"code\": \"let store=createStore(); beforeEach(()=>resetStore(store));\",\n    \"helper\": \"resetStore and subsequent mutation details are unavailable\"\n  }\n}",
        "question": "Classify the shown tests: Dependent if one test reads state left by another and no reset isolates them; Isolated if each gets fresh state or a complete reset; Readonly if the shared fixture is never mutated. Use Unclear when lifecycle or mutation behavior is omitted. Shared declarations alone do not establish dependency; judge the stated execution contract.",
        "choices": [
          "Dependent",
          "Isolated",
          "Readonly",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
