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…

    )
    studies = [json.loads(p.read_text(encoding="utf-8")) for p in study_files]

    # Materialize producer exports through the same function used by extraction.
    from study_artifact_exports import write_study_exports
    _require_generation_lease()
    dossiers_jsonl, effects_jsonl, n_effects = write_study_exports(ROOT, studies,rollback_journal=_GENERATION_JOURNAL.get())

    # 3. Synchronize data/extracted/islet1_stack_ranking_v0.5.json
    canonical_ranking = EXTRACTED_DIR / "islet1_candidate_stack_rankings.json"
    brief_ranking = EXTRACTED_DIR / "islet1_stack_ranking_v0.5.json"
    ranking_payload = json.loads(canonical_ranking.read_text(encoding="utf-8"))
    ranking_payload["publication_freeze_status"] = {
        "outward_rankings_frozen": False,
        "status": "UNFROZEN_PRIOR_ANCHORED_BASELINE_v0.8.0",
        "classification": "PRIOR_ANCHORED_SCENARIO_OUTPUTS",
        "retired_chassis_pending_definition": ["Chassis C", "Chassis D"],
        "unfreeze_gate": "Explicit human approval from Kev after P0-1..P0-8 pass (UNFROZEN in v0.8.0 per DEC-003; precomputed ranking JSON caches remain excluded from public zip bundle allowlist while live rank_islet1_stacks.py is shipped)",
    }
    _require_generation_lease()
    ranking_bytes=(json.dumps(ranking_payload,indent=2,ensure_ascii=False,allow_nan=False)+'\n').encode('utf-8')
    public_pareto_path = EXTRACTED_DIR / "islet1_combinatorial_pareto_and_ladder_v0.8.0.json"
    public_pareto_bytes = (
        json.dumps(_build_public_combinatorial_pareto_and_ladder(ranking_payload), indent=2, ensure_ascii=False, allow_nan=False) + "\n"
    ).encode("utf-8")
    _publish_generation_artifacts(
        {canonical_ranking: ranking_bytes, brief_ranking: ranking_bytes, public_pareto_path: public_pareto_bytes},
        EXTRACTED_DIR / '.ranking-publication.lock',
    )

    # 4. Build root manifest.json (Layers 1-5 and Provenance Baseline)
    tracked_artifacts = [
        "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/alphafold_database_fetch_and_analyze_LICENSE.txt",
        ".licenses/alphagenome_single_variant_analysis_LICENSE.txt",
        ".licenses/clinical_trials_database_LICENSE.txt",
        ".licenses/clinvar_database_LICENSE.txt",
        ".licenses/dbsnp_database_LICENSE.txt",
        ".licenses/encode_ccres_database_LICENSE.txt",
        ".licenses/ensembl_database_LICENSE.txt",
        ".licenses/foldseek_structural_search_LICENSE.txt",
        ".licenses/gnomad_database_LICENSE.txt",
        ".licenses/gtex_database_LICENSE.txt",
        ".licenses/human_protein_atlas_database_LICENSE.txt",
        ".licenses/jaspar_database_LICENSE.txt",
        ".licenses/literature_search_europepmc_LICENSE.txt",
        ".licenses/opentargets_database_LICENSE.txt",
        ".licenses/pdb_database_LICENSE.txt",
        ".licenses/pubmed_database_LICENSE.txt",
        ".licenses/pymol_LICENSE.txt",
        ".licenses/ucsc_conservation_and_tfbs_LICENSE.txt",
        ".licenses/uniprot_database_LICENSE.txt",
        "ISLET-1-BLUEPRINT.md",
        "README.md",
        "docs/ISLET-1-DERIVATIONS-AND-AUDIT-TABLES.md",
        "docs/ISLET-1-MASTER-SPEC-v0.1.md",
        "docs/ISLET-1-SYNTHESIS-REPORT-v0.4.md",
        "docs/ISLET-1-CANDIDATE-BLUEPRINTS-AND-OPTIMIZER-v0.2.md",
        "docs/PROJECT-ISLET-1-RING1-DISCOVERY-ATLAS-AND-STRATEGY.md",
        "docs/PROJECT-DECISIONS-LOG.md",
        "docs/OPENISLET-2026-2030-MASTER-TIMELINE.md",
        "docs/STAGE-0-EXECUTION-PLAYBOOK.md",
        "docs/SERPINB9-REDOX-AND-SWITCH-QUALIFICATION-NOTE.md",
        "docs/CD47-DENSITY-CEILING-AND-HYPOXIC-TSP1-QUALIFICATION-NOTE.md",
        "docs/TNFA-IFNG-INTRINSIC-APOPTOSIS-QUALIFICATION-NOTE.md",
        "docs/PREDIFF-HYPOXIA-PRIMING-QUALIFICATION-NOTE.md",
        "docs/GATE-28-ABX-CD64T-IL1RN-AND-H1-PROTOCOL.md",
        "docs/GATE-30-PORTFOLIO-AND-TRACKB-CONTINGENCY-PROTOCOL.md",
        "docs/GATE-0V-WHOLEGRAFT-PROTOCOL.md",
        "docs/FOUNDRY-V1-3-CLEANROOM-BIOLOGICS-PROTOCOL.md",
        "docs/GATE-31-CAO2-BEAD-HALFLIFE-BARRIER-COUPLED-PROTOCOL.md",
        "docs/GATE-32-ISLET-SHIELD-EPITOPE-COVERAGE-AND-DEBRIS-RECALL-PROTOCOL.md",
        "docs/GATE-33-HTMPK-AZT-CLINICAL-PK-AND-CLONOGENIC-PROTOCOL.md",
        "data/raw/corpus_manifest_all_sources.jsonl",
        "data/raw/ring1_platinum_queue.json",
        "data/raw/corpus_stratification_manifest.json",
        "data/raw/doc_citation_metadata_cache.json",
        "data/raw/layer2_genomic_and_jaspar_reference.json",
        "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/layer5_dbsnp_clinvar_reference.json",
        "data/constructs/islet1_scenario_a_constructs_v0.7.0.fasta",
        "data/constructs/islet1_locus1_s10_modeb_comparators_v0.8.0.fasta",
        "data/constructs/islet1_locus2_ciita_modeb_comparators_v0.8.0.fasta",
        "data/constructs/islet1_locus3_multimir_modeb_comparators_v0.8.0.fasta",
        "data/constructs/islet1_design_y_wildcard_comparators_v0.8.0.fasta",
        "data/constructs/islet1_design_y_fullstack_v2_v0.8.0.fasta",
        "data/constructs/islet1_d1b_auto_v2_v0.8.0.fasta",
        "data/constructs/islet1_abx_cd64t_il1rn_modeb_v0.8.0.fasta",
        "data/constructs/islet1_design_b_complete_constructs_v0.8.0.fasta",
        "data/constructs/nm_021999_5_archival_mrna.fasta",
        "data/constructs/openislet_cleanroom_v1_3_all_leads.fasta",
        "data/constructs/islet_shield_comp2_comparators_v1_3.fasta",
        "data/graveyard/idea_graveyard_v0.5.json",
        "data/omics/target_prior_table.json",
        "data/omics/t1d_associated_targets_top100.json",
        "data/omics/t1d_disease_search.json",
        "data/extracted/cross_study_discovery_graph.json",
        "data/extracted/context_evidence_graph_v1.json",
        "data/extracted/layer1_context_evidence_graph_atlas.json",
        "data/extracted/islet1_candidate_stack_rankings.json",
        "data/extracted/islet1_stack_ranking_v0.5.json",
        "data/extracted/islet1_combinatorial_pareto_and_ladder_v0.8.0.json",
        "data/extracted/islet1_multiparadigm_portfolio_v0.8.0.json",
        "data/extracted/islet1_5arm_autologous_portfolio_v0.8.0.json",
        "data/extracted/ring1_study_dossiers_v0.5.jsonl",
        "data/extracted/ring1_atomic_effects_v0.5.jsonl",
        "data/extracted/layer2_regulatory_and_perturbation_atlas.json",
        "data/extracted/layer3_structural_verification_atlas.json",
        "data/extracted/layer4_tissue_and_metabolic_twin_atlas.json",
        "data/extracted/layer5_personalized_patient_and_crispr_atlas.json",
        "data/extracted/omics_baseline_summary.json",
        "data/extracted/wetlab_bayesian_posterior_calibration_v0.8.0.json",
        "data/extracted/wetlab_bayesian_posterior_calibration.json",
        "data/protocols/hip_core_fractional_factorial_v0.6.2.json",
        "data/structures/AF-P10144-F1-metadata.json",
        "data/structures/AF-P10144-F1-model_v6.cif",
        "data/structures/AF-P10144-F1-predicted_aligned_error_v6.json",
        "data/structures/AF-P50453-F1-metadata.json",
        "data/structures/AF-P50453-F1-model_v6.cif",
        "data/structures/AF-P50453-F1-predicted_aligned_error_v6.json",
        "data/structures/1EFX.pdb",
        "data/structures/1IM9.pdb",
        "data/structures/2WII.pdb",
        "data/structures/5O32.pdb",
        "data/structures/pdb_00001bl4.cif",
        "data/structures/pdb_00001iau.cif",
        "data/structures/pdb_00001jxq.cif",
        "data/structures/pdb_00001mhe.cif",
        "data/structures/pdb_00001nw9.cif",
        "data/structures/pdb_00002jjs.cif",
        "data/structures/pdb_00003bze.cif",
        "data/structures/pdb_00003cdg.cif",
        "data/structures/pdb_00004cmm.cif",
        "data/structures/pdb_00004kjy.cif",
        "data/structures/pdb_00004zqk.cif",
        "data/structures/pdb_metadata.json",
        "data/structures/pymol/layer3_hlae_cd94_nkg2a_3cdg.png",
        "data/structures/pymol/openislet_layer3_all_complexes_v0.7.0.pse",
        "data/structures/serpinb9_foldseek_results.md",
        "schemas/extraction_schema_v0.2.json",
        "scripts/study_artifact_exports.py",
        "scripts/engineering_priors.py",
        "scripts/product_contract.py",
        "scripts/public_excerpt_policy.py",
        "scripts/wetlab_contract.py",
        "scripts/render_documentation.py",
        "data/protocols/islet1_product_definitions_v0.8.0.json",
        "data/protocols/wetlab_endpoint_contract_v0.8.0.json",
        "data/protocols/stage0_decision_tree_v1.json",
        "data/protocols/iip0041_abx_cd64t_il1rn_side_contract_v0.8.0.json",
        "data/protocols/iip0042_portfolio_and_trackb_side_contract_v0.8.0.json",
        "data/protocols/iip0044_foundry_v1_3_biologics_side_contract_v0.8.0.json",
        "data/protocols/iip0045_cao2_coupled_gate31_side_contract_v0.8.0.json",
        "data/protocols/iip0050_islet_shield_coverage_and_debris_gate_side_contract_v0.8.0.json",
        "data/protocols/iip0051_htmpk_azt_switch_gate33_side_contract_v0.8.0.json",
        "data/extracted/documentation_facts_v0.8.0.json",
        "data/extracted/iip0033_bilayer_and_respirometry_verification_v0.8.0.json",
        "data/extracted/iip0034_planar_and_portfolio_verification_v0.8.0.json",
        "data/extracted/iip0035_d1b_auto_and_portfolio_verification_v0.8.0.json",
        "data/extracted/iip0041_clinical_h1_cd64t_siglec_verification_v0.8.0.json",
        "data/extracted/iip0042_master_multilayer_portfolio_crosswalk_v0.8.0.json",
        "data/extracted/iip0043_wholegraft_gate0v_and_calibration_v0.8.0.json",
        "data/extracted/iip0043_composite_release_evaluator_v0.8.0.json",
        "data/extracted/iip0044_tier1_metrics_cleanroom_summary_v0.8.0.json",
        "data/extracted/iip0044_foundry_v1_3_biologics_verification_v0.8.0.json",
        "data/extracted/iip0045_cao2_coupled_gate31_verification_v0.8.0.json",
        "data/extracted/iip0050_islet_shield_coverage_verification_v0.8.0.json",
        "data/extracted/iip0051_htmpk_azt_switch_verification_v0.8.0.json",
        "tests/test_preastra_layer1.py",
        "tests/test_preastra_molecular.py",
        "tests/test_preastra_physiology_compiler.py",
        "tests/test_preastra_root.py",
        "tests/test_master_molecular_validation.py",
        "tests/test_master_physiology_audit.py",
        "tests/test_round2_layer1.py",
        "tests/test_round2_molecular.py",
        "tests/test_round2_physiology.py",
        "tests/test_round2_root.py",
        "tests/test_round2_astra_root.py",
        "tests/test_round2_astra_layer1.py",
        "tests/test_round2_astra_molecular.py",
        "tests/test_round2_astra_physiology.py",
        "scripts/build_context_evidence_graph.py",
        "scripts/build_cross_study_graph.py",
        "scripts/build_study_dossiers.py",
        "scripts/extract_ring1_corpus.py",
        "scripts/generate_release_manifest.py",
        "scripts/harvest_corpus.py",
        "scripts/identify_and_stratify_corpus.py",
        "scripts/ingest_wetlab_results.py",
        "scripts/rank_islet1_stacks.py",
        "scripts/run_layer2_perturbation_and_regulatory_plane.py",
        "scripts/run_layer3_structural_binder_plane.py",
        "scripts/run_layer4_tissue_and_metabolic_twin.py",
        "scripts/run_layer5_personalized_patient_compiler.py",
        "scripts/summarize_omics_baseline.py",
        "scripts/verify_iip0033_bilayer_and_resp1.py",
        "scripts/verify_iip0034_planar_and_portfolio.py",
        "scripts/verify_iip0035_d1b_auto_and_portfolio.py",
        "scripts/verify_iip0041_clinical_h1_cd64t_siglec.py",
        "scripts/verify_iip0042_master_multilayer_portfolio_crosswalk.py",
        "scripts/verify_iip0043_wholegraft_gate0v_and_calibration.py",
        "scripts/verify_iip0044_foundry_v1_3_biologics.py",
        "scripts/verify_iip0045_cao2_coupled_gate31.py",
        "scripts/verify_iip0050_islet_shield_coverage_and_debris_gate.py",
        "scripts/verify_iip0051_htmpk_azt_switch_gate.py",
        "scripts/evaluate_gate0v_composite_release.py",
        "tests/test_adversarial_acceptance.py",
        "tests/test_citations_resolve.py",
        "tests/test_context_evidence_graph.py",
        "tests/test_design_algebra_exact.py",
        "tests/test_layer2_and_layer3_planes.py",
        "tests/test_layer4_and_layer5_planes.py",
        "tests/test_iip0033_bilayer_respirometry.py",
        "tests/test_iip0034_design_y_and_route3p.py",
        "tests/test_iip0035_d1b_auto_and_portfolio.py",
        "tests/test_iip0041_iip0042_iip0043_wave5_suite.py",
        "tests/test_iip0044_foundry_v1_3_biologics.py",
        "tests/test_iip0045_cao2_coupled_gate31.py",
        "tests/test_iip0046_fcmr_proliferation_and_ceg_fixes.py",
        "tests/test_iip0047_cd47_qualification_note.py",
        "tests/test_iip0048_gy009_promoter_scope.py",
        "tests/test_iip0049_tnfa_ifng_intrinsic_apoptosis.py",
        "tests/test_iip0050_islet_shield_coverage_and_debris_gate.py",
        "tests/test_iip0051_htmpk_azt_switch_gate.py",
        "tests/test_bpr_audit_remediations_dec133.py",
        "tests/test_iip0054_prediff_hypoxia_priming_note.py",
        "data/constructs/islet1_v090_repaired_safecell_minifh_d1bk2_v0.9.0.fasta",
        "data/constructs/openislet_foundry_v2_cuff_v2_and_shield_fc_v0.9.0.fasta",
        "data/extracted/iip0055_hygiene_safecell_minifh_orthogonality_v0.9.0.json",
        "data/extracted/iip0056_route4_omentum_and_exvivo_rest_v0.9.0.json",
        "data/extracted/iip0057_foundry_v2_shield_invvax_insl82i_cuffv2_v0.9.0.json",
        "data/extracted/iip0058_armz_ensc_isletsort_v2_and_2p24_portfolio_v0.9.0.json",
        "data/protocols/gate0v_governed_trust_config.json",
        "data/protocols/gate0v_installation_identity.json",
        "data/protocols/iip0055_gy033_entry.json",