{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.",
  "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
  "choices": [
    "Condition",
    "Sleep",
    "Simulation",
    "Unclear"
  ],
  "actions": {
    "Condition": {
      "action": "preview_jev_test_wait_strategy",
      "payload": {
        "decision": "Condition"
      },
      "pending": true
    },
    "Sleep": {
      "action": "preview_jev_test_wait_strategy",
      "payload": {
        "decision": "Sleep"
      },
      "pending": true
    },
    "Simulation": {
      "action": "preview_jev_test_wait_strategy",
      "payload": {
        "decision": "Simulation"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_test_wait_strategy",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Wait and hope",
      "expected": "Sleep",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"startSave(); await sleep(500); expect(saved).toBe(true);\",\n    \"helper\": \"sleep is a real-time setTimeout promise\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Await completion",
      "expected": "Condition",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"await save(); expect(saved).toBe(true);\",\n    \"helper\": \"save resolves only after the persistence fixture updates\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Observed result",
      "expected": "Condition",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"startSave(); await waitFor(() => expect(status()).toBe(\\\"saved\\\"));\",\n    \"helper\": \"waitFor retries the supplied assertion with a timeout\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Fake latency",
      "expected": "Simulation",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"server.use(handler(async () => { await delay(800); return result; }));\",\n    \"context\": \"Highlighted wait is inside the fake service, not after starting work The test intentionally observes a loading indicator while this fake response is delayed.\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Virtual timer",
      "expected": "Condition",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"vi.useFakeTimers(); startReminder(); await vi.advanceTimersByTimeAsync(1000); expect(sent).toBe(true);\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Opaque wait",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Distinguish asynchronous completion waiting from an arbitrary sleep or an intentional latency fixture.\",\n  \"evidence\": {\n    \"code\": \"await settle(); expect(status()).toBe(\\\"saved\\\");\",\n    \"helper\": \"settle implementation is unavailable\"\n  }\n}",
        "question": "Classify the shown wait: Condition if the test awaits the operation, polls the required condition with a deadline, or advances fake timers deterministically; Sleep if it waits a fixed real duration hoping work is done; Simulation if the delay creates fake-service latency to test loading. Use Unclear for an unknown helper or purpose. Assess the highlighted wait, not the entire suite.",
        "choices": [
          "Condition",
          "Sleep",
          "Simulation",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
