Datasets:
File size: 51,736 Bytes
a340c71 8faf8f4 a340c71 8cfcd63 6b1ddff a340c71 db1d246 a340c71 8e4685d 6b1ddff a340c71 6760b34 1a44ef5 4570a08 1a44ef5 f13b71d a340c71 21651a6 d286817 1931da5 21651a6 1931da5 21651a6 1931da5 21651a6 1931da5 21651a6 1931da5 21651a6 1931da5 673367f c7fd79c 673367f e301300 673367f ec1d592 8387095 ec1d592 1d01c68 4148050 efbbd05 8faf8f4 efbbd05 bc3641c 8faf8f4 bc3641c 8faf8f4 bc3641c 1a44ef5 916f6e2 c51a5c8 5dabf7e 44183f3 e301300 b4d66a1 5e53692 9a61006 9b52e4d a340c71 c51a5c8 5dabf7e 8faf8f4 6259c76 5e53692 e301300 6e2072f 63734ca 6e2072f 63734ca 916f6e2 63734ca f13b71d 21651a6 d286817 1931da5 21651a6 1931da5 a340c71 9a61006 a340c71 c51a5c8 5dabf7e 8faf8f4 6259c76 5e53692 e301300 6e2072f 63734ca 6e2072f 63734ca 916f6e2 63734ca f13b71d 21651a6 d286817 1931da5 21651a6 1931da5 a340c71 9a61006 a340c71 63734ca a340c71 4148050 63734ca 916f6e2 6e2072f de9ab5d 63734ca f13b71d 21651a6 d286817 1931da5 21651a6 4148050 a340c71 673367f fc444c6 673367f fc444c6 673367f a340c71 63734ca a340c71 4148050 63734ca 916f6e2 6e2072f de9ab5d 63734ca f13b71d 21651a6 d286817 1931da5 21651a6 4148050 a340c71 6760b34 8387095 6760b34 8387095 6760b34 8387095 6760b34 8387095 6760b34 8387095 6760b34 8387095 6760b34 a340c71 1a44ef5 f13b71d 87f4e22 1a44ef5 87f4e22 1a44ef5 f13b71d a340c71 db1d246 6b1ddff 8e4685d a340c71 8e4685d a340c71 8e4685d a340c71 db1d246 a340c71 8e4685d a340c71 aa697ff 8e4685d aa697ff 8e4685d aa697ff a340c71 8e4685d 8cfcd63 a340c71 8e4685d a340c71 6b1ddff 8e4685d 8cfcd63 8e4685d 8cfcd63 8e4685d 8cfcd63 8e4685d 8cfcd63 a340c71 1a44ef5 a340c71 8e4685d a340c71 f13b71d 8387095 a340c71 1a44ef5 f13b71d 1a44ef5 a340c71 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 | #!/usr/bin/env python3
"""Verify the already-published GitHub Pages and Hugging Face mirrors.
This is the post-publish companion to the local publication gates. It fetches
public URLs and compares them with the local release artifacts so a reader can
see that the live surfaces match the repo/HF bundles that were prepared.
"""
from __future__ import annotations
import argparse
import hashlib
import json
import subprocess
import tempfile
import time
from datetime import datetime, timezone
from pathlib import Path
from urllib.error import HTTPError, URLError
from urllib.parse import urlsplit, urlunsplit
from urllib.request import Request, urlopen
ROOT = Path(__file__).resolve().parents[1]
DEFAULT_OUTPUT = ROOT / "docs/data/live_publication_status.json"
TIMEOUT_SECONDS = 30
LARGE_FILE_TIMEOUT_SECONDS = 240
LARGE_FILE_THRESHOLD_BYTES = 20 * 1024 * 1024
FETCH_RETRIES = 3
USER_AGENT = "ropedia-xperience-10m-live-verifier/1.0"
LOCAL_PATH_FORBIDDEN_MARKERS = ["/" + "Users/", "/" + "private/"]
QWEN3_LORA_REPO_ID = "cy0307/ropedia-qwen3-omni-lora-128ep"
QWEN3_LORA_UPLOAD_DIR_CANDIDATES = [
ROOT / "results/omni_finetune/hf_upload_qwen3_128ep_v6_rank64",
ROOT.parent / "hf_publish/qwen3_lora_128ep",
ROOT / "results/omni_finetune/hf_upload_qwen3_128ep_full",
]
COSMOS3_SUPER_LORA_REPO_ID = "cy0307/ropedia-cosmos3-super-forward-dynamics-lora-128ep"
COSMOS3_SUPER_LORA_UPLOAD_DIR_CANDIDATES = [
ROOT.parent / "hf_publish/cosmos3_super_forward_dynamics_lora_128ep",
]
HASH_GROUPS = [
{
"id": "task_suite_infographic",
"title": "Task-suite infographic",
"local_path": "docs/assets/task_suite_infographic.png",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/assets/task_suite_infographic.png",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/resolve/main/assets/task_suite_infographic.png",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/assets/task_suite_infographic.png",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/assets/task_suite_infographic.png",
},
},
{
"id": "quality_gates_json",
"title": "Quality-gate JSON",
"local_path": "docs/data/quality_gates.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/quality_gates.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/quality_gates.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/quality_gates.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/quality_gates.json",
},
},
{
"id": "task_suite_20_json",
"title": "Unified 20-task suite JSON",
"local_path": "docs/data/task_suite_20.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/task_suite_20.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/task_suite_20.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/task_suite_20.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/task_suite_20.json",
},
},
{
"id": "unified_task_model_radar_json",
"title": "Unified 20-task model radar JSON",
"local_path": "docs/data/unified_task_model_radar.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/unified_task_model_radar.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/unified_task_model_radar.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/unified_task_model_radar.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/unified_task_model_radar.json",
},
},
{
"id": "unified_task_model_radar_svg",
"title": "Unified 20-task model radar SVG",
"local_path": "docs/assets/charts/unified_task_model_radar.svg",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/assets/charts/unified_task_model_radar.svg",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/resolve/main/assets/charts/unified_task_model_radar.svg",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/assets/charts/unified_task_model_radar.svg",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/assets/charts/unified_task_model_radar.svg",
},
},
{
"id": "tier2_task_suite_json",
"title": "Tasks 13-20 result JSON",
"local_path": "docs/data/tier2_task_suite.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/tier2_task_suite.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/tier2_task_suite.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/tier2_task_suite.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/tier2_task_suite.json",
},
},
{
"id": "tier2_task_suite_chart",
"title": "Tasks 13-20 chart",
"local_path": "docs/assets/charts/tier2_task_suite.svg",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/assets/charts/tier2_task_suite.svg",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/resolve/main/assets/charts/tier2_task_suite.svg",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/assets/charts/tier2_task_suite.svg",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/assets/charts/tier2_task_suite.svg",
},
},
{
"id": "tier2_result_summary",
"title": "Tasks 13-20 result summary",
"local_path": "results/episode_task_suite/tier2_task_suite/tier2_task_suite_results.json",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/episode_task_suite/tier2_task_suite/tier2_task_suite_results.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/results/episode_task_suite/tier2_task_suite/tier2_task_suite_results.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/results/episode_task_suite/tier2_task_suite/tier2_task_suite_results.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/results/episode_task_suite/tier2_task_suite/tier2_task_suite_results.json",
},
},
{
"id": "tier2_baseline_report",
"title": "Tasks 13-20 baseline report",
"local_path": "results/episode_task_suite/tier2_task_suite/TIER2_TASK_BASELINES.md",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/episode_task_suite/tier2_task_suite/TIER2_TASK_BASELINES.md",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/results/episode_task_suite/tier2_task_suite/TIER2_TASK_BASELINES.md",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/raw/main/results/episode_task_suite/tier2_task_suite/TIER2_TASK_BASELINES.md",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/raw/main/results/episode_task_suite/tier2_task_suite/TIER2_TASK_BASELINES.md",
},
},
{
"id": "tier2_minimal_model_npz",
"title": "Tasks 13-20 minimal model NPZ",
"local_path": "results/episode_task_suite/tier2_task_suite/long_horizon_next_action/model.npz",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/episode_task_suite/tier2_task_suite/long_horizon_next_action/model.npz",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/resolve/main/results/episode_task_suite/tier2_task_suite/long_horizon_next_action/model.npz",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/results/episode_task_suite/tier2_task_suite/long_horizon_next_action/model.npz",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/results/episode_task_suite/tier2_task_suite/long_horizon_next_action/model.npz",
},
},
{
"id": "single_episode_explorer_json",
"title": "Single-episode explorer JSON",
"local_path": "docs/data/single_episode_explorer.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/single_episode_explorer.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/single_episode_explorer.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/single_episode_explorer.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/single_episode_explorer.json",
},
},
{
"id": "raw_sample_files_json",
"title": "Raw public sample file manifest",
"local_path": "docs/data/raw_sample_files.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/raw_sample_files.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/raw_sample_files.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/raw_sample_files.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/raw_sample_files.json",
},
},
{
"id": "single_episode_explorer_html",
"title": "Single-episode explorer HTML",
"local_path": "docs/single_episode_explorer.html",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/single_episode_explorer.html",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/single_episode_explorer.html",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/single_episode_explorer.html",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/single_episode_explorer.html",
},
},
{
"id": "research_roadmap_html",
"title": "Interactive research roadmap HTML",
"local_path": "docs/research_roadmap.html",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/research_roadmap.html",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/research_roadmap.html",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/research_roadmap.html",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/research_roadmap.html",
},
},
{
"id": "single_episode_diagnostics_provenance",
"title": "Single-episode diagnostics provenance",
"local_path": "results/single_episode_diagnostics/provenance.json",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/single_episode_diagnostics/provenance.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/results/single_episode_diagnostics/provenance.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/results/single_episode_diagnostics/provenance.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/results/single_episode_diagnostics/provenance.json",
},
},
{
"id": "single_episode_object_vocab",
"title": "Single-episode object vocabulary",
"local_path": "results/single_episode_diagnostics/object_labels/object_vocab.json",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/single_episode_diagnostics/object_labels/object_vocab.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/results/single_episode_diagnostics/object_labels/object_vocab.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/results/single_episode_diagnostics/object_labels/object_vocab.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/results/single_episode_diagnostics/object_labels/object_vocab.json",
},
},
{
"id": "public_surface_qa_json",
"title": "Public presentation JSON",
"local_path": "docs/data/public_surface_qa.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/public_surface_qa.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/public_surface_qa.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/public_surface_qa.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/public_surface_qa.json",
},
},
{
"id": "rendered_site_check_json",
"title": "Rendered website check JSON",
"local_path": "docs/data/rendered_site_check.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/rendered_site_check.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/rendered_site_check.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/rendered_site_check.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/rendered_site_check.json",
},
},
{
"id": "xperience10m_dataset_card_alignment_json",
"title": "Official Xperience-10M dataset-card alignment JSON",
"local_path": "docs/data/xperience10m_dataset_card_alignment.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/xperience10m_dataset_card_alignment.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/xperience10m_dataset_card_alignment.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/xperience10m_dataset_card_alignment.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/xperience10m_dataset_card_alignment.json",
},
},
{
"id": "source_alignment_json",
"title": "Source-alignment JSON",
"local_path": "docs/data/source_alignment_audit.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/source_alignment_audit.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/source_alignment_audit.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/source_alignment_audit.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/source_alignment_audit.json",
},
},
{
"id": "project_status_json",
"title": "Project status JSON",
"local_path": "docs/data/project_status.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/project_status.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/project_status.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/project_status.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/project_status.json",
},
},
{
"id": "omni_model_comparison_json",
"title": "Omni model comparison JSON",
"local_path": "docs/data/omni_model_comparison.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/omni_model_comparison.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/omni_model_comparison.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/omni_model_comparison.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/omni_model_comparison.json",
},
},
{
"id": "task_suite_enhancement_128_json",
"title": "128-episode task-suite enhancement JSON",
"local_path": "docs/data/task_suite_enhancement_128.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/task_suite_enhancement_128.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/task_suite_enhancement_128.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/task_suite_enhancement_128.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/task_suite_enhancement_128.json",
},
},
{
"id": "task_suite_enhancement_128_markdown",
"title": "128-episode task-suite enhancement Markdown",
"local_path": "TASK_SUITE_ENHANCEMENT_128.md",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/TASK_SUITE_ENHANCEMENT_128.md",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/TASK_SUITE_ENHANCEMENT_128.md",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/raw/main/TASK_SUITE_ENHANCEMENT_128.md",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/raw/main/TASK_SUITE_ENHANCEMENT_128.md",
},
},
{
"id": "task_suite_enhancement_128_plan",
"title": "128-episode task-suite enhancement plan",
"local_path": "results/omni_finetune/task_suite_enhancement_128_v1_20260608/enhancement_plan.json",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/results/omni_finetune/task_suite_enhancement_128_v1_20260608/enhancement_plan.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/results/omni_finetune/task_suite_enhancement_128_v1_20260608/enhancement_plan.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/results/omni_finetune/task_suite_enhancement_128_v1_20260608/enhancement_plan.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/results/omni_finetune/task_suite_enhancement_128_v1_20260608/enhancement_plan.json",
},
},
{
"id": "evaluation_protocol_json",
"title": "Evaluation protocol JSON",
"local_path": "docs/data/evaluation_protocol.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/evaluation_protocol.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/evaluation_protocol.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/evaluation_protocol.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/evaluation_protocol.json",
},
},
{
"id": "research_takeaways_json",
"title": "Research takeaways JSON",
"local_path": "docs/data/research_takeaways.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/research_takeaways.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/research_takeaways.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/research_takeaways.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/research_takeaways.json",
},
},
{
"id": "research_roadmap_json",
"title": "Research roadmap JSON",
"local_path": "docs/data/research_roadmap.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/research_roadmap.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/research_roadmap.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/research_roadmap.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/research_roadmap.json",
},
},
{
"id": "research_roadmap_interactive_json",
"title": "Interactive research roadmap JSON",
"local_path": "docs/data/research_roadmap_interactive.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/research_roadmap_interactive.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/research_roadmap_interactive.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/research_roadmap_interactive.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/research_roadmap_interactive.json",
},
},
{
"id": "figure_index_json",
"title": "Figure index JSON",
"local_path": "docs/data/figure_index.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/figure_index.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/figure_index.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/figure_index.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/figure_index.json",
},
},
{
"id": "task_walkthroughs_json",
"title": "Task walkthrough JSON",
"local_path": "docs/data/task_walkthroughs.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/task_walkthroughs.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/task_walkthroughs.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/task_walkthroughs.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/task_walkthroughs.json",
},
},
{
"id": "task_surface_integrity_json",
"title": "Task-surface integrity JSON",
"local_path": "docs/data/task_surface_integrity.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/task_surface_integrity.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/task_surface_integrity.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/task_surface_integrity.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/task_surface_integrity.json",
},
},
{
"id": "brand_assets_json",
"title": "Brand assets JSON",
"local_path": "docs/data/brand_assets.json",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/brand_assets.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/brand_assets.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/brand_assets.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/brand_assets.json",
},
},
{
"id": "brand_logo_social_card",
"title": "Brand logo social card",
"local_path": "docs/assets/brand/xperience10m-logo-social-card.png",
"urls": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/assets/brand/xperience10m-logo-social-card.png",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/resolve/main/assets/brand/xperience10m-logo-social-card.png",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/assets/brand/xperience10m-logo-social-card.png",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/assets/brand/xperience10m-logo-social-card.png",
},
},
{
"id": "quality_gates_markdown",
"title": "Quality-gate Markdown",
"local_path": "QUALITY_GATES.md",
"urls": {
"github_raw": "https://raw.githubusercontent.com/ChaoYue0307/ropedia-xperience-10m-task-suite/main/QUALITY_GATES.md",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/QUALITY_GATES.md",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/raw/main/QUALITY_GATES.md",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/raw/main/QUALITY_GATES.md",
},
},
]
MARKER_CHECKS = [
{
"id": "github_pages_index_current",
"title": "GitHub Pages index contains current publication markers",
"url": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/",
"required": [
"evaluation_protocol.json",
"research_takeaways.json",
"Research Takeaways",
"project_status.json",
"xperience10m-taskfirst-v13-modality-xl",
"Interactive task walkthrough.",
"taskPlayer",
"Action Recognition",
"data/task_walkthroughs.json",
"research_roadmap.html",
"research_roadmap_interactive.json",
"Qwen3-Omni LoRA Latest Diagnostic Branch",
"Action/Subtask Error-Analysis Pass",
"99.90%",
"qwen3_v5_v6_comparison.json",
"omni_model_comparison.json",
"task_suite_enhancement_128.json",
"128-Episode Task Suite Enhancement Pack",
"multiscale_20s10_40s20_80s40",
"ropedia-qwen3-omni-lora-128ep",
"ropedia-cosmos3-super-forward-dynamics-lora-128ep",
"Cosmos3-Super has a verified base-weight JSON-task evaluation plus a fine-tuned forward-dynamics LoRA branch",
"task_suite_20.json",
"Unified 20-Task Suite",
"unified_task_model_radar.svg",
"Unified 20-task polygon",
"tier2_task_suite.json",
"Tasks 13-20",
"Long-Horizon Next-Action Forecasting",
],
"forbidden": [
"xperience10m-" + "taskfirst-v10",
"xperience10m-" + "modalities-v9-large-atlas",
"artifact-id",
],
},
{
"id": "hf_space_index_current",
"title": "HF Space index contains current publication markers",
"url": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/index.html",
"required": [
"evaluation_protocol.json",
"research_takeaways.json",
"Research Takeaways",
"project_status.json",
"xperience10m-taskfirst-v13-modality-xl",
"Interactive task walkthrough.",
"taskPlayer",
"Action Recognition",
"data/task_walkthroughs.json",
"research_roadmap.html",
"research_roadmap_interactive.json",
"Qwen3-Omni LoRA Latest Diagnostic Branch",
"Action/Subtask Error-Analysis Pass",
"99.90%",
"qwen3_v5_v6_comparison.json",
"omni_model_comparison.json",
"task_suite_enhancement_128.json",
"128-Episode Task Suite Enhancement Pack",
"multiscale_20s10_40s20_80s40",
"ropedia-qwen3-omni-lora-128ep",
"ropedia-cosmos3-super-forward-dynamics-lora-128ep",
"Cosmos3-Super has a verified base-weight JSON-task evaluation plus a fine-tuned forward-dynamics LoRA branch",
"task_suite_20.json",
"Unified 20-Task Suite",
"unified_task_model_radar.svg",
"Unified 20-task polygon",
"tier2_task_suite.json",
"Tasks 13-20",
"Long-Horizon Next-Action Forecasting",
],
"forbidden": [
"xperience10m-" + "taskfirst-v10",
"xperience10m-" + "modalities-v9-large-atlas",
"artifact-id",
],
},
{
"id": "hf_artifacts_card_current",
"title": "HF artifact card links current result packages",
"url": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/raw/main/README.md",
"required": [
"docs/data/omni_finetune_verified_result.json",
"docs/data/omni_model_comparison.json",
"docs/data/task_suite_enhancement_128.json",
"99.90% JSON validity",
"qwen3_v5_v6_comparison.json",
"Cosmos3-Super",
"ropedia-qwen3-omni-lora-128ep",
"ropedia-cosmos3-super-forward-dynamics-lora-128ep",
"docs/data/task_suite_20.json",
"Unified 20-Task Suite",
"docs/data/unified_task_model_radar.json",
"docs/assets/charts/unified_task_model_radar.svg",
"docs/data/tier2_task_suite.json",
"Tasks 13-20",
],
"forbidden": ["xperience10m-" + "taskfirst-v10"],
},
{
"id": "github_pages_explorer_current",
"title": "GitHub Pages explorer contains current diagnostics markers",
"url": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/single_episode_explorer.html",
"required": [
"Single-Episode Research Explorer",
"data/single_episode_explorer.json",
"browser-preview clips",
"full raw MP4/HDF5/RRD source files",
"Feature Blocks",
"Diagnostics",
"object labels",
"prediction rows",
"ablation",
"alignment",
],
"forbidden": LOCAL_PATH_FORBIDDEN_MARKERS,
},
{
"id": "hf_space_explorer_current",
"title": "HF Space explorer contains current diagnostics markers",
"url": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/single_episode_explorer.html",
"required": [
"Single-Episode Research Explorer",
"data/single_episode_explorer.json",
"browser-preview clips",
"full raw MP4/HDF5/RRD source files",
"Feature Blocks",
"Diagnostics",
"object labels",
"prediction rows",
"ablation",
"alignment",
],
"forbidden": LOCAL_PATH_FORBIDDEN_MARKERS,
},
{
"id": "hf_model_card_current",
"title": "HF model card links current result packages",
"url": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/raw/main/README.md",
"required": [
"docs/data/omni_finetune_verified_result.json",
"docs/data/omni_model_comparison.json",
"docs/data/task_suite_enhancement_128.json",
"99.90%",
"qwen3_v5_v6_comparison.json",
"Cosmos3-Super",
"ropedia-qwen3-omni-lora-128ep",
"ropedia-cosmos3-super-forward-dynamics-lora-128ep",
"docs/data/task_suite_20.json",
"Unified 20-Task Suite",
"docs/data/unified_task_model_radar.json",
"docs/assets/charts/unified_task_model_radar.svg",
"docs/data/tier2_task_suite.json",
"Tasks 13-20",
],
"forbidden": ["xperience10m-" + "taskfirst-v10"],
},
]
PATH_HYGIENE_REPORTS = {
"mirror_parity": {
"title": "Mirror parity JSON excludes local paths",
"paths": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/mirror_parity.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/mirror_parity.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/mirror_parity.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/mirror_parity.json",
},
},
"publication_audit": {
"title": "Publication package JSON excludes local paths",
"paths": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/publication_audit.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/publication_audit.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/publication_audit.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/publication_audit.json",
},
},
"website_integrity": {
"title": "Website integrity JSON excludes local paths",
"paths": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/website_integrity.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/website_integrity.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/website_integrity.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/website_integrity.json",
},
},
"public_surface_qa": {
"title": "Public presentation JSON excludes local paths",
"paths": {
"github_pages": "https://chaoyue0307.github.io/ropedia-xperience-10m-task-suite/data/public_surface_qa.json",
"hf_space": "https://huggingface.co/spaces/cy0307/ropedia-xperience-10m-task-suite/raw/main/data/public_surface_qa.json",
"hf_artifacts": "https://huggingface.co/datasets/cy0307/ropedia-xperience-10m-task-suite-artifacts/resolve/main/docs/data/public_surface_qa.json",
"hf_model": "https://huggingface.co/cy0307/ropedia-xperience-10m-task-baselines/resolve/main/metrics/public_surface_qa.json",
},
},
}
def local_path_checks() -> list[dict]:
checks = []
for report_id, report in PATH_HYGIENE_REPORTS.items():
for surface, url in report["paths"].items():
checks.append({
"id": f"{surface}_{report_id}_local_path_check",
"title": f"{surface}: {report['title']}",
"url": url,
"required": ['"status": "pass"'],
"forbidden": LOCAL_PATH_FORBIDDEN_MARKERS,
})
return checks
def qwen3_lora_upload_dir() -> Path | None:
for path in QWEN3_LORA_UPLOAD_DIR_CANDIDATES:
if path.exists():
return path
return None
def cosmos3_super_lora_upload_dir() -> Path | None:
for path in COSMOS3_SUPER_LORA_UPLOAD_DIR_CANDIDATES:
if path.exists():
return path
return None
def display_local_path(path: Path) -> str:
resolved = path.resolve()
for base, prefix in ((ROOT, ""), (ROOT.parent, "../")):
try:
rel = resolved.relative_to(base.resolve()).as_posix()
return f"{prefix}{rel}"
except ValueError:
continue
return path.name
def qwen3_lora_hash_groups() -> list[dict]:
upload_dir = qwen3_lora_upload_dir()
if upload_dir is None:
return []
groups = []
required_files = [
"README.md",
"upload_manifest.json",
"adapter_config.json",
]
adapter_files = sorted(path.name for path in upload_dir.glob("adapter_model*.safetensors"))
for filename in [*required_files, *adapter_files]:
path = upload_dir / filename
if not path.exists():
continue
groups.append(
{
"id": f"qwen3_lora_{filename.replace('.', '_').replace('-', '_')}",
"title": f"Qwen3-Omni LoRA repo file: {filename}",
"local_path": display_local_path(path),
"urls": {
"hf_qwen3_lora_model": (
f"https://huggingface.co/{QWEN3_LORA_REPO_ID}/resolve/main/{filename}"
),
},
}
)
return groups
def cosmos3_super_lora_hash_groups() -> list[dict]:
upload_dir = cosmos3_super_lora_upload_dir()
if upload_dir is None:
return []
groups = []
required_files = [
"README.md",
"upload_manifest.json",
"pytorch_lora_weights.safetensors",
"verified_result_summary.json",
"package_audit.json",
"eval_metrics.json",
"val_metrics.json",
]
for filename in required_files:
path = upload_dir / filename
if not path.exists():
continue
groups.append(
{
"id": f"cosmos3_super_lora_{filename.replace('.', '_').replace('-', '_')}",
"title": f"Cosmos3-Super LoRA repo file: {filename}",
"local_path": display_local_path(path),
"urls": {
"hf_cosmos3_super_lora_model": (
f"https://huggingface.co/{COSMOS3_SUPER_LORA_REPO_ID}/resolve/main/{filename}"
),
},
}
)
return groups
def sha256_bytes(data: bytes) -> str:
return hashlib.sha256(data).hexdigest()
def sha256_file(path: Path) -> str:
digest = hashlib.sha256()
with path.open("rb") as handle:
for chunk in iter(lambda: handle.read(1024 * 1024), b""):
digest.update(chunk)
return digest.hexdigest()
def sanitize_url(url: str) -> str:
parts = urlsplit(url)
return urlunsplit((parts.scheme, parts.netloc, parts.path, "", ""))
def fetch_once(url: str, *, timeout_seconds: int = TIMEOUT_SECONDS, prefer_curl: bool = False) -> dict:
if prefer_curl:
return fetch_with_curl(url, timeout_seconds=timeout_seconds)
request = Request(url, headers={"User-Agent": USER_AGENT})
try:
with urlopen(request, timeout=timeout_seconds) as response:
body = response.read()
return {
"ok": True,
"method": "urllib",
"timeout_seconds": timeout_seconds,
"status_code": int(getattr(response, "status", 200)),
"bytes": len(body),
"sha256": sha256_bytes(body),
"body": body,
"final_url": sanitize_url(response.geturl()),
}
except HTTPError as exc:
return {
"ok": False,
"method": "urllib",
"timeout_seconds": timeout_seconds,
"status_code": exc.code,
"bytes": 0,
"sha256": None,
"error": str(exc),
"final_url": url,
}
except (TimeoutError, OSError) as exc:
fallback = fetch_with_curl(url, timeout_seconds=timeout_seconds)
if fallback["ok"]:
return fallback
return {
"ok": False,
"method": "urllib",
"timeout_seconds": timeout_seconds,
"status_code": None,
"bytes": 0,
"sha256": None,
"error": str(exc),
"final_url": url,
}
except URLError as exc:
fallback = fetch_with_curl(url, timeout_seconds=timeout_seconds)
if fallback["ok"]:
return fallback
return {
"ok": False,
"method": "urllib",
"timeout_seconds": timeout_seconds,
"status_code": None,
"bytes": 0,
"sha256": None,
"error": str(exc.reason),
"final_url": url,
}
def fetch(url: str, *, timeout_seconds: int = TIMEOUT_SECONDS, prefer_curl: bool = False) -> dict:
last_result = None
for attempt in range(1, FETCH_RETRIES + 1):
result = fetch_once(url, timeout_seconds=timeout_seconds, prefer_curl=prefer_curl)
result["attempt"] = attempt
result["max_attempts"] = FETCH_RETRIES
if result["ok"] or attempt == FETCH_RETRIES:
return result
last_result = result
time.sleep(min(2 * attempt, 5))
return last_result or fetch_once(url, timeout_seconds=timeout_seconds, prefer_curl=prefer_curl)
def fetch_with_curl(url: str, *, timeout_seconds: int = TIMEOUT_SECONDS) -> dict:
with tempfile.NamedTemporaryFile(delete=False) as tmp:
tmp_path = Path(tmp.name)
try:
result = subprocess.run(
[
"curl",
"-L",
"-sS",
"--max-time",
str(timeout_seconds),
"-A",
USER_AGENT,
"-o",
str(tmp_path),
"-w",
"%{http_code}\n%{url_effective}",
url,
],
check=False,
capture_output=True,
text=True,
)
status_text, _, final_url = result.stdout.partition("\n")
status_code = int(status_text.strip() or "0")
body = tmp_path.read_bytes() if tmp_path.exists() else b""
if result.returncode != 0:
return {
"ok": False,
"method": "curl",
"timeout_seconds": timeout_seconds,
"status_code": status_code or None,
"bytes": 0,
"sha256": None,
"error": result.stderr.strip() or f"curl exited {result.returncode}",
"final_url": sanitize_url(final_url.strip() or url),
}
return {
"ok": 200 <= status_code < 400,
"method": "curl",
"timeout_seconds": timeout_seconds,
"status_code": status_code,
"bytes": len(body),
"sha256": sha256_bytes(body),
"body": body,
"final_url": sanitize_url(final_url.strip() or url),
}
finally:
tmp_path.unlink(missing_ok=True)
def hash_group_record(group: dict) -> dict:
group_path = Path(group["local_path"])
local_path = group_path if group_path.is_absolute() else ROOT / group_path
local = {
"path": group["local_path"],
"exists": local_path.exists(),
"bytes": local_path.stat().st_size if local_path.exists() else 0,
"sha256": sha256_file(local_path) if local_path.exists() else None,
}
mirrors = {}
failures = []
if not local["exists"]:
failures.append({"surface": "local", "kind": "missing", "path": group["local_path"]})
for surface, url in group["urls"].items():
prefer_curl = (
local["bytes"] >= LARGE_FILE_THRESHOLD_BYTES
or Path(urlsplit(url).path).suffix == ".safetensors"
)
timeout_seconds = LARGE_FILE_TIMEOUT_SECONDS if prefer_curl else TIMEOUT_SECONDS
result = fetch(url, timeout_seconds=timeout_seconds, prefer_curl=prefer_curl)
record = {key: value for key, value in result.items() if key != "body"}
record["url"] = url
mirrors[surface] = record
if not result["ok"]:
failures.append({"surface": surface, "kind": "fetch_failed", "url": url, "error": result.get("error")})
continue
if local["exists"] and result["sha256"] != local["sha256"]:
failures.append(
{
"surface": surface,
"kind": "hash_mismatch",
"url": url,
"expected_sha256": local["sha256"],
"actual_sha256": result["sha256"],
}
)
return {
"id": group["id"],
"title": group["title"],
"status": "pass" if not failures else "fail",
"local": local,
"mirrors": mirrors,
"failures": failures,
}
def marker_record(check: dict) -> dict:
result = fetch(check["url"])
failures = []
missing = []
forbidden_hits = []
if not result["ok"]:
failures.append({"kind": "fetch_failed", "url": check["url"], "error": result.get("error")})
text = ""
else:
text = result["body"].decode("utf-8", errors="ignore")
missing = [marker for marker in check["required"] if marker not in text]
forbidden_hits = [marker for marker in check["forbidden"] if marker in text]
if missing:
failures.append({"kind": "missing_required_markers", "markers": missing})
if forbidden_hits:
failures.append({"kind": "forbidden_markers_present", "markers": forbidden_hits})
return {
"id": check["id"],
"title": check["title"],
"url": check["url"],
"status": "pass" if not failures else "fail",
"fetch": {key: value for key, value in result.items() if key != "body"},
"required_marker_count": len(check["required"]),
"missing_markers": missing,
"forbidden_markers_present": forbidden_hits,
"failures": failures,
}
def build_report() -> dict:
hash_records = [
hash_group_record(group)
for group in [*HASH_GROUPS, *qwen3_lora_hash_groups(), *cosmos3_super_lora_hash_groups()]
]
marker_records = [marker_record(check) for check in [*MARKER_CHECKS, *local_path_checks()]]
failures = [
{"check": record["id"], **failure}
for record in [*hash_records, *marker_records]
for failure in record["failures"]
]
return {
"title": "Ropedia Xperience-10M Live Publication Status",
"status": "pass" if not failures else "fail",
"checked_at_utc": datetime.now(timezone.utc).isoformat(timespec="seconds"),
"scope": (
"Live GitHub Pages, GitHub raw, Hugging Face Space, artifact dataset, "
"baseline model mirrors, and the Qwen3/Cosmos3 LoRA adapter repos when "
"their upload packages exist locally."
),
"hash_groups": hash_records,
"marker_checks": marker_records,
"failure_count": len(failures),
"failures": failures,
}
def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--output", type=Path, default=DEFAULT_OUTPUT)
parser.add_argument("--no-write", action="store_true", help="Verify and print status without updating the report file.")
args = parser.parse_args()
report = build_report()
if not args.no_write:
args.output.parent.mkdir(parents=True, exist_ok=True)
args.output.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8")
print(f"{report['status'].upper()}: wrote {args.output}")
else:
print(f"{report['status'].upper()}: live publication verification")
if report["status"] != "pass":
for failure in report["failures"][:20]:
print(f"- {failure}")
if len(report["failures"]) > 20:
print(f"- ... {len(report['failures']) - 20} more failures")
return 1
return 0
if __name__ == "__main__":
raise SystemExit(main())
|