Publish Ropedia Xperience-10M task baseline cards
Browse files- README.md +2 -2
- metrics/mirror_parity.json +25 -25
- metrics/publication_audit.json +1 -1
- metrics/website_integrity.json +30 -11
- scripts/validate_website_integrity.py +43 -8
README.md
CHANGED
|
@@ -71,8 +71,8 @@ inertial sensing, and language annotation. The committed minimal and neural
|
|
| 71 |
task heads use the current 8,378-d feature manifest; audio is documented in the
|
| 72 |
figures but is not yet extracted into a model input feature block.
|
| 73 |
|
| 74 |
-
The task-first 12-head map, responsive modality atlas,
|
| 75 |
-
website HTML mirrors, `brand_assets.json`, and
|
| 76 |
`scripts/build_brand_assets.py` are included so this model repo stays aligned
|
| 77 |
with the public Space and artifact dataset.
|
| 78 |
|
|
|
|
| 71 |
task heads use the current 8,378-d feature manifest; audio is documented in the
|
| 72 |
figures but is not yet extracted into a model input feature block.
|
| 73 |
|
| 74 |
+
The tabbed research website, task-first 12-head map, responsive modality atlas,
|
| 75 |
+
interactive scrub/play storyboard, website HTML mirrors, `brand_assets.json`, and
|
| 76 |
`scripts/build_brand_assets.py` are included so this model repo stays aligned
|
| 77 |
with the public Space and artifact dataset.
|
| 78 |
|
metrics/mirror_parity.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
-
"generated_at_utc": "2026-06-
|
| 4 |
"hf_root": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish",
|
| 5 |
"summary": {
|
| 6 |
"group_count": 62,
|
|
@@ -347,26 +347,26 @@
|
|
| 347 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/data/publication_audit.json",
|
| 348 |
"exists": true,
|
| 349 |
"bytes": 6869,
|
| 350 |
-
"sha256": "
|
| 351 |
},
|
| 352 |
"mirrors": {
|
| 353 |
"hf_space": {
|
| 354 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/data/publication_audit.json",
|
| 355 |
"exists": true,
|
| 356 |
"bytes": 6869,
|
| 357 |
-
"sha256": "
|
| 358 |
},
|
| 359 |
"hf_artifacts": {
|
| 360 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/data/publication_audit.json",
|
| 361 |
"exists": true,
|
| 362 |
"bytes": 6869,
|
| 363 |
-
"sha256": "
|
| 364 |
},
|
| 365 |
"hf_model": {
|
| 366 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/metrics/publication_audit.json",
|
| 367 |
"exists": true,
|
| 368 |
"bytes": 6869,
|
| 369 |
-
"sha256": "
|
| 370 |
}
|
| 371 |
},
|
| 372 |
"failures": []
|
|
@@ -656,27 +656,27 @@
|
|
| 656 |
"local": {
|
| 657 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/data/website_integrity.json",
|
| 658 |
"exists": true,
|
| 659 |
-
"bytes":
|
| 660 |
-
"sha256": "
|
| 661 |
},
|
| 662 |
"mirrors": {
|
| 663 |
"hf_space": {
|
| 664 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/data/website_integrity.json",
|
| 665 |
"exists": true,
|
| 666 |
-
"bytes":
|
| 667 |
-
"sha256": "
|
| 668 |
},
|
| 669 |
"hf_artifacts": {
|
| 670 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/data/website_integrity.json",
|
| 671 |
"exists": true,
|
| 672 |
-
"bytes":
|
| 673 |
-
"sha256": "
|
| 674 |
},
|
| 675 |
"hf_model": {
|
| 676 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/metrics/website_integrity.json",
|
| 677 |
"exists": true,
|
| 678 |
-
"bytes":
|
| 679 |
-
"sha256": "
|
| 680 |
}
|
| 681 |
},
|
| 682 |
"failures": []
|
|
@@ -1622,21 +1622,21 @@
|
|
| 1622 |
"local": {
|
| 1623 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/scripts/validate_website_integrity.py",
|
| 1624 |
"exists": true,
|
| 1625 |
-
"bytes":
|
| 1626 |
-
"sha256": "
|
| 1627 |
},
|
| 1628 |
"mirrors": {
|
| 1629 |
"hf_artifacts": {
|
| 1630 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/scripts/validate_website_integrity.py",
|
| 1631 |
"exists": true,
|
| 1632 |
-
"bytes":
|
| 1633 |
-
"sha256": "
|
| 1634 |
},
|
| 1635 |
"hf_model": {
|
| 1636 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/scripts/validate_website_integrity.py",
|
| 1637 |
"exists": true,
|
| 1638 |
-
"bytes":
|
| 1639 |
-
"sha256": "
|
| 1640 |
}
|
| 1641 |
},
|
| 1642 |
"failures": []
|
|
@@ -1722,21 +1722,21 @@
|
|
| 1722 |
"local": {
|
| 1723 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/index.html",
|
| 1724 |
"exists": true,
|
| 1725 |
-
"bytes":
|
| 1726 |
-
"sha256": "
|
| 1727 |
},
|
| 1728 |
"mirrors": {
|
| 1729 |
"hf_space": {
|
| 1730 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/index.html",
|
| 1731 |
"exists": true,
|
| 1732 |
-
"bytes":
|
| 1733 |
-
"sha256": "
|
| 1734 |
},
|
| 1735 |
"hf_artifacts_docs": {
|
| 1736 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/index.html",
|
| 1737 |
"exists": true,
|
| 1738 |
-
"bytes":
|
| 1739 |
-
"sha256": "
|
| 1740 |
}
|
| 1741 |
},
|
| 1742 |
"failures": []
|
|
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
+
"generated_at_utc": "2026-06-01T20:08:16+00:00",
|
| 4 |
"hf_root": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish",
|
| 5 |
"summary": {
|
| 6 |
"group_count": 62,
|
|
|
|
| 347 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/data/publication_audit.json",
|
| 348 |
"exists": true,
|
| 349 |
"bytes": 6869,
|
| 350 |
+
"sha256": "a8d6ab0471a7982996185ac76df30e1651bbf26b84687355d75842fddce57fcc"
|
| 351 |
},
|
| 352 |
"mirrors": {
|
| 353 |
"hf_space": {
|
| 354 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/data/publication_audit.json",
|
| 355 |
"exists": true,
|
| 356 |
"bytes": 6869,
|
| 357 |
+
"sha256": "a8d6ab0471a7982996185ac76df30e1651bbf26b84687355d75842fddce57fcc"
|
| 358 |
},
|
| 359 |
"hf_artifacts": {
|
| 360 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/data/publication_audit.json",
|
| 361 |
"exists": true,
|
| 362 |
"bytes": 6869,
|
| 363 |
+
"sha256": "a8d6ab0471a7982996185ac76df30e1651bbf26b84687355d75842fddce57fcc"
|
| 364 |
},
|
| 365 |
"hf_model": {
|
| 366 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/metrics/publication_audit.json",
|
| 367 |
"exists": true,
|
| 368 |
"bytes": 6869,
|
| 369 |
+
"sha256": "a8d6ab0471a7982996185ac76df30e1651bbf26b84687355d75842fddce57fcc"
|
| 370 |
}
|
| 371 |
},
|
| 372 |
"failures": []
|
|
|
|
| 656 |
"local": {
|
| 657 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/data/website_integrity.json",
|
| 658 |
"exists": true,
|
| 659 |
+
"bytes": 10149,
|
| 660 |
+
"sha256": "a004a9833ac9b6bdf33e1df5bebcc16a4139036aa151cdfbee676990d1179083"
|
| 661 |
},
|
| 662 |
"mirrors": {
|
| 663 |
"hf_space": {
|
| 664 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/data/website_integrity.json",
|
| 665 |
"exists": true,
|
| 666 |
+
"bytes": 10149,
|
| 667 |
+
"sha256": "a004a9833ac9b6bdf33e1df5bebcc16a4139036aa151cdfbee676990d1179083"
|
| 668 |
},
|
| 669 |
"hf_artifacts": {
|
| 670 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/data/website_integrity.json",
|
| 671 |
"exists": true,
|
| 672 |
+
"bytes": 10149,
|
| 673 |
+
"sha256": "a004a9833ac9b6bdf33e1df5bebcc16a4139036aa151cdfbee676990d1179083"
|
| 674 |
},
|
| 675 |
"hf_model": {
|
| 676 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/metrics/website_integrity.json",
|
| 677 |
"exists": true,
|
| 678 |
+
"bytes": 10149,
|
| 679 |
+
"sha256": "a004a9833ac9b6bdf33e1df5bebcc16a4139036aa151cdfbee676990d1179083"
|
| 680 |
}
|
| 681 |
},
|
| 682 |
"failures": []
|
|
|
|
| 1622 |
"local": {
|
| 1623 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/scripts/validate_website_integrity.py",
|
| 1624 |
"exists": true,
|
| 1625 |
+
"bytes": 17589,
|
| 1626 |
+
"sha256": "d9629407febc6be8e53813b37988460e72ee0b67e99f76566536e5d22a6e2589"
|
| 1627 |
},
|
| 1628 |
"mirrors": {
|
| 1629 |
"hf_artifacts": {
|
| 1630 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/scripts/validate_website_integrity.py",
|
| 1631 |
"exists": true,
|
| 1632 |
+
"bytes": 17589,
|
| 1633 |
+
"sha256": "d9629407febc6be8e53813b37988460e72ee0b67e99f76566536e5d22a6e2589"
|
| 1634 |
},
|
| 1635 |
"hf_model": {
|
| 1636 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/model/scripts/validate_website_integrity.py",
|
| 1637 |
"exists": true,
|
| 1638 |
+
"bytes": 17589,
|
| 1639 |
+
"sha256": "d9629407febc6be8e53813b37988460e72ee0b67e99f76566536e5d22a6e2589"
|
| 1640 |
}
|
| 1641 |
},
|
| 1642 |
"failures": []
|
|
|
|
| 1722 |
"local": {
|
| 1723 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs/index.html",
|
| 1724 |
"exists": true,
|
| 1725 |
+
"bytes": 128997,
|
| 1726 |
+
"sha256": "2e7a48b275cc27c6057fa3e079d99702bcb65aae96f567c12f33214be6074280"
|
| 1727 |
},
|
| 1728 |
"mirrors": {
|
| 1729 |
"hf_space": {
|
| 1730 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/space/index.html",
|
| 1731 |
"exists": true,
|
| 1732 |
+
"bytes": 128997,
|
| 1733 |
+
"sha256": "2e7a48b275cc27c6057fa3e079d99702bcb65aae96f567c12f33214be6074280"
|
| 1734 |
},
|
| 1735 |
"hf_artifacts_docs": {
|
| 1736 |
"path": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/hf_publish/artifacts/docs/index.html",
|
| 1737 |
"exists": true,
|
| 1738 |
+
"bytes": 128997,
|
| 1739 |
+
"sha256": "2e7a48b275cc27c6057fa3e079d99702bcb65aae96f567c12f33214be6074280"
|
| 1740 |
}
|
| 1741 |
},
|
| 1742 |
"failures": []
|
metrics/publication_audit.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
-
"generated_at_utc": "2026-06-
|
| 4 |
"checks": [
|
| 5 |
{
|
| 6 |
"name": "required_publication_assets_present",
|
|
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
+
"generated_at_utc": "2026-06-01T20:07:17+00:00",
|
| 4 |
"checks": [
|
| 5 |
{
|
| 6 |
"name": "required_publication_assets_present",
|
metrics/website_integrity.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
-
"generated_at_utc": "2026-06-
|
| 4 |
"docs_root": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs",
|
| 5 |
"site_base": "/ropedia-xperience-10m-task-suite/",
|
| 6 |
"summary": {
|
|
@@ -20,12 +20,31 @@
|
|
| 20 |
"semantic_layout": []
|
| 21 |
},
|
| 22 |
"semantic_checks": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
{
|
| 24 |
"name": "project_overview_precedes_progress_ledger",
|
| 25 |
"status": "pass",
|
| 26 |
"reason": "The project overview should appear before the deeper progress ledger.",
|
| 27 |
-
"overview_index":
|
| 28 |
-
"evidence_index":
|
| 29 |
},
|
| 30 |
{
|
| 31 |
"name": "project_status_links_json",
|
|
@@ -37,9 +56,9 @@
|
|
| 37 |
"name": "evaluation_protocol_between_overview_and_progress",
|
| 38 |
"status": "pass",
|
| 39 |
"reason": "The evaluation protocol should appear before the deeper evidence ledger.",
|
| 40 |
-
"overview_index":
|
| 41 |
-
"protocol_index":
|
| 42 |
-
"evidence_index":
|
| 43 |
},
|
| 44 |
{
|
| 45 |
"name": "evaluation_protocol_links_json",
|
|
@@ -57,8 +76,8 @@
|
|
| 57 |
"name": "suite_task_map_precedes_modality_atlas",
|
| 58 |
"status": "pass",
|
| 59 |
"reason": "The Suite anchor should show the full 12-task map before the modality atlas.",
|
| 60 |
-
"first_marker_index":
|
| 61 |
-
"second_marker_index":
|
| 62 |
},
|
| 63 |
{
|
| 64 |
"name": "suite_modality_atlas_contains_seven_cards",
|
|
@@ -145,12 +164,12 @@
|
|
| 145 |
},
|
| 146 |
{
|
| 147 |
"path": "data/live_publication_status.json",
|
| 148 |
-
"bytes":
|
| 149 |
"top_level_type": "dict"
|
| 150 |
},
|
| 151 |
{
|
| 152 |
"path": "data/mirror_parity.json",
|
| 153 |
-
"bytes":
|
| 154 |
"top_level_type": "dict"
|
| 155 |
},
|
| 156 |
{
|
|
@@ -225,7 +244,7 @@
|
|
| 225 |
},
|
| 226 |
{
|
| 227 |
"path": "data/website_integrity.json",
|
| 228 |
-
"bytes":
|
| 229 |
"top_level_type": "dict"
|
| 230 |
},
|
| 231 |
{
|
|
|
|
| 1 |
{
|
| 2 |
"status": "pass",
|
| 3 |
+
"generated_at_utc": "2026-06-01T20:04:28+00:00",
|
| 4 |
"docs_root": "/Users/chaoyue/Documents/Codex/2026-05-29/i-am-learning-this-dataset-https/working_repo_copy/docs",
|
| 5 |
"site_base": "/ropedia-xperience-10m-task-suite/",
|
| 6 |
"summary": {
|
|
|
|
| 20 |
"semantic_layout": []
|
| 21 |
},
|
| 22 |
"semantic_checks": [
|
| 23 |
+
{
|
| 24 |
+
"name": "project_tabs_have_five_groups",
|
| 25 |
+
"status": "pass",
|
| 26 |
+
"reason": "The long research page should be grouped into five top-level tabs.",
|
| 27 |
+
"tab_count": 5
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name": "project_sections_are_assigned_to_tabs",
|
| 31 |
+
"status": "pass",
|
| 32 |
+
"reason": "Every major research section should be assigned to a tab group.",
|
| 33 |
+
"section_count": 19
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name": "project_hash_router_preserves_deep_links",
|
| 37 |
+
"status": "pass",
|
| 38 |
+
"reason": "Deep links should open the correct tab instead of landing on hidden content.",
|
| 39 |
+
"marker_count": 3,
|
| 40 |
+
"has_section_tab_map": true
|
| 41 |
+
},
|
| 42 |
{
|
| 43 |
"name": "project_overview_precedes_progress_ledger",
|
| 44 |
"status": "pass",
|
| 45 |
"reason": "The project overview should appear before the deeper progress ledger.",
|
| 46 |
+
"overview_index": 50547,
|
| 47 |
+
"evidence_index": 57284
|
| 48 |
},
|
| 49 |
{
|
| 50 |
"name": "project_status_links_json",
|
|
|
|
| 56 |
"name": "evaluation_protocol_between_overview_and_progress",
|
| 57 |
"status": "pass",
|
| 58 |
"reason": "The evaluation protocol should appear before the deeper evidence ledger.",
|
| 59 |
+
"overview_index": 50547,
|
| 60 |
+
"protocol_index": 54851,
|
| 61 |
+
"evidence_index": 57284
|
| 62 |
},
|
| 63 |
{
|
| 64 |
"name": "evaluation_protocol_links_json",
|
|
|
|
| 76 |
"name": "suite_task_map_precedes_modality_atlas",
|
| 77 |
"status": "pass",
|
| 78 |
"reason": "The Suite anchor should show the full 12-task map before the modality atlas.",
|
| 79 |
+
"first_marker_index": 404,
|
| 80 |
+
"second_marker_index": 695
|
| 81 |
},
|
| 82 |
{
|
| 83 |
"name": "suite_modality_atlas_contains_seven_cards",
|
|
|
|
| 164 |
},
|
| 165 |
{
|
| 166 |
"path": "data/live_publication_status.json",
|
| 167 |
+
"bytes": 30999,
|
| 168 |
"top_level_type": "dict"
|
| 169 |
},
|
| 170 |
{
|
| 171 |
"path": "data/mirror_parity.json",
|
| 172 |
+
"bytes": 87849,
|
| 173 |
"top_level_type": "dict"
|
| 174 |
},
|
| 175 |
{
|
|
|
|
| 244 |
},
|
| 245 |
{
|
| 246 |
"path": "data/website_integrity.json",
|
| 247 |
+
"bytes": 10149,
|
| 248 |
"top_level_type": "dict"
|
| 249 |
},
|
| 250 |
{
|
scripts/validate_website_integrity.py
CHANGED
|
@@ -226,16 +226,39 @@ def validate(docs_root: Path, site_base: str) -> dict:
|
|
| 226 |
semantic_layout_failures = []
|
| 227 |
index_path = docs_root / "index.html"
|
| 228 |
index_text = index_path.read_text(encoding="utf-8", errors="ignore") if index_path.exists() else ""
|
| 229 |
-
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
suite_text = index_text[suite_start:suite_end] if suite_start >= 0 and suite_end > suite_start else ""
|
| 232 |
-
overview_pos =
|
| 233 |
-
protocol_pos =
|
| 234 |
-
evidence_pos =
|
| 235 |
-
dataset_start =
|
| 236 |
-
dataset_end =
|
| 237 |
dataset_text = index_text[dataset_start:dataset_end] if dataset_start >= 0 and dataset_end > dataset_start else ""
|
| 238 |
semantic_rules = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
(
|
| 240 |
"project_overview_precedes_progress_ledger",
|
| 241 |
'<section id="overview">',
|
|
@@ -316,7 +339,19 @@ def validate(docs_root: Path, site_base: str) -> dict:
|
|
| 316 |
),
|
| 317 |
]
|
| 318 |
for name, marker, after_marker, reason in semantic_rules:
|
| 319 |
-
if name == "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
card_count = len(re.findall(r'class="atlas-card(?:\s|")', suite_text))
|
| 321 |
passed = card_count == 7
|
| 322 |
detail = {"card_count": card_count}
|
|
|
|
| 226 |
semantic_layout_failures = []
|
| 227 |
index_path = docs_root / "index.html"
|
| 228 |
index_text = index_path.read_text(encoding="utf-8", errors="ignore") if index_path.exists() else ""
|
| 229 |
+
|
| 230 |
+
def section_pos(section_id: str) -> int:
|
| 231 |
+
match = re.search(rf'<section\b[^>]*\bid="{re.escape(section_id)}"', index_text)
|
| 232 |
+
return match.start() if match else -1
|
| 233 |
+
|
| 234 |
+
suite_start = section_pos("suite")
|
| 235 |
+
suite_end = section_pos("pipeline")
|
| 236 |
suite_text = index_text[suite_start:suite_end] if suite_start >= 0 and suite_end > suite_start else ""
|
| 237 |
+
overview_pos = section_pos("overview")
|
| 238 |
+
protocol_pos = section_pos("protocol")
|
| 239 |
+
evidence_pos = section_pos("evidence")
|
| 240 |
+
dataset_start = section_pos("dataset-card")
|
| 241 |
+
dataset_end = section_pos("suite")
|
| 242 |
dataset_text = index_text[dataset_start:dataset_end] if dataset_start >= 0 and dataset_end > dataset_start else ""
|
| 243 |
semantic_rules = [
|
| 244 |
+
(
|
| 245 |
+
"project_tabs_have_five_groups",
|
| 246 |
+
'data-tab-key=',
|
| 247 |
+
None,
|
| 248 |
+
"The long research page should be grouped into five top-level tabs.",
|
| 249 |
+
),
|
| 250 |
+
(
|
| 251 |
+
"project_sections_are_assigned_to_tabs",
|
| 252 |
+
'data-project-tab=',
|
| 253 |
+
None,
|
| 254 |
+
"Every major research section should be assigned to a tab group.",
|
| 255 |
+
),
|
| 256 |
+
(
|
| 257 |
+
"project_hash_router_preserves_deep_links",
|
| 258 |
+
'activateTabForHash',
|
| 259 |
+
None,
|
| 260 |
+
"Deep links should open the correct tab instead of landing on hidden content.",
|
| 261 |
+
),
|
| 262 |
(
|
| 263 |
"project_overview_precedes_progress_ledger",
|
| 264 |
'<section id="overview">',
|
|
|
|
| 339 |
),
|
| 340 |
]
|
| 341 |
for name, marker, after_marker, reason in semantic_rules:
|
| 342 |
+
if name == "project_tabs_have_five_groups":
|
| 343 |
+
tab_count = index_text.count(marker)
|
| 344 |
+
passed = tab_count == 5
|
| 345 |
+
detail = {"tab_count": tab_count}
|
| 346 |
+
elif name == "project_sections_are_assigned_to_tabs":
|
| 347 |
+
section_count = index_text.count(marker)
|
| 348 |
+
passed = section_count >= 19
|
| 349 |
+
detail = {"section_count": section_count}
|
| 350 |
+
elif name == "project_hash_router_preserves_deep_links":
|
| 351 |
+
marker_count = index_text.count(marker)
|
| 352 |
+
passed = marker_count >= 2 and "sectionTabMap" in index_text
|
| 353 |
+
detail = {"marker_count": marker_count, "has_section_tab_map": "sectionTabMap" in index_text}
|
| 354 |
+
elif name == "suite_modality_atlas_contains_seven_cards":
|
| 355 |
card_count = len(re.findall(r'class="atlas-card(?:\s|")', suite_text))
|
| 356 |
passed = card_count == 7
|
| 357 |
detail = {"card_count": card_count}
|