{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Assess whether a request-facing collection read has an explicit bound or a documented export purpose.",
  "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
  "choices": [
    "Bounded",
    "Unbounded",
    "Export",
    "Unclear"
  ],
  "actions": {
    "Bounded": {
      "action": "preview_jev_list_query_boundary",
      "payload": {
        "decision": "Bounded"
      },
      "pending": true
    },
    "Unbounded": {
      "action": "preview_jev_list_query_boundary",
      "payload": {
        "decision": "Unbounded"
      },
      "pending": true
    },
    "Export": {
      "action": "preview_jev_list_query_boundary",
      "payload": {
        "decision": "Export"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_list_query_boundary",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Paged list",
      "expected": "Bounded",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"return db.events.findMany({ take: 50, cursor });\",\n    \"context\": \"Standard page request; take is enforced by the database\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Growing table",
      "expected": "Unbounded",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"return db.events.findMany();\",\n    \"context\": \"No implicit limit; millions of events may accumulate\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Fixed reference set",
      "expected": "Bounded",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"return db.referenceDays.findMany();\",\n    \"context\": \"The immutable table contains exactly the seven weekday labels\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Streaming export",
      "expected": "Export",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"for await (const chunk of db.streamEvents({ batchSize: 500 })) await exportSink.write(chunk);\",\n    \"context\": \"Authorized background full export; bounded chunks and cancellation are implemented\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Scalar count",
      "expected": "Bounded",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"return db.events.count();\",\n    \"context\": \"Database-side aggregate; no records are materialized in the application\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Unknown repository",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Assess whether a request-facing collection read has an explicit bound or a documented export purpose.\",\n  \"evidence\": {\n    \"code\": \"return repository.listEvents();\",\n    \"helper\": \"Implementation and collection size policy are unavailable\"\n  }\n}",
        "question": "Classify the collection read: Bounded if a limit, pagination or explicitly finite dataset bounds returned rows; Unbounded if an ordinary request loads a growing collection without a bound; Export for a deliberately full export with an explicit processing policy. Use Unclear when scope or helper behavior is missing. Use Bounded for a single scalar aggregate result; this label bounds returned data, not query cost.",
        "choices": [
          "Bounded",
          "Unbounded",
          "Export",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
