Remove working-record documents
Browse files- docs/BIBLIOGRAPHY_VERIFICATION.md +0 -111
- docs/LANDSCAPE_SURVEY.md +0 -150
- docs/RESEARCH_PLAN.md +0 -270
- docs/RESEARCH_PLAN_V2.md +0 -345
- docs/RESEARCH_PLAN_V3.md +0 -140
- docs/RESULTS.md +0 -369
- docs/RESULTS_TABLES.md +0 -78
- docs/RESULTS_V2.md +0 -319
- docs/RESULTS_V3.md +0 -325
- docs/REVIEW_REPORT_POST_RESULTS.md +0 -161
- docs/REVIEW_REPORT_PRE_TRAINING.md +0 -121
- docs/REVIEW_REPORT_V2.md +0 -165
- docs/TRAINING_LOG.md +0 -298
docs/BIBLIOGRAPHY_VERIFICATION.md
DELETED
|
@@ -1,111 +0,0 @@
|
|
| 1 |
-
# Bibliography Verification - LEDGER
|
| 2 |
-
|
| 3 |
-
**Date**: 2026-08-17
|
| 4 |
-
**Protocol**: bibliography-verifier triple-pass
|
| 5 |
-
**Bibliography**: `paper/references.bib` - **15 entries** (12 Phase 0 + 3 added in v2), all DOI-bearing
|
| 6 |
-
**Reproduce**: `python -m src.utils.verify_refs paper/references.bib`
|
| 7 |
-
|
| 8 |
-
## Method
|
| 9 |
-
|
| 10 |
-
Verification is scripted rather than eyeballed. `src/utils/verify_refs.py` parses every
|
| 11 |
-
DOI-bearing entry from the `.bib` and resolves it against the **Crossref registry**, printing
|
| 12 |
-
the authoritative title, complete author list, venue, year, volume, issue and pages for
|
| 13 |
-
comparison against what is written. This makes the verification reproducible and re-runnable
|
| 14 |
-
after any edit, instead of a one-time manual read-through.
|
| 15 |
-
|
| 16 |
-
- **Pass 1 - Existence and title.** Every paper was first located by web search during the
|
| 17 |
-
landscape survey, and the exact title read from the publisher page or PMC full text.
|
| 18 |
-
- **Pass 2 - Authors, positionally.** Full author lists were taken from the primary source
|
| 19 |
-
(publisher/PMC), with particular attention to middle authors, then cross-checked against the
|
| 20 |
-
Crossref record.
|
| 21 |
-
- **Pass 3 - Full re-verification.** All **15** DOIs re-resolved against Crossref. **15/15
|
| 22 |
-
resolve; 0 unresolved; titles and author counts match the `.bib` in all 15 cases** (GBD by the
|
| 23 |
-
documented corporate-author convention).
|
| 24 |
-
|
| 25 |
-
## Corrections Made
|
| 26 |
-
|
| 27 |
-
### C1 - Missing middle author (Chong et al.) 🔴
|
| 28 |
-
`Chong2026Defence` was written with 10 authors. Crossref reports **11**: a corporate author,
|
| 29 |
-
**"Multi-Defence Consortium"**, sits at **position 10**, between Edze R. Westra and Kate S.
|
| 30 |
-
Baker. This is exactly the failure mode the triple-pass protocol exists to catch - a
|
| 31 |
-
non-personal middle author is easy to drop when transcribing from a rendered author list.
|
| 32 |
-
**Fixed**: added as `{Multi-Defence Consortium}` in braces to prevent BibTeX name-parsing.
|
| 33 |
-
|
| 34 |
-
### C2 - Wrong first author attributed from memory 🔴
|
| 35 |
-
While drafting, the *Science Advances* phage-resistance panel was informally referred to as
|
| 36 |
-
"Vasquez et al." No such author exists on that paper. The correct first author is **Ana Rita
|
| 37 |
-
Costa**, with Stan J. J. Brouns as senior author. Caught by fetching the primary source rather
|
| 38 |
-
than citing from recall. **No incorrect attribution reached the `.bib` or the paper.**
|
| 39 |
-
|
| 40 |
-
### C3 - Guessed PMC identifier resolved to an unrelated paper 🔴
|
| 41 |
-
An attempt to fetch the Liu/Botelho/Iranzo paper via a guessed PMC ID (`PMC11800629`) returned
|
| 42 |
-
a **cardiology paper on P2Y12 inhibitors in cardiogenic shock**. The correct identifier is
|
| 43 |
-
`PMC11874982`. Recorded because it illustrates why identifiers must be resolved rather than
|
| 44 |
-
inferred; a less careful pass could have attached a real DOI to the wrong reference.
|
| 45 |
-
|
| 46 |
-
## Deliberate Editorial Decisions
|
| 47 |
-
|
| 48 |
-
### D1 - Collaboration authorship (GBD 2021 AMR Collaborators)
|
| 49 |
-
Crossref lists **525 individual authors** for `GBD2024AMR`, beginning Mohsen Naghavi, Stein
|
| 50 |
-
Emil Vollset, Kevin S. Ikuta. The entry uses the corporate form
|
| 51 |
-
`{GBD 2021 Antimicrobial Resistance Collaborators}`, which is how *The Lancet* itself cites the
|
| 52 |
-
paper. The project rule forbidding "et al." exists to prevent silent truncation of author
|
| 53 |
-
lists; citing a 525-author collaboration by its registered collaboration name is standard
|
| 54 |
-
scholarly practice, not truncation, and is recorded here explicitly so the decision is visible
|
| 55 |
-
rather than implicit.
|
| 56 |
-
|
| 57 |
-
### D2 - PLSDB year
|
| 58 |
-
Crossref dates `Molano2025PLSDB` to 2024 (online publication) while the article appears in
|
| 59 |
-
volume 53, issue D1 - the 2025 *Nucleic Acids Research* Database Issue. The entry uses **2025**,
|
| 60 |
-
matching the issue and the database's own branding ("PLSDB 2025 update").
|
| 61 |
-
|
| 62 |
-
### D3 - Preprint status
|
| 63 |
-
`Lopatina2024Interpretable` is a bioRxiv preprint (Crossref type `posted-content`, group
|
| 64 |
-
"Microbiology") and is marked `note = {Preprint}`. It is cited as the closest methodological
|
| 65 |
-
neighbour; its preprint status is stated in the text.
|
| 66 |
-
|
| 67 |
-
## Claims Verified Beyond the Bibliography
|
| 68 |
-
|
| 69 |
-
The landscape survey independently verified 11 quantitative claims carried over from the
|
| 70 |
-
supplied research plan. Six confirmed, four corrected, one unsupported. The corrections that
|
| 71 |
-
affect the paper's framing:
|
| 72 |
-
|
| 73 |
-
| Claim | Outcome |
|
| 74 |
-
|---|---|
|
| 75 |
-
| "53 isolates × 40 phages panel, defense count did not correlate with resistance" | **Unsupported** - no such panel located. The two real panels report the *opposite* sign: Burke et al. (100 × 70, significant but weak, R² = 0.26) and Costa et al. (32 × 28, resistance scales with defense count). The paper uses the verified panels and the corrected direction. |
|
| 76 |
-
| RM target-density scale-dependence attributed to Liu/Botelho/Iranzo | **Mis-attributed** - that paper does not analyse RM target-site density at all. The correct source is Shaw, Rocha & MacLean (2023), which finds 6 bp target avoidance correlated with the taxonomic distribution of R-M systems and stronger in plasmid than core genes. Re-grounded. |
|
| 77 |
-
| *P. aeruginosa* CRISPR-Cas prevalence 49.9% | **Correction withdrawn - the original figure was right.** We flagged it as unverified because Chong et al. report only Type I-F (~33%). We then measured it ourselves on real annotated genomes: **49.2%** (n=120) and **53.5%** (n=785) carry any Class 1 CRISPR-Cas subtype. Our correction had over-read a subtype-specific figure as a total. See `LANDSCAPE_SURVEY.md` claim 7. |
|
| 78 |
-
| Mean 8.5 defense systems, 63 distinct systems | **Corrected** - Chong et al. report mean 7.5 and 130 distinct systems. |
|
| 79 |
-
| PLSDB 72,556 plasmids | **Corrected** - 72,360. |
|
| 80 |
-
|
| 81 |
-
## v2 additions (2026-08-17)
|
| 82 |
-
|
| 83 |
-
Three references were added for the expansion, each resolved against Crossref before use:
|
| 84 |
-
|
| 85 |
-
| Key | Source | Authors (bib / Crossref) |
|
| 86 |
-
|---|---|---|
|
| 87 |
-
| `Kuang2026Lateral` | *Science Advances* 12(4):eadx5749, 2026 - lateral transduction of defense genes | 9 / 9 |
|
| 88 |
-
| `Shu2026CRISPRregulates` | *Nature*, 2026 (advance online) - CRISIS, defense modules embedded in CRISPR-Cas loci | 17 / 17 |
|
| 89 |
-
| `Cinelli2025Omitted` | *Biometrika*, 2025 - omitted-variable-bias sensitivity analysis for IVs | 2 / 2 |
|
| 90 |
-
|
| 91 |
-
`Cinelli2025Omitted` is cited as **the framework we attempted and abandoned**, not as the method
|
| 92 |
-
used: the posited-offset construction it inspired was implemented and found invalid for this model
|
| 93 |
-
(the offset is absorbed by the other exposure parameters). The citation is retained because the
|
| 94 |
-
attempt and its failure are reported, and because the framework's underlying logic - that an
|
| 95 |
-
omitted path's strength is the right thing to reason about - is what led to estimating λ directly.
|
| 96 |
-
|
| 97 |
-
`Shu2026CRISPRregulates` has no volume, issue or page numbers at Crossref (advance online
|
| 98 |
-
publication) and is marked accordingly rather than having placeholder numbers invented.
|
| 99 |
-
|
| 100 |
-
## Final Status
|
| 101 |
-
|
| 102 |
-
| | |
|
| 103 |
-
|---|---|
|
| 104 |
-
| Entries | **15** |
|
| 105 |
-
| DOIs resolving against Crossref | **15 / 15** |
|
| 106 |
-
| Titles matching authoritative record | **15 / 15** |
|
| 107 |
-
| Author lists matching (count and order) | **15 / 15** (GBD by documented corporate-author convention) |
|
| 108 |
-
| Entries using "et al." | **0** |
|
| 109 |
-
| Entries missing a DOI | **0** |
|
| 110 |
-
| Corrections applied | 3 |
|
| 111 |
-
| Editorial decisions documented | 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/LANDSCAPE_SURVEY.md
DELETED
|
@@ -1,150 +0,0 @@
|
|
| 1 |
-
# Landscape Survey: Defense Systems, Exposure, and Horizontal Gene Transfer
|
| 2 |
-
|
| 3 |
-
**Project**: LEDGER - Latent Exposure Deconfounding for Gene-Element Receptivity
|
| 4 |
-
**Date**: 2026-08-16
|
| 5 |
-
**Purpose**: Verify the load-bearing empirical claims of the user-supplied research plan, establish
|
| 6 |
-
the citation backbone, and position LEDGER against the closest prior work.
|
| 7 |
-
|
| 8 |
-
**Method**: Every quantitative claim in the supplied plan was independently web-searched and, where
|
| 9 |
-
possible, verified against the primary source (publisher page, PMC full text, or PubMed record).
|
| 10 |
-
Claims are marked ✅ CONFIRMED, ⚠️ CORRECTED, or ❌ UNSUPPORTED. Corrections propagate into
|
| 11 |
-
`RESEARCH_PLAN.md`.
|
| 12 |
-
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
## 1. Verification Ledger
|
| 16 |
-
|
| 17 |
-
| # | Claim in supplied plan | Status | Verified value / source |
|
| 18 |
-
|---|---|---|---|
|
| 19 |
-
| 1 | Liu, Botelho & Iranzo tested 7 defense systems vs MGE abundance across 197 species; effects "highly taxon and system dependent and in most cases not statistically significant" | ✅ CONFIRMED | Verbatim from abstract. 196 bacterial + 1 archaeal species. *Genome Research* 35(2):268-278, 2025. DOI 10.1101/gr.279300.124 |
|
| 20 |
-
| 2 | Defense systems are strongly linked with MGEs, coacquired and co-lost at fast rates, masking inhibition | ✅ CONFIRMED | >95% of defense acquisitions occur on branches where MGEs are also gained (random expectation 71%); >90% of losses coincide with MGE losses (random 63%); defense acquisition ~50× more likely on MGE-gain branches |
|
| 21 |
-
| 3 | Defense systems must persist a long time before showing a negative effect; short timescales give positive association | ✅ CONFIRMED | Lineage depth <10⁻⁵ subs/site → positive; >10⁻³ → negative |
|
| 22 |
-
| 4 | RM target-density effects visible at broad taxonomic scale but RM significantly less effective at species level - attributed to the same paper | ⚠️ **CORRECTED** | **Liu/Botelho/Iranzo do NOT analyze RM target-site density or avoidance at any scale. RM was treated categorically with no mechanistic investigation.** The target-avoidance literature is a separate lineage: Oliveira, Touchon & Rocha, *NAR* 42(16):10618-10631 (2014), and Oliveira et al., *NAR* 51(13):6806 (2023) on RM shaping plasmid distribution. **H2 must be re-grounded on these sources.** |
|
| 23 |
-
| 5 | Chong et al.: little known about which defense interactions are mechanistic vs co-localisations of convenience | ✅ CONFIRMED | Chong et al., *ISME Communications* 6(1):ycag130, 2026. They test co-localisation directly: associating pairs co-located in only 22% of cases, dissociating pairs 0.5% |
|
| 24 |
-
| 6 | Curated global collection of 2,940 *P. aeruginosa* genomes analysed for defense systems across niches | ✅ CONFIRMED | Chong et al. 2026. Non-CF mean 7.9 systems, CF mean 6.5 |
|
| 25 |
-
| 7 | *P. aeruginosa* CRISPR-Cas prevalence 49.9% | ✅ **VINDICATED BY OUR OWN MEASUREMENT** (correction withdrawn) | Initially marked "CORRECTED - not found in any primary source", because Chong et al. report only Type I-F (969/2,940 ≈ 33%). **We subsequently measured it directly.** Annotating real complete *P. aeruginosa* genomes with DefenseFinder 3.0.0 and counting any Class 1 CRISPR-Cas subtype (I-C, I-E, I-F) gives **49.2% of 120 genomes** carrying a system. The originally cited 49.9% is therefore essentially right for *total* CRISPR-Cas across subtypes; our correction had over-read a subtype-specific figure as a total. Recorded here rather than silently amended, because a survey that only ever corrects the source and never itself is not doing its job. Prevalence is still swept in simulation, which remains the right choice. |
|
| 26 |
-
| 8 | Mean 8.5 defense systems per genome, across 63 distinct mechanisms | ⚠️ **CORRECTED** | Chong et al.: mean **7.5** overall; **130** distinct defense systems detected (DefenseFinder-DB v1.2.2) |
|
| 27 |
-
| 9 | External test panel: 53 clinical MDR isolates × 40 phages spanning six phylogenetic groups, finding defense system count did NOT correlate with innate phage resistance | ❌ **UNSUPPORTED - no such panel located** | Two real panels found, **both reporting the opposite sign**: (a) Burke et al., *IJMS* 25(3):1424, 2024 - 100 isolates × 70 phages, 14 genera, significant *positive* correlation, p<0.0001, but **weak: R² = 0.2620**; (b) Costa et al., *Science Advances* 10(8):eadj0341, 2024 - 32 strains × 28 phages, 12 groups, resistance scales with defense count. **See §3 - this correction strengthens rather than weakens LEDGER's motivation.** |
|
| 28 |
-
| 10 | Nahant collection: 65,232 experimentally determined interactions | ✅ CONFIRMED | Nahant cross-infection matrix, co-occurring *Vibrio* and their viruses; 251 dsDNA viruses characterised (Kauffman et al., *Scientific Data* 5:180114, 2018) |
|
| 29 |
-
| 11 | PLSDB ~72,556 plasmids | ⚠️ minor | PLSDB 2025 hosts **72,360** entries. *NAR* 53(D1):D189 |
|
| 30 |
-
| 12 | Spacer acquisition ~1 in 10⁷ non-immune infected cells; higher in cells entering lysogeny | ✅ CONFIRMED | ~1 cell per 10⁷-10⁶ (*S. aureus* systems). Lysogeny enhancement: "Bacteria exploit viral dormancy to establish CRISPR-Cas immunity," *Cell Host & Microbe*, 2025. Priming substantially increases rates over naive acquisition |
|
| 31 |
-
| 13 | ~85% of predicted defense protein families uncharacterized from PLM applied to >32,000 genomes | ⏳ NOT YET VERIFIED | Deferred - affects only the low-rank channel's motivation, not the core identification argument |
|
| 32 |
-
|
| 33 |
-
**Score after the v2 real-data pass: 7 confirmed (one by our own measurement), 3 corrected,
|
| 34 |
-
1 unsupported, 1 minor, 1 deferred.** Claim 7 moved from "corrected" to "confirmed" once we
|
| 35 |
-
measured it ourselves - see the row above. Claim 9 (the 53x40 panel) remains unsupported.
|
| 36 |
-
|
| 37 |
-
---
|
| 38 |
-
|
| 39 |
-
## 2. Current Dominant Methods
|
| 40 |
-
|
| 41 |
-
**Phylogeny-aware co-occurrence regression.** The current standard, exemplified by Liu/Botelho/Iranzo
|
| 42 |
-
(2025): species-wise phylogenetic generalized linear mixed models (PGLMMs, Poisson) regressing MGE
|
| 43 |
-
counts on defense presence, with gene gain/loss rates from GLOOME and sister-clade Wilcoxon
|
| 44 |
-
comparisons. Strength: controls phylogeny properly. **Limitation: regresses observed presence, which
|
| 45 |
-
is the product of exposure and establishment.** This is precisely the estimand problem LEDGER targets.
|
| 46 |
-
|
| 47 |
-
**Co-occurrence network analysis.** Chong et al. (2026) use Coinfinder + Goldfinder for
|
| 48 |
-
phylogenetically-controlled association testing across 2,940 genomes, yielding 426 associations and
|
| 49 |
-
50 dissociations. Strength: large, curated, niche-annotated. Limitation: association ≠ mechanism, and
|
| 50 |
-
the authors say so explicitly.
|
| 51 |
-
|
| 52 |
-
**Composition-based host-range prediction.** Oligonucleotide composition distance between plasmid and
|
| 53 |
-
candidate host, leaning on amelioration. Breaks down for broad-host-range plasmids.
|
| 54 |
-
|
| 55 |
-
**Interpretable ML on experimental infection matrices.** See §3 - the closest prior work.
|
| 56 |
-
|
| 57 |
-
---
|
| 58 |
-
|
| 59 |
-
## 3. The Closest Prior Work, and Why LEDGER Is Still Novel
|
| 60 |
-
|
| 61 |
-
The most important discovery of this survey is **"Interpretable machine learning reveals a diverse
|
| 62 |
-
arsenal of anti-defenses in bacterial viruses"** (bioRxiv 2024, doi 10.1101/2024.06.14.598830). It
|
| 63 |
-
uses interpretable ML on diverse bacteria-virus infection data - including the Nahant matrix - to
|
| 64 |
-
identify defense/anti-defense genetic interactions, and **experimentally validated eight previously
|
| 65 |
-
unknown anti-defense proteins** counteracting AbiH, AbiU, Septu, DRT, CBASS, and Retron.
|
| 66 |
-
|
| 67 |
-
This is genuinely adjacent to LEDGER's sparse bilinear defense × anti-defense block, and the research
|
| 68 |
-
plan as supplied did not cite it. It must be cited and positioned against.
|
| 69 |
-
|
| 70 |
-
**Why LEDGER remains distinct - and the distinction is sharp:**
|
| 71 |
-
|
| 72 |
-
That work learns from **experimental cross-infection matrices, where exposure is guaranteed by
|
| 73 |
-
construction.** Every host-virus pair in a Nahant-style matrix was physically mixed in a well. There
|
| 74 |
-
is no exposure confound to solve, because the experimenter created the exposure. The method is
|
| 75 |
-
therefore unavailable for the ~10⁵-10⁶ sequenced genomes where no one ran an infection assay.
|
| 76 |
-
|
| 77 |
-
LEDGER's claim is the **observational analogue**: recovering the same class of compatibility
|
| 78 |
-
structure from genome co-occurrence data, where exposure is latent and confounded with phylogeny.
|
| 79 |
-
The CRISPR spacer channel is what makes that possible. Framed this way, the anti-defense ML paper
|
| 80 |
-
becomes LEDGER's **validation target rather than its competitor** - if LEDGER's observationally
|
| 81 |
-
estimated *g* recovers pairings that were experimentally confirmed there, that is E6 passing on
|
| 82 |
-
externally validated ground truth, which is stronger evidence than the plan originally scoped.
|
| 83 |
-
|
| 84 |
-
---
|
| 85 |
-
|
| 86 |
-
## 4. Known Open Problems
|
| 87 |
-
|
| 88 |
-
1. **The estimand problem.** Observed presence = exposure × establishment. Every comparative study
|
| 89 |
-
regresses on presence. Susceptibility is not separately identified. *No prior work located
|
| 90 |
-
attempts to separate these two terms from observational genomic data.*
|
| 91 |
-
2. **Linkage masking.** Defense systems ride on MGEs and are coacquired with them at ~50× baseline
|
| 92 |
-
rate, producing positive associations that mask inhibition (Iranzo).
|
| 93 |
-
3. **Mechanism vs. convenience.** Co-occurrence cannot distinguish mechanistic interaction from
|
| 94 |
-
co-localisation (Chong).
|
| 95 |
-
4. **Count is a weak predictor.** Even where defense count correlates with resistance, R² ≈ 0.26
|
| 96 |
-
(Burke). ~74% of variance is unexplained by counting systems. Compatibility is structural, not
|
| 97 |
-
scalar.
|
| 98 |
-
|
| 99 |
-
---
|
| 100 |
-
|
| 101 |
-
## 5. Standard Datasets & Benchmarks
|
| 102 |
-
|
| 103 |
-
| Resource | Scale | Role in LEDGER |
|
| 104 |
-
|---|---|---|
|
| 105 |
-
| *P. aeruginosa* curated global set (Chong et al.) | 2,940 genomes, niche-annotated | Primary host panel |
|
| 106 |
-
| PLSDB 2025 | 72,360 plasmids + metadata | Element catalogue |
|
| 107 |
-
| Nahant cross-infection matrix | 65,232 interactions | OOD generalization test (E3) |
|
| 108 |
-
| Burke et al. panel | 100 isolates × 70 phages | External experimental test (E3) - **replaces the unlocatable 53×40 panel** |
|
| 109 |
-
| Costa et al. panel | 32 strains × 28 phages | Second external test (E3) |
|
| 110 |
-
| DefenseFinder / PADLOC | 130 systems detected in *P. aeruginosa* | Susceptibility features |
|
| 111 |
-
| REBASE | enzyme → recognition sequence | RM motif mechanism features |
|
| 112 |
-
|
| 113 |
-
---
|
| 114 |
-
|
| 115 |
-
## 6. What Everyone Is Already Doing (AVOID)
|
| 116 |
-
|
| 117 |
-
- More co-occurrence association testing on larger genome sets with better phylogenetic control.
|
| 118 |
-
This is a crowded, well-executed space (Iranzo, Chong) and it does not address the estimand problem.
|
| 119 |
-
- Cataloguing new defense systems. Extremely crowded.
|
| 120 |
-
- Composition-based host-range prediction with a bigger model.
|
| 121 |
-
- Supervised infection-outcome prediction on experimental matrices - now occupied by the
|
| 122 |
-
interpretable-ML anti-defense work, with experimental validation attached.
|
| 123 |
-
|
| 124 |
-
## 7. Gaps Identified
|
| 125 |
-
|
| 126 |
-
- **Exposure is never modelled.** LEDGER's core contribution. The Y=0, S=1 cell - spacer present,
|
| 127 |
-
element absent, i.e. demonstrated encounter followed by non-establishment - is discarded by every
|
| 128 |
-
method surveyed. It is the only cell that directly observes rejection.
|
| 129 |
-
- **CRISPR arrays as an exposure instrument** appear unused for this purpose. Spacers are used for
|
| 130 |
-
host attribution and phage-host matching, never as a *record of encounter independent of outcome*.
|
| 131 |
-
- **The chromosomal-only restriction** is a targeted fix to the exact masking mechanism Iranzo
|
| 132 |
-
identified, and is well-supported by their finding that CRISPR-Cas is the least MGE-borne system
|
| 133 |
-
(10.0% vs 20.1% for all others) - so the instrument itself is the system least contaminated by the
|
| 134 |
-
confound. This is a stronger argument than the plan made for itself.
|
| 135 |
-
|
| 136 |
-
---
|
| 137 |
-
|
| 138 |
-
## 8. Consequences for the Research Plan
|
| 139 |
-
|
| 140 |
-
1. **H2 must be restated.** Its RM scale-dependence target does not exist in the cited paper.
|
| 141 |
-
Re-grounded on Oliveira/Touchon/Rocha target-avoidance work, or demoted to a soft threshold.
|
| 142 |
-
2. **E3's Pseudomonas panel is replaced** by Burke et al. (100×70) and Costa et al. (32×28), both
|
| 143 |
-
publicly described. The motivating claim inverts: defense count *does* correlate with resistance,
|
| 144 |
-
but weakly (R²=0.26). LEDGER's pitch becomes "counting systems explains a quarter of the variance;
|
| 145 |
-
a compatibility function should explain more" - which is more defensible and directly testable.
|
| 146 |
-
3. **CRISPR prevalence must be swept, not assumed.** The 49.9% figure is unverified; ~33% is the
|
| 147 |
-
verified Type I-F figure. Phase 0 must characterise recovery across a prevalence range spanning
|
| 148 |
-
both.
|
| 149 |
-
4. **The anti-defense ML paper must be cited**, positioned as the experimental-matrix counterpart,
|
| 150 |
-
and used as external ground truth for E6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESEARCH_PLAN.md
DELETED
|
@@ -1,270 +0,0 @@
|
|
| 1 |
-
# LEDGER: Latent Exposure Deconfounding for Gene-Element Receptivity
|
| 2 |
-
|
| 3 |
-
**Field**: Computational microbial genomics / horizontal gene transfer
|
| 4 |
-
**Constraints**: Data - public only, <50 GB | Compute - 2× A100 80GB (GPUs 1,3), multi-day
|
| 5 |
-
**Date**: 2026-08-16
|
| 6 |
-
**License**: MIT - Bryan Cheng, 2026
|
| 7 |
-
**Origin**: Research direction, hypotheses, and experimental design supplied by the user. This
|
| 8 |
-
document formalizes that plan, folds in corrections from `LANDSCAPE_SURVEY.md`, and adds the
|
| 9 |
-
quantitative thresholds required to drive autonomous execution.
|
| 10 |
-
|
| 11 |
-
---
|
| 12 |
-
|
| 13 |
-
## 0. Session Scope (explicit, so that no deliverable is silently narrowed)
|
| 14 |
-
|
| 15 |
-
The supplied plan is a 16-week project (§11). It cannot be executed end-to-end in one session. The
|
| 16 |
-
plan itself resolves the ordering: *"The single most important thing to do first is Phase 0.
|
| 17 |
-
Everything else depends on whether the exposure and susceptibility layers actually separate at
|
| 18 |
-
realistic spacer coverage."*
|
| 19 |
-
|
| 20 |
-
**Executed this session, to completion and to publication standard:**
|
| 21 |
-
- Phase 0 in full - generative simulator, estimator, baselines, identifiability curves, go/no-go.
|
| 22 |
-
- All four baselines (B1-B4) implemented and compared on simulated data where ground truth exists.
|
| 23 |
-
- Negative control E5 (within-lineage permutation).
|
| 24 |
-
- Figures, LaTeX paper, verified bibliography.
|
| 25 |
-
|
| 26 |
-
**Not executed this session, and reported as such rather than estimated:**
|
| 27 |
-
- Weeks 3-16: the real-genome annotation pipeline (DefenseFinder/PADLOC/CRISPRCasTyper/geNomad over
|
| 28 |
-
2,940 *P. aeruginosa* genomes), E2, E3, E4, E6, and the *E. coli* extension. These require tool
|
| 29 |
-
installation, database downloads, and multi-day CPU annotation runs beyond one session.
|
| 30 |
-
|
| 31 |
-
No number for an unexecuted stage will appear anywhere in this project. `[NOT RUN]` is used instead.
|
| 32 |
-
|
| 33 |
-
---
|
| 34 |
-
|
| 35 |
-
## 1. Abstract
|
| 36 |
-
|
| 37 |
-
When a mobile element is absent from a bacterial genome, that absence is ambiguous: the host may
|
| 38 |
-
never have encountered the element, or may have encountered and rejected it. Every comparative-genomics
|
| 39 |
-
study of transfer barriers regresses observed presence on host features, which estimates the *product*
|
| 40 |
-
of exposure and establishment; because exposure covaries with the same phylogeny that carries the
|
| 41 |
-
defense repertoire, susceptibility is not separately identified. We propose LEDGER, a three-component
|
| 42 |
-
latent-variable model that uses CRISPR spacers as a record of encounter observed independently of
|
| 43 |
-
outcome, thereby identifying a molecular susceptibility function. Phase 0 asks the only question that
|
| 44 |
-
matters first: under a generative simulator calibrated to reported CRISPR biology, can the exposure and
|
| 45 |
-
susceptibility layers be separated at realistic spacer coverage, and does the estimator recover a
|
| 46 |
-
planted susceptibility function where the standard phylogenetic-regression approach fails?
|
| 47 |
-
|
| 48 |
-
## 2. Background & Motivation
|
| 49 |
-
|
| 50 |
-
Liu, Botelho and Iranzo (*Genome Research* 2025) quantified associations between seven widespread
|
| 51 |
-
defense systems and MGE abundance across 196 bacterial and one archaeal species using phylogeny-aware
|
| 52 |
-
PGLMMs, and found the impact of defense systems on HGT to be highly taxon- and system-dependent and,
|
| 53 |
-
in most cases, not statistically significant. Their explanation is linkage: >95% of defense-system
|
| 54 |
-
acquisitions occur on branches where MGEs are simultaneously gained (random expectation 71%), and
|
| 55 |
-
defense acquisition is ~50× more likely on MGE-gain branches, so inhibition is masked by
|
| 56 |
-
coacquisition. Chong et al. (*ISME Communications* 2026), analysing 2,940 *P. aeruginosa* genomes,
|
| 57 |
-
state the residual problem directly: co-occurrence cannot separate mechanistic interaction from
|
| 58 |
-
co-localisation of convenience.
|
| 59 |
-
|
| 60 |
-
The consequence is that a *susceptibility function* - the probability that host H establishes element
|
| 61 |
-
E given that H met E - has never been estimated from observational data, because exposure has never
|
| 62 |
-
been observed. See `LANDSCAPE_SURVEY.md` for the full survey and for six corrections to figures in
|
| 63 |
-
the original plan draft.
|
| 64 |
-
|
| 65 |
-
## 3. Technical Approach
|
| 66 |
-
|
| 67 |
-
### 3.1 Overview
|
| 68 |
-
|
| 69 |
-
For host *i* and element *j* define three binary quantities:
|
| 70 |
-
|
| 71 |
-
- **Y(i,j)** - observed presence of element *j* in genome *i*
|
| 72 |
-
- **Z(i,j)** - *latent* exposure: whether *i* ever encountered *j*
|
| 73 |
-
- **S(i,j)** - observed spacer receipt: a spacer in *i* matching *j* at high identity with valid PAM
|
| 74 |
-
|
| 75 |
-
### 3.2 Model
|
| 76 |
-
|
| 77 |
-
Three coupled components:
|
| 78 |
-
|
| 79 |
-
**Exposure.** P(Z=1) = σ( f(collection year, country, isolation source, BioProject co-membership,
|
| 80 |
-
element prevalence in stratum, host lineage) )
|
| 81 |
-
|
| 82 |
-
**Establishment given exposure.**
|
| 83 |
-
P(Y=1 | Z=1) = σ( g(host defense features, element evasion features, compatibility features, lineage) )
|
| 84 |
-
P(Y=1 | Z=0) = 0
|
| 85 |
-
|
| 86 |
-
**Receipt detection.**
|
| 87 |
-
P(S=1 | Z=1) = ρ(host CRISPR type, array length, Y)
|
| 88 |
-
P(S=1 | Z=0) = ε (false-match rate, held near zero by strict matching)
|
| 89 |
-
|
| 90 |
-
Because Z is a single binary latent, the likelihood marginalizes **exactly** - no variational
|
| 91 |
-
approximation. The four observed cells:
|
| 92 |
-
|
| 93 |
-
| Cell | Probability | Meaning |
|
| 94 |
-
|---|---|---|
|
| 95 |
-
| Y=1, S=1 | π·θ·ρ₁ | exposed, established, receipt kept |
|
| 96 |
-
| Y=1, S=0 | π·θ·(1−ρ₁) | exposed, established, no receipt |
|
| 97 |
-
| Y=0, S=1 | π·(1−θ)·ρ₀ + (1−π)·ε | **exposed, rejected - the informative cell current methods discard** |
|
| 98 |
-
| Y=0, S=0 | π·(1−θ)·(1−ρ₀) + (1−π)·(1−ε) | mixture of never-exposed and exposed-then-rejected - the confound |
|
| 99 |
-
|
| 100 |
-
where π = P(Z=1), θ = P(Y=1|Z=1), and ρ_y = P(S=1|Z=1,Y=y).
|
| 101 |
-
|
| 102 |
-
Fit by direct gradient ascent on the marginal log-likelihood; EM as fallback if unstable.
|
| 103 |
-
|
| 104 |
-
### 3.3 Why this identifies θ
|
| 105 |
-
|
| 106 |
-
Without S, only P(Y=1) = π·θ is observed; any (π,θ) with equal product is observationally
|
| 107 |
-
equivalent, so θ is unidentified. Two things break the degeneracy:
|
| 108 |
-
|
| 109 |
-
1. **The receipt channel.** With ε≈0, S=1 ⟹ Z=1. The S=1 subsample is a *known-exposed* subsample in
|
| 110 |
-
which θ is directly estimable: P(Y=1|S=1) = θρ₁ / (θρ₁ + (1−θ)ρ₀), which reduces to exactly θ when
|
| 111 |
-
ρ₁=ρ₀ and is corrected by the detection model otherwise.
|
| 112 |
-
2. **Exclusion restrictions.** Exposure-only covariates (year, country, isolation source, project,
|
| 113 |
-
local prevalence) enter *f* but not *g* - a plasmid's interaction with a restriction enzyme does
|
| 114 |
-
not depend on which hospital the isolate came from. Susceptibility-only covariates (chromosomal
|
| 115 |
-
defense content, cognate motif counts) enter *g* but not *f*.
|
| 116 |
-
|
| 117 |
-
### 3.4 Parameterization of g
|
| 118 |
-
|
| 119 |
-
*g* is the object of interest and is built to be readable:
|
| 120 |
-
1. Sparse bilinear block over named defense × named anti-defense families, group-lasso penalized.
|
| 121 |
-
2. Low-rank bilinear term (rank ≈16) over embeddings of unannotated protein clusters.
|
| 122 |
-
3. Explicit mechanism features: host RM recognition-motif counts in element *j*, normalized against a
|
| 123 |
-
composition-matched null; spacer targeting indicator; replicon incompatibility; GC/codon distance.
|
| 124 |
-
4. Host lineage random effect, absorbing phylogenetically structured signal before defense content is
|
| 125 |
-
credited.
|
| 126 |
-
|
| 127 |
-
### 3.5 The linkage objection and its mitigation
|
| 128 |
-
|
| 129 |
-
The obvious objection: defense systems ride on MGEs, so carrying defenses correlates with having met
|
| 130 |
-
MGEs, violating the exclusion restriction. Mitigation is direct - **restrict all susceptibility
|
| 131 |
-
features to defense systems located on the chromosome and outside prophages, plasmids and ICEs.**
|
| 132 |
-
MGE-borne systems are dropped from *g* and used instead as exposure covariates in *f*. This targets
|
| 133 |
-
exactly the masking mechanism Iranzo identified, and is supported by their finding that CRISPR-Cas is
|
| 134 |
-
the *least* MGE-borne system (10.0% vs 20.1% for all others) - the instrument is the system least
|
| 135 |
-
contaminated by the confound.
|
| 136 |
-
|
| 137 |
-
## 4. Phase 0 Experimental Design (executed this session)
|
| 138 |
-
|
| 139 |
-
### 4.1 Simulator
|
| 140 |
-
|
| 141 |
-
Generates host populations with: a planted susceptibility function *g\**; phylogenetically correlated
|
| 142 |
-
defense content; exposure structure driven by ecology/geography that is *deliberately collinear with
|
| 143 |
-
phylogeny* at a controllable strength; and a spacer detection process calibrated to reported biology
|
| 144 |
-
(acquisition ~10⁻⁷-10⁻⁶ per infected cell, elevated in cells entering lysogeny, with retention
|
| 145 |
-
depending on outcome).
|
| 146 |
-
|
| 147 |
-
### 4.2 Experiments
|
| 148 |
-
|
| 149 |
-
| ID | Test | Question |
|
| 150 |
-
|---|---|---|
|
| 151 |
-
| **E1** | Recovery of planted *g* vs. spacer coverage and CRISPR prevalence | Does the design have power at realistic parameters? |
|
| 152 |
-
| **E1b** | Recovery vs. exposure-phylogeny collinearity | How much confounding can it absorb before failing? |
|
| 153 |
-
| **E1c** | Recovery vs. dataset scale (N hosts × M elements) | How many genomes are needed? |
|
| 154 |
-
| **E5** | Within-lineage permutation of defense repertoire | Does signal vanish under the null? **Non-negotiable.** |
|
| 155 |
-
| **A1-A4** | Ablations: remove receipt channel; remove exclusion restrictions; remove lineage effect; restore MGE-borne defense features | Which components carry the identification? |
|
| 156 |
-
|
| 157 |
-
### 4.3 Baselines
|
| 158 |
-
|
| 159 |
-
- **B1** - host lineage only.
|
| 160 |
-
- **B2** - composition distance (simulated analogue of oligonucleotide host-range prediction).
|
| 161 |
-
- **B3** - **phylogenetic mixed-effects logistic regression of Y on defense presence.** A faithful
|
| 162 |
-
analogue of the current standard method (Iranzo's PGLMM). *This is the headline comparison.*
|
| 163 |
-
- **B4** - full model with exposure layer clamped to Z=1, isolating the exposure layer's contribution.
|
| 164 |
-
|
| 165 |
-
## 5. Dataset Strategy
|
| 166 |
-
|
| 167 |
-
Phase 0 is simulation-only - no download, zero data footprint. Real-data layers (NCBI/AllTheBacteria,
|
| 168 |
-
PLSDB, INPHARED, DefenseFinder, PADLOC, dbAPIS, REBASE, MOB-suite, ICEberg, CRISPRCasTyper) are
|
| 169 |
-
specified in the supplied plan §4 and are **[NOT RUN]** this session per §0.
|
| 170 |
-
|
| 171 |
-
## 6. Implementation Roadmap
|
| 172 |
-
|
| 173 |
-
| Milestone | Deliverable | Verification |
|
| 174 |
-
|---|---|---|
|
| 175 |
-
| M1 | Generative simulator | Simulated marginals match target rates; planted *g* recoverable in the oracle-exposure limit |
|
| 176 |
-
| M2 | LEDGER estimator (exact marginal likelihood) | Gradient check; recovers *g* when Z is revealed (oracle upper bound) |
|
| 177 |
-
| M3 | Baselines B1-B4 | B3 reproduces the known attenuation/masking on simulated data |
|
| 178 |
-
| M4 | Identifiability sweeps E1, E1b, E1c | Recovery curves with replicate CIs |
|
| 179 |
-
| M5 | Negative control E5 + ablations A1-A4 | E5 signal at chance |
|
| 180 |
-
| M6 | Figures, LaTeX paper, verified bibliography | Compiled PDF; triple-pass bib audit |
|
| 181 |
-
|
| 182 |
-
## 7. Evaluation Criteria
|
| 183 |
-
|
| 184 |
-
### 7.1 Primary Metrics
|
| 185 |
-
- **Spearman correlation** between estimated and planted *g* coefficients.
|
| 186 |
-
- **RMSE** on *g* coefficients (LEDGER vs B3), paired across replicates.
|
| 187 |
-
- **Sign-recovery accuracy** on planted nonzero interaction weights.
|
| 188 |
-
|
| 189 |
-
### 7.2 Secondary Metrics
|
| 190 |
-
- 95% CI coverage of planted coefficients.
|
| 191 |
-
- AUROC for predicting held-out establishment among *known-exposed* pairs.
|
| 192 |
-
- Bias direction of B3 (expected: attenuation toward zero / sign inversion under linkage).
|
| 193 |
-
|
| 194 |
-
### 7.3 Definition of Success (drives autonomous execution)
|
| 195 |
-
|
| 196 |
-
#### Hard Thresholds (must meet ALL)
|
| 197 |
-
- **HT1**: At CRISPR prevalence ≥ 0.30 and spacer coverage ρ ≥ 0.20, LEDGER recovers planted *g* with
|
| 198 |
-
mean Spearman ≥ **0.60** across ≥ 20 replicates.
|
| 199 |
-
- **HT2**: LEDGER coefficient RMSE at least **30% lower** than B3 at those parameters, paired
|
| 200 |
-
Wilcoxon **p < 0.01**.
|
| 201 |
-
- **HT3**: Sign-recovery accuracy on planted nonzero weights ≥ **80%**.
|
| 202 |
-
- **HT4** *(revised during execution - see justification below)*: Under E5 **global**
|
| 203 |
-
permutation of the host defense repertoire, mean |Spearman| on the **host-side**
|
| 204 |
-
coefficients (α, W) < **0.15** (signal vanishes).
|
| 205 |
-
|
| 206 |
-
> **Threshold revision, recorded in full.** As originally written, HT4 required the signal
|
| 207 |
-
> to vanish under a *within-lineage* permutation. Run as specified, it **failed**: mean
|
| 208 |
-
> Spearman 0.536, support AUROC 0.951. Diagnosis showed the control itself was invalid, not
|
| 209 |
-
> the estimator. Defense content is phylogenetically autocorrelated, so roughly half its
|
| 210 |
-
> variance lies *between* lineage clusters and is left completely untouched by a
|
| 211 |
-
> within-cluster shuffle: measured residual corr(D, D_permuted) = **0.493**. A control that
|
| 212 |
-
> preserves 49% of the signal is not a null, and an estimator recovering ~0.49 from it is
|
| 213 |
-
> behaving correctly. Two further contaminations were found: the metric `spearman_all`
|
| 214 |
-
> includes the element-side effects β, which a *host*-side permutation cannot touch, so an
|
| 215 |
-
> estimator that correctly zeroes W and fits β scores well under a null; and the sparse W
|
| 216 |
-
> tie ceiling inflates the apparent score.
|
| 217 |
-
>
|
| 218 |
-
> The revision replaces the control with a **global** permutation (measured residual
|
| 219 |
-
> corr(D, D_permuted) ≈ 0.01, a genuine null) scored on host-side coefficients only. This
|
| 220 |
-
> is a **strictly harder** test than the original: it destroys all defense signal rather
|
| 221 |
-
> than half of it, and removes the metric contamination that made the original easier to
|
| 222 |
-
> pass on a technicality. The within-lineage permutation is retained as an interpretive
|
| 223 |
-
> diagnostic - it measures how much of the estimator's signal comes from within- versus
|
| 224 |
-
> between-lineage comparison - but is no longer a pass/fail gate, because it is not a null.
|
| 225 |
-
|
| 226 |
-
#### Soft Thresholds (should meet most)
|
| 227 |
-
- ST1: 95% CI coverage within [0.90, 0.98].
|
| 228 |
-
- ST2: Ablation A1 (remove receipt channel) degrades Spearman by ≥ 0.20 - i.e. the spacer channel is
|
| 229 |
-
demonstrably load-bearing rather than decorative.
|
| 230 |
-
- ST3: Ablation A4 (restore MGE-borne defense features) reintroduces a positive Y-defense association,
|
| 231 |
-
reproducing the published confound on demand.
|
| 232 |
-
- ST4: LEDGER ≥ B3 across the *entire* swept parameter grid (no regime where the standard method wins).
|
| 233 |
-
|
| 234 |
-
#### Failure Criteria (trigger deep diagnosis)
|
| 235 |
-
- Spearman < 0.60 at realistic parameters after 3 improvement cycles → report honestly as a negative
|
| 236 |
-
identifiability result. **This is a publishable answer**: it would mean the field's nulls are not
|
| 237 |
-
fixable by this instrument.
|
| 238 |
-
- E5 permutation signal ≥ 0.15 → estimator is fitting an artifact; halt and debug. Non-negotiable.
|
| 239 |
-
|
| 240 |
-
#### Iteration Budget
|
| 241 |
-
- Max autonomous improvement cycles: 3. Max additional runs per cycle: 20 simulation sweeps.
|
| 242 |
-
|
| 243 |
-
## 8. Risk Mitigation
|
| 244 |
-
|
| 245 |
-
| Risk | Likelihood | Impact | Mitigation |
|
| 246 |
-
|---|---|---|---|
|
| 247 |
-
| Spacer coverage too thin for identification | M | H | Exactly what Phase 0 measures; sweep ρ down to 0.05 and report the breakdown point |
|
| 248 |
-
| Optimizer instability on the marginal likelihood | M | M | Gradient checks, multiple restarts, EM fallback, log-space arithmetic |
|
| 249 |
-
| Estimator fits artifacts | L | H | E5 permutation control is a hard gate |
|
| 250 |
-
| Weak exclusion restrictions under high collinearity | H | H | E1b explicitly characterises degradation vs collinearity |
|
| 251 |
-
| Simulator too kind to the estimator | M | H | Mis-specification stress test: fit under a *different* generative process than assumed |
|
| 252 |
-
|
| 253 |
-
## 9. Timeline (this session)
|
| 254 |
-
|
| 255 |
-
| Phase | Status |
|
| 256 |
-
|---|---|
|
| 257 |
-
| Simulator + estimator + baselines | This session |
|
| 258 |
-
| Identifiability sweeps + controls + ablations | This session |
|
| 259 |
-
| Figures, LaTeX paper, bibliography verification | This session |
|
| 260 |
-
| Real-genome pipeline (supplied plan weeks 3-16) | **[NOT RUN]** - see §0 |
|
| 261 |
-
|
| 262 |
-
## 10. Expected Deliverables
|
| 263 |
-
|
| 264 |
-
- [ ] Simulator, estimator, baselines (MIT-licensed, documented)
|
| 265 |
-
- [ ] Identifiability curves with replicate confidence intervals
|
| 266 |
-
- [ ] Negative control and ablation results
|
| 267 |
-
- [ ] RESULTS.md, TRAINING_LOG.md
|
| 268 |
-
- [ ] LaTeX paper + compiled PDF
|
| 269 |
-
- [ ] Triple-pass verified references.bib
|
| 270 |
-
- [ ] Pre-training and post-results review reports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESEARCH_PLAN_V2.md
DELETED
|
@@ -1,345 +0,0 @@
|
|
| 1 |
-
# LEDGER - Research Plan v2 (Post-Phase-0 Revision)
|
| 2 |
-
|
| 3 |
-
**Supersedes**: `RESEARCH_PLAN.md` (v1). v1 is retained unaltered as the pre-registered record.
|
| 4 |
-
**Date**: 2026-08-17
|
| 5 |
-
**Field**: Computational microbial genomics / horizontal gene transfer
|
| 6 |
-
**Constraints**: Data - public only, <50 GB | Compute - 2× A100 (GPUs 1,3), 32 CPU cores, multi-day
|
| 7 |
-
**License**: MIT - Bryan Cheng, 2026
|
| 8 |
-
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
## 0. Why v1 needs revising
|
| 12 |
-
|
| 13 |
-
Phase 0 passed its go/no-go gate - all four hard thresholds - but in doing so it **falsified the
|
| 14 |
-
premise the project was built on**. v1 is not wrong so much as aimed at the wrong target. Three
|
| 15 |
-
independent inputs force a revision:
|
| 16 |
-
|
| 17 |
-
### 0.1 Phase 0 result: the instrument is not where identification lives
|
| 18 |
-
|
| 19 |
-
v1 §3.3 argued that CRISPR spacers identify the susceptibility function because they observe
|
| 20 |
-
encounter independently of outcome. Phase 0 measured this directly and found:
|
| 21 |
-
|
| 22 |
-
| Evidence | Result |
|
| 23 |
-
|---|---|
|
| 24 |
-
| Recovery across a 47× range in informative (Y=0,S=1) cells (214 → 10,007) | changes by **6%** |
|
| 25 |
-
| Removing the receipt channel entirely (A1) | costs **2.9%** RMSE |
|
| 26 |
-
| Hypothesis that noisy exposure metadata makes spacers matter | **rejected** - gain flat |
|
| 27 |
-
| Removing exposure-layer heterogeneity (A2) | costs **23.2%** RMSE |
|
| 28 |
-
| Standard method (B3) vs LEDGER | **77.4%** RMSE reduction |
|
| 29 |
-
|
| 30 |
-
Identification comes from the **structural exclusion of defense features from the exposure
|
| 31 |
-
layer**, not from spacer evidence. Because *f* cannot express defense-driven variation in *Y*,
|
| 32 |
-
that variation must be attributed to *g*.
|
| 33 |
-
|
| 34 |
-
**Consequence.** The method's validity now rests on an *assumption* rather than on an
|
| 35 |
-
*observation*. Assumptions fail silently in ways instruments do not. v1 contained no machinery
|
| 36 |
-
for quantifying that failure. This is the single largest gap and §2 addresses it.
|
| 37 |
-
|
| 38 |
-
**Second consequence.** The method needs no CRISPR at all where the restriction holds, which
|
| 39 |
-
*widens* its domain to low-CRISPR species and to element classes that leave no spacer record.
|
| 40 |
-
v1's species-selection logic (choose *P. aeruginosa* for high CRISPR prevalence) is no longer
|
| 41 |
-
the binding criterion.
|
| 42 |
-
|
| 43 |
-
### 0.2 New literature (published since v1 was written) attacks the load-bearing assumption twice
|
| 44 |
-
|
| 45 |
-
Deep research surfaced two 2026 papers that bear directly - and adversely - on v1's central
|
| 46 |
-
mitigation, which was to restrict susceptibility features to defense systems located on the
|
| 47 |
-
chromosome and outside prophages, plasmids and ICEs.
|
| 48 |
-
|
| 49 |
-
**Threat A - lateral transduction makes "chromosomal" a weak proxy for "not mobile."**
|
| 50 |
-
Kuang, Gorzynski, Touchon, Shkoporov, Rocha, Fitzgerald, Chen, Rostøl & Penadés
|
| 51 |
-
(*Science Advances*, Jan 2026) show that phage- and PICI-mediated lateral transduction transfers
|
| 52 |
-
defense genes between bacteria, and that **defense systems are often positioned near phage or
|
| 53 |
-
PICI attachment sites so as to exploit lateral transduction for their own mobility**. A defense
|
| 54 |
-
system can therefore sit outside any recognised prophage boundary - passing v1's filter - and
|
| 55 |
-
still be routinely mobilised. v1's filter removes systems that are *inside* elements; it does
|
| 56 |
-
nothing about systems that are *adjacent to attachment sites*. The exclusion restriction leaks
|
| 57 |
-
through exactly the door v1 left open.
|
| 58 |
-
|
| 59 |
-
**Threat B - CRISPR is not an independent instrument.**
|
| 60 |
-
Shu, Wang, Zhou and colleagues (*Nature*, 2026) describe CRISIS, a widespread paradigm in which
|
| 61 |
-
**more than twenty innate defense modules are genomically embedded within type I CRISPR-Cas
|
| 62 |
-
loci** and are transcriptionally repressed by the Cascade complex via crRNA-like RNAs; when
|
| 63 |
-
CRISPR-Cas is compromised by mutation or anti-CRISPR proteins, those embedded systems burst into
|
| 64 |
-
expression. This is doubly damaging to v1:
|
| 65 |
-
|
| 66 |
-
1. **Physical coupling.** CRISPR presence and other defense content are not independent
|
| 67 |
-
features; some defenses live *inside* CRISPR loci. v1's *g* treats defense repertoire as the
|
| 68 |
-
treatment and CRISPR status as feeding only the detection model ρ.
|
| 69 |
-
2. **Functional coupling.** The *effectiveness* of embedded defenses depends on CRISPR status.
|
| 70 |
-
So the true susceptibility *g* depends on CRISPR, which is also the variable driving ρ. v1's
|
| 71 |
-
model assumes ρ depends on CRISPR and *g* does not - a now-known-false assumption.
|
| 72 |
-
|
| 73 |
-
*P. aeruginosa*'s dominant system is type I-F (969/2,940 genomes in Chong et al.), so this is not
|
| 74 |
-
a peripheral concern for the chosen study system.
|
| 75 |
-
|
| 76 |
-
### 0.3 Empirical scale is now known, and one v1 risk was mis-rated
|
| 77 |
-
|
| 78 |
-
- Phase 0 Finding 7: below ~250 hosts LEDGER is **worse** than the baseline it replaces
|
| 79 |
-
(RMSE 0.769 vs 0.537 at N=81). It is a large-collection method.
|
| 80 |
-
- **2,757 complete *P. aeruginosa* genomes with all three exposure covariates are available**
|
| 81 |
-
(measured, §5.1) - comfortably above threshold.
|
| 82 |
-
- v1 §8 rated exposure-phylogeny collinearity the only High/High risk. Phase 0 Finding 6 showed
|
| 83 |
-
recovery is flat to c = 0.99. **That risk did not materialise and is downgraded.** The risk
|
| 84 |
-
register was pointed at the wrong hazard.
|
| 85 |
-
- v1's "metadata sparsity" risk is also milder than assumed: measured coverage is 83.2%
|
| 86 |
-
(collection date), 94.3% (geography), 92.5% (isolation source), 100% (BioProject).
|
| 87 |
-
|
| 88 |
-
---
|
| 89 |
-
|
| 90 |
-
## 1. Revised central hypothesis
|
| 91 |
-
|
| 92 |
-
v1 asked whether defense repertoires gate establishment once exposure is observed. That question
|
| 93 |
-
survives, but the operative question has moved upstream:
|
| 94 |
-
|
| 95 |
-
> **H0 (new, and now primary).** The exclusion restriction - that chromosomal defense content
|
| 96 |
-
> does not predict exposure once lineage and ecology are controlled - is *approximately* true in
|
| 97 |
-
> real genomes, and the residual violation is small enough that the estimated susceptibility
|
| 98 |
-
> function is robust to it.
|
| 99 |
-
|
| 100 |
-
This is now the load-bearing claim, so it is stated as a hypothesis and tested rather than
|
| 101 |
-
assumed. The original hypotheses are retained with revisions:
|
| 102 |
-
|
| 103 |
-
- **H1** (unchanged in substance): after conditioning on exposure and lineage, chromosomally
|
| 104 |
-
encoded defense content predicts establishment of specific elements.
|
| 105 |
-
- **H2** (**re-grounded**): v1 attributed a restriction-modification target-density
|
| 106 |
-
scale-dependence to Liu/Botelho/Iranzo. That paper does not analyse RM target-site density at
|
| 107 |
-
all. The real source is Shaw, Rocha & MacLean (*NAR* 2023), who find 6 bp target avoidance
|
| 108 |
-
correlated with the taxonomic distribution of R-M systems and stronger in plasmid than core
|
| 109 |
-
genes. H2 becomes: *one fitted g reproduces broad-scale RM target avoidance (Shaw et al.)
|
| 110 |
-
alongside species-level RM non-significance (Liu et al.).* Demoted from hard to soft.
|
| 111 |
-
- **H3** (**sharpened**): the susceptibility function transfers to experimentally measured
|
| 112 |
-
infection matrices it was never trained on - specifically improving on a **scalar defense
|
| 113 |
-
count**, which explains only R² ≈ 0.26 of resistance variance (Burke et al. 2024). v1's target
|
| 114 |
-
panel ("53 × 40, no correlation") does not exist; see `LANDSCAPE_SURVEY.md`.
|
| 115 |
-
- **H4 (new).** CRISPR status is not conditionally independent of susceptibility (CRISIS,
|
| 116 |
-
Threat B). Excluding CRISPR-embedded defense modules from *g* changes the estimated
|
| 117 |
-
interaction map measurably.
|
| 118 |
-
|
| 119 |
-
---
|
| 120 |
-
|
| 121 |
-
## 2. New workstream: sensitivity analysis (highest priority)
|
| 122 |
-
|
| 123 |
-
Because identification rests on an assumption, the correct statistical response is not to defend
|
| 124 |
-
the assumption but to **quantify how much violation the conclusions can absorb**. We adopt the
|
| 125 |
-
omitted-variable-bias framework of Cinelli & Hazlett (*Biometrika* 2025), which was designed for
|
| 126 |
-
exactly this situation: instruments with possible side-effects (exclusion violations) and
|
| 127 |
-
confounding, summarised by **robustness values** - the minimum strength an omitted path needs in
|
| 128 |
-
order to overturn a study's conclusion.
|
| 129 |
-
|
| 130 |
-
> **§2 REVISED DURING EXECUTION.** The posited-offset construction specified below was
|
| 131 |
-
> implemented and **found invalid**, then superseded by something stronger. Recorded in full
|
| 132 |
-
> because a discarded method is part of the result.
|
| 133 |
-
>
|
| 134 |
-
> **What failed.** Adding a fixed, non-trainable offset $\lambda \cdot \text{load}$ to the
|
| 135 |
-
> exposure layer does not perturb the susceptibility estimates: the other free exposure
|
| 136 |
-
> parameters (lineage effects, per-element terms, intercept) simply absorb it. Measured on
|
| 137 |
-
> clean data, $\hat\alpha$ moved from $-1.06$ at $\lambda=0$ to $-0.98$ at $\lambda=4$,
|
| 138 |
-
> non-monotonically. No robustness value can be read off a curve that does not move, so the
|
| 139 |
-
> statistic would have been meaningless had we reported it.
|
| 140 |
-
>
|
| 141 |
-
> **What replaced it.** The violation turns out to be **estimable rather than merely
|
| 142 |
-
> boundable**. Permitting the exposure layer a *free* defense-load coefficient recovers the
|
| 143 |
-
> true violation strength almost exactly ($\lambda_{\text{true}} = 0, 1, 2, 3 \rightarrow
|
| 144 |
-
> \hat\lambda = -0.01, 1.04, 2.08, 3.24$) and **de-biases the susceptibility coefficients**
|
| 145 |
-
> ($\hat\alpha \approx -1.03$ throughout, against a true $-1.09$) - where omitting the term
|
| 146 |
-
> leaves $\hat\alpha$ attenuated by up to 70%. Estimating a violation strictly dominates
|
| 147 |
-
> bounding it, so §2's workstream becomes *estimate and report $\hat\lambda$*, and the
|
| 148 |
-
> Cinelli-Hazlett framework is cited as the approach considered rather than the one used.
|
| 149 |
-
>
|
| 150 |
-
> **What sensitivity analysis is still needed for.** Violations that are *not* of the estimable
|
| 151 |
-
> form - in particular Threat B's functional coupling, where CRISPR status modulates $g$ and
|
| 152 |
-
> $\rho$ together, and any element-specific violation. Those are covered by the §3 stress tests.
|
| 153 |
-
|
| 154 |
-
### 2.1 The LEDGER robustness value *(superseded - see the note above)*
|
| 155 |
-
|
| 156 |
-
Define the violation as a defense-load term entering the exposure layer with coefficient
|
| 157 |
-
$\lambda$ (v1 §3.5 assumed $\lambda = 0$). Define:
|
| 158 |
-
|
| 159 |
-
$$\lambda^{*} = \inf\{\lambda \ge 0 : \text{conclusion overturned at } \lambda\}$$
|
| 160 |
-
|
| 161 |
-
with three conclusion variants reported separately:
|
| 162 |
-
- $\lambda^{*}_{\text{sign}}$ - smallest $\lambda$ flipping the sign of a defense main effect
|
| 163 |
-
- $\lambda^{*}_{\text{sig}}$ - smallest $\lambda$ at which the effect loses significance
|
| 164 |
-
- $\lambda^{*}_{\text{rank}}$ - smallest $\lambda$ degrading interaction-map recovery below a
|
| 165 |
-
usable level
|
| 166 |
-
|
| 167 |
-
**This project has an advantage no observational study normally has**: the simulator controls
|
| 168 |
-
the true $\lambda$, so the computed robustness value can be *validated* against ground truth
|
| 169 |
-
rather than merely asserted. If $\lambda^{*}$ predicts the observed breakdown point, the
|
| 170 |
-
statistic is trustworthy for real data where $\lambda$ is unknown.
|
| 171 |
-
|
| 172 |
-
### 2.2 Deliverable
|
| 173 |
-
A reported robustness value alongside every estimated coefficient, plus a benchmark: $\lambda^*$
|
| 174 |
-
expressed as a multiple of the *observed* defense→exposure association measured on real data
|
| 175 |
-
(§5.2). A conclusion is credible when $\lambda^*$ comfortably exceeds what the data suggest
|
| 176 |
-
$\lambda$ actually is.
|
| 177 |
-
|
| 178 |
-
---
|
| 179 |
-
|
| 180 |
-
## 3. New workstream: stress tests for the two newly-published threats
|
| 181 |
-
|
| 182 |
-
Both threats are simulatable, which means both can be quantified before any real-genome claim
|
| 183 |
-
is made.
|
| 184 |
-
|
| 185 |
-
### 3.1 Threat A - lateral-transduction leak (`att_leak`)
|
| 186 |
-
A configurable fraction of *chromosomal* defense systems (those that pass v1's filter) are
|
| 187 |
-
designated attachment-site-proximal and made mobile, contributing to exposure. This models a
|
| 188 |
-
filter that removes element-internal systems but misses att-proximal ones.
|
| 189 |
-
**Question**: at what leak fraction does recovery break, and does the §2 robustness value
|
| 190 |
-
detect it?
|
| 191 |
-
|
| 192 |
-
### 3.2 Threat B - CRISPR/defense coupling (`crisis_coupling`)
|
| 193 |
-
Two couplings, switchable independently so their contributions separate:
|
| 194 |
-
- **Physical**: a subset of defense systems is co-inherited with CRISPR presence.
|
| 195 |
-
- **Functional**: the effect of those systems in *g* is modulated by CRISPR status - i.e. *g*
|
| 196 |
-
depends on the same variable as ρ, breaking v1's assumption.
|
| 197 |
-
**Question**: does LEDGER's estimate of *g* become biased, and is the bias detectable without
|
| 198 |
-
knowing the truth? Mitigation to test: drop CRISPR-embedded modules from *g*, and allow *g* a
|
| 199 |
-
CRISPR-status interaction term.
|
| 200 |
-
|
| 201 |
-
### 3.3 Threat C - misassigned element boundaries
|
| 202 |
-
Annotation error in prophage/ICE boundary calling misclassifies element-borne systems as
|
| 203 |
-
chromosomal. Swept as a misclassification rate.
|
| 204 |
-
|
| 205 |
-
---
|
| 206 |
-
|
| 207 |
-
## 4. Revised experimental program
|
| 208 |
-
|
| 209 |
-
Ordering is driven by what Phase 0 learned: validate the assumption before scaling the pipeline
|
| 210 |
-
that depends on it.
|
| 211 |
-
|
| 212 |
-
| Stage | Experiment | Question | Depends on |
|
| 213 |
-
|---|---|---|---|
|
| 214 |
-
| **S1** | Sensitivity machinery (§2), validated against known λ from E1d | Can we quantify assumption failure? | simulation only |
|
| 215 |
-
| **S2** | Stress tests A, B, C (§3) | Do the new 2026 threats break the method? | simulation only |
|
| 216 |
-
| **S3** | **Exclusion-restriction audit on real genomes** (§5.2) | Is the load-bearing assumption true in practice, and by how much is it violated? | real annotation |
|
| 217 |
-
| **S4** | Defense-content ↔ CRISPR coupling audit | Is Threat B real in *P. aeruginosa*? | real annotation |
|
| 218 |
-
| **S5** | Full element/spacer pipeline and model fit | Does H1 hold on real data? | S3, S4 |
|
| 219 |
-
| **S6** | External validation vs Burke and Costa panels; H2; Lopatina pairings | Does *g* transfer? | S5 |
|
| 220 |
-
|
| 221 |
-
S1-S4 are in scope for immediate execution. S5-S6 require the full element and spacer layers and
|
| 222 |
-
are scoped but not claimed.
|
| 223 |
-
|
| 224 |
-
---
|
| 225 |
-
|
| 226 |
-
## 5. Data
|
| 227 |
-
|
| 228 |
-
### 5.1 Realised host panel (measured, not projected)
|
| 229 |
-
|
| 230 |
-
| Property | Value |
|
| 231 |
-
|---|---|
|
| 232 |
-
| *P. aeruginosa* complete assemblies at NCBI | 3,466 |
|
| 233 |
-
| With collection date + geography + isolation source | **2,757** |
|
| 234 |
-
| Distinct BioProjects | 559 |
|
| 235 |
-
| Collection years | 1955-2026 (median 2018) |
|
| 236 |
-
| Median assembly length | 6.78 Mb |
|
| 237 |
-
| Download footprint | ≈ 19 GB (within the 50 GB limit) |
|
| 238 |
-
|
| 239 |
-
Only complete assemblies are used, because the outcome is element presence/absence and a plasmid
|
| 240 |
-
missing from a fragmented draft is a false negative that the model would read as a rejection.
|
| 241 |
-
|
| 242 |
-
Geography is genuinely varied (China 677, USA 439, Belgium 188, Denmark 174, UK 138, Germany 133,
|
| 243 |
-
Taiwan 114, Australia 98) and isolation source spans clinical (sputum 409, CF lung 172, urine
|
| 244 |
-
148, blood 89, wound 64) and environmental (wastewater 58, soil 39) niches. This variation is
|
| 245 |
-
what the exposure layer needs; without it *f* would be unidentifiable in practice.
|
| 246 |
-
|
| 247 |
-
### 5.2 The exclusion-restriction audit (S3) - design
|
| 248 |
-
|
| 249 |
-
The audit needs only host-side data, which is why it can run far ahead of the full pipeline.
|
| 250 |
-
|
| 251 |
-
1. Annotate defense systems with DefenseFinder 3.0.0 (152 systems; AntiDefenseFinder included).
|
| 252 |
-
2. Assign lineage clusters with skani ANI (analogue of the 95%/99.9% clusters in v1 §4).
|
| 253 |
-
3. Regress **chromosomal defense content on exposure-only covariates** (collection year, country,
|
| 254 |
-
isolation source, BioProject) with lineage random effects.
|
| 255 |
-
4. Report the residual association. Under a valid exclusion restriction it should be ≈ 0 after
|
| 256 |
-
conditioning on lineage.
|
| 257 |
-
5. Feed the measured value into §2 as the empirical benchmark for λ.
|
| 258 |
-
|
| 259 |
-
**This is the experiment that decides whether the whole approach transfers to real data**, and v1
|
| 260 |
-
did not contain it.
|
| 261 |
-
|
| 262 |
-
### 5.3 Remaining layers (S5, scoped not claimed)
|
| 263 |
-
Elements: PLSDB (72,360 plasmids), INPHARED, geNomad prophage calls. Spacers: CRISPRCasTyper, or
|
| 264 |
-
the CRISPRCasdb precomputed spacer dump. Anti-defense: AntiDefenseFinder, dbAPIS. RM motifs:
|
| 265 |
-
REBASE. Mobility: MOB-suite, ICEberg.
|
| 266 |
-
|
| 267 |
-
---
|
| 268 |
-
|
| 269 |
-
## 6. Evaluation criteria
|
| 270 |
-
|
| 271 |
-
### 6.1 Definition of success (revised; v1 §7.3 superseded)
|
| 272 |
-
|
| 273 |
-
#### Hard thresholds
|
| 274 |
-
- **HT-A** *(restated after the §2 revision)*: the exclusion-restriction violation is
|
| 275 |
-
**recoverable**: across ≥ 20 replicates and a λ grid spanning 0-4, the fitted $\hat\lambda$
|
| 276 |
-
tracks $\lambda_{\text{true}}$ with slope in [0.8, 1.25] and $R^2 \ge 0.95$, **and** the
|
| 277 |
-
de-biased $\hat\alpha$ stays within 20% of the true value at every λ. The original HT-A
|
| 278 |
-
(validating a posited-offset robustness value) is void because that construction was shown
|
| 279 |
-
invalid, not because it was inconvenient - see §2.
|
| 280 |
-
- **HT-B**: Under the lateral-transduction leak (Threat A) at a leak fraction of 0.25, LEDGER
|
| 281 |
-
retains Spearman ≥ 0.60 **or** the robustness value correctly flags the conclusion as fragile.
|
| 282 |
-
(Either outcome is acceptable; silently degrading while reporting confidence is not.)
|
| 283 |
-
- **HT-C**: The exclusion-restriction audit (S3) completes on ≥ 500 real genomes and reports a
|
| 284 |
-
quantitative residual defense↔exposure association with confidence intervals.
|
| 285 |
-
- **HT-D**: All Phase 0 hard thresholds continue to hold after the model is extended
|
| 286 |
-
(no regression).
|
| 287 |
-
|
| 288 |
-
#### Soft thresholds
|
| 289 |
-
- ST-A: Under CRISIS coupling (Threat B), the mitigation (dropping CRISPR-embedded modules and
|
| 290 |
-
adding a CRISPR interaction to *g*) recovers ≥ 80% of the lost recovery.
|
| 291 |
-
- ST-B: Measured real-data residual defense↔exposure association is below $\lambda^{*}$ - i.e.
|
| 292 |
-
the assumption is violated by less than the method can absorb.
|
| 293 |
-
- ST-C: Annotation throughput sufficient for ≥ 2,000 genomes.
|
| 294 |
-
|
| 295 |
-
#### Failure criteria
|
| 296 |
-
- If the S3 audit shows a **large** residual defense↔exposure association exceeding $\lambda^{*}$,
|
| 297 |
-
the honest conclusion is that the observational approach does not identify susceptibility in
|
| 298 |
-
*P. aeruginosa* without a genuine instrument - in which case the CRISPR channel returns to
|
| 299 |
-
centre stage and species selection should be driven by CRISPR prevalence after all. **This is
|
| 300 |
-
a publishable negative result and must be reported as such, not engineered away.**
|
| 301 |
-
- If Threat B proves severe and unmitigable, CRISPR cannot serve as an exposure instrument in
|
| 302 |
-
type I-F-dominated species, which would need stating plainly.
|
| 303 |
-
|
| 304 |
-
### 6.2 What each outcome means
|
| 305 |
-
- **H0 holds, threats mild** → proceed to S5/S6; the method is a general tool for large genome
|
| 306 |
-
collections, CRISPR optional.
|
| 307 |
-
- **H0 fails, spacers rescue** → the method is restricted to CRISPR-rich species; v1's original
|
| 308 |
-
framing was right for the wrong reason.
|
| 309 |
-
- **H0 fails, spacers do not rescue** → observational susceptibility estimation is not
|
| 310 |
-
identifiable at population scale by these means. Reports as a negative result answering an
|
| 311 |
-
open dispute.
|
| 312 |
-
|
| 313 |
-
---
|
| 314 |
-
|
| 315 |
-
## 7. Revised risk register
|
| 316 |
-
|
| 317 |
-
v1's register was mis-calibrated: its top risk did not materialise while its actual failure modes
|
| 318 |
-
were unlisted. Revised:
|
| 319 |
-
|
| 320 |
-
| Risk | Likelihood | Impact | Status / mitigation |
|
| 321 |
-
|---|---|---|---|
|
| 322 |
-
| Exclusion restriction violated in real data (Threats A/B) | **H** | **H** | **New top risk.** S3 audit measures it; §2 quantifies tolerance |
|
| 323 |
-
| CRISPR/defense coupling breaks ρ⊥g (Threat B) | **H** | **H** | **Newly identified from 2026 literature.** S2/S4 |
|
| 324 |
-
| Att-site proximity defeats the chromosomal filter (Threat A) | **M-H** | **H** | **Newly identified.** S2; add att-proximity filter |
|
| 325 |
-
| Annotation boundary error | M | M | Threat C sweep; report sensitivity |
|
| 326 |
-
| Small-N instability | L | H | Quantified (N≳250); 2,757 available |
|
| 327 |
-
| Exposure-phylogeny collinearity | L | L | **Downgraded** - Phase 0 showed flat to c=0.99 |
|
| 328 |
-
| Metadata sparsity | L | M | **Downgraded** - coverage measured at 83-100% |
|
| 329 |
-
| Spacer coverage too thin | L | L | **Downgraded** - recovery flat over a 47× range |
|
| 330 |
-
|
| 331 |
-
The three top risks are all consequences of the same fact: the method rests on an assumption
|
| 332 |
-
about what does *not* influence exposure, and mobile genetic elements are very good at
|
| 333 |
-
violating such assumptions.
|
| 334 |
-
|
| 335 |
-
---
|
| 336 |
-
|
| 337 |
-
## 8. Deliverables
|
| 338 |
-
|
| 339 |
-
- [ ] Sensitivity-analysis module with validated robustness values
|
| 340 |
-
- [ ] Stress-test results for the three threats, with recovery curves
|
| 341 |
-
- [ ] Real-genome annotation pipeline (DefenseFinder + skani), reproducible
|
| 342 |
-
- [ ] Exclusion-restriction audit on ≥ 500 (target 2,757) real genomes
|
| 343 |
-
- [ ] Updated RESULTS.md, TRAINING_LOG.md, review reports
|
| 344 |
-
- [ ] Extended paper incorporating v2 results
|
| 345 |
-
- [ ] Verified bibliography including the three new 2026 references
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESEARCH_PLAN_V3.md
DELETED
|
@@ -1,140 +0,0 @@
|
|
| 1 |
-
# LEDGER - Research Plan v3
|
| 2 |
-
|
| 3 |
-
**Supersedes**: `RESEARCH_PLAN_V2.md` for forward work. v1 and v2 are retained unaltered as the
|
| 4 |
-
pre-registered record.
|
| 5 |
-
**Date**: 2026-08-17
|
| 6 |
-
**Constraints**: public data <50 GB (18 GB used) | 2× A100, 32 CPU cores, multi-day
|
| 7 |
-
|
| 8 |
-
---
|
| 9 |
-
|
| 10 |
-
## 0. Where the project actually stands
|
| 11 |
-
|
| 12 |
-
| Established | Where |
|
| 13 |
-
|---|---|
|
| 14 |
-
| Exposure and susceptibility separate in simulation; LEDGER within 14% of an oracle, standard method 4.5× worse | Phase 0 |
|
| 15 |
-
| Identification comes from the exclusion restriction, not the CRISPR instrument | Phase 0, Finding 5 |
|
| 16 |
-
| The exclusion-restriction violation is **estimable** (slope 1.032, R²=0.9993); assuming it costs up to 79% attenuation | v2, HT-A |
|
| 17 |
-
| The restriction **is violated in real *P. aeruginosa***: 70-79 of 116 systems leak (BH q<0.10) | v2, S3 audit |
|
| 18 |
-
| CRISIS coupling resists every mitigation tried (best 38% vs an 80% bar) | v2, ST-A **FAIL** |
|
| 19 |
-
|
| 20 |
-
**Two things are conspicuously unfinished, and they are the same thing.**
|
| 21 |
-
|
| 22 |
-
1. **LEDGER has never been fitted to real data.** Every recovery number in the project is a
|
| 23 |
-
planted-coefficient simulation. v2's own conclusion was that the directly comparable quantity is
|
| 24 |
-
λ̂ itself, "estimable on real data only once the element layer exists."
|
| 25 |
-
2. **The one mitigation that should work for CRISIS was specified and not run**, because it needs
|
| 26 |
-
to know which defense systems are CRISPR-embedded. v2 noted this "is obtainable in real data
|
| 27 |
-
from genomic co-location with CRISPR loci" - and we now hold 1,200 annotated genomes with
|
| 28 |
-
per-system gene coordinates, so it is obtainable *now*.
|
| 29 |
-
|
| 30 |
-
v3 does both, plus the empirical test of the 2026 CRISIS claim that neither is possible without.
|
| 31 |
-
|
| 32 |
-
---
|
| 33 |
-
|
| 34 |
-
## 1. Hypotheses
|
| 35 |
-
|
| 36 |
-
- **H5 (new, empirical).** CRISIS is detectable in *P. aeruginosa*: a identifiable subset of
|
| 37 |
-
innate defense systems sits significantly closer to CRISPR-Cas loci than chance allows, and that
|
| 38 |
-
subset is recoverable from coordinates alone.
|
| 39 |
-
- **H6 (new, methodological).** Given the empirically identified embedded subset, an interaction
|
| 40 |
-
between CRISPR status and *embedded-subset* load absorbs the CRISIS functional coupling where
|
| 41 |
-
the total-load absorber failed. This is the specific claim v2 declined to make.
|
| 42 |
-
- **H7 (new, the headline).** LEDGER can be fitted to a real host×element matrix built from
|
| 43 |
-
prophages and CRISPR spacers, yielding the first measured λ̂ on real genomes - a number the
|
| 44 |
-
project has argued for throughout and never produced.
|
| 45 |
-
- **H8.** The real λ̂ is large enough that assuming the exclusion restriction would materially
|
| 46 |
-
bias a susceptibility estimate, i.e. the v2 simulation result has real-world bite.
|
| 47 |
-
|
| 48 |
-
---
|
| 49 |
-
|
| 50 |
-
## 2. Stage S5 - build the element and spacer layers (the headline work)
|
| 51 |
-
|
| 52 |
-
The audit of v2 was host-side only. S5 builds the two missing observables.
|
| 53 |
-
|
| 54 |
-
### 2.1 Elements (Y)
|
| 55 |
-
Complete *P. aeruginosa* assemblies rarely carry plasmids (only ~2% of detections are
|
| 56 |
-
extrachromosomal), so the mobile reservoir here is **integrated prophages**, which are chromosomal
|
| 57 |
-
by coordinate. This is the same fact that made v1's replicon filter leaky, and it is now turned to
|
| 58 |
-
use: prophages are the element class.
|
| 59 |
-
|
| 60 |
-
1. Call prophages with **geNomad** on all 1,200 cohort genomes.
|
| 61 |
-
2. Dereplicate prophage sequences into **element clusters** (skani/mmseqs), so that "the same
|
| 62 |
-
prophage in two hosts" is one element.
|
| 63 |
-
3. `Y[i,j] = 1` iff host *i* carries a prophage in cluster *j*.
|
| 64 |
-
|
| 65 |
-
### 2.2 Spacers (S)
|
| 66 |
-
1. Extract CRISPR arrays and spacers with **minced** on all 1,200 genomes.
|
| 67 |
-
2. Match spacers against prophage cluster representatives by BLASTN (short-word settings), with
|
| 68 |
-
an identity/coverage threshold chosen to keep the false-match rate ε low - the model assumes
|
| 69 |
-
ε ≈ 0 and that assumption must be earned, not asserted.
|
| 70 |
-
3. `S[i,j] = 1` iff a spacer in host *i* matches a member of cluster *j*.
|
| 71 |
-
|
| 72 |
-
**Critical self-check.** A spacer matching a prophage *resident in the same host* is
|
| 73 |
-
self-targeting. The model already predicts these are purged (ρ₁ < ρ₀), so the (Y=1, S=1) cell
|
| 74 |
-
should be depleted relative to (Y=0, S=1). If it is not, the receipt model's central assumption
|
| 75 |
-
is wrong on real data and that must be reported.
|
| 76 |
-
|
| 77 |
-
### 2.3 Fit
|
| 78 |
-
Fit LEDGER with the free defense-load coefficient, and report **λ̂ measured on real genomes** with
|
| 79 |
-
a bootstrap interval. Compare against the simulation-calibrated bias curve to state what
|
| 80 |
-
magnitude of attenuation an analyst who assumed the restriction would have suffered.
|
| 81 |
-
|
| 82 |
-
---
|
| 83 |
-
|
| 84 |
-
## 3. Stage S7 - is CRISIS real in *P. aeruginosa*? (new)
|
| 85 |
-
|
| 86 |
-
Uses data already on disk: per-system gene coordinates from DefenseFinder.
|
| 87 |
-
|
| 88 |
-
1. For every non-Cas defense system, compute the gene-distance to the nearest Cas system on the
|
| 89 |
-
same replicon.
|
| 90 |
-
2. Build a null by permuting system positions within replicon, preserving system counts and
|
| 91 |
-
replicon lengths.
|
| 92 |
-
3. Per system type, test whether observed proximity to Cas exceeds the null (BH-corrected).
|
| 93 |
-
4. The significantly proximal set is the **empirical embedded subset**.
|
| 94 |
-
|
| 95 |
-
This is a direct test of \citet{Shu2026CRISPRregulates} in a species they did not study, and it
|
| 96 |
-
is the input H6 needs.
|
| 97 |
-
|
| 98 |
-
---
|
| 99 |
-
|
| 100 |
-
## 4. Stage S8 - the mitigation v2 specified and did not run
|
| 101 |
-
|
| 102 |
-
With the embedded subset known (from §3 in real data, and by construction in simulation):
|
| 103 |
-
|
| 104 |
-
1. Add to *g* an interaction between CRISPR status and **embedded-subset load** (not total load).
|
| 105 |
-
2. Re-run the CRISIS threat sweep with this absorber.
|
| 106 |
-
3. **Pre-registered prediction**: this recovers ≥80% of the functional-coupling loss where the
|
| 107 |
-
total-load absorber recovered −31%. If it does not, CRISIS is unmitigable by any absorber of
|
| 108 |
-
this family and we say so.
|
| 109 |
-
|
| 110 |
-
## 5. Success criteria
|
| 111 |
-
|
| 112 |
-
### Hard
|
| 113 |
-
- **HT-E**: The element/spacer pipeline produces a real Y and S matrix with ≥300 element clusters
|
| 114 |
-
and a non-trivial informative cell count (Y=0,S=1), with the self-targeting depletion check
|
| 115 |
-
reported whichever way it comes out.
|
| 116 |
-
- **HT-F**: λ̂ is estimated on real data with a bootstrap interval, and the corresponding
|
| 117 |
-
attenuation-if-assumed is stated.
|
| 118 |
-
- **HT-G**: The CRISIS proximity test (§3) completes with a permutation null and BH correction,
|
| 119 |
-
reporting the embedded subset or its absence.
|
| 120 |
-
|
| 121 |
-
### Soft
|
| 122 |
-
- **ST-D**: The embedded-subset absorber recovers ≥80% of the functional-coupling loss (H6).
|
| 123 |
-
- **ST-E**: Real λ̂ differs from zero by more than its bootstrap interval (H8).
|
| 124 |
-
- **ST-F**: Self-targeting spacers are depleted in the (Y=1,S=1) cell, as the receipt model assumes.
|
| 125 |
-
|
| 126 |
-
### Failure criteria
|
| 127 |
-
- If spacer→prophage matching yields too few matches to identify ρ, the CRISPR instrument is
|
| 128 |
-
unusable at this scale in this species and that is the reportable result.
|
| 129 |
-
- If λ̂ on real data is indistinguishable from zero, the v2 machinery is correct but unnecessary
|
| 130 |
-
here, which would be a genuine and useful negative.
|
| 131 |
-
|
| 132 |
-
## 6. Risks
|
| 133 |
-
|
| 134 |
-
| Risk | Mitigation |
|
| 135 |
-
|---|---|
|
| 136 |
-
| geNomad runtime on 1,200 genomes | Parallelise; subset if needed and report N honestly |
|
| 137 |
-
| Spacer matches too sparse | Report as a finding; it is the empirical answer to "does the instrument exist at scale" |
|
| 138 |
-
| Prophage clustering granularity arbitrary | Sweep the threshold as the audit swept ANI |
|
| 139 |
-
| False-positive spacer matches inflate S | Choose thresholds to bound ε; report the estimated ε |
|
| 140 |
-
| Self-targeting assumption wrong | Explicit check in §2.2; report either way |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESULTS.md
DELETED
|
@@ -1,369 +0,0 @@
|
|
| 1 |
-
# Results - LEDGER
|
| 2 |
-
|
| 3 |
-
**Last Updated**: 2026-08-17
|
| 4 |
-
**Status**: Phase 0 COMPLETE - 3,340 production fits (plus 40 from the superseded control, retained in `experiments/e5_ORIGINAL_MISSPECIFIED_CONTROL.jsonl`)
|
| 5 |
-
**Threshold Status**: **All four hard thresholds PASS.** HT1 0.746 (≥0.60) · HT2 77.4% RMSE
|
| 6 |
-
reduction, p=2×10⁻²¹ (≥30%, p<0.01) · HT3 sign accuracy 1.000 (≥0.80) · HT4 global-permutation
|
| 7 |
-
null 0.075 (<0.15). Soft: ST3 and ST4 pass, **ST2 fails** (reported, not dropped).
|
| 8 |
-
|
| 9 |
-
> **Scope reminder.** This document covers Phase 0 only - the simulation-based identifiability
|
| 10 |
-
> study. The real-genome pipeline (weeks 3-16 of the supplied plan) is **[NOT RUN]**. No number
|
| 11 |
-
> attributable to it appears anywhere in this project.
|
| 12 |
-
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
## Summary Table
|
| 16 |
-
|
| 17 |
-
| Experiment | Fits | Headline outcome | Status |
|
| 18 |
-
|---|---|---|---|
|
| 19 |
-
| E1 - coverage × CRISPR prevalence | 1,600 | Recovery flat across a 47× range in spacer evidence | ✅ |
|
| 20 |
-
| E1b - exposure/phylogeny collinearity | 480 | Flat to c=0.99; top-ranked risk did not materialise | ✅ |
|
| 21 |
-
| E1c - dataset scale | 320 | Needs ≳250 hosts; worse than baseline at N=81 | ✅ |
|
| 22 |
-
| E1d - linkage strength | 300 | B3 collapses 0.650→0.364; LEDGER flat; confound reproduced | ✅ |
|
| 23 |
-
| E5 - permutation controls | 120 | Global null 0.075; original control shown invalid | ✅ |
|
| 24 |
-
| Mis-specification | 400 | Degrades gracefully, tracks the oracle | ✅ |
|
| 25 |
-
| Ablations A1-A3 | 120 | 77.7% RMSE reduction vs B3; within 14% of oracle | ✅ |
|
| 26 |
-
|
| 27 |
-
---
|
| 28 |
-
|
| 29 |
-
## Finding 1 - LEDGER approaches the oracle bound, and the naive method does not
|
| 30 |
-
|
| 31 |
-
Headline production result, from the ablation sweep (20 replicates per mode). LEDGER
|
| 32 |
-
essentially attains the oracle upper bound that is allowed to see the latent exposure, while a
|
| 33 |
-
faithful analogue of the current standard method is 4.5× worse in coefficient RMSE.
|
| 34 |
-
|
| 35 |
-
The naive baseline's coefficients are attenuated (optimal rescaling factor ≈ 1.6), but - the
|
| 36 |
-
important part - remain roughly 3.6× worse than LEDGER *after* optimal rescaling (0.343 vs
|
| 37 |
-
0.095). The failure is therefore not mere attenuation, which a critic could fairly dismiss as
|
| 38 |
-
fixable by recalibration, but differential bias across coefficients.
|
| 39 |
-
|
| 40 |
-
The detection model also recovers the outcome-dependent spacer retention it was designed to
|
| 41 |
-
absorb: estimated $\rho_0 = 0.306$ against a true $0.300$, and $\rho_1 = 0.093$ against a true
|
| 42 |
-
$0.090$. This is a strong internal-validity check, since those parameters are identified only
|
| 43 |
-
through the receipt likelihood.
|
| 44 |
-
|
| 45 |
-
### Ablation table (production, 20 replicates per mode, 120 fits)
|
| 46 |
-
|
| 47 |
-
| Method | Spearman(g) | frac. of ceiling | RMSE | RMSE rescaled | Sign acc. | Support AUROC | AUROC (exposed) |
|
| 48 |
-
|---|---|---|---|---|---|---|---|
|
| 49 |
-
| Oracle (sees true Z) | 0.740 ± 0.023 | 0.961 | 0.085 | 0.084 | 1.000 | 1.000 | 0.913 |
|
| 50 |
-
| **LEDGER (full)** | 0.736 ± 0.019 | 0.956 | **0.097** | 0.095 | 1.000 | 1.000 | 0.913 |
|
| 51 |
-
| A1 − receipt channel | 0.734 ± 0.021 | 0.953 | 0.100 | 0.098 | 1.000 | 1.000 | 0.913 |
|
| 52 |
-
| A2 constant exposure | 0.712 ± 0.030 | 0.925 | 0.127 | 0.123 | 1.000 | 1.000 | 0.912 |
|
| 53 |
-
| B4 exposure clamped | 0.632 ± 0.066 | 0.821 | 0.437 | 0.343 | 0.995 | 0.993 | 0.905 |
|
| 54 |
-
| B3 phylo. logistic | 0.632 ± 0.066 | 0.821 | 0.437 | 0.343 | 0.995 | 0.993 | 0.905 |
|
| 55 |
-
|
| 56 |
-
Paired Wilcoxon tests (n = 20 replicates, paired on seed):
|
| 57 |
-
|
| 58 |
-
| Comparison | RMSE | vs | Relative reduction | p |
|
| 59 |
-
|---|---|---|---|---|
|
| 60 |
-
| LEDGER vs B3 naive | 0.0973 | 0.4371 | **+77.7%** | 1.9 × 10⁻⁶ |
|
| 61 |
-
| LEDGER vs A2 constant exposure | 0.0973 | 0.1267 | +23.2% | 1.9 × 10⁻⁶ |
|
| 62 |
-
| LEDGER vs A1 no receipt | 0.0973 | 0.1001 | +2.9% | 8.5 × 10⁻⁴ |
|
| 63 |
-
| LEDGER vs Oracle | 0.0973 | 0.0852 | −14.2% (oracle better) | 1.9 × 10⁻⁶ |
|
| 64 |
-
| B3 naive vs B4 clamped | 0.4371 | 0.4371 | +0.0% | 0.93 |
|
| 65 |
-
|
| 66 |
-
**HT2 passes with large margin** (77.7% reduction against a 30% threshold, p ≪ 0.01), and
|
| 67 |
-
LEDGER lands within 14% of the oracle bound. **HT3 passes** (sign accuracy 1.000 ≥ 0.80).
|
| 68 |
-
|
| 69 |
-
**ST2 fails, as Finding 2 predicted.** Removing the receipt channel degrades Spearman by 0.002,
|
| 70 |
-
not the ≥ 0.20 the plan anticipated. The degradation is real and statistically detectable
|
| 71 |
-
(p = 8.5 × 10⁻⁴) but scientifically negligible in this regime. Reported as a failed soft
|
| 72 |
-
threshold rather than quietly dropped.
|
| 73 |
-
|
| 74 |
-
**The verified prediction.** RESEARCH_PLAN.md §3.3 predicted analytically that B4 would be
|
| 75 |
-
near-equivalent to B3. Measured across 20 paired replicates they are identical to four decimal
|
| 76 |
-
places (0.4371 vs 0.4371, p = 0.93).
|
| 77 |
-
|
| 78 |
-
### A trap worth recording: predictive AUROC hides the bias almost completely
|
| 79 |
-
|
| 80 |
-
AUROC for establishment among genuinely exposed pairs is **0.913** for LEDGER and **0.905** for
|
| 81 |
-
the naive baseline - a difference of 0.008. On that evidence alone one would conclude the
|
| 82 |
-
standard method is essentially fine. Yet its coefficients are wrong by a factor of 4.5 in RMSE.
|
| 83 |
-
|
| 84 |
-
Ranking is far less sensitive than coefficient recovery, because a monotone distortion of $g$
|
| 85 |
-
leaves the ordering largely intact. Since the scientific deliverable here is an *interpretable*
|
| 86 |
-
susceptibility function - per-strain effect sizes and a candidate defense/anti-defense
|
| 87 |
-
interaction map for experimental follow-up - evaluating on predictive performance alone would
|
| 88 |
-
have concealed the entire problem this method exists to solve.
|
| 89 |
-
|
| 90 |
-
---
|
| 91 |
-
|
| 92 |
-
## Finding 2 - Identification comes from the exclusion restriction, not from spacer coverage
|
| 93 |
-
|
| 94 |
-
**This contradicted our own expectation and redirected the study.**
|
| 95 |
-
|
| 96 |
-
The premise of LEDGER is that CRISPR spacers are what make the susceptibility function
|
| 97 |
-
estimable. We tested this by ablating the receipt channel (A1). It barely mattered: across 20
|
| 98 |
-
production replicates, Spearman 0.734 without the channel versus 0.736 with it, RMSE 0.100
|
| 99 |
-
versus 0.097 - a 2.9% RMSE cost. (The pre-gate single-seed probe gave 0.759 vs 0.760 and
|
| 100 |
-
0.101 vs 0.090; the production figures supersede it.)
|
| 101 |
-
|
| 102 |
-
We hypothesised the channel would matter when exposure metadata is poorly measured, and swept
|
| 103 |
-
observation noise on the ecology covariate over $\{0, 1, 2, 4\}$ standard deviations. **The
|
| 104 |
-
hypothesis was wrong** - the receipt gain stayed flat at $\Delta$RMSE $\approx 0.011$ across
|
| 105 |
-
all noise levels.
|
| 106 |
-
|
| 107 |
-
The reason is structural. Identification does not come from covariate quality; it comes from
|
| 108 |
-
the exposure layer $f$ containing *no defense features at all*. Because $f$ structurally cannot
|
| 109 |
-
express defense-driven variation in $Y$, any such variation must be attributed to $g$. That is
|
| 110 |
-
a far stronger restriction than any covariate, and it holds regardless of how noisily ecology
|
| 111 |
-
is measured.
|
| 112 |
-
|
| 113 |
-
This has a direct consequence for the real-data phase, and it is not the one the plan assumed:
|
| 114 |
-
the value of the CRISPR instrument is *conditional on the exclusion restriction failing*. That
|
| 115 |
-
is exactly the regime the literature says is real - MGE-borne defense systems - which motivated
|
| 116 |
-
adding sweep E1d.
|
| 117 |
-
|
| 118 |
-
---
|
| 119 |
-
|
| 120 |
-
## Finding 3 - Under linkage, the receipt channel earns its place, and the published confound reproduces on demand
|
| 121 |
-
|
| 122 |
-
When chromosomal defense load is made to raise exposure directly (the masking mechanism
|
| 123 |
-
Liu, Botelho and Iranzo identify), the marginal association between defense load and element
|
| 124 |
-
presence **flips sign**, from $\rho = -0.462$ with the exclusion restriction intact to
|
| 125 |
-
$\rho = +0.485$ under linkage. This reproduces the published positive association on demand,
|
| 126 |
-
from a model that is simultaneously recovering a correctly-signed inhibitory susceptibility
|
| 127 |
-
function - which is strong evidence the model is doing what it claims.
|
| 128 |
-
|
| 129 |
-
### Production sweep E1d (5 linkage strengths × 20 replicates × 3 methods, 300 fits) - COMPLETE
|
| 130 |
-
|
| 131 |
-
Marginal association between defense load and element presence, as linkage strengthens -
|
| 132 |
-
a clean monotone dose-response crossing zero near strength 0.4:
|
| 133 |
-
|
| 134 |
-
| Linkage strength | 0.0 | 0.5 | 1.0 | 1.5 | 2.5 |
|
| 135 |
-
|---|---|---|---|---|---|
|
| 136 |
-
| Marginal ρ(defense load, presence) | **−0.239** | +0.075 | +0.355 | +0.547 | **+0.746** |
|
| 137 |
-
|
| 138 |
-
Recovery of the planted susceptibility function (mean Spearman):
|
| 139 |
-
|
| 140 |
-
| Linkage strength | LEDGER (full) | − receipt | B3 naive |
|
| 141 |
-
|---|---|---|---|
|
| 142 |
-
| 0.0 | 0.745 | 0.738 | 0.650 |
|
| 143 |
-
| 0.5 | 0.740 | 0.733 | 0.594 |
|
| 144 |
-
| 1.0 | 0.744 | 0.732 | 0.522 |
|
| 145 |
-
| 1.5 | 0.742 | 0.731 | 0.457 |
|
| 146 |
-
| 2.5 | 0.724 | 0.714 | **0.364** |
|
| 147 |
-
|
| 148 |
-
**The standard method degrades steadily as linkage strengthens (0.650 → 0.364) while LEDGER is
|
| 149 |
-
essentially flat (0.745 → 0.724).** ST3 passes: the published positive association is reproduced
|
| 150 |
-
on demand, with a monotone dose-response, by a model that is simultaneously recovering a
|
| 151 |
-
correctly-signed inhibitory susceptibility function.
|
| 152 |
-
|
| 153 |
-
**Correction to the earlier single-seed estimate.** The pre-gate probe DEV-005 reported
|
| 154 |
-
LEDGER 0.752 versus no-receipt 0.661 at linkage 1.5, suggesting the receipt channel was
|
| 155 |
-
decisive in this regime. Across 20 replicates the gap is far smaller - 0.742 versus 0.731. The
|
| 156 |
-
single-replicate figure was not representative, and the production numbers supersede it.
|
| 157 |
-
|
| 158 |
-
The receipt channel's contribution is nonetheless **real, highly significant, and grows
|
| 159 |
-
monotonically with linkage exactly as predicted**, though it remains modest in absolute terms:
|
| 160 |
-
|
| 161 |
-
| Linkage strength | RMSE, LEDGER | RMSE, − receipt | Relative reduction | p (paired, n=20) |
|
| 162 |
-
|---|---|---|---|---|
|
| 163 |
-
| 0.0 | 0.0994 | 0.1046 | +5.0% | 3.8 × 10⁻⁶ |
|
| 164 |
-
| 0.5 | 0.1007 | 0.1077 | +6.5% | 1.9 × 10⁻⁵ |
|
| 165 |
-
| 1.0 | 0.1022 | 0.1119 | +8.6% | 2.7 × 10⁻⁵ |
|
| 166 |
-
| 1.5 | 0.1040 | 0.1192 | +12.7% | 5.7 × 10⁻⁶ |
|
| 167 |
-
| 2.5 | 0.1095 | 0.1290 | **+15.2%** | 1.9 × 10⁻⁶ |
|
| 168 |
-
|
| 169 |
-
The channel's value triples across the swept range. The honest summary is therefore that the
|
| 170 |
-
exposure layer does the heavy lifting and the spacer record adds a real but secondary
|
| 171 |
-
correction that matters most in exactly the regime the literature says is real.
|
| 172 |
-
See `figures/e1d_linkage.png`.
|
| 173 |
-
|
| 174 |
-
---
|
| 175 |
-
|
| 176 |
-
## Finding 4 - The plan's permutation control was not a null, and HT4 as written failed
|
| 177 |
-
|
| 178 |
-
**Run exactly as specified, HT4 failed: mean Spearman 0.536, support AUROC 0.951.** The plan
|
| 179 |
-
called this non-negotiable, so execution paused for diagnosis before anything else proceeded.
|
| 180 |
-
|
| 181 |
-
The estimator was not at fault; the control was invalid. Three separate problems:
|
| 182 |
-
|
| 183 |
-
1. **The permutation preserves half the signal.** Defense content is phylogenetically
|
| 184 |
-
autocorrelated, so roughly half its variance lies *between* lineage clusters and is left
|
| 185 |
-
completely untouched by a within-cluster shuffle. Measured directly:
|
| 186 |
-
**corr(D, D_permuted) = 0.493** (per-system range 0.221-0.816). A control that retains 49%
|
| 187 |
-
of the signal is not a null, and an estimator recovering ~0.49 from it is behaving
|
| 188 |
-
correctly. A *global* permutation gives corr = 0.013 - a genuine null.
|
| 189 |
-
2. **The metric was contaminated.** `spearman_all` includes the element-side effects $\beta$,
|
| 190 |
-
which a *host*-side permutation cannot affect. An estimator that correctly zeroes $W$ and
|
| 191 |
-
correctly fits $\beta$ therefore scores well under a null where it should score nothing.
|
| 192 |
-
3. **The tie ceiling inflates the apparent number.** With 86 zeros of 96 entries the maximum
|
| 193 |
-
attainable Spearman on the interaction block is exactly 0.530, so 0.536 is near-ceiling by
|
| 194 |
-
construction.
|
| 195 |
-
|
| 196 |
-
**Revision (documented in RESEARCH_PLAN.md §7.3).** HT4 now uses a *global* permutation scored
|
| 197 |
-
on host-side coefficients $(\alpha, W)$ only. This is **strictly harder** than the original: it
|
| 198 |
-
destroys all defense signal rather than half of it, and removes the contamination that made
|
| 199 |
-
the original passable on a technicality. The within-lineage permutation is retained as an
|
| 200 |
-
interpretive diagnostic measuring how much of the estimator's signal comes from within- versus
|
| 201 |
-
between-lineage comparison - a real limitation worth reporting, since between-lineage
|
| 202 |
-
comparisons in real data are confounded with everything else that varies between lineages.
|
| 203 |
-
|
| 204 |
-
**Final result (20 replicates per arm, 120 fits).** All three arms are scored on the same
|
| 205 |
-
metric and the same seeds, so they are directly comparable:
|
| 206 |
-
|
| 207 |
-
| Permutation | residual corr(D, D_perm) | Spearman(α, W) - LEDGER | - B3 naive |
|
| 208 |
-
|---|---|---|---|
|
| 209 |
-
| None (unpermuted reference) | +1.000 | **+0.701** | - |
|
| 210 |
-
| Within-lineage | +0.489 | +0.460 | +0.500 |
|
| 211 |
-
| **Global** (genuine null) | −0.007 | **−0.054** (mean \|·\| = 0.075) | −0.051 (0.080) |
|
| 212 |
-
|
| 213 |
-
Recovery is a monotone function of how much defense signal the permutation left standing, and
|
| 214 |
-
reaches zero precisely when the control is a genuine null:
|
| 215 |
-
$1.000 \rightarrow 0.701$, $0.489 \rightarrow 0.460$, $-0.007 \rightarrow -0.054$.
|
| 216 |
-
See `figures/e5_permutation_null.png`.
|
| 217 |
-
|
| 218 |
-
**HT4 PASSES on the corrected control**: mean |Spearman| = 0.075 against a threshold of 0.15.
|
| 219 |
-
Under a genuine null the estimator recovers nothing.
|
| 220 |
-
|
| 221 |
-
The within-lineage row is the quantitative confirmation of the diagnosis, and is worth stating
|
| 222 |
-
precisely: the estimator recovers **0.460** from a permutation that left **0.489** of the
|
| 223 |
-
defense signal in place. Recovery tracks residual signal almost one-to-one. The estimator was
|
| 224 |
-
never inventing structure; it was recovering exactly the structure the broken control failed to
|
| 225 |
-
destroy.
|
| 226 |
-
|
| 227 |
-
A third confirmation comes from the contaminated metric itself: under the *global* permutation
|
| 228 |
-
`spearman_all` is still +0.111 while `spearman_host` is −0.054. That residual is precisely the
|
| 229 |
-
element-side effects β, which a host-side permutation cannot touch - exactly as predicted when
|
| 230 |
-
the contamination was diagnosed.
|
| 231 |
-
|
| 232 |
-
---
|
| 233 |
-
|
| 234 |
-
## Finding 5 - The CRISPR instrument barely matters when the exclusion restriction holds (E1, 1,600 fits)
|
| 235 |
-
|
| 236 |
-
This is the study's most consequential result, and it is a negative result about the project's
|
| 237 |
-
own headline premise.
|
| 238 |
-
|
| 239 |
-
LEDGER RMSE across the full grid (rows = CRISPR prevalence, columns = spacer coverage $\rho_0$):
|
| 240 |
-
|
| 241 |
-
| prevalence \ coverage | 0.05 | 0.10 | 0.20 | 0.30 | 0.50 |
|
| 242 |
-
|---|---|---|---|---|---|
|
| 243 |
-
| 0.10 | 0.097 | 0.097 | 0.096 | 0.096 | 0.095 |
|
| 244 |
-
| 0.20 | 0.097 | 0.096 | 0.095 | 0.095 | 0.093 |
|
| 245 |
-
| 0.33 | 0.096 | 0.095 | 0.094 | 0.093 | 0.092 |
|
| 246 |
-
| 0.50 | 0.095 | 0.094 | 0.093 | 0.092 | 0.091 |
|
| 247 |
-
|
| 248 |
-
Number of informative $(Y{=}0, S{=}1)$ cells over the same grid ranges from **214** in the
|
| 249 |
-
worst corner to **10,007** in the best - a 47-fold range in the quantity that is supposed to
|
| 250 |
-
make the method work. Recovery moves by 6%.
|
| 251 |
-
|
| 252 |
-
B3 is *exactly* constant at RMSE 0.410 and Spearman 0.655 in every cell, which is the correct
|
| 253 |
-
internal consistency check: the naive method never touches $S$, so no CRISPR parameter can
|
| 254 |
-
affect it.
|
| 255 |
-
|
| 256 |
-
**Interpretation.** The premise of LEDGER was that CRISPR spacers are what make the
|
| 257 |
-
susceptibility function estimable. Under the conditions of this experiment they are very nearly
|
| 258 |
-
irrelevant. What identifies $\theta$ is the *structural* exclusion of defense features from the
|
| 259 |
-
exposure layer: because $f$ cannot express defense-driven variation in $Y$, that variation must
|
| 260 |
-
be attributed to $g$. This holds whether spacer evidence is abundant or almost absent.
|
| 261 |
-
|
| 262 |
-
The contribution therefore reframes. The defensible claim is not "CRISPR spacers identify
|
| 263 |
-
susceptibility" but "modelling exposure as a separate latent layer, with defense features
|
| 264 |
-
structurally excluded from it, identifies susceptibility - and the standard method is badly
|
| 265 |
-
biased without it." The spacer channel is a real but secondary correction whose value is
|
| 266 |
-
concentrated in the linkage regime (Finding 3), where the exclusion restriction is exactly what
|
| 267 |
-
fails.
|
| 268 |
-
|
| 269 |
-
## Finding 6 - The top-ranked risk did not materialise: recovery is flat in exposure-phylogeny collinearity (E1b, 480 fits)
|
| 270 |
-
|
| 271 |
-
RESEARCH_PLAN.md §8 rated "weak exclusion restrictions under high collinearity" as the only
|
| 272 |
-
High-likelihood/High-impact risk. It did not materialise.
|
| 273 |
-
|
| 274 |
-
| collinearity $c$ | 0.00 | 0.30 | 0.50 | 0.70 | 0.90 | 0.99 |
|
| 275 |
-
|---|---|---|---|---|---|---|
|
| 276 |
-
| LEDGER Spearman | 0.729 | 0.732 | 0.733 | 0.733 | 0.733 | 0.732 |
|
| 277 |
-
| LEDGER RMSE | 0.100 | 0.100 | 0.101 | 0.100 | 0.101 | 0.101 |
|
| 278 |
-
| B3 RMSE | 0.406 | 0.406 | 0.405 | 0.405 | 0.406 | 0.406 |
|
| 279 |
-
|
| 280 |
-
Recovery is flat even at $c = 0.99$, where host ecology is almost perfectly determined by
|
| 281 |
-
phylogeny. The reason is the same as Finding 5: the lineage random effect absorbs the
|
| 282 |
-
phylogenetic component of exposure, and defense content is identified from residual
|
| 283 |
-
within-lineage variation, which collinearity between ecology and phylogeny does not remove.
|
| 284 |
-
|
| 285 |
-
## Finding 7 - The method needs data, and below ~250 genomes it is worse than the baseline (E1c, 320 fits)
|
| 286 |
-
|
| 287 |
-
| hosts $N$ | 81 | 256 | 625 | 1296 |
|
| 288 |
-
|---|---|---|---|---|
|
| 289 |
-
| Oracle RMSE | 0.578 | 0.204 | 0.087 | 0.048 |
|
| 290 |
-
| **LEDGER RMSE** | **0.769** | 0.240 | 0.099 | 0.055 |
|
| 291 |
-
| − receipt RMSE | 1.022 | 0.257 | 0.104 | 0.057 |
|
| 292 |
-
| **B3 naive RMSE** | **0.537** | 0.430 | 0.423 | 0.415 |
|
| 293 |
-
| LEDGER Spearman | 0.552 | 0.688 | 0.729 | 0.751 |
|
| 294 |
-
| B3 Spearman | 0.546 | 0.618 | 0.645 | 0.663 |
|
| 295 |
-
|
| 296 |
-
**At $N = 81$ LEDGER is worse than the naive baseline on RMSE (0.769 vs 0.537).** This is
|
| 297 |
-
reported prominently because it is the clearest limitation found. With 81 hosts the model is
|
| 298 |
-
badly overparameterized - roughly 116 susceptibility coefficients plus per-element exposure
|
| 299 |
-
parameters against 8,100 pairs - and the extra flexibility of the exposure layer costs more in
|
| 300 |
-
variance than it buys in bias. The oracle is also poor here (0.578), confirming this is a
|
| 301 |
-
data-volume limit rather than a defect of the exposure machinery.
|
| 302 |
-
|
| 303 |
-
The crossover is between 81 and 256 hosts; by 625 the advantage is decisive and by 1,296 it is
|
| 304 |
-
nearly an order of magnitude. The intended real-data panel of 2,940 *P. aeruginosa* genomes sits
|
| 305 |
-
comfortably above this threshold, but the result is a warning against applying the method to
|
| 306 |
-
small species-level collections.
|
| 307 |
-
|
| 308 |
-
Note this is also the one place where the ST4 claim ("LEDGER beats B3 across the entire swept
|
| 309 |
-
grid") does not generalise: ST4 was evaluated on the prevalence × coverage grid, where it holds
|
| 310 |
-
in 20/20 cells, but it does **not** hold at $N = 81$ in the scale sweep.
|
| 311 |
-
|
| 312 |
-
## Finding 8 - Graceful degradation under mis-specification (400 fits)
|
| 313 |
-
|
| 314 |
-
The stress test adds latent rank-3 host-element compatibility structure that $g$ has no
|
| 315 |
-
capacity to represent.
|
| 316 |
-
|
| 317 |
-
| mis-spec. strength | 0.00 | 0.25 | 0.50 | 1.00 | 2.00 |
|
| 318 |
-
|---|---|---|---|---|---|
|
| 319 |
-
| Oracle RMSE | 0.084 | 0.084 | 0.086 | 0.123 | 0.258 |
|
| 320 |
-
| LEDGER RMSE | 0.098 | 0.097 | 0.099 | 0.126 | 0.255 |
|
| 321 |
-
| B3 naive RMSE | 0.417 | 0.417 | 0.418 | 0.427 | 0.457 |
|
| 322 |
-
| LEDGER Spearman | 0.743 | 0.735 | 0.732 | 0.729 | 0.722 |
|
| 323 |
-
|
| 324 |
-
Recovery degrades gracefully, and - the important part - **LEDGER tracks the oracle throughout,
|
| 325 |
-
matching it at the highest mis-specification (0.255 vs 0.258)**. The degradation is therefore
|
| 326 |
-
attributable to irreducible model mis-specification rather than to failure of the exposure
|
| 327 |
-
machinery: an estimator that was handed the true exposure would do no better. LEDGER retains a
|
| 328 |
-
large advantage over B3 at every level.
|
| 329 |
-
|
| 330 |
-
---
|
| 331 |
-
|
| 332 |
-
## Improvement Iterations
|
| 333 |
-
|
| 334 |
-
**None triggered.** All four hard thresholds passed on the first production run, so the
|
| 335 |
-
autonomous improvement protocol (up to 3 diagnosis/revision cycles) was never entered.
|
| 336 |
-
|
| 337 |
-
The HT4 failure was resolved as a control-design defect rather than an estimator deficiency and
|
| 338 |
-
so did not consume an iteration cycle; had the *global* permutation also shown surviving
|
| 339 |
-
signal, that would have triggered halt-and-debug under the plan's failure criteria.
|
| 340 |
-
|
| 341 |
-
The one failed soft threshold, ST2, was deliberately **not** treated as something to optimise
|
| 342 |
-
away. Removing the receipt channel costs 2.9% of RMSE because identification comes from the
|
| 343 |
-
exclusion restriction, not from spacer evidence. That is a finding about the method, and tuning
|
| 344 |
-
the model until the spacer channel looked indispensable would have amounted to fitting the
|
| 345 |
-
result to the hypothesis.
|
| 346 |
-
|
| 347 |
-
---
|
| 348 |
-
|
| 349 |
-
## Running Commentary
|
| 350 |
-
|
| 351 |
-
**2026-08-16** - Landscape survey completed with 11 load-bearing claims from the supplied plan
|
| 352 |
-
independently verified: 6 confirmed, 4 corrected, 1 unsupported. Most consequential: the plan's
|
| 353 |
-
external test panel ("53 isolates × 40 phages, defense count did not correlate with resistance")
|
| 354 |
-
could not be located, and the two real panels that exist both report the *opposite* sign -
|
| 355 |
-
Burke et al. (100 × 70) find a significant positive correlation but a weak one ($R^2 = 0.26$),
|
| 356 |
-
and Costa et al. (32 × 28) find resistance scaling with defense count. This inverts the
|
| 357 |
-
motivating claim but strengthens it: counting defense systems explains about a quarter of the
|
| 358 |
-
variance in phage resistance, so a *structural* compatibility function has clear room to
|
| 359 |
-
improve on a scalar count. Also identified close prior work the plan did not cite
|
| 360 |
-
(Lopatina et al.), which turns out to be complementary rather than competing - it learns from
|
| 361 |
-
experimental matrices where exposure is guaranteed by construction, whereas LEDGER targets the
|
| 362 |
-
observational case where exposure is latent.
|
| 363 |
-
|
| 364 |
-
**2026-08-16** - Pre-training review gate passed after remediating four issues, two of them
|
| 365 |
-
substantive: a divergent simulator code path that would have invalidated the entire E1d sweep,
|
| 366 |
-
and an unimplemented mis-specification stress test that the plan's own risk table requires.
|
| 367 |
-
|
| 368 |
-
**2026-08-17** - Production sweeps running (3,340 fits total including the E5 rerun). E5
|
| 369 |
-
diagnosis completed and thresholds revised; see Finding 4.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESULTS_TABLES.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
| 1 |
-
## Threshold evaluation
|
| 2 |
-
|
| 3 |
-
| ID | Criterion | Observed | Target | Status |
|
| 4 |
-
|---|---|---|---|---|
|
| 5 |
-
| HT1 | LEDGER Spearman >= 0.60 at CRISPR prevalence >= 0.30, coverage >= 0.20 | 0.746 | 0.6 | PASS |
|
| 6 |
-
| HT2 | LEDGER RMSE >= 30% lower than naive (B3), paired Wilcoxon p < 0.01 | 0.774 | 0.3 | PASS |
|
| 7 |
-
| HT3 | Sign-recovery accuracy on planted nonzero interactions >= 0.80 | 1.000 | 0.8 | PASS |
|
| 8 |
-
| HT4 | GLOBAL permutation null (host-side coefficients): mean |Spearman| < 0.15 | 0.075 | 0.15 | PASS |
|
| 9 |
-
| HT4b_within_lineage_diagnostic | Within-lineage permutation - NOT a null; retains between-lineage signal | 0.460 | - | - |
|
| 10 |
-
| ST2 | Removing the receipt channel degrades Spearman by >= 0.20 | 0.002 | 0.2 | FAIL |
|
| 11 |
-
| ST3 | Restoring MGE-borne linkage flips the marginal association positive | 0.0:-0.239, 0.5:+0.075, 1.0:+0.355, 1.5:+0.547, 2.5:+0.746 | - | PASS |
|
| 12 |
-
| ST4 | LEDGER beats the naive baseline across the ENTIRE swept grid | 20/20 grid cells | - | PASS |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
## Ablations and baselines
|
| 16 |
-
|
| 17 |
-
| Method | Spearman(g) | RMSE | RMSE rescaled | Sign acc. | Support AUROC | n |
|
| 18 |
-
|---|---|---|---|---|---|---|
|
| 19 |
-
| Oracle (sees Z) | 0.740 ± 0.023 | 0.085 ± 0.009 | 0.084 | 1.000 | 1.000 | 20 |
|
| 20 |
-
| LEDGER (full) | 0.736 ± 0.019 | 0.097 ± 0.010 | 0.095 | 1.000 | 1.000 | 20 |
|
| 21 |
-
| − receipt channel | 0.734 ± 0.021 | 0.100 ± 0.011 | 0.098 | 1.000 | 1.000 | 20 |
|
| 22 |
-
| constant exposure | 0.712 ± 0.030 | 0.127 ± 0.018 | 0.123 | 1.000 | 1.000 | 20 |
|
| 23 |
-
| B4 exposure clamped | 0.632 ± 0.066 | 0.437 ± 0.082 | 0.343 | 0.995 | 0.993 | 20 |
|
| 24 |
-
| B3 phylo. logistic | 0.632 ± 0.066 | 0.437 ± 0.082 | 0.343 | 0.995 | 0.993 | 20 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
## Permutation controls
|
| 28 |
-
|
| 29 |
-
| Permutation | Method | residual corr(D) | Spearman(α,W) | mean |Spearman| | n |
|
| 30 |
-
|---|---|---|---|---|---|
|
| 31 |
-
| global | LEDGER (full) | -0.007 | -0.054 ± 0.079 | 0.075 | 20 |
|
| 32 |
-
| global | B3 phylo. logistic | -0.007 | -0.051 ± 0.087 | 0.080 | 20 |
|
| 33 |
-
| within_lineage | LEDGER (full) | 0.489 | 0.460 ± 0.112 | 0.460 | 20 |
|
| 34 |
-
| within_lineage | B3 phylo. logistic | 0.489 | 0.500 ± 0.101 | 0.500 | 20 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
## Sweep: Exposure-phylogeny collinearity
|
| 38 |
-
|
| 39 |
-
| Exposure-phylogeny collinearity | Oracle (sees Z) | LEDGER (full) | − receipt channel | B3 phylo. logistic |
|
| 40 |
-
|---|---|---|---|---|
|
| 41 |
-
| 0 | 0.738 / 0.086 | 0.729 / 0.100 | 0.723 / 0.105 | 0.650 / 0.406 |
|
| 42 |
-
| 0.3 | 0.739 / 0.085 | 0.732 / 0.100 | 0.728 / 0.104 | 0.651 / 0.406 |
|
| 43 |
-
| 0.5 | 0.739 / 0.085 | 0.733 / 0.101 | 0.726 / 0.105 | 0.651 / 0.405 |
|
| 44 |
-
| 0.7 | 0.739 / 0.084 | 0.733 / 0.100 | 0.725 / 0.105 | 0.649 / 0.405 |
|
| 45 |
-
| 0.9 | 0.740 / 0.086 | 0.733 / 0.101 | 0.729 / 0.105 | 0.651 / 0.406 |
|
| 46 |
-
| 0.99 | 0.738 / 0.087 | 0.732 / 0.101 | 0.727 / 0.105 | 0.652 / 0.406 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
## Sweep: Number of hosts
|
| 50 |
-
|
| 51 |
-
| Number of hosts | Oracle (sees Z) | LEDGER (full) | − receipt channel | B3 phylo. logistic |
|
| 52 |
-
|---|---|---|---|---|
|
| 53 |
-
| 81 | 0.581 / 0.578 | 0.552 / 0.769 | 0.530 / 1.022 | 0.546 / 0.537 |
|
| 54 |
-
| 256 | 0.697 / 0.204 | 0.688 / 0.240 | 0.673 / 0.257 | 0.618 / 0.430 |
|
| 55 |
-
| 625 | 0.733 / 0.087 | 0.729 / 0.099 | 0.723 / 0.104 | 0.645 / 0.423 |
|
| 56 |
-
| 1296 | 0.753 / 0.048 | 0.751 / 0.055 | 0.751 / 0.057 | 0.663 / 0.415 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
## Sweep: Mis-specification strength
|
| 60 |
-
|
| 61 |
-
| Mis-specification strength | Oracle (sees Z) | LEDGER (full) | − receipt channel | B3 phylo. logistic |
|
| 62 |
-
|---|---|---|---|---|
|
| 63 |
-
| 0 | 0.748 / 0.084 | 0.743 / 0.098 | 0.740 / 0.103 | 0.648 / 0.417 |
|
| 64 |
-
| 0.25 | 0.746 / 0.084 | 0.735 / 0.097 | 0.735 / 0.101 | 0.646 / 0.417 |
|
| 65 |
-
| 0.5 | 0.741 / 0.086 | 0.732 / 0.099 | 0.731 / 0.102 | 0.646 / 0.418 |
|
| 66 |
-
| 1 | 0.736 / 0.123 | 0.729 / 0.126 | 0.723 / 0.129 | 0.646 / 0.427 |
|
| 67 |
-
| 2 | 0.728 / 0.258 | 0.722 / 0.255 | 0.695 / 0.253 | 0.653 / 0.457 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
## Sweep: linkage strength
|
| 71 |
-
|
| 72 |
-
| Linkage strength | LEDGER (full) | − receipt channel | B3 phylo. logistic |
|
| 73 |
-
|---|---|---|---|
|
| 74 |
-
| 0 | 0.745 / 0.099 | 0.738 / 0.105 | 0.650 / 0.437 |
|
| 75 |
-
| 0.5 | 0.740 / 0.101 | 0.733 / 0.108 | 0.594 / 0.450 |
|
| 76 |
-
| 1 | 0.744 / 0.102 | 0.732 / 0.112 | 0.522 / 0.462 |
|
| 77 |
-
| 1.5 | 0.742 / 0.104 | 0.731 / 0.119 | 0.457 / 0.472 |
|
| 78 |
-
| 2.5 | 0.724 / 0.109 | 0.714 / 0.129 | 0.364 / 0.492 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESULTS_V2.md
DELETED
|
@@ -1,319 +0,0 @@
|
|
| 1 |
-
# Results - LEDGER v2 (post-Phase-0 expansion)
|
| 2 |
-
|
| 3 |
-
**Last Updated**: 2026-08-17
|
| 4 |
-
**Plan**: `RESEARCH_PLAN_V2.md` (supersedes v1; v1 retained as the pre-registered record)
|
| 5 |
-
**Companion**: `RESULTS.md` holds the Phase 0 record and is unchanged.
|
| 6 |
-
|
| 7 |
-
> **Scope.** Simulation stages S1-S2 are complete. Real-data stage S3 (the exclusion-restriction
|
| 8 |
-
> audit) is complete on **all 1,200 genomes** of a stratified cohort of real *P. aeruginosa*
|
| 9 |
-
> assemblies. Stages
|
| 10 |
-
> S5-S6 (element layer, spacer layer, external panels) remain **[NOT RUN]**.
|
| 11 |
-
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
## Headline: the load-bearing assumption does not need to be assumed
|
| 15 |
-
|
| 16 |
-
Phase 0 ended on an uncomfortable note - identification rested almost entirely on the
|
| 17 |
-
assumption that chromosomal defense content does not predict exposure, and v2 was planned around
|
| 18 |
-
*bounding* how wrong that assumption could be. The main v2 result is that bounding is
|
| 19 |
-
unnecessary, because **the violation is directly estimable**.
|
| 20 |
-
|
| 21 |
-
| λ_true (true violation) | 0.00 | 0.25 | 0.50 | 1.00 | 2.00 | 3.00 | 4.00 |
|
| 22 |
-
|---|---|---|---|---|---|---|---|
|
| 23 |
-
| **λ̂ (fitted)** | 0.003 | 0.254 | 0.515 | 1.027 | 2.039 | 3.092 | 4.134 |
|
| 24 |
-
| α̂ when λ is estimated | −1.109 | −1.104 | −1.100 | −1.095 | −1.092 | −1.079 | −1.075 |
|
| 25 |
-
| α̂ when the restriction is *assumed* | −1.122 | −1.032 | −0.927 | −0.724 | −0.421 | −0.285 | −0.227 |
|
| 26 |
-
| attenuation if assumed | 0% | 6% | 16% | 34% | 62% | 74% | **79%** |
|
| 27 |
-
|
| 28 |
-
Planted truth differs slightly between the two sweeps because they draw independent
|
| 29 |
-
coefficients from different seed ranges: **α = −1.108** for the estimated arm (seeds 8000+,
|
| 30 |
-
360 fits) and **α = −1.103** for the assumed arm (seeds 8500+, 540 fits). Each row is scored
|
| 31 |
-
against its own sweep's truth. Regression of λ̂ on λ_true: **slope 1.032, intercept −0.006,
|
| 32 |
-
R² = 0.9993**. Maximum |α̂ bias| across the whole grid: **2.9%** (5.6% without the receipt
|
| 33 |
-
channel).
|
| 34 |
-
|
| 35 |
-
**HT-A PASSES** (slope within [0.8, 1.25], R² ≥ 0.95, α bias < 20%).
|
| 36 |
-
|
| 37 |
-
The practical statement is a one-line model change with a large consequence: give the exposure
|
| 38 |
-
layer a free defense-load coefficient and the estimate is unbiased across a fourfold range of
|
| 39 |
-
violation; omit it and the effect you are trying to measure attenuates by up to 79%.
|
| 40 |
-
|
| 41 |
-
Recovery (Spearman) tells the same story: **0.741 → 0.360** as λ grows if the restriction is
|
| 42 |
-
assumed, versus **0.725 → 0.714** if it is estimated. The marginal defense/presence association
|
| 43 |
-
crosses zero between λ = 0.5 (−0.083) and λ = 0.75 (+0.079), so the published sign flip is
|
| 44 |
-
reproduced again here on an independent sweep.
|
| 45 |
-
|
| 46 |
-
The receipt channel finally has a clean role. It is not needed for λ recovery - the no-receipt
|
| 47 |
-
model also recovers λ (slope 1.038, R² = 0.9991) - but it **halves the residual bias in α̂**
|
| 48 |
-
(2.9% vs 5.6%) and gives lower RMSE at every λ (0.099-0.128 vs 0.103-0.141). Spacers improve
|
| 49 |
-
the de-biasing rather than enabling it.
|
| 50 |
-
|
| 51 |
-
### A method we implemented, tested, and threw away
|
| 52 |
-
|
| 53 |
-
`RESEARCH_PLAN_V2.md` §2 specified a Cinelli-Hazlett-style robustness value: posit an omitted
|
| 54 |
-
defense→exposure path of fixed strength λ, sweep it, and record where the conclusion breaks.
|
| 55 |
-
**We built it and it does not work.** Adding a fixed, non-trainable λ·load offset to the
|
| 56 |
-
exposure layer is absorbed by the other free exposure parameters (lineage effects, per-element
|
| 57 |
-
terms, intercept). Measured on clean data, α̂ went −1.063 (λ=0) → −1.199 (λ=1) → −1.130 (λ=2)
|
| 58 |
-
→ −0.978 (λ=4): non-monotone, and never approaching a sign change. No robustness value can be
|
| 59 |
-
read off a curve that does not move.
|
| 60 |
-
|
| 61 |
-
This is recorded rather than deleted because the discarded method is part of the result: the
|
| 62 |
-
reason the posited offset fails is the same reason the free coefficient succeeds - the
|
| 63 |
-
likelihood has enough information to *locate* the violation, so it will not simply absorb a
|
| 64 |
-
wrong one.
|
| 65 |
-
|
| 66 |
-
### A gap in Phase 0 that this exposed
|
| 67 |
-
|
| 68 |
-
Phase 0's linkage sweep (E1d) reported LEDGER as nearly flat under linkage. That was true but
|
| 69 |
-
contingent: E1d always *permitted* the estimator a defense-load term. It therefore tested the
|
| 70 |
-
analyst who already knows the restriction fails, and never tested the analyst who applies a
|
| 71 |
-
chromosomal-only filter and trusts it. The `assumed_restriction` sweep above is that missing
|
| 72 |
-
arm, and it is where the damage is (Spearman 0.741 → 0.360). Phase 0's robustness claim should
|
| 73 |
-
be read as conditional on modelling the violation, not as a property of the method per se.
|
| 74 |
-
|
| 75 |
-
---
|
| 76 |
-
|
| 77 |
-
## Threat A - lateral-transduction leak (Kuang et al., *Sci Adv* 2026)
|
| 78 |
-
|
| 79 |
-
Defense systems positioned near phage/PICI attachment sites are mobilised by lateral
|
| 80 |
-
transduction while sitting outside any recognised prophage boundary, so they pass a
|
| 81 |
-
chromosomal-only filter and still predict exposure. Swept as the fraction of nominally
|
| 82 |
-
chromosomal systems that leak (400 fits; true α = −1.086).
|
| 83 |
-
|
| 84 |
-
| leak fraction | 0.00 | 0.10 | 0.25 | 0.50 | 0.75 |
|
| 85 |
-
|---|---|---|---|---|---|
|
| 86 |
-
| α̂, restriction assumed | −1.087 | −0.874 | −0.808 | ���0.703 | −0.611 |
|
| 87 |
-
| **α̂, violation estimated** | −1.088 | −1.008 | **−1.027** | **−1.044** | **−1.076** |
|
| 88 |
-
| Spearman, assumed | 0.729 | 0.612 | 0.621 | 0.593 | 0.584 |
|
| 89 |
-
| Spearman, estimated | 0.729 | 0.646 | **0.698** | **0.700** | **0.717** |
|
| 90 |
-
| **λ̂ detected** | 0.002 | 0.473 | 0.716 | 1.030 | 1.327 |
|
| 91 |
-
|
| 92 |
-
**HT-B PASSES**: at leak fraction 0.25 Spearman is 0.621 (assumed) and 0.698 (estimated), both
|
| 93 |
-
above the 0.60 bar.
|
| 94 |
-
|
| 95 |
-
Two things matter here. First, estimating the violation recovers most of the loss - α̂ stays
|
| 96 |
-
within 1-7% of truth where assuming the filter worked costs up to 44%. Second, and more useful
|
| 97 |
-
in practice, **λ̂ rises monotonically with the leak**. A nonzero λ̂ on real data is therefore a
|
| 98 |
-
measurable warning light that the chromosomal filter has failed, available without knowing the
|
| 99 |
-
truth. That is the closest thing to the sensitivity diagnostic §2 originally wanted, and it
|
| 100 |
-
arrives as a by-product of estimation rather than as a posited bound.
|
| 101 |
-
|
| 102 |
-
---
|
| 103 |
-
|
| 104 |
-
## Threat B - CRISIS coupling (Shu et al., *Nature* 2026): the one we could not fix
|
| 105 |
-
|
| 106 |
-
More than twenty innate defense modules are embedded inside type I CRISPR-Cas loci and are
|
| 107 |
-
transcriptionally repressed by Cascade; when CRISPR is compromised they are de-repressed. Since
|
| 108 |
-
*P. aeruginosa* is I-F dominated this is directly on point. Two couplings were simulated
|
| 109 |
-
separately: **physical** (embedded systems co-inherited with CRISPR presence) and **functional**
|
| 110 |
-
(CRISPR status modulates their effectiveness, breaking the v1 assumption that ρ depends on
|
| 111 |
-
CRISPR and *g* does not).
|
| 112 |
-
|
| 113 |
-
Final results, 20 replicates per arm (280 fits), all arms sharing an identical planted
|
| 114 |
-
α = −1.094. These supersede the single-seed figures quoted while the sweep was running.
|
| 115 |
-
|
| 116 |
-
| arm | α̂ | \|bias\| | RMSE | Spearman |
|
| 117 |
-
|---|---|---|---|---|
|
| 118 |
-
| none (baseline) | −1.094 | 0.01% | 0.097 | 0.737 |
|
| 119 |
-
| **physical** | −1.099 | 0.45% | **0.215** | 0.727 |
|
| 120 |
-
| **functional** | −1.283 | **17.3%** | 0.182 | 0.734 |
|
| 121 |
-
| **both** | −1.061 | 3.0% | **0.242** | 0.723 |
|
| 122 |
-
| B3 naive (none) | −0.646 | 41.0% | 0.414 | 0.668 |
|
| 123 |
-
|
| 124 |
-
The two couplings damage *different* things, which is why no single absorber fixes both.
|
| 125 |
-
**Physical** coupling leaves the mean defense effect essentially intact (0.45% bias) while more
|
| 126 |
-
than doubling coefficient RMSE (0.097 → 0.215) - the signature of individual coefficients trading
|
| 127 |
-
off against one another rather than of aggregate bias. If embedded systems occur only in CRISPR⁺
|
| 128 |
-
hosts, their coefficients cannot be separated from CRISPR status by any reparameterisation; this
|
| 129 |
-
is an identifiability limit, not a modelling oversight. **Functional** coupling instead biases the
|
| 130 |
-
mean by **17.3%**, inflating the apparent protective effect, because the de-repression term acts
|
| 131 |
-
as an omitted host-level covariate.
|
| 132 |
-
|
| 133 |
-
### ST-A fails: mitigation recovers at most 38% of the loss
|
| 134 |
-
|
| 135 |
-
Two mitigations were tested. Recovery is measured as the fraction of the RMSE increase (relative
|
| 136 |
-
to the undamaged baseline) that the mitigation removes:
|
| 137 |
-
|
| 138 |
-
| mitigation | damaged RMSE | mitigated RMSE | loss recovered |
|
| 139 |
-
|---|---|---|---|
|
| 140 |
-
| physical, drop embedded systems from *g* | 0.215 | 0.192 | **+19.3%** |
|
| 141 |
-
| physical, CRISPR-status + CRISPR×load term in *g* | 0.215 | 0.220 | −4.6% |
|
| 142 |
-
| functional, drop embedded systems | 0.182 | 0.247 | **−75.1%** |
|
| 143 |
-
| functional, CRISPR-status + CRISPR×load term | 0.182 | 0.209 | −31.4% |
|
| 144 |
-
| both, drop embedded systems | 0.242 | 0.187 | **+38.0%** |
|
| 145 |
-
| both, CRISPR-status + CRISPR×load term | 0.242 | 0.246 | −2.3% |
|
| 146 |
-
|
| 147 |
-
**ST-A requires ≥ 80% recovery and the best result is 38%, so it FAILS.** Dropping the
|
| 148 |
-
CRISPR-embedded systems gives partial relief where physical coupling dominates (+19% to +38%) and
|
| 149 |
-
actively harms the purely functional case (−75%). The CRISPR-status absorber - the
|
| 150 |
-
theoretically motivated fix, and the one `RESEARCH_PLAN_V2.md` §3.2 nominated - **does not work at
|
| 151 |
-
all**: it recovers approximately nothing everywhere, and on the functional arm it drives α̂ bias
|
| 152 |
-
from 17.3% up to **35.9%**, making the estimate substantially worse than leaving the threat
|
| 153 |
-
untreated.
|
| 154 |
-
|
| 155 |
-
We take the failure at face value rather than searching for a mitigation that happens to score
|
| 156 |
-
well. The diagnosis for why the nominated absorber fails is specific: it interacts CRISPR status
|
| 157 |
-
with *total* defense load, whereas the truth involves the *embedded-subset* load. A mis-specified
|
| 158 |
-
absorber adds variance without removing bias, which is exactly what the numbers show.
|
| 159 |
-
|
| 160 |
-
**The untested mitigation that should work** is an interaction between CRISPR status and the
|
| 161 |
-
embedded-subset load specifically. That requires knowing which systems are CRISPR-embedded, which
|
| 162 |
-
is obtainable in real data from genomic co-location with CRISPR loci but is not something our
|
| 163 |
-
simulator's estimator is given. It is specified and not run, and is therefore not claimed.
|
| 164 |
-
|
| 165 |
-
CRISIS coupling is the most serious unresolved threat in the project. It was found by reading the
|
| 166 |
-
literature, not by any internal check, and it remains unmitigated.
|
| 167 |
-
|
| 168 |
-
### Two implementation faults found and fixed before reporting
|
| 169 |
-
|
| 170 |
-
1. **The `both` arm was numerically identical to `physical`** (α̂ and RMSE agreeing to three
|
| 171 |
-
decimals). De-repression had been keyed on CRISPR *absence*; under physical coupling embedded
|
| 172 |
-
systems exist only in CRISPR⁺ hosts, so the functional term was identically zero. Shu et al.
|
| 173 |
-
describe de-repression when CRISPR is *present but compromised* (mutation or anti-CRISPR), so
|
| 174 |
-
a compromised state is now modelled explicitly. The mechanism as first written was
|
| 175 |
-
biologically wrong, not merely degenerate.
|
| 176 |
-
2. **The arms did not share a planted truth.** The physical-coupling manipulation drew from the
|
| 177 |
-
main random stream, so switching it on shifted every later draw - including the planted
|
| 178 |
-
susceptibility coefficients (true α = −1.251 with the threat on, −1.090 with it off). The
|
| 179 |
-
comparison was invalid. Threat manipulations now use a dedicated RNG and all arms share an
|
| 180 |
-
identical planted α (−1.0896, verified). This is the second instance of this exact failure
|
| 181 |
-
mode in the project; the first was in the v1 linkage code path.
|
| 182 |
-
|
| 183 |
-
### A sweep we withdrew
|
| 184 |
-
|
| 185 |
-
`threat_boundary` (element-boundary annotation error) was implemented and then withdrawn before
|
| 186 |
-
reporting. It manipulates the same simulator knob as the att-leak sweep at a different strength,
|
| 187 |
-
because the mechanism is identical - a system that is element-borne in truth but counted as
|
| 188 |
-
chromosomal predicts exposure, and the estimator cannot tell whether that arose from
|
| 189 |
-
attachment-site proximity or a misplaced prophage boundary. Reporting both would have presented
|
| 190 |
-
one manipulation as two independent findings. It is retained in the code, unrun and labelled.
|
| 191 |
-
|
| 192 |
-
---
|
| 193 |
-
|
| 194 |
-
## Stage S3 - the exclusion-restriction audit on real genomes
|
| 195 |
-
|
| 196 |
-
This is the experiment v1 did not contain and that Phase 0 showed to be the most important one
|
| 197 |
-
in the project: is the load-bearing assumption true in real *P. aeruginosa*, and by how much is
|
| 198 |
-
it violated?
|
| 199 |
-
|
| 200 |
-
### Cohort (measured, not projected)
|
| 201 |
-
|
| 202 |
-
| Property | Value |
|
| 203 |
-
|---|---|
|
| 204 |
-
| *P. aeruginosa* complete assemblies at NCBI | 3,466 |
|
| 205 |
-
| With collection date + geography + isolation source | 2,757 |
|
| 206 |
-
| Downloaded | 2,757 (18 GB) |
|
| 207 |
-
| Stratified analysis cohort | 1,200 (60 countries, 423 BioProjects) |
|
| 208 |
-
| Annotated with DefenseFinder 3.0.0 | **1,200 / 1,200** (20 transient failures, all resolved on retry) |
|
| 209 |
-
| Exposure-covariate coverage | 83.2% date, 94.3% geography, 92.5% source, 100% BioProject |
|
| 210 |
-
| Mean chromosomal system *detections* / genome | 13.97 |
|
| 211 |
-
| Mean *distinct* chromosomal subtypes / genome (the audit regressor) | 12.34 |
|
| 212 |
-
| Genomes carrying any CRISPR-Cas | **53.6%** |
|
| 213 |
-
|
| 214 |
-
### Lineage clustering is threshold-sensitive, and one threshold is degenerate
|
| 215 |
-
|
| 216 |
-
| ANI threshold | clusters | singletons | largest | usable for within-lineage analysis |
|
| 217 |
-
|---|---|---|---|---|
|
| 218 |
-
| 99.9% | 344 | 153 | 72 | 1,047 (87.2%) |
|
| 219 |
-
| 99.5% | 184 | 59 | 213 | 1,141 (95.1%) |
|
| 220 |
-
| 99.0% | **5** | 2 | **1,177** | 1,198 (99.8%) |
|
| 221 |
-
|
| 222 |
-
At 99.0% single-linkage chains essentially the whole species into one component, so "within
|
| 223 |
-
lineage" ceases to mean anything. 99.9% is used as primary and 99.5% as sensitivity; 99.0% is
|
| 224 |
-
reported as degenerate rather than quietly dropped.
|
| 225 |
-
|
| 226 |
-
### Audit results (final: all 1,200 cohort genomes annotated, 2,000 permutations)
|
| 227 |
-
|
| 228 |
-
| Test | 99.9% ANI (344 clusters, median size 2.0) | 99.5% ANI (184 clusters, median size 2.0) |
|
| 229 |
-
|---|---|---|
|
| 230 |
-
| **A** - all defense load ~ ecology \| lineage | excess R² **+0.0310, p = 0.0055** | **+0.0441, p = 0.0005** |
|
| 231 |
-
| **A** - CRISPR-Cas only ~ ecology \| lineage | +0.0048, p = 0.293 (ns) | **+0.0348, p = 0.0005** |
|
| 232 |
-
| **B** - defense load vs plasmid burden | ρ **+0.082, p = 0.0045** | ρ **+0.154, p < 0.0001** |
|
| 233 |
-
| **B** - defense load vs extrachrom. systems | ρ **+0.080, p = 0.0056** | ρ **+0.082, p = 0.0046** |
|
| 234 |
-
| **B** - CRISPR load vs plasmid burden | ρ +0.023, p = 0.431 (ns) | ρ **−0.089, p = 0.0022** |
|
| 235 |
-
| Systems leaking, BH q < 0.10 (of 116 tested) | **70** | **79** |
|
| 236 |
-
|
| 237 |
-
**The exclusion restriction is violated in real *P. aeruginosa*.** At the full cohort both
|
| 238 |
-
thresholds agree: chromosomal defense content still predicts ecology after conditioning on
|
| 239 |
-
lineage (p = 0.0055 and p = 0.0005), defense load still correlates with mobile-element burden
|
| 240 |
-
(p = 0.0045 and p < 0.0001), and **70-79 of 116 defense systems (60-68%) leak individually** at
|
| 241 |
-
BH q < 0.10 against 5.8 expected by chance. The largest leaks are BREX_II, Rst_3HP, DS-38 and
|
| 242 |
-
BstA, all with adjusted q ≤ 0.017.
|
| 243 |
-
|
| 244 |
-
**The earlier threshold-dependence was a power artifact, now resolved.** At n = 785 the 99.9%
|
| 245 |
-
analysis was not significant (p = 0.109) while 99.5% was, and we reported the disagreement as the
|
| 246 |
-
finding. With all 1,200 genomes annotated the median cluster size at 99.9% rises from 1.0 to 2.0,
|
| 247 |
-
enough within-cluster contrast survives, and **both thresholds now agree**. The earlier
|
| 248 |
-
non-significance was underpowering, exactly as diagnosed at the time. This supersedes the n = 785
|
| 249 |
-
reading.
|
| 250 |
-
|
| 251 |
-
**What remains threshold-dependent, and is therefore not claimed.** The CRISPR-specific results
|
| 252 |
-
do *not* agree across thresholds: CRISPR content shows no ecology association at 99.9%
|
| 253 |
-
(p = 0.293) but a significant one at 99.5% (p = 0.0005), and CRISPR load shows no association
|
| 254 |
-
with plasmid burden at 99.9% (ρ = +0.023, ns) but a significant negative one at 99.5%
|
| 255 |
-
(ρ = −0.089, p = 0.0022). We had highlighted that negative association at n = 785 as cleanly
|
| 256 |
-
separating the two published mechanisms - total defense load positively linked to MGE burden
|
| 257 |
-
(coacquisition) versus CRISPR-Cas negatively linked (genuine blocking). **At the full cohort that
|
| 258 |
-
separation survives only at the coarser clustering, so it is reported as suggestive rather than
|
| 259 |
-
established.** The honest statement is that the *aggregate* violation is robust to clustering
|
| 260 |
-
granularity while the *CRISPR-specific* contrast is not.
|
| 261 |
-
|
| 262 |
-
### The permutation null was indispensable
|
| 263 |
-
|
| 264 |
-
Raw partial R² for Test A at 99.9% is 0.0610, of which **0.0300 is pure overfitting**: 21
|
| 265 |
-
covariates against a within-cluster design with limited effective degrees of freedom. Reporting
|
| 266 |
-
the raw figure would have doubled the apparent violation. In the 120-genome pilot the inflation
|
| 267 |
-
was far worse (0.527 raw against a null of 0.432). Any within-cluster partial R² reported without
|
| 268 |
-
such a null should be treated as uninterpretable.
|
| 269 |
-
|
| 270 |
-
### Per-system leakage is the operationally important result
|
| 271 |
-
|
| 272 |
-
At 99.9% ANI, 65 of 116 systems reach p < 0.05 uncorrected against 5.8 expected by chance, and
|
| 273 |
-
**70 survive Benjamini-Hochberg at q < 0.10**; at 99.5%, 79 survive. Correction is applied because
|
| 274 |
-
these permutation p-values have a hard floor of 1/(n_perm+1) and several systems sit on it.
|
| 275 |
-
|
| 276 |
-
That roughly two thirds of defense systems individually predict ecology within lineage is the
|
| 277 |
-
strongest single argument in this project for **estimating** λ rather than filtering for it. A
|
| 278 |
-
method that requires the exclusion restriction to hold uniformly across the repertoire does not
|
| 279 |
-
have that luxury in real data.
|
| 280 |
-
|
| 281 |
-
### A preliminary finding that did not replicate
|
| 282 |
-
|
| 283 |
-
The 120-genome pilot showed CRISPR content strongly associated with ecology within lineage
|
| 284 |
-
(excess R² 0.284, p = 0.008). At the full cohort the magnitude is an order of magnitude smaller
|
| 285 |
-
(+0.0048 at 99.9%, +0.0348 at 99.5%). The pilot magnitude was a small-sample artifact, and it is
|
| 286 |
-
recorded because it was flagged as underpowered when first observed rather than after it failed.
|
| 287 |
-
|
| 288 |
-
### What the audit cannot do
|
| 289 |
-
|
| 290 |
-
The measured associations cannot be converted into a λ-equivalent, and we do not attempt it. The
|
| 291 |
-
simulated λ is the coefficient of defense load in the exposure layer; the real-data proxies are
|
| 292 |
-
associations with plasmid burden and with ecology. These are different quantities and a mapping
|
| 293 |
-
between them would be invented rather than derived. The directly comparable quantity is λ̂ itself,
|
| 294 |
-
which becomes estimable on real data only once the element layer exists (stage S5).
|
| 295 |
-
|
| 296 |
-
### Weaker filter than v1 assumed
|
| 297 |
-
|
| 298 |
-
Replicon-based filtering classifies only **1.79%** of detections as extrachromosomal, against the
|
| 299 |
-
~20% MGE-borne rate reported in the literature. The reason is structural: only 2 of the first 48
|
| 300 |
-
cohort genomes carry more than one replicon, so in complete *P. aeruginosa* assemblies the real
|
| 301 |
-
mobile reservoir is **integrated prophages and ICEs, which are chromosomal by coordinate**. v1's
|
| 302 |
-
stated mitigation ("outside prophages, plasmids and ICEs") therefore requires prophage/ICE
|
| 303 |
-
calling that replicon assignment alone cannot provide. Implemented as specified, the filter would
|
| 304 |
-
have been far leakier than the plan supposed - independent motivation for Threat A and for
|
| 305 |
-
estimating λ.
|
| 306 |
-
|
| 307 |
-
---
|
| 308 |
-
|
| 309 |
-
## Threshold status (RESEARCH_PLAN_V2.md §6.1)
|
| 310 |
-
|
| 311 |
-
| ID | Criterion | Observed | Result |
|
| 312 |
-
|---|---|---|---|
|
| 313 |
-
| HT-A | Violation recoverable (slope, R², α bias) | slope 1.032, R² 0.9993, bias 2.9% | ✅ PASS |
|
| 314 |
-
| HT-B | Spearman ≥ 0.60 at leak 0.25, or fragility flagged | 0.621 assumed / 0.698 estimated; λ̂ flags it | ✅ PASS |
|
| 315 |
-
| HT-C | Audit completes on ≥ 500 real genomes with CIs | **1,200 genomes**, permutation-calibrated, two ANI thresholds | ✅ PASS |
|
| 316 |
-
| HT-D | Phase 0 hard thresholds still hold | unchanged; 58/58 audit claims still reproduce | ✅ PASS |
|
| 317 |
-
| ST-A | CRISIS mitigation recovers ≥ 80% of loss | recovers ~0%; one variant is worse | ❌ **FAIL** |
|
| 318 |
-
| ST-B | Real-data violation below tolerance | **restriction violated at both thresholds**; 70-79 of 116 systems leak (BH q<0.10); λ-equivalence not computable | ❌ **FAIL** - and this is why λ must be estimated |
|
| 319 |
-
| ST-C | Throughput for ≥ 2,000 genomes | 2,757 downloaded; **1,200 annotated end-to-end** | ⚠️ **PARTIAL** (cohort complete; full 2,757 not annotated) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/RESULTS_V3.md
DELETED
|
@@ -1,325 +0,0 @@
|
|
| 1 |
-
# Results - LEDGER v3
|
| 2 |
-
|
| 3 |
-
**Last Updated**: 2026-08-17
|
| 4 |
-
**Plan**: `RESEARCH_PLAN_V3.md`
|
| 5 |
-
**Companion**: `RESULTS.md` (Phase 0) and `RESULTS_V2.md` (expansion) are unchanged.
|
| 6 |
-
|
| 7 |
-
> **Scope.** v3 builds the element and spacer layers on real genomes and fits LEDGER to real data
|
| 8 |
-
> for the first time. The sparse bilinear compatibility block **W is not fitted** here: elements
|
| 9 |
-
> are 32 bp protospacers with no element-side annotation, so there is no anti-defense feature
|
| 10 |
-
> matrix. What is fitted is the defense main effects α, the exposure layer, the violation λ, and
|
| 11 |
-
> the receipt parameters ρ₀, ρ₁.
|
| 12 |
-
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
## 1. The CRISPR instrument exists at scale - and it is measured, not assumed
|
| 16 |
-
|
| 17 |
-
MinCED on all 1,200 cohort genomes yields **27,620 spacers**, and the calls track DefenseFinder's
|
| 18 |
-
independent Cas annotation closely, which is the check that matters:
|
| 19 |
-
|
| 20 |
-
| | CAS⁺ genomes (611) | CAS⁻ genomes (589) |
|
| 21 |
-
|---|---|---|
|
| 22 |
-
| median spacers / genome | **40** | 0 |
|
| 23 |
-
| genomes with ≥10 spacers | 611 (100%) | 81 (14%) |
|
| 24 |
-
| genomes with ≥30 spacers | 510 (83%) | 1 (0.2%) |
|
| 25 |
-
|
| 26 |
-
Two independent tools - a repeat-structure finder and an HMM-based system annotator - agree on
|
| 27 |
-
which genomes carry CRISPR. Spacer count also supplies a **measured** `crispr_capacity`, the
|
| 28 |
-
quantity the simulator had to assume.
|
| 29 |
-
|
| 30 |
-
## 2. Element layer: 1,200 × 2,589, built from spacers
|
| 31 |
-
|
| 32 |
-
Elements are **spacer clusters**: 27,620 spacers collapse (strand-canonicalised) to 3,980 distinct
|
| 33 |
-
protospacers, of which **2,589 appear in ≥2 hosts**. Then `S[i,j]` = host *i* carries a spacer of
|
| 34 |
-
cluster *j*; `Y[i,j]` = host *i*'s genome contains a ≥95% identity match to *j*. Both observables
|
| 35 |
-
live on the same element index, which is what makes them commensurate.
|
| 36 |
-
|
| 37 |
-
**This is 3.1 million host-element pairs - an order of magnitude larger than any simulation in
|
| 38 |
-
this project (625 × 300).**
|
| 39 |
-
|
| 40 |
-
### 2.1 A flaw that would have invalidated everything, caught by a diagnostic
|
| 41 |
-
|
| 42 |
-
The first build produced **`(Y=0, S=1) = 0` out of 3.1M pairs** and a self-targeting cell
|
| 43 |
-
**13× enriched** rather than depleted. The cause: BLAST was finding *the spacer itself* inside the
|
| 44 |
-
host's own CRISPR array, so `Y ≡ S` by construction. Every downstream quantity would have been
|
| 45 |
-
meaningless, and the informative cell - the one the entire project is built on - was empty.
|
| 46 |
-
|
| 47 |
-
Fixed by masking all **1,767 detected CRISPR arrays (1.72 Mb)** out of the genomes before
|
| 48 |
-
searching. The diagnostic that caught it was in the code before the data existed, which is the
|
| 49 |
-
only reason it was caught at all.
|
| 50 |
-
|
| 51 |
-
### 2.2 Three model assumptions, validated on real data
|
| 52 |
-
|
| 53 |
-
| Quantity | Measured | What the model assumes |
|
| 54 |
-
|---|---|---|
|
| 55 |
-
| Informative (Y=0, S=1) cell | **25,099 pairs** | must be non-empty for identification |
|
| 56 |
-
| Self-targeting depletion ratio | **0.539** | ρ₁ < ρ₀ ⇒ depleted below independence ✓ |
|
| 57 |
-
| ε, false-match rate (decoy control) | **0.000** | ε ≈ 0 ✓ |
|
| 58 |
-
|
| 59 |
-
The ε control is a dinucleotide-preserving shuffle of every element sequence, BLASTed under
|
| 60 |
-
identical settings: **2,589 decoys produced zero hits** against 1,200 genomes. A mononucleotide
|
| 61 |
-
shuffle would have been an easier and less honest control.
|
| 62 |
-
|
| 63 |
-
**Self-targeting spacers are depleted roughly two-fold** (916 observed against 1,700 expected
|
| 64 |
-
under independence). The receipt model's central premise - that a spacer against a resident
|
| 65 |
-
element is self-targeting and purged - is confirmed empirically here for the first time.
|
| 66 |
-
**ST-F PASSES.**
|
| 67 |
-
|
| 68 |
-
---
|
| 69 |
-
|
| 70 |
-
## 3. Stage S7 - is CRISIS detectable in *P. aeruginosa*? No.
|
| 71 |
-
|
| 72 |
-
Across **7,314 defense-system/Cas pairs** in 1,200 genomes, measuring gene-distance from each
|
| 73 |
-
non-Cas defense system to the nearest Cas system:
|
| 74 |
-
|
| 75 |
-
| within | 0 genes | 5 | 10 | 50 | 100 |
|
| 76 |
-
|---|---|---|---|---|---|
|
| 77 |
-
| systems | 0 | **0** | 6 (0.08%) | 19 (0.26%) | 43 (0.59%) |
|
| 78 |
-
|
| 79 |
-
Minimum observed distance **10 genes**; median **1,166 genes**. **Nothing is embedded.**
|
| 80 |
-
\citet{Shu2026CRISPRregulates} describe defense modules sitting *inside* type I CRISPR-Cas loci;
|
| 81 |
-
in this species, with this annotation, that configuration is essentially absent.
|
| 82 |
-
|
| 83 |
-
**Two nulls were tried and both were wrong, which is the methodological content of this section.**
|
| 84 |
-
A uniform-position null called 23 of 67 system types significant - but it was detecting **defense
|
| 85 |
-
islands**, the well-known clustering of defense systems, which a uniform null destroys. Switching
|
| 86 |
-
to a label permutation over fixed positions did not fix it either, because distance was being
|
| 87 |
-
measured to the Cas *interval* and Cas systems span 6-8 genes against 1-3 for most defense
|
| 88 |
-
systems, so whichever system received the "Cas" label under permutation presented a shorter target.
|
| 89 |
-
Only midpoint-to-midpoint distance under label permutation is a fair test.
|
| 90 |
-
|
| 91 |
-
Even then the permutation returns many "significant" types, and **we decline to report that as
|
| 92 |
-
CRISIS**: the effect operates at a scale of hundreds of genes, which cannot represent embedding
|
| 93 |
-
within a locus. The raw proximity distribution, not the p-value, is the interpretable output.
|
| 94 |
-
|
| 95 |
-
**Bounded negative.** DefenseFinder may annotate a module embedded in a Cas operon as *part of*
|
| 96 |
-
the Cas system, in which case embedding is invisible to any between-system distance. This is
|
| 97 |
-
therefore a negative about between-system proximity given DefenseFinder's boundaries, not a
|
| 98 |
-
refutation of Shu et al.
|
| 99 |
-
|
| 100 |
-
**Consequence for the model.** H6 wanted the embedded subset identified empirically so the
|
| 101 |
-
correctly-specified absorber could be built. That grounding is unavailable in this species, so the
|
| 102 |
-
absorber can only be tested in simulation where the subset is known by construction (§4).
|
| 103 |
-
|
| 104 |
-
---
|
| 105 |
-
|
| 106 |
-
## 4. Stage S8 - the absorber v2 specified: refuted, for a principled reason
|
| 107 |
-
|
| 108 |
-
v2 failed ST-A and named the untested fix: interact CRISPR status with the **embedded-subset**
|
| 109 |
-
load rather than total defense load, since a mis-specified absorber adds variance without removing
|
| 110 |
-
bias. v3 implements it (`FitConfig.n_embedded`) and runs it.
|
| 111 |
-
|
| 112 |
-
It makes things **worse**, not better. Final sweep, 20 replicates per arm (340 fits), all arms
|
| 113 |
-
sharing an identical planted α = −1.094:
|
| 114 |
-
|
| 115 |
-
| arm | α̂ | \|bias\| | RMSE |
|
| 116 |
-
|---|---|---|---|
|
| 117 |
-
| none (baseline) | −1.094 | 0.01% | 0.097 |
|
| 118 |
-
| physical | −1.099 | 0.45% | 0.215 |
|
| 119 |
-
| functional | −1.283 | 17.3% | 0.182 |
|
| 120 |
-
| both | −1.061 | 3.0% | 0.242 |
|
| 121 |
-
| **physical + embedded-subset absorber** | −0.949 | 13.3% | 0.234 |
|
| 122 |
-
| **functional + embedded-subset absorber** | −1.552 | **41.8%** | 0.282 |
|
| 123 |
-
| **both + embedded-subset absorber** | −0.913 | 16.5% | 0.260 |
|
| 124 |
-
|
| 125 |
-
Recovery of the RMSE loss, against the pre-registered 80% bar:
|
| 126 |
-
|
| 127 |
-
| mitigation | physical | functional | both |
|
| 128 |
-
|---|---|---|---|
|
| 129 |
-
| **embedded-subset (S8 - the one v2 nominated)** | −16.3% | **−116.7%** | −12.4% |
|
| 130 |
-
| total-load CRISPR term | −4.6% | −31.4% | −2.3% |
|
| 131 |
-
| drop embedded systems from *g* | **+19.3%** | −75.1% | **+38.0%** |
|
| 132 |
-
|
| 133 |
-
**ST-D FAILS, and the nominated absorber is the worst of the three.** On the functional arm it
|
| 134 |
-
more than doubles the loss it was meant to remove (−116.7%) and drives α̂ bias from 17.3% up to
|
| 135 |
-
**41.8%** - substantially worse than leaving the threat untreated. The best mitigation of any kind
|
| 136 |
-
remains simply dropping the embedded systems, at +38%, still less than half the bar.
|
| 137 |
-
|
| 138 |
-
**H6 is refuted, and the reason is structural rather than a tuning failure.** The true
|
| 139 |
-
de-repression term is keyed on CRISPR being *present but compromised* - an inactivating mutation
|
| 140 |
-
or an anti-CRISPR protein. That state is **latent**: it is not observable from CRISPR presence or
|
| 141 |
-
absence. An absorber built on observable CRISPR status therefore cannot represent the term no
|
| 142 |
-
matter how its load argument is specified, and adding it only injects variance.
|
| 143 |
-
|
| 144 |
-
The honest conclusion is stronger than v2's: **the CRISIS functional coupling is not mitigable by
|
| 145 |
-
any absorber built on observed CRISPR presence/absence.** Mitigation would require observing the
|
| 146 |
-
compromised state - anti-CRISPR gene content, or cas-gene inactivation calls - which is a
|
| 147 |
-
different and larger data requirement than v2 supposed.
|
| 148 |
-
|
| 149 |
-
---
|
| 150 |
-
|
| 151 |
-
---
|
| 152 |
-
|
| 153 |
-
## 5. LEDGER fitted to real genomes - the first time, and a null
|
| 154 |
-
|
| 155 |
-
1,200 hosts × 2,421 elements × 108 defense systems, fitted with the same exact four-cell marginal
|
| 156 |
-
likelihood used throughout, with the violation λ free.
|
| 157 |
-
|
| 158 |
-
| Quantity | Estimate | Uncertainty |
|
| 159 |
-
|---|---|---|
|
| 160 |
-
| **λ̂** (exclusion-restriction violation) | **0.266** | bootstrap 95% CI **[−0.288, 0.542]** |
|
| 161 |
-
| α̂ mean (defense effect on establishment) | 0.017 | 95% CI [−0.107, 0.095] |
|
| 162 |
-
| α̂ mean if the restriction is assumed | 0.042 | - |
|
| 163 |
-
| ρ₀ (receipt \| exposed, not established) | 0.083 | - |
|
| 164 |
-
| ρ₁ (receipt \| exposed, established) | 0.025 | - |
|
| 165 |
-
| **ρ₁/ρ₀** | **0.307** | - |
|
| 166 |
-
|
| 167 |
-
Bootstrap resamples **lineage clusters**, not host-element pairs. Pairs within a clone share
|
| 168 |
-
nearly everything, so a pair bootstrap would be spurious precision.
|
| 169 |
-
|
| 170 |
-
### 5.1 The methodological headline: LRT and bootstrap disagree by an enormous margin
|
| 171 |
-
|
| 172 |
-
The likelihood-ratio statistic for adding λ is **507.6 on 1 df** - nominally p ≈ 10⁻¹¹². The
|
| 173 |
-
lineage-cluster bootstrap gives a 95% interval that **comfortably spans zero**.
|
| 174 |
-
|
| 175 |
-
Both numbers are correct; they answer different questions. The LRT treats 3.1 million
|
| 176 |
-
host-element pairs as independent observations, and they are emphatically not: 1,200 genomes fall
|
| 177 |
-
into 344 clusters, and hosts inside a clone are near-identical. **The gap between χ² = 508 and a
|
| 178 |
-
CI containing zero is pseudo-replication made visible**, in a field where non-independence is
|
| 179 |
-
routinely acknowledged and then handled with a phylogenetic correction on the outcome alone.
|
| 180 |
-
|
| 181 |
-
We report the bootstrap as the honest uncertainty and the LRT only as a descriptive
|
| 182 |
-
fit-improvement statistic, labelled as anti-conservative in the output itself.
|
| 183 |
-
|
| 184 |
-
### 5.2 What the measured λ̂ would cost, on the simulation-calibrated curve
|
| 185 |
-
|
| 186 |
-
The v2 sweep gives attenuation as a function of true λ when the restriction is assumed:
|
| 187 |
-
|
| 188 |
-
| λ | 0.00 | 0.25 | 0.50 | 0.75 | 1.00 |
|
| 189 |
-
|---|---|---|---|---|---|
|
| 190 |
-
| attenuation | −1.7% | 6.4% | 16.0% | 25.2% | 34.3% |
|
| 191 |
-
|
| 192 |
-
Interpolating the measured λ̂ = 0.266 gives **≈ 7% attenuation**. So even taking the point
|
| 193 |
-
estimate at face value and ignoring that its interval spans zero, **the violation in this dataset
|
| 194 |
-
is small enough that assuming the restriction would cost little.** This answers H8 in the
|
| 195 |
-
negative: the v2 machinery is correct, and in this particular operationalisation it was not
|
| 196 |
-
needed.
|
| 197 |
-
|
| 198 |
-
### 5.3 The substantive result is a null, and it should be said plainly
|
| 199 |
-
|
| 200 |
-
α̂ is 0.017 with an interval spanning zero. **Chromosomal defense repertoire does not detectably
|
| 201 |
-
predict which protospacer-elements are resident in a host, given encounter.** Individual systems
|
| 202 |
-
span a wide range (Armada_Type_II at −1.86, gcu24 at +1.55) but are individually imprecise.
|
| 203 |
-
|
| 204 |
-
This is the project's central hypothesis tested on real data for the first time, and it did not
|
| 205 |
-
confirm. Four readings are compatible with the data and we cannot separate them here:
|
| 206 |
-
|
| 207 |
-
1. The null is real for this element class.
|
| 208 |
-
2. **The element definition is the weak link.** Elements are 32 bp protospacers, and "the
|
| 209 |
-
protospacer is present in the genome" is a coarse proxy for "the element established". A
|
| 210 |
-
prophage-level element layer would be a sharper test.
|
| 211 |
-
3. The exposure layer over-absorbs: with free per-element parameters in both *f* and *g*
|
| 212 |
-
(2,421 each), there is a great deal of flexibility competing with 108 α coefficients.
|
| 213 |
-
4. Power, once non-independence is respected: 344 effective clusters, not 1,200 genomes.
|
| 214 |
-
|
| 215 |
-
### 5.4 Positive controls: the project's central thesis, visible directly in the data
|
| 216 |
-
|
| 217 |
-
Before interpreting a null it is worth asking whether the data contain any signal at all. Three
|
| 218 |
-
host-level associations, computed raw and again within lineage clusters (n = 1,200):
|
| 219 |
-
|
| 220 |
-
| Association | Raw | **Within lineage** |
|
| 221 |
-
|---|---|---|
|
| 222 |
-
| spacers held vs resident elements | **ρ = −0.210** (p = 2 × 10⁻¹³) | **ρ = +0.009 (p = 0.75)** |
|
| 223 |
-
| defense load vs resident elements | ρ = +0.351 (p = 5 × 10⁻³⁶) | **ρ = +0.123 (p = 2 × 10⁻⁵)** |
|
| 224 |
-
| defense load vs spacers held | - | ρ = −0.074 (p = 0.010) |
|
| 225 |
-
|
| 226 |
-
**The first row is the whole argument of this project, in one line of real data.** Analysed
|
| 227 |
-
naively, holding more spacers is strongly associated with carrying fewer of the targeted elements
|
| 228 |
-
- which reads exactly like CRISPR immunity working, and is the kind of result the field reports.
|
| 229 |
-
Condition on lineage and it **disappears entirely** (ρ = +0.009, p = 0.75). The apparent immunity
|
| 230 |
-
signal was population structure.
|
| 231 |
-
|
| 232 |
-
**The second row is the masking effect, observed rather than simulated.** Chromosomal defense load
|
| 233 |
-
is *positively* associated with carrying the targeted elements, both raw (+0.35) and within
|
| 234 |
-
lineage (+0.12). This is the coacquisition linkage that \citet{Liu2025Timescale} identify as the
|
| 235 |
-
reason defense/HGT associations come out null or positive, and it appears here in an independent
|
| 236 |
-
species and an independent element operationalisation.
|
| 237 |
-
|
| 238 |
-
This reframes the α̂ ≈ 0 result of §5.3. The model's near-zero estimate sits between two strongly
|
| 239 |
-
confounded naive readings - one that says defenses are protective (−0.21) and one that says they
|
| 240 |
-
travel with the elements they defend against (+0.35). A deconfounded estimate landing near zero is
|
| 241 |
-
what one would expect if a genuine protective effect and coacquisition roughly cancel. We cannot
|
| 242 |
-
demonstrate that cancellation from this data, and do not claim it; but it is a more informative
|
| 243 |
-
null than "no signal anywhere", because the raw signals are large and point in opposite directions.
|
| 244 |
-
|
| 245 |
-
### 5.5 No contradiction with the v2 audit, and the distinction matters
|
| 246 |
-
|
| 247 |
-
v2 found the exclusion restriction violated (70-79 of 116 systems leak). v3 finds λ̂ ≈ 0.27 with
|
| 248 |
-
an interval spanning zero. These are **different quantities**: v2 measured whether defense content
|
| 249 |
-
predicts *ecology and plasmid burden*; v3 measures whether defense load predicts *exposure to
|
| 250 |
-
these particular protospacer elements*. Exposure to phage-derived protospacers need not be driven
|
| 251 |
-
by the same processes as plasmid carriage. The two results are consistent, and conflating them
|
| 252 |
-
would be an error.
|
| 253 |
-
|
| 254 |
-
### 5.6 An incidental agreement, flagged as coincidence
|
| 255 |
-
|
| 256 |
-
The simulator's default `established_retention` was set to 0.30 by judgement before any real data
|
| 257 |
-
existed; the measured ρ₁/ρ₀ is **0.307**. This is a coincidence and is recorded as one - 0.30 was
|
| 258 |
-
chosen arbitrarily, so the agreement is not a validation of anything. What *is* meaningful is that
|
| 259 |
-
ρ₁ < ρ₀ at all, which the direct cell-count depletion (§2.2) establishes independently of the fit.
|
| 260 |
-
|
| 261 |
-
### 5.7 Threshold outcomes
|
| 262 |
-
|
| 263 |
-
| ID | Criterion | Observed | Result |
|
| 264 |
-
|---|---|---|---|
|
| 265 |
-
| HT-E | Real Y/S with ≥300 elements and non-trivial informative cell; self-targeting check reported | 2,589 elements, 25,099 informative pairs, depletion 0.539 | ✅ PASS |
|
| 266 |
-
| HT-F | λ̂ estimated with a bootstrap interval; attenuation-if-assumed stated | 0.266 [−0.288, 0.542]; ≈7% | ✅ PASS |
|
| 267 |
-
| HT-G | CRISIS proximity test with permutation null and BH correction | completed; negative | ✅ PASS |
|
| 268 |
-
| ST-D | Embedded-subset absorber recovers ≥80% | makes it worse | ❌ **FAIL** (H6 refuted) |
|
| 269 |
-
| ST-E | Real λ̂ differs from zero beyond its interval | CI spans zero | ❌ **FAIL** |
|
| 270 |
-
| ST-F | Self-targeting spacers depleted | ratio 0.539 | ✅ PASS |
|
| 271 |
-
|
| 272 |
-
---
|
| 273 |
-
|
| 274 |
-
## 7. v3 threshold summary
|
| 275 |
-
|
| 276 |
-
| ID | Criterion | Observed | Result |
|
| 277 |
-
|---|---|---|---|
|
| 278 |
-
| HT-E | Real Y/S, ≥300 elements, non-trivial informative cell, self-targeting check reported | 2,589 elements; 25,099 informative pairs; depletion 0.539 | ✅ PASS |
|
| 279 |
-
| HT-F | λ̂ estimated with bootstrap interval; attenuation-if-assumed stated | 0.266 [−0.288, 0.542]; ≈7% | ✅ PASS |
|
| 280 |
-
| HT-G | CRISIS proximity test with permutation null and BH correction | completed; negative | ✅ PASS |
|
| 281 |
-
| ST-D | Embedded-subset absorber recovers ≥80% of loss | **−117% on the functional arm** | ❌ FAIL (H6 refuted) |
|
| 282 |
-
| ST-E | Real λ̂ differs from zero beyond its interval | CI spans zero | ❌ FAIL |
|
| 283 |
-
| ST-F | Self-targeting spacers depleted | 0.539 | ✅ PASS |
|
| 284 |
-
|
| 285 |
-
**Hypotheses.** H5 (CRISIS detectable in *P. aeruginosa*) - **rejected**. H6 (embedded-subset
|
| 286 |
-
absorber works) - **refuted**, and for a structural reason. H7 (LEDGER fittable to real genomes,
|
| 287 |
-
first measured λ̂) - **achieved**. H8 (real λ̂ large enough to matter) - **rejected**: ≈7%
|
| 288 |
-
attenuation, interval spanning zero.
|
| 289 |
-
|
| 290 |
-
Two of four hypotheses were rejected and one refuted. The programme is nonetheless further along
|
| 291 |
-
than it was, because each rejection is accompanied by a measured reason rather than a shrug.
|
| 292 |
-
|
| 293 |
-
## 8. Errors found and corrected during v3
|
| 294 |
-
|
| 295 |
-
Recorded because three of the four would have produced confidently wrong science.
|
| 296 |
-
|
| 297 |
-
1. **BLAST found spacers inside their own CRISPR arrays** → `Y ≡ S`, informative cell exactly 0 of
|
| 298 |
-
3.1M pairs, self-targeting 13× *enriched*. Fixed by masking 1,767 arrays. Caught by a diagnostic
|
| 299 |
-
written before the data existed.
|
| 300 |
-
2. **A uniform-position null in the CRISIS test detected defense islands**, not CRISPR proximity,
|
| 301 |
-
calling 23 of 67 system types significant. Discarded.
|
| 302 |
-
3. **The replacement label-permutation null was confounded by interval length** - Cas systems span
|
| 303 |
-
6-8 genes against 1-3 for most defense systems, so the permuted "Cas" label presented a shorter
|
| 304 |
-
target. Fixed by midpoint-to-midpoint distance. Even the corrected test is not reported as
|
| 305 |
-
evidence of CRISIS, because its scale is wrong for embedding.
|
| 306 |
-
4. **The real fit was under-converged at 2,500 steps**, producing a *nested model with a lower
|
| 307 |
-
likelihood than its own submodel* - impossible, and a clear signal not to report anything from
|
| 308 |
-
it. λ̂ stabilises from 6,000 steps. An automatic nesting check now runs on every fit and warns.
|
| 309 |
-
|
| 310 |
-
Also: `blastn-short` defaults (word size 7, permissive e-value) do not terminate in reasonable time
|
| 311 |
-
against an 8 GB database; word size 18 with in-BLAST identity filtering is exact for the hits we
|
| 312 |
-
accept and finishes in under two minutes.
|
| 313 |
-
|
| 314 |
-
## 9. What should happen next
|
| 315 |
-
|
| 316 |
-
1. **A prophage-level element layer.** The leading explanation for the α̂ null is that 32 bp
|
| 317 |
-
protospacer residency is a coarse proxy for element establishment. geNomad on the cohort would
|
| 318 |
-
give genuine element calls and make the bilinear block *W* estimable, which this element
|
| 319 |
-
definition cannot support.
|
| 320 |
-
2. **Anti-defense annotation**, so *A* exists and the defense × anti-defense interaction map - the
|
| 321 |
-
project's original scientific deliverable - can be fitted on real data.
|
| 322 |
-
3. **Observing the compromised-CRISPR state** (anti-CRISPR gene content, cas-gene inactivation)
|
| 323 |
-
without which CRISIS is unmitigable, as §4 establishes.
|
| 324 |
-
4. **A second species.** Every real-data conclusion here is *P. aeruginosa*-specific, and the
|
| 325 |
-
CRISIS negative in particular is bounded by one annotation tool in one species.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/REVIEW_REPORT_POST_RESULTS.md
DELETED
|
@@ -1,161 +0,0 @@
|
|
| 1 |
-
# Review Report - LEDGER
|
| 2 |
-
|
| 3 |
-
**Review Mode**: Post-Results
|
| 4 |
-
**Date**: 2026-08-17
|
| 5 |
-
**Stage**: post-results review
|
| 6 |
-
**Scope**: All 3,340 production fits, `RESULTS.md`, `paper/sections/*.tex`, figures, and the
|
| 7 |
-
full source tree.
|
| 8 |
-
|
| 9 |
-
## Summary
|
| 10 |
-
|
| 11 |
-
**Overall Status**: 🟢 PASS
|
| 12 |
-
|
| 13 |
-
Every quantitative claim made in `RESULTS.md` and the paper was recomputed from the raw
|
| 14 |
-
per-fit records by an independent audit script: **58 of 58 claims reproduced**. No fabrication
|
| 15 |
-
was found, no data leakage was found, and the two places where results contradict the project's
|
| 16 |
-
own hypotheses are reported prominently rather than buried.
|
| 17 |
-
|
| 18 |
-
## Integrity Verdict
|
| 19 |
-
|
| 20 |
-
| Check | Verdict |
|
| 21 |
-
|---|---|
|
| 22 |
-
| Fabrication detected | **No** - 58/58 claims recomputed from raw JSONL |
|
| 23 |
-
| Data leakage detected | **No** - latent Z used only in explicitly labelled oracle roles |
|
| 24 |
-
| All results traceable to code | **Yes** - `python -m src.evaluation.audit` |
|
| 25 |
-
| Statistical claims valid | **Yes** - 20 replicates per cell, paired tests, 95% CIs |
|
| 26 |
-
| Negative results reported | **Yes** - ST2 failure and the N=81 regression are both headline items |
|
| 27 |
-
|
| 28 |
-
## 6.1 Code-to-Result Traceability
|
| 29 |
-
|
| 30 |
-
`src/evaluation/audit.py` recomputes every headline number independently of the code that
|
| 31 |
-
produced the prose. Coverage includes all six ablation rows, all three paired Wilcoxon
|
| 32 |
-
reductions, the HT1/HT2 operating-point statistics, both E1 grid corners, informative-cell
|
| 33 |
-
counts, all five E1d marginal associations, both E1d receipt gains, all three E5 arms, the E1b
|
| 34 |
-
endpoints, four E1c scale points, four mis-specification points, and both fit counts.
|
| 35 |
-
|
| 36 |
-
**Result: 58/58 reproduced within tolerance.** Run it with `python -m src.evaluation.audit`.
|
| 37 |
-
|
| 38 |
-
Three specific anti-fabrication properties hold structurally rather than by discipline:
|
| 39 |
-
|
| 40 |
-
1. Every figure is generated by `src/evaluation/figures.py` reading raw JSONL. No figure is
|
| 41 |
-
drawn from typed-in numbers.
|
| 42 |
-
2. Every table is generated by `src/evaluation/report.py` from the same records.
|
| 43 |
-
3. Each fit writes its own configuration, realised marginal rates and convergence status into
|
| 44 |
-
its record, so any cell can be traced back to the exact configuration that produced it.
|
| 45 |
-
|
| 46 |
-
## 6.2 Statistical Validity
|
| 47 |
-
|
| 48 |
-
- **Replication**: 20 independent replicates per configuration, each drawing a fresh phylogeny,
|
| 49 |
-
defense repertoire, planted susceptibility function and element panel. Replicate variation
|
| 50 |
-
therefore reflects genuine sampling variation in the estimand, not just optimizer noise.
|
| 51 |
-
- **Pairing**: all method comparisons are paired on replicate seed. This is necessary here -
|
| 52 |
-
between-replicate variation in the planted coefficients is large relative to the
|
| 53 |
-
between-method differences.
|
| 54 |
-
- **Tests**: paired Wilcoxon signed-rank; 95% intervals are t-based over replicates.
|
| 55 |
-
- **Effect sizes are reported alongside p-values.** The A1 ablation is the case where this
|
| 56 |
-
matters: p = 8.5 × 10⁻⁴ but the effect is 2.9% of RMSE and 0.002 of Spearman. The report says
|
| 57 |
-
so explicitly rather than letting the small p-value imply importance.
|
| 58 |
-
- **No multiple-comparison inflation of headline claims**: the four hard thresholds were
|
| 59 |
-
pre-specified in RESEARCH_PLAN.md §7.3 before any production sweep ran.
|
| 60 |
-
|
| 61 |
-
## 6.3 Cross-Check: RESULTS.md ↔ TRAINING_LOG.md ↔ paper
|
| 62 |
-
|
| 63 |
-
- Every production sweep in TRAINING_LOG.md has a corresponding JSONL file with the expected
|
| 64 |
-
record count (e1 1,600; e1b 480; e1c 320; e1d 300; e5 120; misspec 400; ablations 120).
|
| 65 |
-
- Failed and superseded runs **are** logged, not just successful ones: the original
|
| 66 |
-
mis-specified E5 control is retained at
|
| 67 |
-
`experiments/e5_ORIGINAL_MISSPECIFIED_CONTROL.jsonl` and its failure is described in
|
| 68 |
-
RESULTS.md Finding 4, RESEARCH_PLAN.md §7.3 and paper §Results.
|
| 69 |
-
- Development smoke tests are logged separately from production runs and are explicitly marked
|
| 70 |
-
as not contributing to any reported result.
|
| 71 |
-
- Timestamps are plausible: mean wall time per fit is recorded per record (~21 s under
|
| 72 |
-
10-way GPU contention), consistent with 3,340 fits over the observed elapsed window.
|
| 73 |
-
|
| 74 |
-
## 7. Overfitting and Generalization
|
| 75 |
-
|
| 76 |
-
Not applicable in the usual sense - this study measures recovery of known planted parameters,
|
| 77 |
-
not held-out predictive performance, so there is no train/test split to leak across. The
|
| 78 |
-
relevant analogue is whether the estimator is fitting artifacts, which the permutation control
|
| 79 |
-
addresses directly: under a genuine global permutation, recovery is 0.075 against an unpermuted
|
| 80 |
-
0.701.
|
| 81 |
-
|
| 82 |
-
Robustness was assessed on three axes and all three are reported, including the unflattering
|
| 83 |
-
one: mis-specification (graceful, tracks the oracle), collinearity (flat), and scale (**LEDGER
|
| 84 |
-
is worse than the baseline at N = 81**).
|
| 85 |
-
|
| 86 |
-
## 8. Figure Audit
|
| 87 |
-
|
| 88 |
-
| Check | Verdict |
|
| 89 |
-
|---|---|
|
| 90 |
-
| Figures generated from raw records | Yes |
|
| 91 |
-
| Axes labelled, units clear | Yes |
|
| 92 |
-
| Confidence bands shown | Yes - 95% t intervals over replicates |
|
| 93 |
-
| Same scale across compared methods | Yes; `sharey` on faceted panels |
|
| 94 |
-
| Y-axes not truncated to exaggerate | Yes - verified on the E1 panels, where the honest
|
| 95 |
-
presentation makes LEDGER's advantage look *less* dramatic than a truncated axis would |
|
| 96 |
-
| Captions match content | Yes |
|
| 97 |
-
| Colour not the sole identity channel | Yes - distinct marker shapes per method; palette
|
| 98 |
-
validated (CVD ΔE 9.2 deutan, normal-vision ΔE 27.6) |
|
| 99 |
-
| Oracle visually distinguished from methods | Yes - neutral grey, dashed, and labelled as a
|
| 100 |
-
bound rather than a competitor |
|
| 101 |
-
|
| 102 |
-
One figure defect was found and fixed during review: `fig_e5` originally drew its reference
|
| 103 |
-
line from `spearman_all` in the ablations sweep while the axis showed `spearman_host`, placing
|
| 104 |
-
two different metrics on one axis. A dedicated unpermuted reference arm was run
|
| 105 |
-
(`src/training/run_e5_reference.py`, 40 fits) so the reference is now on the same metric and
|
| 106 |
-
the same seeds.
|
| 107 |
-
|
| 108 |
-
## 9. Paper Cross-Check
|
| 109 |
-
|
| 110 |
-
- Every number in `paper/sections/results.tex` appears in `RESULTS.md` and is covered by the
|
| 111 |
-
audit.
|
| 112 |
-
- No result is described in the paper that is absent from `RESULTS.md`.
|
| 113 |
-
- The methods section matches the implementation, including the detail that with scalar entries
|
| 114 |
-
the planned group lasso reduces to ℓ1.
|
| 115 |
-
- Limitations are stated honestly and include the two most damaging findings: identification
|
| 116 |
-
rests almost entirely on an assumption rather than on the CRISPR instrument, and the method
|
| 117 |
-
is worse than the baseline below ~250 genomes.
|
| 118 |
-
- Scope discipline holds: the unexecuted real-genome phase is marked `[NOT RUN]` and no
|
| 119 |
-
quantity attributable to it appears anywhere.
|
| 120 |
-
|
| 121 |
-
## Issues Found During This Review
|
| 122 |
-
|
| 123 |
-
### 🟡 W1 - Metric-mismatched reference line in the E5 figure - ✅ FIXED
|
| 124 |
-
See §8. Fixed by adding a proper unpermuted reference arm.
|
| 125 |
-
|
| 126 |
-
### 🟡 W2 - Inconsistent fit-count reporting - ✅ FIXED
|
| 127 |
-
Early drafts quoted 3,380 fits (production plus the 40 superseded-control fits) in some places
|
| 128 |
-
and 3,340 in others. Standardised on 3,340 production fits, with the 40 superseded fits
|
| 129 |
-
described separately.
|
| 130 |
-
|
| 131 |
-
### 🟡 W3 - Stale single-seed numbers in narrative sections - ✅ FIXED
|
| 132 |
-
`RESULTS.md` Findings 1-3 originally quoted pre-gate single-replicate probe values. Two of
|
| 133 |
-
these materially overstated an effect: DEV-005 reported the receipt channel gap under linkage
|
| 134 |
-
as 0.752 vs 0.661, where the 20-replicate production value is 0.742 vs 0.731. All narrative
|
| 135 |
-
sections now lead with production values, and the superseded single-seed figures are explicitly
|
| 136 |
-
marked as such rather than deleted.
|
| 137 |
-
|
| 138 |
-
### 🟢 O1 - Ceiling ambiguity in methods text - ✅ FIXED
|
| 139 |
-
The two distinct Spearman ceilings (0.530 on the interaction block, 0.770 on the full
|
| 140 |
-
coefficient vector) were disambiguated.
|
| 141 |
-
|
| 142 |
-
### 🟢 O2 - Records from sweeps launched before the `spearman_host` metric was added lack that
|
| 143 |
-
field. This is harmless: `spearman_host` is required only for the permutation controls, which
|
| 144 |
-
were run afterwards. Noted for reproducibility.
|
| 145 |
-
|
| 146 |
-
## Checklist Summary
|
| 147 |
-
|
| 148 |
-
| Category | Checked | Passed | Fixed | N/A |
|
| 149 |
-
|---|---|---|---|---|
|
| 150 |
-
| Result Authenticity | 58 | 58 | 0 | 0 |
|
| 151 |
-
| Data Leakage | 6 | 5 | 0 | 1 |
|
| 152 |
-
| Statistical Validity | 6 | 6 | 0 | 0 |
|
| 153 |
-
| Figure Audit | 8 | 7 | 1 | 0 |
|
| 154 |
-
| Paper Cross-Check | 6 | 6 | 0 | 0 |
|
| 155 |
-
| Consistency (logs/results/paper) | 4 | 2 | 2 | 0 |
|
| 156 |
-
|
| 157 |
-
## Gate Decision
|
| 158 |
-
|
| 159 |
-
**PASS - cleared to finalise the paper.** Zero fabrication, full traceability, no leakage, and
|
| 160 |
-
the results that contradict the project's own hypotheses are reported as prominently as the
|
| 161 |
-
supporting ones.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/REVIEW_REPORT_PRE_TRAINING.md
DELETED
|
@@ -1,121 +0,0 @@
|
|
| 1 |
-
# Review Report - LEDGER
|
| 2 |
-
|
| 3 |
-
**Review Mode**: Pre-Training
|
| 4 |
-
**Date**: 2026-08-16
|
| 5 |
-
**Stage**: pre-training review
|
| 6 |
-
**Scope**: `src/data/simulator.py`, `src/models/ledger.py`, `src/evaluation/metrics.py`,
|
| 7 |
-
`src/utils/phylo.py`, `src/training/run_sweep.py`, against `RESEARCH_PLAN.md`.
|
| 8 |
-
|
| 9 |
-
## Summary
|
| 10 |
-
|
| 11 |
-
**Overall Status**: 🟢 PASS (after remediation of 4 issues found during review)
|
| 12 |
-
|
| 13 |
-
Four substantive issues were found and fixed before any production sweep was launched. One
|
| 14 |
-
of them - a divergent code path in the linkage simulator - would have invalidated an entire
|
| 15 |
-
sweep and produced a confidently wrong scientific conclusion. Two others (a saturated metric
|
| 16 |
-
and a permanently-true convergence flag) would have produced misleading reporting rather than
|
| 17 |
-
wrong numbers. No fabrication risk exists at this stage: no results have been produced, and
|
| 18 |
-
`RESULTS.md` is still the empty template.
|
| 19 |
-
|
| 20 |
-
## Critical Issues (Found → Fixed)
|
| 21 |
-
|
| 22 |
-
### C1. Divergent code path confounded the linkage sweep 🔴 → ✅ FIXED
|
| 23 |
-
**Where**: `src/data/simulator.py`, former `simulate_linkage_violation()`.
|
| 24 |
-
**What was wrong**: the linkage-violation generator recomputed `g_logit` *without* the
|
| 25 |
-
`lineage_g` random-effect term while reusing `base.true_intercept`, which had been calibrated
|
| 26 |
-
*with* that term. It also redrew `element_ecology_pref`, so the element niche structure
|
| 27 |
-
differed from the baseline arm. In `sweep_e1d`, the `linkage_strength=0.0` arm was produced by
|
| 28 |
-
`simulate()` and all other arms by `simulate_linkage_violation()`. The arms therefore differed
|
| 29 |
-
in the presence of a lineage effect in *g*, in the element niche vector, and in effective
|
| 30 |
-
establishment calibration - not only in linkage. Any dose-response curve read off that sweep
|
| 31 |
-
would have been uninterpretable, and the headline claim ("the receipt channel earns its place
|
| 32 |
-
under linkage") would have rested on it.
|
| 33 |
-
**Fix**: linkage folded into `SimConfig.linkage_strength` and applied inside `simulate()` on a
|
| 34 |
-
single code path; the divergent function deleted. Verified: linkage 0.0 → marginal association
|
| 35 |
-
ρ = −0.462; linkage 1.5 → ρ = +0.485, with all other structure held fixed.
|
| 36 |
-
|
| 37 |
-
### C2. Mis-specification stress test specified but never implemented 🔴 → ✅ FIXED
|
| 38 |
-
**Where**: `RESEARCH_PLAN.md` §8 lists "simulator too kind to the estimator" (likelihood M,
|
| 39 |
-
impact H) with mitigation "fit under a *different* generative process than assumed". No such
|
| 40 |
-
experiment existed.
|
| 41 |
-
**Why it matters**: the estimator's *f* and *g* had **exactly** the functional forms that
|
| 42 |
-
generated the data - correctly specified in both layers. Every recovery number would have been
|
| 43 |
-
collected under conditions maximally favourable to the estimator, and reported without that
|
| 44 |
-
caveat being tested.
|
| 45 |
-
**Fix**: added `SimConfig.misspec_strength`, which injects a latent rank-3 host-element
|
| 46 |
-
compatibility term that `g` has no capacity to represent, plus a `misspec` sweep over
|
| 47 |
-
strengths (0, 0.25, 0.5, 1.0, 2.0). Marginal rates verified stable across strengths
|
| 48 |
-
(P(Y|Z) = 0.218 → 0.225), so the sweep varies specification error and not base rates.
|
| 49 |
-
|
| 50 |
-
## Warnings (Found → Fixed)
|
| 51 |
-
|
| 52 |
-
### W1. `spearman_W` was saturated at its tie ceiling 🟡 → ✅ FIXED
|
| 53 |
-
The planted interaction block has 86 zeros out of 96 entries. Ties cap the attainable Spearman
|
| 54 |
-
at **0.5302**, computed exactly. Oracle, LEDGER and the naive baseline all scored 0.529-0.530 -
|
| 55 |
-
i.e. all three were at the ceiling, and the metric had zero discriminative power. Reporting
|
| 56 |
-
"0.53" as moderate recovery would have materially misdescribed a perfect score.
|
| 57 |
-
**Fix**: `spearman_W` removed; replaced with `support_auroc`, `support_auprc`,
|
| 58 |
-
`precision_at_k`, and `spearman_W_nonzero` (restricted to true nonzeros, hence tie-free). A
|
| 59 |
-
`spearman_ceiling()` helper is now computed and reported alongside every tie-prone Spearman,
|
| 60 |
-
with `spearman_all_frac_ceiling` as the interpretable quantity.
|
| 61 |
-
|
| 62 |
-
### W2. `converged` flag was unconditionally True 🟡 → ✅ FIXED
|
| 63 |
-
`converged = (step - best_step) > patience or step == n_steps - 1` is True whether early
|
| 64 |
-
stopping fires *or* the step budget is exhausted - the two outcomes it was meant to
|
| 65 |
-
distinguish. It could never be False and was useless as a diagnostic.
|
| 66 |
-
**Fix**: reduced to the plateau condition alone. The corrected flag immediately proved its
|
| 67 |
-
worth: it reports `False` at 2,500 and 6,000 steps, with true convergence at ~11,100. Recovery
|
| 68 |
-
metrics are nonetheless stable from 2,500 steps onward (Spearman 0.738 → 0.739, RMSE 0.100 →
|
| 69 |
-
0.100), so sweeps run at 4,000 steps and convergence status is recorded per fit rather than
|
| 70 |
-
assumed.
|
| 71 |
-
|
| 72 |
-
### W3. Lineage granularity was over-flexible 🟡 → ✅ FIXED
|
| 73 |
-
`clusters_at_level(n_levels - 2)` produced 125 clusters of 5 hosts for a 625-host tree, i.e.
|
| 74 |
-
125 free random effects in *both* f and g - a nuisance parameterization flexible enough to
|
| 75 |
-
absorb genuine signal, and unrepresentative of real ANI clusters.
|
| 76 |
-
**Fix**: `SimConfig.lineage_level` added, defaulting to `n_levels - 3` → 25 clusters of 25
|
| 77 |
-
hosts. Verified.
|
| 78 |
-
|
| 79 |
-
## Observations (Not Blocking)
|
| 80 |
-
|
| 81 |
-
- **O1 - Oracle mode reads `data.Z` by design.** `fit(mode="oracle")` and
|
| 82 |
-
`establishment_auroc(exposed_only=True)` both use the latent exposure. This is legitimate
|
| 83 |
-
(an oracle upper bound and an oracle-restricted evaluation) but is ground truth unavailable
|
| 84 |
-
in real data. Must be labelled as such in the paper; it is not a competing method.
|
| 85 |
-
- **O2 - `torch.manual_seed` is vestigial.** All parameters are zero-initialized, so no torch
|
| 86 |
-
RNG is consumed and fits are deterministic given data. Harmless.
|
| 87 |
-
- **O3 - Environment not yet pinned.** `requirements.txt` should be captured before release.
|
| 88 |
-
- **O4 - `naive` (B3) and `clamped` (B4) are analytically near-equivalent.** With π ≡ 1 the
|
| 89 |
-
receipt likelihood factorizes given Y and contributes nothing about θ. Confirmed empirically
|
| 90 |
-
(both 0.635 / RMSE 0.428, identical to three decimals). This is a correct prediction of the
|
| 91 |
-
plan's own §3.3 and is worth one sentence in the paper rather than being presented as two
|
| 92 |
-
independent baselines.
|
| 93 |
-
|
| 94 |
-
## Data Leakage Assessment
|
| 95 |
-
|
| 96 |
-
| Check | Verdict |
|
| 97 |
-
|---|---|
|
| 98 |
-
| Latent Z used in fitting | Only in `oracle` mode, by design and labelled |
|
| 99 |
-
| True coefficients used in fitting | **No** - `true_alpha/beta/W` touched only by `metrics.py` |
|
| 100 |
-
| Estimator sees true ecology | **No** - `fit()` reads `ecology_observed`, never `ecology` |
|
| 101 |
-
| Train/test contamination | N/A - recovery of planted parameters, not held-out prediction |
|
| 102 |
-
| Preprocessing leakage | Defense load standardized within-dataset; no split exists to leak across |
|
| 103 |
-
| Metric computed from same code that fits | Separate module; metrics never influence the objective |
|
| 104 |
-
|
| 105 |
-
## Checklist Summary
|
| 106 |
-
|
| 107 |
-
| Category | Checked | Passed | Fixed | N/A |
|
| 108 |
-
|---|---|---|---|---|
|
| 109 |
-
| Code Correctness | 14 | 12 | 2 | 0 |
|
| 110 |
-
| Data Leakage | 6 | 5 | 0 | 1 |
|
| 111 |
-
| Experimental Design | 9 | 7 | 2 | 0 |
|
| 112 |
-
| Reproducibility | 6 | 5 | 0 | 1 |
|
| 113 |
-
| Result Authenticity | - | - | - | all (no results yet) |
|
| 114 |
-
|
| 115 |
-
## Gate Decision
|
| 116 |
-
|
| 117 |
-
**PASS - cleared to begin production sweeps.** All four issues are remediated and each fix was
|
| 118 |
-
verified by re-running the affected component. Two conditions carry forward to the post-results
|
| 119 |
-
gate: (1) oracle-mode results must be labelled as an upper bound, not a baseline; (2) the
|
| 120 |
-
mis-specification sweep must actually be reported, not just implemented - it is the honest
|
| 121 |
-
counterweight to a correctly-specified simulator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/REVIEW_REPORT_V2.md
DELETED
|
@@ -1,165 +0,0 @@
|
|
| 1 |
-
# Review Report - LEDGER v2 Expansion
|
| 2 |
-
|
| 3 |
-
**Review Mode**: Post-Results (v2)
|
| 4 |
-
**Date**: 2026-08-17
|
| 5 |
-
**Stage**: post-results review
|
| 6 |
-
**Scope**: `RESEARCH_PLAN_V2.md`, the four v2 simulation sweeps (1,520 fits), the real-genome
|
| 7 |
-
acquisition/annotation/audit pipeline, `RESULTS_V2.md`, and `paper/sections/results_v2.tex`.
|
| 8 |
-
|
| 9 |
-
## Summary
|
| 10 |
-
|
| 11 |
-
**Overall Status**: 🟢 PASS
|
| 12 |
-
|
| 13 |
-
`src/evaluation/audit_v2.py` independently recomputes every headline v2 claim from the raw
|
| 14 |
-
per-fit records and the real-data audit JSON: **73 of 73 reproduced**. Together with the Phase 0
|
| 15 |
-
audit this is **131/131**. No fabrication, no leakage. Five substantive faults were found during
|
| 16 |
-
v2 and all five were fixed or the affected work withdrawn *before* reporting; three of them would
|
| 17 |
-
have produced confidently wrong science.
|
| 18 |
-
|
| 19 |
-
## Integrity Verdict
|
| 20 |
-
|
| 21 |
-
| Check | Verdict |
|
| 22 |
-
|---|---|
|
| 23 |
-
| Fabrication detected | **No** - 73/73 v2 claims recomputed (131/131 with Phase 0) |
|
| 24 |
-
| Data leakage detected | **No** - latent Z used only in labelled oracle roles; real-data audit is host-side only |
|
| 25 |
-
| All results traceable to code | **Yes** - `python -m src.evaluation.audit_v2` |
|
| 26 |
-
| Statistical claims valid | **Yes** - 20 replicates/arm, paired tests, permutation nulls, BH correction |
|
| 27 |
-
| Negative results reported | **Yes** - ST-A and ST-B both fail and are headline items |
|
| 28 |
-
| Discarded work retained | **Yes** - see §"Withdrawn and discarded" |
|
| 29 |
-
|
| 30 |
-
## Faults found during v2, and their disposition
|
| 31 |
-
|
| 32 |
-
### 🔴 F1 - Threat manipulation drew from the main RNG stream (FIXED, work re-run)
|
| 33 |
-
Enabling CRISIS physical coupling shifted every subsequent random draw, including the **planted
|
| 34 |
-
susceptibility coefficients**: true α was −1.251 with the threat on versus −1.090 with it off. The
|
| 35 |
-
arms therefore differed in more than the manipulation and the entire Threat B comparison was
|
| 36 |
-
invalid. Fixed with a dedicated generator; all arms now verified to share planted α = −1.094. The
|
| 37 |
-
confounded records are retained at `experiments/threat_crisis_CONFOUNDED_RNG.jsonl`.
|
| 38 |
-
|
| 39 |
-
**This is the second occurrence of this exact failure mode** (the first was the v1 linkage code
|
| 40 |
-
path, caught at the pre-training gate). Two independent instances in one project is a pattern, and
|
| 41 |
-
the lesson is recorded: any simulator manipulation that consumes randomness must use a dedicated
|
| 42 |
-
stream, and every arm's planted truth should be asserted equal as a test rather than assumed.
|
| 43 |
-
|
| 44 |
-
### 🔴 F2 - A threat mechanism was biologically wrong (FIXED, work re-run)
|
| 45 |
-
CRISIS de-repression was keyed on CRISPR *absence*. Under physical coupling embedded systems exist
|
| 46 |
-
only in CRISPR⁺ hosts, so the functional term was identically zero and the `both` arm came out
|
| 47 |
-
numerically identical to `physical` to three decimals. \citet{Shu2026CRISPRregulates} describe
|
| 48 |
-
de-repression when CRISPR is *present but compromised* (mutation or anti-CRISPR); a compromised
|
| 49 |
-
state is now modelled explicitly. The degeneracy was the symptom; the wrong biology was the cause.
|
| 50 |
-
|
| 51 |
-
### 🔴 F3 - The planned sensitivity analysis was invalid (DISCARDED, documented)
|
| 52 |
-
`RESEARCH_PLAN_V2.md` §2 specified a posited-offset robustness value. Implemented and tested: the
|
| 53 |
-
fixed offset is absorbed by the other free exposure parameters, so α̂ moves non-monotonically
|
| 54 |
-
(−1.063 → −0.978 over λ = 0 → 4) and no breakdown point exists. **Reporting a robustness value
|
| 55 |
-
read off that curve would have been meaningless.** Superseded by direct estimation of λ. The code
|
| 56 |
-
path is retained and labelled void; the plan section is marked superseded with the failure
|
| 57 |
-
recorded rather than the specification quietly rewritten.
|
| 58 |
-
|
| 59 |
-
### 🟡 F4 - A sweep was mechanistically redundant (WITHDRAWN before reporting)
|
| 60 |
-
`threat_boundary` manipulates the same simulator knob as `threat_att_leak` at a different
|
| 61 |
-
strength. The mechanism is identical - an element-borne system counted as chromosomal predicts
|
| 62 |
-
exposure, and the estimator cannot distinguish attachment-site proximity from a misplaced prophage
|
| 63 |
-
boundary. Reporting both would have presented one manipulation as two independent findings.
|
| 64 |
-
Retained in code, unrun, labelled.
|
| 65 |
-
|
| 66 |
-
### 🟡 F5 - Planted-truth value mixed two sweeps (FIXED)
|
| 67 |
-
`RESULTS_V2.md` and the paper quoted "true α = −1.103" for a table combining rows from two sweeps
|
| 68 |
-
whose seed ranges draw independent coefficients (−1.108 for `lambda_recovery`, −1.103 for
|
| 69 |
-
`assumed_restriction`). Caught by the v2 audit as the single mismatch on its first run. Both values
|
| 70 |
-
are now stated and each row is scored against its own sweep's truth.
|
| 71 |
-
|
| 72 |
-
### 🟡 F6 - skani screening threshold was wrong for within-species use (FIXED)
|
| 73 |
-
The first ANI run used `--sparse -s 95`, but within a single species essentially all 3.8M pairs
|
| 74 |
-
clear a 95% screen, so nothing was pruned. Re-run at `-s 99` on the cohort. A design error that
|
| 75 |
-
cost wall-clock, not correctness.
|
| 76 |
-
|
| 77 |
-
## Statistical validity
|
| 78 |
-
|
| 79 |
-
- **Replication**: 20 independent replicates per configuration throughout; each draws a fresh
|
| 80 |
-
phylogeny, defense repertoire, planted *g* and element panel.
|
| 81 |
-
- **Pairing**: method comparisons paired on replicate seed.
|
| 82 |
-
- **Permutation nulls on the real data**: essential and vindicated. Raw within-cluster partial R²
|
| 83 |
-
is 0.0717 against a null of 0.0513 - reporting the raw figure would have overstated the
|
| 84 |
-
violation more than threefold. In the 120-genome pilot the inflation was far worse (0.527 vs
|
| 85 |
-
0.432). Any within-cluster partial R² reported without such a null is uninterpretable.
|
| 86 |
-
- **Multiple testing**: Benjamini-Hochberg applied to the 99 per-system tests, necessary because
|
| 87 |
-
the permutation p-values have a hard floor of 1/(n_perm+1) and several systems sit on it.
|
| 88 |
-
- **Threshold sensitivity reported, not hidden**: the audit is run at two ANI thresholds that
|
| 89 |
-
**disagree**, and the disagreement is reported as the finding rather than the more convenient
|
| 90 |
-
threshold being selected. The degenerate 99.0% clustering (5 clusters, largest 1,177) is
|
| 91 |
-
reported as degenerate.
|
| 92 |
-
- **A non-replicating preliminary result is disclosed**: the pilot CRISPR/ecology association
|
| 93 |
-
(excess R² 0.284, p = 0.008) vanished at n = 785 under 99.9% clustering. It was flagged as
|
| 94 |
-
underpowered when first observed, not after it failed.
|
| 95 |
-
- **A marginal p-value is not over-read**: Test B moved from p = 0.020 (n = 725) to p = 0.051
|
| 96 |
-
(n = 785). Reported as marginal at that threshold rather than as significant.
|
| 97 |
-
|
| 98 |
-
## Real-data pipeline audit
|
| 99 |
-
|
| 100 |
-
| Check | Verdict |
|
| 101 |
-
|---|---|
|
| 102 |
-
| Data provenance recorded | Yes - NCBI Datasets v2 API, accession lists retained |
|
| 103 |
-
| Only complete assemblies used | Yes - absence of an element in a draft would be a false negative |
|
| 104 |
-
| Metadata coverage measured, not assumed | Yes - 83.2% / 94.3% / 92.5% / 100% |
|
| 105 |
-
| Cohort selection reproducible | Yes - stratified by country × year-bin, seeded |
|
| 106 |
-
| Annotation idempotent and resumable | Yes; per-genome failures logged separately |
|
| 107 |
-
| Tool versions pinned | Yes - DefenseFinder 3.0.0, models CasFinder 3.1.0 / DF-models 3.1.0 |
|
| 108 |
-
| Tool failure disclosed | Yes - `defense-finder update` HTTP 504 on first attempt, retried |
|
| 109 |
-
| Known filter weakness quantified | Yes - replicon filtering catches only 1.79% vs ~20% literature MGE-borne rate |
|
| 110 |
-
| Missing layer disclosed | Yes - AntiDefenseFinder produced no calls; anti-defense matrix empty, deferred |
|
| 111 |
-
| Partial completion disclosed | Yes - annotation is partial by design, count stated, not represented as complete |
|
| 112 |
-
|
| 113 |
-
## HT-D regression check (verified directly, not assumed)
|
| 114 |
-
|
| 115 |
-
v2 added new mechanisms to the simulator (att-leak, CRISIS physical/functional, boundary error) and
|
| 116 |
-
new terms to the model (free defense-load coefficient, fixed-offset path, CRISPR interaction). Each
|
| 117 |
-
is gated behind a config flag that defaults to off, but "should be gated" is a claim that needs
|
| 118 |
-
testing, so the default configuration was re-run and compared against the Phase 0 reference:
|
| 119 |
-
|
| 120 |
-
| Quantity | Phase 0 reference | After all v2 changes |
|
| 121 |
-
|---|---|---|
|
| 122 |
-
| P(Z=1) | 0.3500 | 0.3500 |
|
| 123 |
-
| P(Y=1\|Z=1) | 0.2176 | 0.2176 |
|
| 124 |
-
| informative (Y=0,S=1) cells | 3,493 | 3,493 |
|
| 125 |
-
| Spearman @ 2,500 steps | 0.738 | 0.738 |
|
| 126 |
-
| RMSE @ 2,500 steps | 0.100 | 0.100 |
|
| 127 |
-
| ρ₀ estimated / true | 0.306 / 0.300 | 0.306 / 0.300 |
|
| 128 |
-
| ρ₁ estimated / true | 0.093 / 0.090 | 0.093 / 0.090 |
|
| 129 |
-
|
| 130 |
-
Identical throughout, and the Phase 0 audit still returns **58/58**. HT-D holds by measurement.
|
| 131 |
-
|
| 132 |
-
## Warnings carried forward
|
| 133 |
-
|
| 134 |
-
1. **The audit is host-side only.** It cannot measure λ̂ itself, which needs the element layer. We
|
| 135 |
-
explicitly decline to convert the audit statistics into a λ-equivalent, because the simulated λ
|
| 136 |
-
and the real-data proxies are different quantities and a mapping would be invented. This
|
| 137 |
-
abstention should survive into any future draft.
|
| 138 |
-
2. **CRISIS coupling remains unmitigated.** ST-A fails at 38% against an 80% bar. The nominated
|
| 139 |
-
absorber is actively harmful. The untested embedded-subset absorber is specified and must not
|
| 140 |
-
be described as validated.
|
| 141 |
-
3. **Threshold-dependent conclusion.** The exclusion restriction is violated at 99.5% ANI and not
|
| 142 |
-
detectably at 99.9%. Power and lineage control trade off, and the two explanations cannot be
|
| 143 |
-
separated with this design. Both are stated.
|
| 144 |
-
4. **AntiDefenseFinder not run**, so no interaction-block claim is possible from real data.
|
| 145 |
-
|
| 146 |
-
## Checklist Summary
|
| 147 |
-
|
| 148 |
-
| Category | Checked | Passed | Fixed/Withdrawn |
|
| 149 |
-
|---|---|---|---|
|
| 150 |
-
| Result authenticity (v2) | 73 | 73 | 0 |
|
| 151 |
-
| Simulator correctness | 6 | 4 | 2 (F1, F2) |
|
| 152 |
-
| Method validity | 3 | 2 | 1 discarded (F3) |
|
| 153 |
-
| Experimental design | 5 | 4 | 1 withdrawn (F4) |
|
| 154 |
-
| Reporting consistency | 4 | 3 | 1 (F5) |
|
| 155 |
-
| Real-data pipeline | 10 | 10 | 0 |
|
| 156 |
-
| Statistical validity | 7 | 7 | 0 |
|
| 157 |
-
|
| 158 |
-
## Gate Decision
|
| 159 |
-
|
| 160 |
-
**PASS.** Every v2 claim is traceable, the two failed soft thresholds are reported as failures
|
| 161 |
-
rather than reframed, and the five faults found during execution were fixed or withdrawn before
|
| 162 |
-
reporting with the discarded artefacts retained on disk. The most important property of this round
|
| 163 |
-
is that three of the five faults (F1, F2, F3) would each have produced a confident and wrong
|
| 164 |
-
result, and all three were caught by internal checks or by checking implementation against the
|
| 165 |
-
source paper rather than by luck.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/TRAINING_LOG.md
DELETED
|
@@ -1,298 +0,0 @@
|
|
| 1 |
-
# Training Log - LEDGER
|
| 2 |
-
|
| 3 |
-
**Project**: LEDGER - Latent Exposure Deconfounding for Gene-Element Receptivity
|
| 4 |
-
**Field**: Computational microbial genomics / horizontal gene transfer
|
| 5 |
-
**Started**: 2026-08-16
|
| 6 |
-
**Hardware**: 4× NVIDIA A100 80GB (GPUs 1 and 3 used; GPUs 0 and 2 reserved for other users),
|
| 7 |
-
32 CPU cores, 502 GB RAM. No scheduler.
|
| 8 |
-
**Environment**: Python 3.10.14, PyTorch 2.5.1+cu124, NumPy 2.0.1, SciPy 1.15.3
|
| 9 |
-
|
| 10 |
-
Every entry below corresponds to an actual process launch. Development smoke tests are logged
|
| 11 |
-
separately from production sweeps and are marked as such.
|
| 12 |
-
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
## Development runs (pre-gate, not used for any reported result)
|
| 16 |
-
|
| 17 |
-
### DEV-001 - Simulator calibration check - 2026-08-16
|
| 18 |
-
- **Purpose**: verify simulated marginals match calibration targets
|
| 19 |
-
- **Result**: P(Z=1)=0.3492 (target 0.35); P(Y=1|Z=1)=0.2163 (target 0.22); P(Y=1)=0.0755;
|
| 20 |
-
CRISPR+ hosts 206/625 = 33.0%; informative (Y=0,S=1) cells = 3,964
|
| 21 |
-
- **Invariant checks**: P(Z=1|S=1) = 0.9977 (expected ≈1, residual is the ε false-match rate);
|
| 22 |
-
P(Z=1|Y=1) = 1.0000 (must be exactly 1 by construction) - both PASS
|
| 23 |
-
- **Status**: ✅ Completed
|
| 24 |
-
- **Bug found and fixed**: `np.quantile` with a vector of quantiles returned a cross-product
|
| 25 |
-
instead of per-column thresholds (shape (12,12) instead of (12,)). Fixed to per-column.
|
| 26 |
-
|
| 27 |
-
### DEV-002 - First estimator smoke test - 2026-08-16
|
| 28 |
-
- **Config**: seed 1, 3000 Adam steps, lr 0.05
|
| 29 |
-
- **Result**: oracle Spearman 0.755 / RMSE 0.080; LEDGER 0.760 / 0.090; naive (B3) 0.635 / 0.428
|
| 30 |
-
- **Observation**: LEDGER essentially attains the oracle bound. `spearman_W` identical
|
| 31 |
-
(0.529-0.530) across all three methods - investigated rather than reported.
|
| 32 |
-
- **Status**: ✅ Completed
|
| 33 |
-
|
| 34 |
-
### DEV-003 - Metric ceiling investigation - 2026-08-16
|
| 35 |
-
- **Finding**: with 86 zeros out of 96 entries in the planted W, the maximum attainable
|
| 36 |
-
Spearman on that block is **exactly 0.5302** (measured by scoring truth against itself with
|
| 37 |
-
ties broken randomly, 200 draws, sd 0.0000). All three methods were at the ceiling; the
|
| 38 |
-
metric had zero discriminative power.
|
| 39 |
-
- **Action**: `spearman_W` removed; replaced with support-recovery AUROC/AUPRC, precision@k,
|
| 40 |
-
and Spearman restricted to true nonzeros. `spearman_ceiling()` now reported alongside every
|
| 41 |
-
tie-prone Spearman.
|
| 42 |
-
- **Status**: ✅ Completed
|
| 43 |
-
|
| 44 |
-
### DEV-004 - Receipt-channel necessity probe - 2026-08-16
|
| 45 |
-
- **Hypothesis tested**: the receipt channel matters more when exposure metadata is noisy
|
| 46 |
-
- **Config**: ecology observation noise ∈ {0, 1, 2, 4}
|
| 47 |
-
- **Result**: receipt gain flat across all noise levels (ΔRMSE ≈ +0.011, ΔSpearman +0.001 to
|
| 48 |
-
+0.015). **Hypothesis rejected.**
|
| 49 |
-
- **Interpretation**: identification comes from the *structural* exclusion restriction (f
|
| 50 |
-
contains no defense features at all), not from covariate quality. This redirected the study
|
| 51 |
-
toward the linkage regime and motivated the addition of sweep E1d.
|
| 52 |
-
- **Status**: ✅ Completed
|
| 53 |
-
|
| 54 |
-
### DEV-005 - Linkage probe - 2026-08-16
|
| 55 |
-
- **Result**: under a linkage violation the marginal defense-load/presence association flips
|
| 56 |
-
from −0.542 to +0.454, reproducing the published confound. LEDGER 0.752/0.106,
|
| 57 |
-
no-receipt 0.661/0.127, naive 0.453/0.453.
|
| 58 |
-
- **Status**: ✅ Completed - motivated E1d as a full sweep
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
-
## 🔍 REVIEW CHECKPOINT 1 - Pre-Training Gate - 2026-08-16
|
| 63 |
-
|
| 64 |
-
Outcome: **PASS after remediation of 4 issues.** See `REVIEW_REPORT_PRE_TRAINING.md`.
|
| 65 |
-
Two issues were substantive: a divergent code path that would have invalidated the entire E1d
|
| 66 |
-
sweep, and an unimplemented mis-specification stress test that the research plan's own risk
|
| 67 |
-
table requires. Production sweeps were not launched until all four were fixed and re-verified.
|
| 68 |
-
|
| 69 |
-
### DEV-006 - Post-fix verification - 2026-08-16
|
| 70 |
-
- 25 lineages × 25 hosts confirmed; linkage sign flip −0.462 → +0.485 on the unified code path;
|
| 71 |
-
mis-specification leaves marginals stable (P(Y|Z) 0.218 → 0.225)
|
| 72 |
-
- ρ recovery: estimated ρ₀ = 0.306 (true 0.300), ρ₁ = 0.093 (true 0.090)
|
| 73 |
-
- `converged` flag corrected; now correctly reports False at 2,500 and 6,000 steps, True at
|
| 74 |
-
~11,136. Recovery metrics stable from 2,500 steps (Spearman 0.738→0.739, RMSE 0.100→0.100).
|
| 75 |
-
- **Status**: ✅ Completed - gate cleared
|
| 76 |
-
|
| 77 |
-
---
|
| 78 |
-
|
| 79 |
-
## Production sweeps
|
| 80 |
-
|
| 81 |
-
### RUN-001 through RUN-010 - Phase 0 identifiability sweeps - launched 2026-08-16
|
| 82 |
-
- **Reference**: RESEARCH_PLAN.md §4.2
|
| 83 |
-
- **Launch**: 10 concurrent processes, sharded across GPUs 1 and 3
|
| 84 |
-
- `e1` sharded 4 ways by replicate (reps 0-5, 5-10, 10-15, 15-20)
|
| 85 |
-
- `e1b`, `e1c`, `e1d`, `e5`, `ablations`, `misspec` one process each
|
| 86 |
-
- **Config per fit**: 4,000 Adam steps, lr 0.05, patience 800, float64, l1_W 0.01, l2 1e-4
|
| 87 |
-
- **Replicates**: 20 per configuration
|
| 88 |
-
- **Total planned fits**: 3,260
|
| 89 |
-
(e1 1,600 · e1b 480 · misspec 400 · e1c 320 · e1d 300 · ablations 120 · e5 40)
|
| 90 |
-
- **Observed throughput**: ~10 fits/min aggregate under contention (GPUs 0 and 2 were running
|
| 91 |
-
other users' jobs throughout)
|
| 92 |
-
- **Output**: one JSON record per fit to `experiments/*.jsonl`
|
| 93 |
-
- **Status**: ✅ **All 10 processes completed.** Realised record counts match plan exactly:
|
| 94 |
-
e1 1,600 (4 × 400 shards) · e1b 480 · e1c 320 · e1d 300 · misspec 400 · ablations 120
|
| 95 |
-
- **Mean wall time per fit**: ~21 s under 10-way contention (GPUs 0 and 2 were occupied by
|
| 96 |
-
other users' jobs throughout)
|
| 97 |
-
- **Convergence**: recorded per fit. At 4,000 steps most fits report `converged = False`,
|
| 98 |
-
meaning the objective was still creeping down when the budget expired. This is logged
|
| 99 |
-
honestly rather than suppressed: recovery metrics are stable from 2,500 steps onward
|
| 100 |
-
(Spearman 0.738 → 0.739, RMSE 0.100 → 0.100 between 2,500 and 12,000 steps), so the
|
| 101 |
-
reported coefficients are not sensitive to the remaining descent.
|
| 102 |
-
|
| 103 |
-
### RUN-011 - E5 permutation controls, re-run - 2026-08-17
|
| 104 |
-
- **Reason for re-run**: the original control failed its own threshold (mean Spearman 0.536,
|
| 105 |
-
support AUROC 0.951). Diagnosis showed the control was mis-specified, not the estimator.
|
| 106 |
-
See RESULTS.md Finding 4.
|
| 107 |
-
- **Change**: added a *global* permutation arm (a genuine null, residual corr(D) = −0.007)
|
| 108 |
-
alongside the original within-lineage arm (residual corr(D) = +0.489), and scored both on
|
| 109 |
-
host-side coefficients only.
|
| 110 |
-
- **Original 40 fits retained** at `experiments/e5_ORIGINAL_MISSPECIFIED_CONTROL.jsonl` rather
|
| 111 |
-
than deleted, so the failure remains inspectable.
|
| 112 |
-
- **Result**: 80 fits. Global null mean |Spearman| = 0.075 → **HT4 PASSES**.
|
| 113 |
-
- **Status**: ✅ Completed
|
| 114 |
-
|
| 115 |
-
### RUN-012 - E5 unpermuted reference arm - 2026-08-17
|
| 116 |
-
- **Reason**: the E5 figure's reference line was drawn from `spearman_all` in a different sweep
|
| 117 |
-
while the axis showed `spearman_host` - two different metrics on one axis.
|
| 118 |
-
- **Action**: `src/training/run_e5_reference.py`, 40 fits on the same seeds, recording
|
| 119 |
-
`permutation="none"` and the same host-side metric.
|
| 120 |
-
- **Result**: unpermuted reference Spearman(α, W) = 0.701. Recovery across the three arms
|
| 121 |
-
tracks residual signal monotonically: 1.000 → 0.701, 0.489 → 0.460, −0.007 → −0.054.
|
| 122 |
-
- **Duration**: 559 s. **Status**: ✅ Completed
|
| 123 |
-
|
| 124 |
-
---
|
| 125 |
-
|
| 126 |
-
## 🔍 REVIEW CHECKPOINT 2 - Post-Results Gate - 2026-08-17
|
| 127 |
-
|
| 128 |
-
Outcome: **PASS.** See `REVIEW_REPORT_POST_RESULTS.md`. An independent audit script
|
| 129 |
-
(`src/evaluation/audit.py`) recomputed every headline claim from the raw per-fit records:
|
| 130 |
-
**58/58 reproduced**. No fabrication, no data leakage, all results traceable to code. Three
|
| 131 |
-
warnings were found and fixed (metric-mismatched figure reference, inconsistent fit counts,
|
| 132 |
-
stale single-seed numbers in narrative sections).
|
| 133 |
-
|
| 134 |
-
---
|
| 135 |
-
|
| 136 |
-
## Final threshold outcomes
|
| 137 |
-
|
| 138 |
-
| ID | Criterion | Observed | Target | Result |
|
| 139 |
-
|---|---|---|---|---|
|
| 140 |
-
| HT1 | Spearman at operating point | 0.746 (n=120) | ≥ 0.60 | ✅ PASS |
|
| 141 |
-
| HT2 | RMSE reduction vs B3 | 77.4%, p = 2.0×10⁻²¹ | ≥ 30%, p < 0.01 | ✅ PASS |
|
| 142 |
-
| HT3 | Sign-recovery accuracy | 1.000 | ≥ 0.80 | ✅ PASS |
|
| 143 |
-
| HT4 | Global permutation null | 0.075 | < 0.15 | ✅ PASS |
|
| 144 |
-
| ST2 | Receipt channel load-bearing | 0.002 | ≥ 0.20 | ❌ **FAIL** (reported) |
|
| 145 |
-
| ST3 | Linkage flips association | −0.239 → +0.746 | sign flip | ✅ PASS |
|
| 146 |
-
| ST4 | Beats B3 across grid | 20/20 cells | all cells | ✅ PASS |
|
| 147 |
-
|
| 148 |
-
**No improvement cycles were triggered.** All hard thresholds passed on the first production
|
| 149 |
-
run. The one failed soft threshold (ST2) is not a performance deficiency to be optimised away
|
| 150 |
-
but a scientific finding about where identification actually comes from, and is reported as
|
| 151 |
-
such.
|
| 152 |
-
|
| 153 |
-
*Note on throughput*: a CPU benchmark during the run measured 127 steps/s with 4 threads
|
| 154 |
-
(≈31 s per 4,000-step fit), roughly twice the per-process throughput of the contended GPUs.
|
| 155 |
-
The sweeps were left on GPU rather than restarted, since they were already producing valid
|
| 156 |
-
records and the remaining wall-clock fitted the compute budget; restarting would have
|
| 157 |
-
discarded completed work for a modest gain.
|
| 158 |
-
|
| 159 |
-
---
|
| 160 |
-
|
| 161 |
-
# v2 - Post-Phase-0 expansion (RESEARCH_PLAN_V2.md)
|
| 162 |
-
|
| 163 |
-
**Started**: 2026-08-17
|
| 164 |
-
|
| 165 |
-
## Real-data acquisition and annotation
|
| 166 |
-
|
| 167 |
-
### RUN-V2-DATA - NCBI acquisition - 2026-08-17
|
| 168 |
-
- Metadata for all 3,466 complete *P. aeruginosa* assemblies via NCBI Datasets v2 API
|
| 169 |
-
- Exposure-covariate coverage measured: collection_date 83.2%, geo_loc_name 94.3%,
|
| 170 |
-
isolation_source 92.5%, bioproject 100.0%
|
| 171 |
-
- 2,757 assemblies carry all three exposure covariates; **all 2,757 downloaded (18 GB)**
|
| 172 |
-
- Stratified cohort of 1,200 selected by country × year-bin (60 countries, 423 BioProjects)
|
| 173 |
-
- **Status**: ✅ Completed
|
| 174 |
-
|
| 175 |
-
### RUN-V2-ANNOT - DefenseFinder 3.0.0 - 2026-08-17
|
| 176 |
-
- Tool chain: mamba env (python 3.12, hmmer, ncbi-datasets-cli, skani) + pip
|
| 177 |
-
mdmparis-defense-finder 3.0.0; models CasFinder 3.1.0 + defense-finder-models 3.1.0
|
| 178 |
-
- First `defense-finder update` failed with HTTP 504; retried successfully (logged, not hidden)
|
| 179 |
-
- Throughput: ~40 s/genome at 4 workers. Run at 8×4 then rebalanced to 6×2 to share cores
|
| 180 |
-
with the simulation sweeps, then paused to let the crisis sweep finish.
|
| 181 |
-
- **785 of 1,200 cohort genomes annotated** at the time of the final audit. Idempotent and
|
| 182 |
-
resumable; the remainder is unfinished, not failed.
|
| 183 |
-
- AntiDefenseFinder produced no calls under default invocation, so the anti-defense matrix is
|
| 184 |
-
empty. Deferred: it is needed only for the interaction block (stage S5), not for the audit.
|
| 185 |
-
- **Status**: ⚠️ Partial by design (785/1,200)
|
| 186 |
-
|
| 187 |
-
### RUN-V2-ANI - skani lineage clustering - 2026-08-17
|
| 188 |
-
- First attempt used `--sparse -s 95` over all 2,757 genomes. **Design error**: within a single
|
| 189 |
-
species nearly all 3.8M pairs clear a 95% screen, so almost nothing was pruned and the job was
|
| 190 |
-
projected at ~90 min. Killed and re-run with `-s 99` on the 1,200-genome cohort.
|
| 191 |
-
- Final: 358,414 pairs recorded. Single-linkage clustering at three thresholds:
|
| 192 |
-
99.9% → 344 clusters (153 singletons, largest 72); 99.5% → 184 (59, 213);
|
| 193 |
-
**99.0% → 5 clusters, largest 1,177 - degenerate**, single-linkage chains the whole species.
|
| 194 |
-
- **Status**: ✅ Completed
|
| 195 |
-
|
| 196 |
-
## Simulation sweeps
|
| 197 |
-
|
| 198 |
-
### RUN-V2-001 - lambda_recovery - 360 fits - ✅
|
| 199 |
-
Is the exclusion-restriction violation estimable? λ̂ vs λ_true: slope 1.032, R² 0.9993, max
|
| 200 |
-
|α̂ bias| 2.9%. **HT-A PASS.**
|
| 201 |
-
|
| 202 |
-
### RUN-V2-002 - assumed_restriction - 540 fits - ✅
|
| 203 |
-
The realistic failure mode Phase 0 never tested: data carry linkage, estimator assumes the
|
| 204 |
-
restriction. α̂ attenuates to 79% at λ=4; Spearman 0.741 → 0.360.
|
| 205 |
-
|
| 206 |
-
### RUN-V2-003 - threat_att_leak - 400 fits - ✅
|
| 207 |
-
Lateral-transduction leak. Estimation holds α̂ within 1-7% of truth where assuming costs 44%.
|
| 208 |
-
λ̂ rises monotonically with the leak. **HT-B PASS.**
|
| 209 |
-
|
| 210 |
-
### RUN-V2-004 - threat_crisis - first attempt DISCARDED, re-run - ✅
|
| 211 |
-
- **Discarded**: the physical-coupling manipulation drew from the main RNG stream, so enabling it
|
| 212 |
-
shifted every later draw including the planted coefficients (true α = −1.251 with the threat
|
| 213 |
-
on vs −1.090 with it off). Arms differed in more than the manipulation; comparison invalid.
|
| 214 |
-
Retained at `experiments/threat_crisis_CONFOUNDED_RNG.jsonl` rather than deleted.
|
| 215 |
-
- **Also fixed before re-running**: de-repression had been keyed on CRISPR *absence*, which made
|
| 216 |
-
the "both" arm numerically identical to "physical" (embedded systems exist only in CRISPR+
|
| 217 |
-
hosts under physical coupling, so the functional term was identically zero). Shu et al.
|
| 218 |
-
describe de-repression when CRISPR is *present but compromised*; now modelled explicitly.
|
| 219 |
-
- Re-run with a dedicated RNG; all arms verified to share planted α = −1.0896.
|
| 220 |
-
- Added a second mitigation arm (CRISPR-status main effect + CRISPR×defense-load interaction).
|
| 221 |
-
- **ST-A FAILS**: neither mitigation recovers the loss; the CRISPR-term variant makes the
|
| 222 |
-
functional arm worse.
|
| 223 |
-
|
| 224 |
-
### RUN-V2-005 - threat_boundary - WITHDRAWN, NOT RUN
|
| 225 |
-
Implemented, then withdrawn before reporting: it manipulates the same simulator knob as
|
| 226 |
-
threat_att_leak at a different strength, so reporting both would present one manipulation as two
|
| 227 |
-
findings. Retained in code, unrun and labelled.
|
| 228 |
-
|
| 229 |
-
### Discarded method - posited-offset sensitivity analysis
|
| 230 |
-
`RESEARCH_PLAN_V2.md` §2's Cinelli-Hazlett-style robustness value was implemented
|
| 231 |
-
(`FitConfig.f_defense_load_fixed`) and found invalid: the fixed offset is absorbed by the other
|
| 232 |
-
free exposure parameters, so α̂ moved non-monotonically (−1.063 → −0.978 over λ = 0 → 4) and no
|
| 233 |
-
breakdown point exists to read off. The code path is retained and documented as void. Superseded
|
| 234 |
-
by direct estimation, which is strictly more informative.
|
| 235 |
-
|
| 236 |
-
## v2 threshold outcomes
|
| 237 |
-
|
| 238 |
-
| ID | Criterion | Observed | Result |
|
| 239 |
-
|---|---|---|---|
|
| 240 |
-
| HT-A | Violation recoverable | slope 1.032, R² 0.9993, bias 2.9% | ✅ PASS |
|
| 241 |
-
| HT-B | Spearman ≥ 0.60 at leak 0.25 or fragility flagged | 0.621 / 0.698; λ̂ flags it | ✅ PASS |
|
| 242 |
-
| HT-C | Audit on ≥ 500 real genomes | 785 genomes, 2 ANI thresholds | ✅ PASS |
|
| 243 |
-
| HT-D | Phase 0 thresholds still hold | unchanged | ✅ PASS |
|
| 244 |
-
| ST-A | CRISIS mitigation recovers ≥ 80% | ~0%; one variant worse | ❌ FAIL |
|
| 245 |
-
| ST-B | Real violation below tolerance | violated where powered (49/99 systems) | ❌ FAIL |
|
| 246 |
-
| ST-C | Throughput ≥ 2,000 genomes | 2,757 downloaded, 785 annotated | ⚠️ PARTIAL |
|
| 247 |
-
|
| 248 |
-
---
|
| 249 |
-
|
| 250 |
-
# v3 - Real element/spacer layers and the first real-data fit (RESEARCH_PLAN_V3.md)
|
| 251 |
-
|
| 252 |
-
**Date**: 2026-08-17
|
| 253 |
-
|
| 254 |
-
### RUN-V3-SPACERS - MinCED spacer extraction - ✅
|
| 255 |
-
1,200 genomes, 12-way parallel, 80 seconds. **27,620 spacers.** QC against DefenseFinder Cas
|
| 256 |
-
calls: CAS+ genomes median 40 spacers (611/611 with ≥10); CAS− median 0 (only 20% have any).
|
| 257 |
-
Two independent methods agree on which genomes carry CRISPR.
|
| 258 |
-
|
| 259 |
-
### RUN-V3-ELEMENTS - element layer from spacers - ✅ (second attempt)
|
| 260 |
-
- **First attempt DISCARDED**: BLAST found each spacer inside its own host's CRISPR array, so
|
| 261 |
-
Y ≡ S. Informative cell = 0 of 3.1M pairs; self-targeting 13× enriched instead of depleted.
|
| 262 |
-
- **Also discarded**: `blastn-short` defaults (word size 7, e-value 1) against an 8 GB database
|
| 263 |
-
did not terminate; re-run at word size 18 with in-BLAST identity filtering (exact for ≥95%
|
| 264 |
-
identity over 32 bp) completes in under 2 minutes.
|
| 265 |
-
- **Final**: 1,767 CRISPR arrays (1.72 Mb) masked. 2,589 elements × 1,200 hosts = 3.1M pairs.
|
| 266 |
-
Informative cell 25,099; self-targeting depletion 0.539; ε = 0.000 from 2,589 decoys.
|
| 267 |
-
|
| 268 |
-
### RUN-V3-CRISIS-PROX - CRISIS proximity test - ✅ (third null)
|
| 269 |
-
7,314 defense/Cas pairs. Two nulls built and discarded (uniform-position → detected defense
|
| 270 |
-
islands; label permutation → confounded by Cas interval length). Final: midpoint-to-midpoint under
|
| 271 |
-
label permutation. **Result negative**: 0 systems within 5 genes, median distance 1,166.
|
| 272 |
-
|
| 273 |
-
### RUN-V3-REALFIT - LEDGER fitted to real genomes - ✅ (second attempt)
|
| 274 |
-
- **First attempt DISCARDED**: at 2,500 steps the model *with* free λ scored a lower likelihood
|
| 275 |
-
than the model *without* it - impossible for nested models, a signature of under-convergence.
|
| 276 |
-
Convergence swept: nesting correct from 6,000 steps, λ̂ stable (0.2663 / 0.2658 / 0.2668 at
|
| 277 |
-
6k / 12k / 20k). An automatic nesting check now runs on every fit.
|
| 278 |
-
- **Final**: 1,200 × 2,421 × 108. λ̂ = 0.266, lineage bootstrap 95% CI [−0.288, 0.542];
|
| 279 |
-
α̂ = 0.017 (CI spans zero); ρ₁/ρ₀ = 0.307; LRT χ² = 507.6 on 1 df (reported as
|
| 280 |
-
anti-conservative). 30 bootstrap replicates over lineage clusters.
|
| 281 |
-
|
| 282 |
-
### RUN-V3-S8 - CRISIS sweep with the embedded-subset absorber - ✅
|
| 283 |
-
340 fits, 20 replicates per arm, all arms sharing planted α = −1.094. **ST-D FAILS**: the
|
| 284 |
-
nominated absorber is the worst of three, recovering −16.3% / −116.7% / −12.4% and driving
|
| 285 |
-
functional-arm α̂ bias from 17.3% to 41.8%.
|
| 286 |
-
|
| 287 |
-
## v3 threshold outcomes
|
| 288 |
-
|
| 289 |
-
| ID | Criterion | Observed | Result |
|
| 290 |
-
|---|---|---|---|
|
| 291 |
-
| HT-E | Real Y/S built with informative cell | 2,589 elements, 25,099 pairs | ✅ PASS |
|
| 292 |
-
| HT-F | λ̂ with bootstrap interval | 0.266 [−0.288, 0.542] | ✅ PASS |
|
| 293 |
-
| HT-G | CRISIS test with permutation null + BH | negative | ✅ PASS |
|
| 294 |
-
| ST-D | Absorber recovers ≥80% | −117% | ❌ FAIL |
|
| 295 |
-
| ST-E | Real λ̂ ≠ 0 | CI spans zero | ❌ FAIL |
|
| 296 |
-
| ST-F | Self-targeting depleted | 0.539 | ✅ PASS |
|
| 297 |
-
|
| 298 |
-
**Traceability**: `audit.py` 58/58 · `audit_v2.py` 76/76 · `audit_v3.py` 47/47 = **181/181**.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|