docs/IIP_DRAFT_D_CELLGEMMA_BLUEPRINT_GUARDRAILS_AND_HIPCORE_AUDIT.md
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/docs/IIP_DRAFT_D_CELLGEMMA_BLUEPRINT_GUARDRAILS_AND_HIPCORE_AUDIT.md · SHA-256: bb3039b1e3675b8b…
## 1. Four-Layer Provenance & Independent Audit Contract | Audit Layer | Exact Scope & What Each Verification Mode Does / Does NOT Do | How Anyone WITHOUT CellGemma / GPU Can Verify It | | :--- | :--- | :--- | | **Layer 1: Pure-CPU Frozen Arithmetic & Integrity** | **Default portable mode (6 runtime inputs; standalone distribution requires full Apache-2.0 text per §4(a)):** deterministically verifies strict JSON/nonfinite safety, payload & file SHA-256 pins, embedded **31-file** manifest syntax (external raw bytes are NOT read), exact panel-gene-to-mean `S1`/`S2` & `n_up`/`n_down` arithmetic on `120/139` full-vector profiles (`6,263` embedded 4-decimal NPZ entries) + **`S1`/`S2` residual accounting (NOT recovery of omitted genes)** and composite arithmetic on `19/139` thresholded raw-JSON profiles (`70/70` panels [`19/19` profiles] flagged unverifiable below `0.05`; nonzero `S1` residual `> 1e-6` in `46/70` panels [`17/19` profiles]; nonzero `S2` residual in `70/70` panels [`19/19` profiles]), **track-specific falsifying Step-0 `G1` checks** (`Track 1 >= 0.25/0.25`; `Track 2 >= 0.15/0.20`; `3x1` vs `5x3`) & **embedded per-file generation-cap sums** (`142/147`, `272/351`, `36` unknown), all `23/23` retrospective concordance scalars in Draft C, all `36` core + `40` `omega` + `24` Design B discount `2^20` rows, exact `GY-0xx`/`OFFGRID_GUARD` pairs, Draft D §6 `+0.00 percentage points` live & `+0.00 pp` prospective disposition + BOTH canonical `BPR-05` bounds (`64.61%`, `67.25%`), promoted raw scalars (`PVR` resting `-0.466`, `TNFRSF1A` stressed `-0.227`), **`60/60` unique PMID body/Section-7 parity** plus **`9` curated `claim_to_source_map` boundary records (`33` unique PMIDs)** body/locator resolution, and **fixed host-independent portable preflight hygiene** across all 6 inputs (identical results regardless of reader account name; canonical OpenIslet release guard `check-science-export.py` remains authoritative at submission; pair with a trusted detached manifest or canonical source for full draft-byte integrity). **Local-source mode (`--verify-local-sources`):** scoped explicitly to the **31 local files listed in `source_file_sha256_manifest`** (rehashes exact bytes/SHA-256 on disk, incl. Track-1/Track-2 truth NPZs & summaries, locked benchmark plan [hash only], scripts, builder, and raw results) plus **60/60 dated NLM snapshot parity** (model weights/config remain pinned to HF; raw NPZ-to-receipt numerical re-extraction and raw sample recounting remain independent external audits). | Run `PYTHONDONTWRITEBYTECODE=1 python3 -W error -B verify_cellgemma_islet_v0_1.py` (and `python3 -W error -O -B`; pure Python stdlib, `< 1s`, zero GPU). Add `--verify-local-sources` in a full local checkout to verify all 31 listed file digests and 60/60 dated NLM snapshot fields. | | **Layer 2: Preregistered Step-0 Hard-Stop Reconciliation, Generation-Cap Limits & Repeat Inference (`cellgemma_e4b_in_silico_prior`)** | **Preregistered Hard-Stop Disclosure (`STEP0_PREREGISTERED_BENCHMARK_PLAN.md:144–167`, pinned by SHA-256 in the 31-file manifest):** Falsifying necessary `G1` conditions failed on **BOTH** tracks (Track 1 required `r >= 0.25` & `norm_recovery >= 0.25`, yet post-cutoff `3'-poly-A GSE254985 D20276` beta `CM` yielded `0.1266`/`0.1271` [< `B3a 0.284`] and 6-condition Flex beta yielded `0.0627`/`0.0645`; Track 2 required `r >= 0.15` & `norm_recovery >= 0.20`, yet runtime-filtered 8-target `RQC` yielded `r = 0.142525 < 0.15` despite `norm_recovery = 0.22765`; and both Step-0 JSONs executed **`3` input pseudobulks × `1` stochastic draw [`3` samples]** vs locked **`5 × 3` [`15`]**). The locked plan triggered a **hard stop with no superseding preregistration issued**; Phase 1 outputs are strictly **retrospective exploratory priors**, NOT cleared by preregistration. **Generation-Cap & Summary-Truncation Limits:** **`142/147` Step-0 runs hit `4,096` tokens** (`top15_up/down`) and **`272/351` Phase-1 runs with retained token counts hit `3,072` tokens** (`82/96` S1, `104/150` S2, `74/93` S3 [`top12_up/down`], `12/12` follow-up [`top10_up/dn`]), while **`36` runs** (`phase1_pure_ec_and_nk_verify.json`) have **unknown stopping reasons** and no per-draw arrays; cap-hit outputs entered scoring (`run_step0_mlx.py:637–659`). Pure-P5 `IFNG` is a small `14` vs `26` cell exploratory microbenchmark (`0` FDR-sig genes, `R4 ROC-AUC S2 = 0.919 / r = +0.1619` vs `R1 0.663 / r = +0.1166 < B3a 0.15`); beta-cell ranks use single donor `D20276` (`T = 0.7`, `n = 2–3` draws, no stochastic uncertainty estimate). | Regenerating raw inference requires `google/cellgemma-e4b` (`15.61 GB`, `Apache-2.0`, HF commit `6212145e0131d3744171739ea5232afc6aaa7c76`) plus the pinned local scripts (`run_step0_mlx.py`, `run_phase1_blueprint_discovery.py`) and processed inputs hashed in `source_file_sha256_manifest` on Apple Silicon / CUDA GPU. Saved arrays do NOT retain full raw rollouts. | | **Layer 3: Prospective Wet-Lab Exploratory Pilots (Not Yet Executed)** | Wet-lab pilots test **biological hypotheses** (not CellGemma's numerical outputs): descriptive single-plate matched-handling `24-h` `T3` isolation pilot on a declared `Balboa 2022` `ZM447439` regimen (strictly distinct from adoption authority; `Check D-1`), resting `SC-beta` gating if any fenced challenger is revisited (`Check D-2`), and separated unedited + edited exploratory `iEC` `F3` siRNA pilot (`Check D-3`; `C3` left explicitly untested). | Strictly precautionary `WARN` guardrails & exploratory pilot checks (`+0.00 pp` live & prospective). | | **Layer 4: Independent Literature Verification** | Dated NLM/NCBI PubMed snapshot (`2026-12-02T16:04:39Z`): 23 live-retrieved PubMed records (including `Dirks et al. 1999`, `PMID:10614862` and primary human islet Chandler-loop method precedent `Yao et al. 2021`, `PMID:34498509`; zero preprints, zero retracted in snapshot; untruncated upstream titles [NBSP normalized to ASCII space, e.g., `PMID:28319612`; absent DOI represented as JSON `null` on `PMID:9489946`], exact DOIs, `pubtypes_ncbi`, normalized `publication_type`, and curated `claim_to_source_map` boundary locators pinned). | Read all 23 PubMed records directly (Section 7). Portable verification checks 60/60 body/Section-7 parity + 9 curated claim records (33 unique PMIDs) for locator/body presence; semantic full-text fidelity and live retraction API queries remain human-reviewed checks. | ---