{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Enrich one supplied article-table row with its excerpt depth: concept overview, procedural detail, concrete implementation internals or missing body text. Preserve articleRowId and pending output. A shared subject is not a depth measure. Uses Choice only: no Score, SQL execution, row sorting, article crawling or database mutation.",
  "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
  "choices": [
    "Concept overview",
    "Procedural detail",
    "Implementation internals",
    "Need more text"
  ],
  "actions": {
    "Concept overview": {
      "action": "preview_article_depth_classification",
      "payload": {
        "decision": "Concept overview"
      },
      "pending": true
    },
    "Procedural detail": {
      "action": "preview_article_depth_classification",
      "payload": {
        "decision": "Procedural detail"
      },
      "pending": true
    },
    "Implementation internals": {
      "action": "preview_article_depth_classification",
      "payload": {
        "decision": "Implementation internals"
      },
      "pending": true
    },
    "Need more text": {
      "action": "preview_article_depth_classification",
      "payload": {
        "decision": "Need more text"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "cache-overview",
      "label": "Label a concept-only row",
      "expected": "Concept overview",
      "request": {
        "context": "{\n  \"task\": \"Article row excerpt: A cache stores reusable results so an application can avoid repeating work. Cached results can become stale, so a product must decide when to refresh them. The excerpt offers no instructions, code, data structure or algorithm.\",\n  \"articleRowId\": \"row-cache-overview\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    },
    {
      "id": "cache-procedure",
      "label": "Label explicit setup steps",
      "expected": "Procedural detail",
      "request": {
        "context": "{\n  \"task\": \"Article row excerpt: To enable a cache, open Settings, choose the Cache tab, set the lifetime to 300 seconds, click Save, then repeat the same request and check the cache-hit counter. These are ordered setup and verification steps; no internal algorithm is described.\",\n  \"articleRowId\": \"row-cache-procedure\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    },
    {
      "id": "cache-internals",
      "label": "Label an implementation explanation",
      "expected": "Implementation internals",
      "request": {
        "context": "{\n  \"task\": \"Article row excerpt: The LRU cache keeps a hash map from keys to nodes and a doubly linked list ordered by use. On a hit, unlink the node and move it to the head. On insertion beyond capacity, remove the tail node and delete its key from the map. Each lookup and update is O(1).\",\n  \"articleRowId\": \"row-cache-internals\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    },
    {
      "id": "mixed-depth",
      "label": "Use the deepest supported level",
      "expected": "Implementation internals",
      "request": {
        "context": "{\n  \"task\": \"Article row excerpt: First set the cache capacity to 100 entries. Internally a hash map stores node references, while a doubly linked list tracks recency. A hit moves its node to the head; the tail is removed when capacity is exceeded. The excerpt combines a setup instruction with a concrete implementation mechanism.\",\n  \"articleRowId\": \"row-mixed-depth\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    },
    {
      "id": "title-only",
      "label": "Preserve a row without body text",
      "expected": "Need more text",
      "request": {
        "context": "{\n  \"task\": \"Article row title: Deep internals of a blazing-fast cache. Article body excerpt: not supplied. The title is promotional metadata and does not show any mechanism, instructions or explanatory body text.\",\n  \"articleRowId\": \"row-title-only\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    },
    {
      "id": "keyword-only",
      "label": "Do not infer depth from jargon",
      "expected": "Concept overview",
      "request": {
        "context": "{\n  \"task\": \"Article row excerpt: Our cache uses hashing, linked lists, eviction and O(1) operations. These impressive techniques make everything efficient. The excerpt only names terms and makes a general claim; it does not explain how a structure changes or how an algorithm works.\",\n  \"articleRowId\": \"row-keyword-only\"\n}",
        "question": "Classify excerpt depth. Concept overview explains purpose or names concepts without steps or mechanisms. Procedural detail gives ordered instructions to do or check something. Implementation internals explains a concrete algorithm or data-structure mechanism. Choose the deepest level supported by body text. Need more text for absent or insufficient body text; a title or jargon alone proves no internal mechanism. Label the excerpt only, not correctness or whole-article quality.",
        "choices": [
          "Concept overview",
          "Procedural detail",
          "Implementation internals",
          "Need more text"
        ]
      }
    }
  ],
  "contextMetadata": {
    "articleRowId": [
      "articleRowId"
    ]
  },
  "consumer": "preview_choice_workflow_v4.py"
}
