{
  "executedAt": "2026-09-15T13:59:31.684Z",
  "node": "v24.14.0",
  "scope": "Pure source-grouping function from an inspected operator-owned snapshot. No end-to-end quiz generation.",
  "cases": [
    {
      "name": "nested-headings",
      "input": [
        {
          "category": "heading1",
          "content": {
            "html": "<h1>Science</h1>"
          }
        },
        {
          "category": "paragraph",
          "content": {
            "html": "<p>Energy is conserved.</p>"
          }
        },
        {
          "category": "heading2",
          "content": {
            "html": "<h2>Heat</h2>"
          }
        },
        {
          "category": "table",
          "content": {
            "html": "<table><tr><td>Hot</td><td>Cold</td></tr></table>"
          }
        },
        {
          "category": "heading1",
          "content": {
            "html": "<h1>History</h1>"
          }
        },
        {
          "category": "paragraph",
          "content": {
            "html": "<p>Use primary sources.</p>"
          }
        }
      ],
      "expected": [
        {
          "heading": "Science",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Energy is conserved.</p>"
            }
          ]
        },
        {
          "heading": "Science › Heat",
          "fragments": [
            {
              "category": "table",
              "html": "<table><tr><td>Hot</td><td>Cold</td></tr></table>"
            }
          ]
        },
        {
          "heading": "History",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Use primary sources.</p>"
            }
          ]
        }
      ],
      "output": [
        {
          "heading": "Science",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Energy is conserved.</p>"
            }
          ]
        },
        {
          "heading": "Science › Heat",
          "fragments": [
            {
              "category": "table",
              "html": "<table><tr><td>Hot</td><td>Cold</td></tr></table>"
            }
          ]
        },
        {
          "heading": "History",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Use primary sources.</p>"
            }
          ]
        }
      ],
      "pass": true
    },
    {
      "name": "ignore-page-furniture",
      "input": [
        {
          "category": "header",
          "content": {
            "html": "<p>Workbook</p>"
          }
        },
        {
          "category": "heading1",
          "content": {
            "html": "<h1>Lesson</h1>"
          }
        },
        {
          "category": "paragraph",
          "content": {
            "html": "<p>&nbsp;</p>"
          }
        },
        {
          "category": "paragraph",
          "content": {
            "html": "<p>Keep this sentence.</p>"
          }
        },
        {
          "category": "footer",
          "content": {
            "html": "<p>Page 1</p>"
          }
        }
      ],
      "expected": [
        {
          "heading": "Lesson",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Keep this sentence.</p>"
            }
          ]
        }
      ],
      "output": [
        {
          "heading": "Lesson",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>Keep this sentence.</p>"
            }
          ]
        }
      ],
      "pass": true
    },
    {
      "name": "no-heading",
      "input": [
        {
          "category": "paragraph",
          "content": {
            "html": "<p>First.</p>"
          }
        },
        {
          "category": "paragraph",
          "content": {
            "html": "<p>Second.</p>"
          }
        }
      ],
      "expected": [
        {
          "heading": "내용 1",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>First.</p>"
            },
            {
              "category": "paragraph",
              "html": "<p>Second.</p>"
            }
          ]
        }
      ],
      "output": [
        {
          "heading": "내용 1",
          "fragments": [
            {
              "category": "paragraph",
              "html": "<p>First.</p>"
            },
            {
              "category": "paragraph",
              "html": "<p>Second.</p>"
            }
          ]
        }
      ],
      "pass": true
    }
  ]
}
