OpenIslet

scripts/generate_release_manifest.py

Generate the Wave-0 / P0-8 Release & Provenance Manifest (`manifest.json`) and

script Release v0.8.0 gen-eb955f8266035aba 148 KB · 11 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/generate_release_manifest.py · SHA-256: 9b8e7a9ff4998368…

        "data/protocols/iip0055_v090_hygiene_safecell_orthogonality_side_contract_v0.9.0.json",
        "data/protocols/iip0056_gy034_entry.json",
        "data/protocols/iip0056_route4_omentum_exvivo_side_contract_v0.9.0.json",
        "data/protocols/iip0057_foundry_v2_h3_side_contract_v0.9.0.json",
        "data/protocols/iip0057_gy035_entry.json",
        "data/protocols/iip0058_armz_ensc_sortv2_portfolio_side_contract_v0.9.0.json",
        "data/protocols/iip0058_gy036_entry.json",
        "data/protocols/wave6_canonical_arm_manifest.json",
        "data/protocols/wave6_master_contract.json",
        "data/protocols/wetlab_endpoint_contract_v0.9.0.json",
        "data/structures/rcsb_shield_interface_coords_v0.9.0.json",
        "docs/GATE-34-V090-HYGIENE-SAFECELL-MINIFH-ORTHOGONALITY-PROTOCOL.md",
        "docs/GATE-35-ROUTE4-OMENTUM-AND-EXVIVO-REST-PROTOCOL.md",
        "docs/GATE-36-FOUNDRY-V2-SHIELD-INVVAX-INSL82I-CUFFV2-PROTOCOL.md",
        "docs/GATE-37-ARMZ-ENSC-ISLETSORT-V2-AND-2P24-PORTFOLIO-PROTOCOL.md",
        "scripts/verify_iip0055_hygiene_safecell_minifh_orthogonality.py",
        "scripts/verify_iip0056_route4_omentum_and_exvivo_rest.py",
        "scripts/verify_iip0057_foundry_v2_shield_invvax_insl82i_cuffv2.py",
        "scripts/verify_iip0058_armz_ensc_isletsort_v2_and_2p24_portfolio.py",
        "tests/test_iip0055_hygiene_safecell_minifh_orthogonality.py",
        "tests/test_iip0056_route4_omentum_and_exvivo_rest.py",
        "tests/test_iip0057_foundry_v2_h3_biologics.py",
        "tests/test_iip0058_armz_ensc_isletsort_v2_portfolio.py",
        "data/protocols/iip0059_five_transgene_joint_coverage_side_contract_v0.9.0.json",
        "data/extracted/iip0059_five_transgene_joint_coverage_verification_v0.9.0.json",
        "docs/GATE-38-FIVE-TRANSGENE-JOINT-COVERAGE-AND-DEPENDENCE-PROTOCOL.md",
        "scripts/verify_iip0059_five_transgene_joint_coverage_gate.py",
        "tests/test_iip0059_five_transgene_joint_coverage_gate.py",
        "data/protocols/iip0060_cuff_stratum_coverage_side_contract_v0.9.0.json",
        "data/extracted/iip0060_cuff_stratum_coverage_verification_v0.9.0.json",
        "docs/GATE-39-CUFF-HUMORAL-STRATUM-COVERAGE-AND-OMISSION-PROTOCOL.md",
        "scripts/verify_iip0060_cuff_stratum_coverage_gate.py",
        "tests/test_iip0060_cuff_stratum_coverage_gate.py",
        "tests/test_iip0061_layer1_prose_parity.py",
        "data/extracted/cellgemma_islet_v0_1_receipt.json",
        "data/extracted/wave7_cellgemma_iip0062_0065_2p24_portfolio_v0.9.0.json",
        "docs/GATE-40-PIRFENIDONE-LOCAL-ANTIFBR-H4-PROTOCOL.md",
        "docs/GATE-41-DEUCRAVACITINIB-LOCAL-TYK2-IBMIR-NK-PROTOCOL.md",
        "docs/GATE-42-GY032-CHANNEL-C-BYSTANDER-SCREEN-PROTOCOL.md",
        "docs/GATE-43-CELLGEMMA-WARN-GUARDRAILS-AND-PILOTS-PROTOCOL.md",
        "docs/IIP_DRAFT_A_PIRFENIDONE_LOCAL_ANTIFBR_IEC_H4.md",
        "docs/IIP_DRAFT_B_DEUCRAVACITINIB_LOCAL_TYK2_IBMIR_NK.md",
        "docs/IIP_DRAFT_C_BBC3_PMAIP1_JAK2_H3_CHANNEL_C_BYSTANDER.md",
        "docs/IIP_DRAFT_D_CELLGEMMA_BLUEPRINT_GUARDRAILS_AND_HIPCORE_AUDIT.md",
        "scripts/verify_cellgemma_islet_v0_1.py",
        "scripts/verify_wave7_cellgemma_2p24_rebase.py",
        "tests/test_wave7_cellgemma_iip0062_0065.py",
    ]
    artifact_entries = {}
    for rel in tracked_artifacts:
        p = ROOT / rel
        if not p.exists():
            raise ValueError(f"Required release artifact is missing: {rel}")
        artifact_entries[rel] = {
            "sha256": sha256_file(p),
            "bytes": p.stat().st_size,
        }
    for p in study_files:
        rel = str(p.relative_to(ROOT))
        artifact_entries[rel] = {
            "sha256": sha256_file(p),
            "bytes": p.stat().st_size,
        }

    gnomad_files = sorted(OMICS_DIR.glob("gnomad_*.json"))
    for p in gnomad_files:
        rel = str(p.relative_to(ROOT))
        artifact_entries[rel] = {
            "sha256": sha256_file(p),
            "bytes": p.stat().st_size,
        }

    dossier_files = sorted(DOSSIERS_DIR.glob("*.json"))
    for p in dossier_files:
        rel = str(p.relative_to(ROOT))
        artifact_entries[rel] = {
            "sha256": sha256_file(p),
            "bytes": p.stat().st_size,
        }

    curated_files = sorted((ROOT / "data" / "curated").glob("*.json"))
    for p in curated_files:
        rel = str(p.relative_to(ROOT))
        artifact_entries[rel] = {
            "sha256": sha256_file(p),
            "bytes": p.stat().st_size,
        }
    for p in sorted((ROOT/'tests').glob('test_round3_*.py')):
        rel=p.relative_to(ROOT).as_posix()
        artifact_entries[rel]={"sha256":sha256_file(p),"bytes":p.stat().st_size}
    graveyard_data = json.loads(GRAVEYARD_PATH.read_text(encoding="utf-8"))
    graph_data = json.loads(
        (EXTRACTED_DIR / "cross_study_discovery_graph.json").read_text(encoding="utf-8")
    )

    n_ft_dossiers = 0
    for p in dossier_files:
        d_obj = json.loads(p.read_text(encoding="utf-8"))
        if d_obj.get("has_parsed_fulltext_xml") or d_obj.get("has_fulltext_xml"):
            n_ft_dossiers += 1

    layer4_atlas = json.loads((EXTRACTED_DIR / "layer4_tissue_and_metabolic_twin_atlas.json").read_text(encoding="utf-8"))
    n_layer4_pde_regimes = len(
        (layer4_atlas.get("part_a_336h_spatial_reaction_diffusion_pouch_pde") or {}).get("regimes_simulated") or {}
    )
    if n_layer4_pde_regimes == 0:
        raise ValueError("Layer 4 must contain generated PDE regimes")
    layer2_atlas = json.loads((EXTRACTED_DIR / "layer2_regulatory_and_perturbation_atlas.json").read_text())
    layer3_atlas = json.loads((EXTRACTED_DIR / "layer3_structural_verification_atlas.json").read_text())
    layer5_atlas = json.loads((EXTRACTED_DIR / "layer5_personalized_patient_and_crispr_atlas.json").read_text())
    layer1_ceg_atlas = json.loads((EXTRACTED_DIR / "layer1_context_evidence_graph_atlas.json").read_text(encoding="utf-8"))

    manifest = {
        "schema_version": "openislet_release_manifest_v0.8.0",
        "release_date": "2026-11-01",
        "release_stage": "v0.8.0 Complete 5-Layer Stack & Provenance Baseline (2026-11-01 Public Release)",
        "publication_freeze": {
            "status": "UNFROZEN_PRIOR_ANCHORED_BASELINE_v0.8.0",
            "outward_rankings_frozen": False,
            "retired_chassis": ["Chassis C", "Chassis D"],
            "pilot_experiment_gate": "HIP-core 36-run two-stage bridged, replicated & lead-chassis-confirmatory fractional-factorial protocol specified (requires biological replicate blocking and human sign-off before execution)",
            "mcp_mode": "MODE_A_READ_AND_IIP_PROPOSAL_QUEUE_OPEN_V0_8_0",
        },
        "variance_decomposition_and_pareto_terminology_note": {
            "pooled_pediatric_gate_logit_variance_scope": (
                "The 96.79% structural / 3.06% assumption-evidence covariance / 0.15% empirical gene-signal variance shares "
                "(and 99.8488% structural share of component variance sum) describe 12,960 pooled pediatric gate logits "
                "(2,160 designs x 6 pediatric gates), NOT composite-score variance."
            ),
            "edit_count_table_vs_nondominated_pareto_frontier": (
                "The 8-row edit-count table (pareto_frontier_by_edit_count_K in islet1_combinatorial_pareto_and_ladder_v0.8.0.json) "
                "reports the best design at each exact edit count K = 0..7; K = 0..4 form the 5-point non-dominated Pareto frontier, "
                "while K = 5..7 are dominated by K = 4."
            ),
        },
        "preprint_publication_deduplication_registry": {
            "40832357": {
                "preprint_doi": "10.1101/2025.08.12.669867",
                "superseded_by_pmid": "41202120",
                "published_doi": "10.1126/sciadv.adx9755",
                "source_text_type": "Preprint_Superseded_By_Peer_Reviewed",
                "quantitative_evidence_weight": 0.0,
            }
        },
        "auxiliary_non_ring1_dossiers_registry": {
            "note": "Four auxiliary dossiers cached in data/dossiers/ are outside the 642-study Ring-1 primary experimental extracted corpus (642 + 4 = 646 total dossiers):",
            "26649319": "Akter et al. 2016 (Journal of Diabetes Research, doi:10.1155/2016/2798269): 'Islet Amyloid Polypeptide: Structure, Function, and Pathophysiology.' (Ring-2 review dossier retained in local dossier cache; not part of 642-study Ring-1 extracted queue)",
            "35650334": "Nekoua, Alidjinou & Hober 2022 (Nature Reviews Endocrinology, doi:10.1038/s41574-022-00688-1): 'Persistent coxsackievirus B infection and pathogenesis of type 1 diabetes mellitus.' (Ring-2 review dossier retained in local dossier cache; not part of 642-study Ring-1 extracted queue)",
            "40598585": "Beese et al. 2025 (PMC12211534, CC BY 4.0): secondary summary / correspondence record retained in CEG (PMID:40598585, record_class=correspondence_or_secondary_summary) and local dossier cache only; excluded from primary 642-study Ring-1 experimental queue under IIP-0042",
            "41201433": "Jetley et al. 2026 (Cytotherapy, doi:10.1016/j.jcyt.2025.10.001): 'A differentiated and durable allogeneic strategy applicable to cell therapies.' (CEG M0051 dossier retained in local dossier cache; deferred from 642-study Ring-1 queue under IIP-0035 prespecified Option-2 cohort scope preserving the frozen Layer-1 Pareto baseline)",
        },
        "public_redistribution_allowlist_spec": {
            "policy_note": (
                "Separates the local research audit repository tree (which caches data/dossiers/*.json and frozen scenario-ranking JSONs locally for SHA-256 and character-offset verification) "
                "from the rights-aware public distribution package allowlist. Availability in PMC does not by itself grant bulk full-text redistribution rights "
                "for non-CC-BY articles; public export bundles exclude data/dossiers/*.json and frozen outward ranking files while retaining their SHA-256 verification digests in manifest.json, "
                "enforce a strict per-article aggregate verbatim quote ceiling (<=240 chars and <25% of abstract length) across all string fields for all studies lacking an explicit machine-verified CC-BY/CC0 license tag, "
                "and include all third-party database license notices (.licenses/*.txt), Layers 2-5 constructs/structures/atlases, and required raw queue/manifest inputs."
            ),
            "cc_by_4_0_license_scope": (
                "Applies strictly to OpenIslet-authored structured annotations, coded arms, polarity registries, effect sizes, character-span offsets, "
                "SHA-256 digests, and cross-study graphs; third-party verbatim quotes are carved out in LICENSE and redacted above the 240-char / <25% per-article cap "
                "for all studies without an explicit CC-BY/CC0 license tag in --export-public-bundle."
            ),
            "excerpt_ceiling_characters": 350,
            "non_oa_per_article_aggregate_verbatim_ceiling_characters": 240,
            "non_oa_per_article_max_abstract_share": 0.25,
            "excerpt_ceiling_legal_note": "350-character per-effect quote ceiling (and <=240-character / <25%-abstract per-article aggregate ceiling in public bundles) is an internal repository design limit for factual attribution, not a claim of a universal statutory copyright safe harbor.",
            "source_rights_and_redistribution_classification_summary": {
                "total_local_dossiers_indexed": len(dossier_files),
                "pmc_xml_parsed_dossiers_local_cache_only": n_ft_dossiers,
                "pubmed_abstract_and_metadata_only_dossiers": len(dossier_files) - n_ft_dossiers,
                "full_dossier_cache_redistribution_status": "LOCAL_AUDIT_CACHE_ONLY_EXCLUDED_FROM_PUBLIC_BUNDLE",
                "extracted_study_json_excerpt_policy": "Local audit tree: factual metadata + short verbatim evidence quotes (<=350 chars) + SHA-256 pointer to source dossier. Exported public bundle: all studies lacking a machine-verified CC-BY/CC0 license field are capped at <=240 aggregate verbatim chars (<25% of abstract) across all string fields with excess quotes replaced by [REDACTED_NON_OA_EXCERPT: see PMID + source_span + quote_sha256].",
            },
            "public_package_included_paths": [
                "LICENSE",
                "LICENSE-DATA",
                "CODE_OF_CONDUCT.md",
                "CONTRIBUTING.md",
                "SECURITY.md",
                ".gitignore",
                ".github/openislet-mark.svg",
                ".github/openislet-mark-dark.svg",
                ".github/ISSUE_TEMPLATE/config.yml",
                ".github/ISSUE_TEMPLATE/files-problem.yml",
                ".github/workflows/ci.yml",
                "requirements.txt",
                "pyproject.toml",
                ".licenses/*.txt",
                "ISLET-1-BLUEPRINT.md",
                "README.md",
                "manifest.json",
                "docs/*.md",
                "schemas/extraction_schema_v0.2.json",
                "scripts/*.py",
                "tests/*.py",
                "data/raw/ring1_platinum_queue.json",
                "data/raw/corpus_manifest_all_sources.jsonl",
                "data/raw/corpus_stratification_manifest.json",
                "data/raw/doc_citation_metadata_cache.json",
                "data/raw/layer2_genomic_and_jaspar_reference.json",
                "data/raw/layer5_dbsnp_clinvar_reference.json",
                "data/constructs/*.fasta",
                "data/extracted/*.json",
                "data/extracted/*.jsonl",
                "data/graveyard/idea_graveyard_v0.5.json",
                "data/omics/*.json",
                "data/protocols/*.json",
                "data/structures/*.cif",
                "data/structures/*.pdb",
                "data/structures/*.json",
                "data/structures/*.md",
                "data/structures/pymol/*",
            ],
            "local_research_cache_excluded_from_public_bundle": [
                "CLAUDE.md",
                "data/dossiers/*.json",
                "data/curated/*.json",
                "docs/OPENISLET-2026-2030-MASTER-TIMELINE.md",
                "docs/PROJECT-DECISIONS-LOG.md",
                "data/raw/alphagenome_avi_3118_snvs_full_archive.json",
                "data/raw/alphagenome_avi_26_seed_anchors.json",
                "data/raw/alphagenome_avi_live_receipt_2026_10_28.json",
                "data/raw/private_export_guard_patterns.json",
                "data/extracted/islet1_candidate_stack_rankings.json",
                "data/extracted/islet1_stack_ranking_v0.5.json",
            ],
        },
        "counts": {
            "corpus_manifest_rows": sum(
                1
                for _ in (RAW_DIR / "corpus_manifest_all_sources.jsonl").open(
                    encoding="utf-8"
                )
            ),
            "ring1_dossiers_total": len(studies),
            "dossiers_cache_total_including_auxiliary": len(dossier_files),
            "auxiliary_non_ring1_dossiers_total": len(dossier_files) - len(studies),
            "extracted_studies_total": len(studies),
            "extracted_arms_total": sum(len(s.get("arms", [])) for s in studies),
            "extracted_atomic_effects_total": n_effects,
            "ceg_screened_records_total": layer1_ceg_atlas["summary"]["screened_candidate_records_total"],
            "ceg_candidates_advanced_total": layer1_ceg_atlas["summary"]["candidates_advanced_total"],
            "ceg_studies_total": layer1_ceg_atlas["summary"]["ceg_records_total"],
            "ceg_empirical_primary_studies_total": layer1_ceg_atlas["summary"]["primary_empirical_studies_extracted"],
            "ceg_trial_registry_protocols_total": layer1_ceg_atlas["summary"]["trial_registry_protocols_in_ceg"],
            "ceg_regulatory_or_guidance_records_total": layer1_ceg_atlas["summary"]["regulatory_or_guidance_records_in_ceg"],
            "ceg_computational_models_total": layer1_ceg_atlas["summary"]["computational_models_in_ceg"],
            "ceg_correspondence_secondary_total": layer1_ceg_atlas["summary"]["correspondence_or_secondary_records_in_ceg"],