{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.",
  "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
  "choices": [
    "Copied",
    "Independent",
    "Unclear"
  ],
  "actions": {
    "Copied": {
      "action": "preview_jev_test_expected_value_origin",
      "payload": {
        "decision": "Copied"
      },
      "pending": true
    },
    "Independent": {
      "action": "preview_jev_test_expected_value_origin",
      "payload": {
        "decision": "Independent"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_test_expected_value_origin",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Same formula",
      "expected": "Copied",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"function total(xs){return xs.reduce((s,x)=>s+x,0)}; const expected=xs.reduce((s,x)=>s+x,0); expect(total(xs)).toBe(expected);\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Worked fixture",
      "expected": "Independent",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"expect(total([2,3,5])).toBe(10);\",\n    \"subject\": \"total is the real imported implementation\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Two different algorithms",
      "expected": "Independent",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"expect(fastSort(xs)).toEqual(insertionSortReference(xs));\",\n    \"context\": \"fastSort uses merge sort; insertionSortReference is an independently implemented insertion sort\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Same transformation",
      "expected": "Copied",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"function names(xs){return xs.map(x=>x.name.trim())}; expect(names(xs)).toEqual(xs.map(x=>x.name.trim()));\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Property check",
      "expected": "Independent",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"const result=sort(xs); expect(result.every((x,i)=>i===0||result[i-1]<=x)).toBe(true);\",\n    \"subject\": \"sort is the real function, not the assertion expression\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Unknown expected helper",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Review whether a test recomputes the subject algorithm as its expected value or uses an independent reference.\",\n  \"evidence\": {\n    \"code\": \"expect(calculate(input)).toEqual(makeExpected(input));\",\n    \"context\": \"Their names do not establish algorithmic independence\"\n  }\n}",
        "question": "Classify the expected-value origin: Independent for hand-worked literals, golden fixtures, stated independent algorithms or invariant checks; Copied if expected repeats the shown subject calculation on the same inputs. Use Unclear when missing derivations prevent deciding independence versus copying. A literal or explicit property needs no subject body to establish its origin. The real subject must be called; this checks the oracle, not whether coverage is sufficient.",
        "choices": [
          "Copied",
          "Independent",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
