MODS — Mission Spec
A goal-oriented briefing for an agent arriving with no prior context.
Version: 1.0 · Written: 2026-09-07 · Repo: whafa/Maple
0. What this document is, and how to read it
Every other planning document in this repository is organized around a system: the knowledge graph, the training pipeline, the PRS gates, the dashboards. This one is organized around the goal. It exists because the systems are now complex enough that a capable agent can spend a week doing excellent work on a subsystem that does not move the actual objective.
Read it in order. §1–§3 are the why and the who; skipping them will cause you to make locally-reasonable decisions that are globally wrong. §4–§6 are what has been built and what it has actually shown, stated honestly including the null results. §7 is the rules that were paid for in lost data or wrong clinical claims. §8 is the open frontier, ordered by expected value to the patient. §9–§11 are orientation.
This document goes stale. Anything with a number in it should be re-verified against the live source named beside it before you rely on it. §10 tells you how.
The one-line summary, if you read nothing else: we are trying to find drugs that might work for one specific woman with stage IV colorectal cancer, using a biomedical knowledge graph and a graph neural network conditioned on her own molecular data, and to do it rigorously enough that an oncologist would take the output seriously.
1. The mission
1.1 The objective
Extend Maureen’s life, and the quality of it, by finding treatments for her disease that the standard of care will not surface on its own.
That is the top of the goal tree. Everything below it is instrumental. The project is not “reproduce a paper,” not “build a knowledge graph,” and not “ship a dashboard,” although it has done all three. When a decision is genuinely ambiguous, resolve it by asking which branch gets closer to a defensible, actionable candidate list for this patient.
1.2 The goal hierarchy
| ID | Goal | Status |
|---|---|---|
| G0 | Treat Maureen’s disease. | Ongoing, indefinite |
| G1 | Produce a ranked, evidence-backed shortlist of repurposing candidates specific to her tumor, that her clinicians would actually discuss. | Not yet achieved. This is the deliverable. |
| G2 | Prove the ranking mechanism works, by showing it recovers biology we independently measured in her (see §6). | Unknown as of 2026-09-24. Every Tier-1/Tier-2 number to date was computed on pooled RGCC draws and is superseded pending restatement (GH #324). Previously read “Tier-2 passes; Tier-1 marginal.” |
| G3 | Personalize the ranking with her own genetics, expression, variants and history, rather than serving a generic “colorectal cancer” answer. | Mechanism built, signal not yet demonstrated. See §5.4. |
| G4 | Keep the pipeline reproducible, auditable and inspectable end to end, so that any candidate can be traced back to its evidence. | Largely achieved and worth protecting. |
G1 has never been shipped. Everything to date has been building and validating the
machine that would produce it. That is the correct order of operations, but it is
worth naming plainly: the project began in earnest in January 2026 and no candidate
list has yet been discussed with her clinicians. Any plan that does not shorten the
distance to one should justify itself. (Corrected 2026-10-30, #1131: this used to say
there was “still no candidate list”. A draft options brief, rendered from the Options
Ledger (#565), has existed since 2026-10-12; the latest is docs/g1_brief_v0_3.md.)
1.3 The precedent this is modeled on
David Fajgenbaum, as a medical student, was dying of Castleman disease with no approved treatment and nobody working on a cure. He worked out that sirolimus, a 25-year-old immunosuppressant approved for something else entirely, should work on his pathway. He tried it. He is alive. He co-founded Every Cure in 2022 to do that systematically, scanning roughly 22,000 diseases against 3,000 drugs.
Richard heard Fajgenbaum tell this story on the Huberman podcast on 2025-11-03. That is the origin of this project — in his words, “it flipped some switch in my head.” When framing MODS in a writeup or an intro, anchor on Fajgenbaum and sirolimus, not on generic “AI for drug discovery.”
The bet MODS makes is the n-of-one version: among the ~20,000 approved drugs there may be one that nobody has thought to try for colorectal cancer, or for this colorectal cancer, and a knowledge graph plus a link-prediction model is a defensible way to look for it.
1.4 What this is not
- Not medical advice, and not a substitute for oncology. Maureen is on the standard of care and will stay on it while it works. Nothing produced here reaches her without going through her treating physicians.
- Not a decision maker. A high model score means “the literature’s geometry is consistent with this drug being relevant.” It does not mean the drug works, is safe in combination with her current regimen, or is compatible with her liver function and blood counts.
- Not a product. There is one user and one patient.
The value, if there is value, is precision. A tool that surfaces one surprising, plausible candidate her oncologist has not considered is worth building. A tool that surfaces fifty is not.
2. The patient
Everything in this section must trace to her actual data. Before asserting any clinical or genomic fact about Maureen, confirm it comes from a real report row, not from memory, not from a test fixture, and not from what is typical for colorectal cancer. See §7.1 — this rule was written because a phantom driver mutation propagated across six documents and produced a clinically inverted claim.
2.1 Who she is
Maureen, the user’s wife and the mother of their children. She is the primary
MODS patient. In the database she is mods_patient.id = a withheld UUID, user ID 26, with
role:patient and api:med:* permissions.
There is a second patient row (hu52B7E5, a Personal Genome Project stand-in used
for proxy-patient work). Any no-argument patient lookup resolves to the
earliest-created row, which is Maureen, by design. Do not write a resolver that
raises on ambiguity; three separate implementations have made that mistake.
2.2 Disease course
| When | What |
|---|---|
| Early 2024 | Diagnosed stage IV colon adenocarcinoma after persistent back pain. |
| 2024 | First-line FOLFOXIRI + bevacizumab (TRIBE-style). Aggressive polydrug regimen; she was young enough to tolerate it. Toxic but effective. |
| 2024 | Three consecutive quarterly CT scans show no evidence of disease. |
| Dec 2024 | Stops maintenance chemo. Adopts whole-food plant-based diet, juicing, fasting, daily exercise, QiGong, TCM under the TCM practitioner. |
| Spring 2025 | Blood markers creep up. CA 19-9 (Kaiser) rises from 39–41 in March to 76 by 2025-05-30, still 76 on 2025-08-08; Signatera ctDNA from 7.26 MTM/mL (2025-01-29) to 17.26 (2025-08-05); RGCC CTC counts flat (§2.6). Mold exposure found and remediated; EBV and Lyme-associated viral titers positive. (Corrected 2026-10-30, #1131, against her labs: this row used to say “CA 19-9 78 in May” and “CTC counts rising”, a family narrative’s figures.) |
| Jul 2025 | RGCC SOT injection (Buffalo, NY). |
| Aug 2025 | Lump above the chemo port. CT 2025-08-12: a “slight increase” in left neck lymph nodes, the largest 9 × 7 mm and “mildly heterogeneous”; “increased, mildly prominent” 8 mm right axillary and subpectoral nodes, “nonspecific”; no metastatic disease elsewhere in the chest, abdomen or pelvis. Port and lump excised 2025-08-25. (Corrected 2026-10-30, #1131, against her CT reports, mods_document 0fb21ab8: this row used to say “enlarged lymph nodes in neck and chest, nothing in any other organ”.) |
| Sep 2025 | Pathology confirms metastatic adenocarcinoma in the excised soft-tissue mass (right infraclavicular, beside the port). Her oncologist describes the recurrence as “progression in subcutaneous tissue, with incremental growth in previously involved nodes”, with no liver metastases. See §2.5; this is load-bearing. (Corrected 2026-10-14 against her record; this row used to say “nodal-predominant”.) |
| Late 2025 | Second course from 2025-10-07: FOLFOX + cetuximab + encorafenib (the BREAKWATER regimen: FDA accelerated approval 2024-12-20 for BRAF V600E mCRC, traditional approval 2026-02-24; the trial’s survival data came out in June 2025). (Corrected 2026-10-30, #1131: this used to say “FDA-approved June 2025”.) Six doses: three 28-day cycles, with infusions on days 1 and 15. (Corrected 2026-10-17: this row said “six cycles”.) Roughly doubles expected progression-free time versus the TRIBE-era combination, with somewhat less toxicity. |
| 2026 | Maintenance from 2026-01-13: cetuximab + encorafenib + binimetinib, which her oncologist calls “BRAF+MEK+EGFR”. She chose it in part to reduce the skin lesions of BRAF inhibition. Richard, 2026-10-31: she is currently taking binimetinib “as treatment for melanoma”; it started with maintenance in January 2026, not in the second course. It is not the BREAKWATER regimen. Albumin dropped to 3.1 in Feb 2026, attributed to the MEK inhibitor. CA 19-9 fell to 22. |
| Aug 2026 | No metastatic disease on CT, but known residual cancer that CT cannot resolve. CT 2026-08-13: “No evidence of metastatic disease”, so she is officially NED by imaging. A lump just under the skin at the right port site, where her 2025 recurrence was biopsied as metastatic adenocarcinoma, is palpable and known to her doctors; she reports it growing. Her oncologist’s 2026-08-17 note records on exam “R port-site met tiny nodule - rice-sized nodule?” (in his notes since at least 2026-01-26) and, in its history, “Peri-port lump seems to be stable to slightly bigger”; his assessment reads “stable disease”. (Corrected 2026-10-17 per Richard, D-Q4-38; this row used to read “NED by imaging”, with none detectable.) |
She also has separate cutaneous melanomas, which her oncologist attributes to BRAF inhibition. Three were biopsied on 2025-11-17:
- one invasive, on the left upper arm: Breslow 0.5 mm, provisional pT1a, excised 01/2026;
- two in situ, on the right upper arm and the right calf: excised 02/2026.
All three re-excisions found no residual melanoma. The melanoma’s Caris profile (the melanoma specimen,
reported NRAS Q61K) is not yet parsed into her record (#213). (Corrected 2026-10-14; this
paragraph used to say “local and definitively treated”.) The melanoma is not a later
timepoint of the colorectal disease, and any narrative that reads a “BRAF to NRAS clonal
switch” across her Caris specimens is wrong. Two cancers.
2.3 Current clinical state (verify before relying on it)
- Known residual disease that imaging cannot resolve. CT 2026-08-13 shows no metastatic disease, so she is officially NED by imaging. A lump just under the skin at the right port site, where her 2025 recurrence was biopsied as metastatic adenocarcinoma, is palpable; she reports it growing, and her doctors know it is there (the two quotes in the Aug 2026 row above). The 2026-08-17 assessment reads “stable disease”. The next CT is planned for mid-November 2026. (Corrected 2026-10-17 per Richard, D-Q4-38; the 2026-10-14 reading here was that none was detectable.)
- Signatera ctDNA negative monthly from 2025-12-05 to 2026-03-03, the last report on file. The series runs back to 2025-01-29; see §2.6. (⚠ 2026-10-30, #1131: Kaiser documents arrive again since 2026-10-02 (#621); no Signatera report after 2026-03-03 has, as it is ordered through her integrative practice (by hand: GH #1167; record freshness: GH #512). This used to say nothing had arrived since 2026-05-08.)
- CA 19-9 low and flat: 30 (2025-12-15) → 22 → 20 → 18 (2026-06 to 08) → 19, 21, 19 (2026-09-02, 09-16, 10-01; latest 19). Reference ≤35 U/mL on Kaiser’s assay since 2024-09 (≤37 was the older one). The 78 dated 2026-03-16 was not a measurement: it was a family narrative’s “CA 19-9 in May was 78” (May 2025), stamped with the upload date, and was deleted from her record on 2026-10-31 (D-Q4-49, GH #1362). (Corrected 2026-10-30, #1131: this used to call it a probable mis-parse.)
- CEA has no numeric value after 2025-09-16. Kaiser appears to have switched her surveillance marker to CA 19-9. Any analysis that uses CEA as the trajectory test case will train on a series that flatlines to null. Re-base on CA 19-9.
2.4 Verified molecular profile
Colorectal tumor, somatic. Sources: Caris MI Profile the 2024 colorectal specimen (2024-01-23) and
the 2025 colorectal specimen (2025-09-13), Guardant360 the 2025 liquid biopsy (2025-02-08), Genomic Health /
Natera Altera the tumour tissue profile (2025-02-25).
| Gene | Variant | Type | Concordance |
|---|---|---|---|
| APC | T1556fs (c.4666dupA) | pathogenic frameshift, in the mutation cluster region | 4 reports |
| BRAF | V600E (c.1799T>A) | pathogenic | 4 reports |
| ATM | S151fs (c.450_453delTTCT) | pathogenic frameshift, somatic | 3 reports |
| TGFBR2 | D522fs | pathogenic | Caris 2024 |
| MGA | I945fs | pathogenic | Caris 2025 |
| NTRK2 | V717M | VUS | both Caris |
| MYC / EP300 | copy number | indeterminate | Caris |
Tumor characteristics:
- MSS (microsatellite stable).
- TMB low: 2, 3 and 4 mut/Mb on Altera, Caris 2024 and Caris 2025.
- PD-L1: SP142 positive (2+, 75%) on the 2024 primary; 22c3 TPS 0% on the 2025 recurrence. Her oncologist’s note records “PD-L1 CPS 75%”. Altera’s 22C3 on the 2024 primary (colon, collected 2024-01-10): CPS 80, “High” (report of 2025-02-25). (22C3 result added 2026-10-17, D-Q4-38.)
- CMS1 subtype, called on the 2025 report.
(Corrected 2026-10-14; this paragraph used to say “TMB 2–3” and “PD-L1 0”.) RAS wild type — which is why cetuximab is appropriate for her.
Germline: one pathogenic variant, confirmed on two platforms — the clinical panel and her own 30× WGS. Gene, variant class, coordinate and genotype are withheld here.
Two corrections that must not regress:
- She has no KRAS mutation. A phantom
KRAS G12Cpropagated through memory and documentation and produced the inverted claim that anti-EGFR therapy did not apply to her. No parsed report of hers carries a KRAS alteration. It was most likely seeded by a parser test fixture. Do not re-add it. (2026-10-30, #1131: this used to count “all nine of her genomic reports”; with Signatera parsed there are 28.) - An earlier loss-of-heterozygosity reading did not survive scrutiny. An inference from allele fraction to loss of heterozygosity was overturned by B-allele-frequency analysis on the real specimens: the arm is balanced across all three, with a per-arm deviation of 0.02–0.03. A treatment rationale built on that reading does not hold as stated.
2.5 The single most important clinical fact for repurposing
Her recurrence had no liver metastases. (Corrected 2026-10-14: it was subcutaneous, with incremental nodal growth, per her oncologist; the doc used to say “nodal-predominant”. An MRI of 2026-04-09 read mild liver changes as suggestive of mild sinusoidal obstruction syndrome, with no metastatic disease in the abdomen and pelvis.)
Active liver metastases are the strongest negative predictor for immunotherapy in MSS colorectal cancer; the mechanism is that liver involvement induces systemic immune tolerance. The no-liver-met subgroup is not a post-hoc slice, it is the entire efficacy story for checkpoint blockade in this disease.
Botensilimab + balstilimab (Fc-enhanced anti-CTLA-4 plus anti-PD-1) in refractory MSS
mCRC without active liver metastases: ORR 21% (95% CI 14–29), median duration of
response not reached, median OS 21.2 months, 36-month OS 33% (n=123, an MSS CRC
expansion cohort of C-800-01, NCT03860272, which the registry lists as phase 1;
Schlechter et al., Clin Cancer Res, online 2026-08-28, PMID 42663536, data cut
2025-12-13). (Corrected 2026-11-01, #1131, #1346: this used to say “ORR 20%, median
duration of response 16.6 months, median OS ~21 months, 2-year OS 42%, 3-year OS 33%”.
The 20% and 42% were Agenus’s 2025 release; 16.6 months is a late-line subgroup’s
(n = 37) in its 2026 release. Corrected 2026-10-30, #1131, ClinicalTrials.gov v2 read
2026-10-29: this used to say “phase 1b/2”.) For context, the expected ORR from
checkpoint inhibitors in refractory MSS CRC is approximately zero.
Use this as the interpretive key when reading any MSS-CRC immunotherapy result: always ask what fraction of the cohort had liver metastases.
Caveats, current as of 2026-08-29 and worth re-checking:
- Not FDA approved; the agency discouraged the accelerated-approval pathway.
- The phase 3 BATTMAN trial (
NCT07152821) is TERMINATED as of 2026-07-13,whyStopped= “Pharmaceutical Sponsor discontinued trial financial support.” Agenus press releases announcing enrollment and a $340M raise are still live and still wrong. Sponsor financial durability is a material risk to the whole program. - France granted reimbursed compassionate access (AAC, ANSM, 2025-09-09) for exactly her phenotype. France-only; applicability to a US patient is unestablished.
NCT07227636(MSK, adjuvant BOT/BAL for ctDNA-positive CRC) does not fit her: its cohorts require R0 resection of stage III disease or of a liver metastasis (ClinicalTrials.gov, re-read 2026-10-25), and she was diagnosed at stage IV, and no liver metastasis of hers has ever been detected (Richard, 2026-11-01). Her record agrees: no liver-metastasis code (C78.7) inmods_conditionand no liver procedure inmods_procedure(queried 2026-11-01), and her 2025 recurrence had none (§2.5; CT reports inmods_document0fb21ab8). It also excludes “Presence of metastatic or recurrent disease”; the registry does not say how that applies to someone NED by imaging with a palpable port-site lesion (§2.3). (Corrected 2026-11-01, #1131: this line used to say she “has had no liver metastases”, cited only to the registry, which cannot speak to her. Corrected 2026-10-25, #1253: it used to call it “the closest fit to her situation”, and said her recurrence “may map to neither” cohort. Corrected 2026-10-24, #1255: it used to say “stage IV nodal-only”, a copy the 2026-10-14 correction missed.)
The NED eligibility gap. Being NED by systemic therapy is its own category and fits neither trial bucket: too well for treatment trials, which almost all require measurable disease per RECIST; not the right kind of NED for adjuvant and minimal-residual-disease trials, which require R0 surgical resection. This will keep recurring. CT resolution bottoms out around 5 mm, and ctDNA positivity is the entry criterion for every MRD trial. She has had serial tumor-informed ctDNA testing (Signatera) since 2025-01-29, ordered through her integrative practice: 19 reports on file to 2026-03-03, ctDNA-negative since 2025-12-05 (§2.6). So MRD trials that require a positive result do not apply while it stays negative. (Corrected 2026-10-30, #1131: this used to call ordering Signatera “the highest-value unblocking action”; it was already running. Corrected 2026-10-25, #1253: it used to say “monthly”.) (2026-10-17: she is NED by imaging only; a palpable lesion below CT resolution persists at the port site, where her 2025 recurrence was biopsied (§2.3). Whether it bears on trial eligibility is a question for her oncologist.)
2.6 What she has that most patients do not
This is why an n-of-one approach is tractable here at all.
| Asset | Detail |
|---|---|
| Ex vivo drug sensitivity | RGCC Onconomics Plus ×2 (2025-02-15, 2025-09-19) — the only sensitivity source. 330 agent results, of which 224 carry a numeric score: 112 distinct drugs × 2 draws. Of each report’s 112, 59 sit on a graded % scale (the chemo panel) and 53 are MoAb/SMW agents RGCC grades on a binary “No sensitivity / Sensitivity” legend and encodes as 0. % cell death by Annexin V-PE flow cytometry on her own circulating tumor cells. Real per-patient supervision; the PDR papers have none. Corrected 2026-09-24 — see GH #317. |
| CTC burden + immune profile | RGCC OncoTrace (CTC enumeration: 2.7 cells/ml Feb 2025, 2.6 cells/ml Sep 2025, SD ±0.3; colon-cancer reference < 5 cells/ml) and IMMUNE-FRAME (ELISA cytokine + flow immunophenotype; reported down-regulated immunity via CD25/CTLA4 overproduction). Neither carries any drug-sensitivity data — they were miscounted as sensitivity sources until 2026-09-24. (2026-10-14: IMMUNE-FRAME is parsed: 14 mods_immune_profile rows. Its own result table codes CD25 and CTLA4 “normal” (0.02), which doesn’t back its summary. It is hers: the different cancer type and birth date in its header are RGCC form errors her other RGCC reports share (Richard, 2026-10-16, #921).) |
| Full transcriptome | Caris WTS tabular export: 3 specimens × 59,960 genes × 41 reference lineages, TPM plus percentile. 179,880 rows ingested at matched lineage. |
| Germline WGS | 30× whole genome, sequencing.com kit the WGS kit, GRCh38, MGI/BGI DNBSEQ platform. 5.26M variants, 4.43M with rsIDs, 4,419,571 genotype rows loaded. |
| Tumor exome + RNA | Caris DNA and RNA BAMs, VCFs and FASTQs for all three tumor specimens (two colorectal, one melanoma), about 92 GB under backend/data/caris/ (du -sh, 2026-10-30; this used to say ~140 GB, §4.4’s figure for all of backend/data/). |
| Longitudinal clinical record | Kaiser EHR via Epic FHIR plus HTML import; the integrative clinic via Cerbo. Labs, conditions, medications, encounters. |
| Documents | 2,118 rows in mods_document (re-counted 2026-11-01), growing with each Kaiser sync. 28 parsed reports: 9 genomic and functional plus 19 Signatera draws; the melanoma Caris profile is unparsed (#213). (2026-10-30, #1131: this used to say 1,903 rows and 9 reports.) |
(Done 2026-10-13, GH #131 closed: all 21 Signatera documents on file are parsed into
19 natera_signatera report rows, one per draw that has its own report. Each draw is
cross-checked against the PDF text layer and every later report’s history table. The
2025-03-31 draw lives only in later rows’ history. The pre-parse account that stood here,
“nine reports, unparsed”, was removed 2026-10-30, #1131.) Each report carries one
number, MTM/mL (circulating tumor DNA, not circulating tumor cells):
- 7.26 on 2025-01-29, rising off treatment to 20.74 on 2025-10-01. The first-ever draw was already positive, about a month after maintenance chemo stopped and about 7 months before the August CT.
- 0.15 on 2025-10-27, after FOLFOX + cetuximab + encorafenib began. Six rounds were complete by late December, so the start was around early October.
- Negative from 2025-12-05 on.
For model validation that is worth little. It gives one regimen-level response label
(BREAKWATER, a combination, so nothing can be attributed to a single drug) and an
untreated-growth period. At zero, it is a relapse tripwire, not a source of drug-level
labels. Parse the text layer; the OCR block in content_text misreads the history
table.
2.7 Care team and context
- Her health plan’s oncology service — medical oncology. The conventional path.
- An integrative oncology clinic — all the genomic testing (Caris, Guardant, Invitae, RGCC) was ordered here and paid cash. Their EHR is Cerbo, not FHIR.
- A trial-strategy consultant — clinical-trial strategy, supplement protocol cycling around chemo, abscopal-effect thinking.
- A TCM practice — herbal formula, acupuncture.
She is doing everything that is not dangerous. The project sits alongside that, not in place of it.
3. The approach, and why it is shaped this way
3.1 The core idea in plain terms
A biomedical knowledge graph is a map of facts: drug X treats disease Y, gene Z is associated with disease Y, drug X targets protein P. Do this for a few million facts and you get a web connecting drugs, diseases, genes, proteins, phenotypes and pathways.
A graph neural network can learn the shape of that map — not the facts, the geometry. Once it has the geometry you can ask about edges that are not written down: if this drug and this disease are not linked in the data, how strongly does the geometry say the link should exist? That is the repurposing signal.
Then you condition it. A model trained on published facts gives the best answer the literature supports for “colorectal cancer” as a category. That is not what is needed. It has to be the best answer for this tumor, with its specific mutations, its specific expression profile, and its specific history of what has already been tried. That conditioning is the hard part, and it is where the project currently is.
3.2 The papers this is built on
Four papers form the lineage. Do not conflate them — they report different metrics
on different tasks, and cross-comparing their numbers is a recurring error. The core
papers are auto-loaded into every session via @-imports in CLAUDE.md; the full
text lives in docs/References/.
| Key | Paper | Role | Headline numbers |
|---|---|---|---|
| KG-Predict | Gao, Ding, Xu, JBI 2022 | Introduced GP-KG and the CompGCN + InteractE (corrected 2026-10-15, #912; earlier text said ConvE) foundation model. | CV link prediction: AUROC 0.981, AUPR 0.409, MRR 0.261. Alzheimer’s case study: AUROC 0.868, AUPR 0.364. |
| PDR1 | Oğuztüzün et al., JBI 2025 | Individualized KG-Predict per patient using UK Biobank PRS and biomarker scalars. | Table 3 foundational: MRR 0.192, Hits@10 0.313, AUC 0.866. |
| PDR2 | Oğuztüzün et al., JBI 2026 (DOI 10.1016/j.jbi.2026.105039) | Re-architecture on ULTRA/NBFNet; personalization moves into the loss function. | Reports 1.3×–5.4× AUPRC improvement per patient. (⚠ 2026-11-01, #891, #903: in question. In the authors’ released code, apply_personalization applies the adjustments in a way the paper does not describe, and AUPRC rests on about ten randomly kept true answers; two patient models’ published test sets are fresh random splits. Whether these produced the lift is not established. Corrected 2026-11-07, #894: this used to say “differently from the paper’s description”; the paper describes no step by which the trained weights change a score.) |
| NBFNet / ULTRA / PrimeKG | Zhu 2021 / Galkin 2024 / Chandak 2023 | The architectural and graph substrate underneath PDR2. | ULTRA on Hetionet (density comparable to PrimeKG): fine-tuned MRR 0.399 at 6 layers. |
3.3 Why two knowledge graphs
- GP-KG (61,097 entities, 1.24M relations) is the paper comparator only. If the pipeline reproduces the published numbers on the data the papers used, the tooling is trustworthy. It is insufficient for the real work: only 1 of Maureen’s 5 high-sensitivity RGCC drugs is in it, and most biologics are missing entirely.
- PrimeKG (129,305 entities and 8.10M relations in the canonical store since the D-Q4-22 split, #832; the upstream release has 129,375 nodes; this used to say 129,157 and 7.99M) is the production graph. It contains the drugs she is actually on, and it carries indication, contraindication and off-label-use edges that most graphs lack — exactly the edges repurposing needs.
Agreement between the two on a candidate is a stronger signal than either alone.
3.4 Why a graph neural network rather than a language model
Large language models are trained on human language, not molecular language, and are weak at the chemistry and biology this requires. The knowledge graph gives explicit, traceable, multi-hop structure; the GNN learns over that structure; every prediction can be walked back to the edges that produced it. Interpretability is not a nicety here — a candidate that cannot be explained to an oncologist is not actionable.
4. What has been built
4.1 Maple, the platform
A terminal-centric web application that is also the workbench for all of this.
React/Vite frontend, FastAPI backend, PostgreSQL with pgvector, a Postgres-native
worker queue (SELECT FOR UPDATE SKIP LOCKED, no Redis), deployed on Google Cloud
Run, with MCP servers exposing the whole surface to Claude. Full architecture in
technical_guide.md and CLAUDE.md.
MODS is the oncology component inside Maple, split along three duty lines:
| Dashboard | Alias | Duty |
|---|---|---|
| Research | research | Knowledge graph: Explorer, Health, Compositions |
| Lab | lab | Modeling workbench, connectors, training runs |
| Clinic | clinic | Patient data |
| Genomic Browser | genome | Caris VCF/BAM/RNA — 11 tabs, oncoprint, lollipop, pileup, expression, copy/LOH |
| PRS Pipeline | prs | Polygenic score gates and manifest |
| Metro Map | metro | McLelland’s metabolic fuel lines, with her RGCC results and tumor expression on them. The one feature she has asked about (§8) |
4.2 The knowledge graph
Canonical schema is mods_kg_entity / mods_kg_entity_source / mods_kg_relation.
The legacy mods_kg_node / mods_kg_edge tables are deprecated and reading them
gives misleadingly empty answers.
Live totals, 2026-09-07 (mods_kg_canonical_stats):
3,695,039 entities · 19,478,158 relations · 11 sources
| Source | Entities | Relations | Note |
|---|---|---|---|
rtx_kg2 | 3,540,372 | 10,222,708 | PARTIAL — ~7% of upstream. Do not trust its coverage. GH #85 |
prime_kg | 129,157 | 7,987,620 | production graph |
gp_kg | 61,097 | 1,244,554 | paper comparator |
civic | 6,001 | 11,456 | variant evidence |
pharmgkb_variants | 5,017 | 9,376 | pharmacogenomics |
clinvar / oncokb | 932 / 176 | 1,622 / 483 | variant evidence |
maple_patient | 5 | 339 | Maureen and proxies |
Maureen is a first-class node: MAPLE_PATIENT:maureen-1173a8db, with roughly 250
outbound relations covering gene-level alterations, RGCC sensitivities, expression,
medications and phenotypes, materialized by
backend/mods_patient_kg_service.py::materialize_patient_kg.
Compositions are named, versioned graph recipes that training runs point at. Ten
exist. The two that matter: maureen_focus_v1 (PrimeKG domain-pruned plus the full
variant-evidence stack) and maureen_full_v1 (identical but with no PrimeKG domain
exclusions, for ablation).
4.3 The training platform
Vertex AI CustomJobs, submitted through the Maple worker queue so every run lands in
mods_research_run and appears in the Training Cockpit. Never submit via raw
gcloud — it makes the run invisible to the system and requires manual backfill.
The PDR2 container dispatches five modes via a MODE env var: train, fine_tune,
eval_patient, evaluate_personalized, score_edges.
47 runs recorded to date: 23 complete foundation runs, 5 complete fine-tunes, the rest failed, queued or halted.
4.4 Data assets on disk
backend/data/ is host-only, gitignored, and excluded from Docker images. It holds
Maureen’s germline WGS and FASTQs, all three Caris tumor BAM/VCF sets, the
full-transcriptome WTS exports and the raw knowledge-graph dumps (measure with du -sh).
The PGS Catalog cache (about 5,400 harmonized GRCh38 scoring files, about 60 GB) sits
beside it in worker/data/pgs_catalog/, also gitignored and excluded from images.
Never commit any of it. (Corrected 2026-10-30, #1131: this used to put the PGS cache
under backend/data/ and the total at roughly 140 GB.)
5. Where the science actually stands
This section is the honest ledger. Read the null results as carefully as the positive ones; they are the reason the project is where it is.
5.1 Paper reproduction (Phase 0) — mostly closed, one asterisk
GP-KG loaded and trained; ranking correlation against the published drug ranking is Spearman ρ = 0.740. Strong, not the ≥0.90 that would let us claim full reproduction. The gap is not a bug: the authors never shipped their train/test split and their split script sets no random seed, so the exact split is unrecoverable.
The Alzheimer’s case study sits at AUROC 0.79–0.81 against the paper’s 0.868, a ~7% gap from the same cause. Open decision: chase it or document it as an asterisk.
5.2 Architecture — a real finding
Vanilla CompGCN cannot go deeper than about 2 layers on PrimeKG. At average degree 125, a 2-hop neighborhood already covers 12% of the graph and a 3-hop one saturates it; this is textbook over-smoothing, and 1 layer empirically beats 2 by ~12%.
Depth is an architectural problem, not a hyperparameter one. Within CompGCN, embedding dimension is the lever, not depth. NBFNet and ULTRA use a labeling trick that makes per-query rooted features rather than whole-graph smoothing, which is why they scale to 6 layers on dense biomedical graphs. This is the justification for the whole PDR2 move.
5.3 Best patient-specific signal to date
| Run | Architecture | Tier-1 (Spearman ρ vs RGCC) | Tier-2 (AUROC) |
|---|---|---|---|
Run B primekg_corr_1l_400d_v1 | CompGCN, 1 layer, 400d | +0.351, p = 0.00018, n = 109 — ⚠ superseded, see below | — |
PDR2 v2 foundation maureen_focus_v1 | ULTRA/NBFNet from scratch | +0.181, p = 0.062 (marginal) — ⚠ superseded | 0.835 (pass) — ⚠ superseded |
⚠ Run B’s Tier-1 number is superseded pending restatement (GH #324; root cause GH #317, 2026-09-24). ρ = +0.351 (n=109) was computed against RGCC labels averaged across her two draws. For ~100 of the 112 panel drugs the average is harmless, but the 12 that moved ≥25 points — four taxanes down, eight anthracycline / topoisomerase-II up — were collapsed to a mid-range value that occurred at neither timepoint. So ~11% of the ranked points are artifacts of the averaging, the quantity is a correlation with the mean of two biological states rather than with her drug sensitivity, and the magnitude is not trustworthy. The sign probably survives. Re-run per timepoint through the fixed
compute_metrics_crc.pybefore citing it as a baseline. The same applies to every Phase 7.5 / PDR2 v2 Tier-1 and Tier-2 figure.
⚠ The PDR2 v2 row is leak-driven, not merely pooled (2026-09-27, GH #214, #439). That foundation (
916bdd2c) trained on 74 of her 135 RGCC edges.
- 4 of the 5 Tier-2 positives were in its training graph: oxaliplatin, cisplatin and mitomycin directly, pemetrexed through a PharmGKB twin.
- Carboplatin was the only held-out positive. It is the “outlier at rank 260” below.
- Per draw, Tier-1 is flat on clean drugs. On the 49 drugs whose label never reached training, ρ = −0.051 / −0.045 (n.s.); on the 56 whose label did, +0.363 / +0.407.
Read the v2 row as memorization. (2026-10-30, #1131: the first clean numbers came from smoke run #1, 2026-09-29: graded-only ρ +0.03 / +0.05 per draw, CIs spanning 0; AUROC on 5 positives 0.614 / 0.615 graded-only, 0.525 / 0.521 all-panel. So no base-ranker signal on a true holdout (
docs/mods_smoke_run_1_writeup.md, the run’srgcc_per_drawrows; that foundation kept the mirror edge, #523). This used to say they “will come”.)
Run B remains the strongest correlation with her measured drug sensitivities. The PDR2 foundation has the better Tier-2 AUROC — it beats every PDR1 baseline at separating her high-sensitivity drugs from her resistant ones — but roughly half the Tier-1 correlation. One carboplatin outlier at rank 260 suppresses PDR2’s Tier-1; excluding it gives ρ ≈ +0.26.
Also established: training on a smaller, patient-focused composition beats a generic
one. maureen_focus_v1 lifted her own-edge filtered MRR from 0.0052 to 0.0167, a
224% improvement over training on the full graph. (⚠ 2026-09-27: unrestated. Almost all
of the lift sits on current_medication and sensitive_to_drug, the predicates both
foundations trained on, and the patient MRRs were computed on re-split data (GH #433).
The composition effect may still be real, but these numbers cannot show it.)
5.4 Personalization — the central open problem
The published PDR2 personalization mechanism does not, as released, produce lift on Maureen’s data. This is the most important negative result in the project.
(⚠ 2026-11-01, #891, #903: the paper’s own lift is in question (§3.2), so this null is not evidence that her data falls short of the paper’s. Whether a correctly built patient loss works is #420’s question, judged on proxies (#591).)
PDR2 personalizes through two independent mechanisms that only combine at inference:
- Mechanism A, patient-as-a-node. Maureen is a first-class entity in the training
graph from epoch 1, so the foundation learns an embedding for her and queries of the
form
(Maureen, r, ?)are possible. This works and is required for anything else. - Mechanism B, the personalized loss. The foundation is frozen; the only trainable parameters are per-disease and per-protein weights inside the loss, multiplied by her polygenic risk scores and expression values. The paper does not say how these weights then change a drug’s score. In our pipeline they become an additive bias on each candidate’s own score; the authors’ released code applies them differently (GH #891). (Corrected 2026-11-07, #894: this used to say “At test time these produce an additive bias on each candidate’s score”, as if that were PDR2’s described mechanism.)
Measured results on her Track A profile:
| Loss variant | λ | Baseline MRR | Personalized MRR | Δ |
|---|---|---|---|---|
Released code (paper_code) | 0.01 | 0.005152 | 0.005131 | −0.4% (null) |
| Paper-text formula | 0.01 | 0.005152 | 0.000391 | −92.4% (destructive) |
| Paper-text formula | 0.1 | 0.005152 | 0.000288 | −94.4% |
| Minimal patch | 0.01 | 0.005152 | 0.005215 | +1.2% (marginal) |
Four things are known about why:
- The released loss and the paper text disagree in four places: sign on the λ
terms, per-triple coupling to the prediction score, a
tanh, and L2 weight normalization. Implementing the paper text literally is catastrophic. Thetanhand normalization are load-bearing stability tricks the text omits. - The criterion is gradient-degenerate. Both loss terms are functions purely of (criterion weights, fixed patient values) and do not depend on the batch, so their gradient is identical at every step. The optimum is reachable in closed form; a 20-epoch fine-tune buys nothing after the first few.
- The criterion is edge-blind. In
apply_personalization, adjacency strength is hardcoded to 1.0, so asensitive_toedge and acontraindicationedge push the same direction. The identified fix is a learned signed per-relation term (Phase 12, GH #420, open; design indocs/pdr2_phase12_per_relation_criterion_planning.md; corrected 2026-10-30, #1131: this used to cite the closed λ sweep, GH #47). It requires no foundation retrain, but a signed term alone does not undo the released loss’s pull toward demotion; the fine-tune also needs an outcome signal (design doc §8). - The genetic half was first fed real numbers in smoke run #1, and they did not help.
Every earlier run used “Track A” (zero PRS), so disease weights stayed at random
initialization: with
prs_values = 0there is no gradient. In the PDR1 paper, PRS was the single highest-impact feature (Cohen’s d = 1.05, dropping to 0.77 without it). Smoke run #1 (2026-09-29, GH #439) fed her v0 release (smoke_v0, 590 scores over 109 anchors; §5.5) through Track B: null at λ 0.01, slightly harmful at λ 0.1 (all-panel Δρ −0.057 [−0.121, −0.004], first draw), trending harmful at λ 1.0. Under the released loss λ does not change the learned weights, the adjustment mostly demotes (1,254 of 1,314 drugs went down), and 72.7% of it flows throughcontraindicated_for. Whether a signed criterion (item 3) can use her PRS is untested. (Corrected 2026-10-30, #1131: this used to say the genetic half “has never been fed real numbers”. Corrected 2026-11-07, #894: this used to say “the adjustment can only demote”.)
5.5 Polygenic risk scores — rebuilt and computed; v0 smoke release, final release pending
The PRS work is a cautionary tale worth understanding before you touch it.
The original scorer read a variant-only genotype store and treated an absent locus as dosage zero. For a scoring file whose effect allele is the reference allele — about half of all loci — a homozygous-reference call should contribute 2 × weight, not 0. Every score in the legacy fleet was wrong. The fleet was wiped on 2026-07-13. An external audit independently reproduced the ~49% drop across 40 scores.
The rebuild is gated:
| Gate | What it does | Status |
|---|---|---|
| A | Read the genome correctly — dense callset where hom-ref says 0/0 instead of being absent | Done, live on prod, merged (PR #235) |
| B | Catalog which published scores are computable | Done. All 5,377 cached GRCh38 scores classified. Classifier v4 (2026-09-24) promoted unplaceable_rows at a ≤1% threshold: 3,753 production-eligible (69.8%), 2.166B variant rows. (The earlier 3,863 was a v2-era figure; v3 fell to 2,322 when the hm_pos fallback was closed, then v4 recovered to 3,753.) |
| C | Rewrite the arithmetic onto the dense callset | Built (2026-09-22). backend/mods_prs_scorer.py; compute_prs_pure is deleted. Scores write at validity='quarantined' — Gate F releases. |
| D | Ancestry and percentile normalization | Built; first real pass 2026-09-28 on the v0 set (D1 61aaccdf, D2 d63b3439 under the #499 fix, D3 against 667 EUR samples). Not run fleet-wide, and ancestry PCs are not computed yet. Before that it was built, not run. The pgsc_HGDP+1kGP_v1 panel is downloaded, md5-verified and extracted (15 GB plink2, 3,942 samples / 84.3M variants; 3,330 unrelated after the KING cutoff). D3 (PC regression + percentile) was built in PR #386, and D1 (allele frequencies) and D2 (the panel, and the patient beside it, scored under her policy) in GH #396. The worker image was rebuilt (GH #339). D2/D3 will re-run for v1 after the v1 re-score (GH #422), which was queued 2026-11-01 (run 9421e732). Nothing yet computes the ancestry PCs D3 reads (GH #429), so D3 ran on the 667 EUR samples with no PC regression. (2026-10-30, #1131: this used to say the pass waited on #339 and E3.) |
| E | Actually compute the numbers | Done three times. E1 2026-09-24 (2,321 of 2,322 at v3 scope, a measurement run). E2 2026-09-26: 3,752 of 3,753 at v4 scope, all reconciling, none outside theoretical bounds, fleet outcomes summing to the manifest’s eligible rows exactly. E3 2026-09-28 (40b804a8, smoke run #1’s re-score) holds every live row (590 released, 3,162 quarantined). (2026-10-30, #1131: this used to say “Done twice”.) |
| F | Biological sanity checks + PDR manifest | v0 writer built (#296; backend/mods_prs_release.py, backend/scripts/prs/release_gate_f.py) and run: 590 released as of 2026-09-28 (smoke run #1, #296’s rules with recorded waivers): 590 scores over 109 anchors, smoke_v0. v1 rules decided 2026-10-15 (D-Q4-07 NR scale, GH #965; D-Q4-08 palindromes, GH #966); the v1 re-score (GH #422), D2/D3, the mapping table for new slots and the v1 release are ahead. (2026-10-30, #1131: this used to say “The final release is not started”.) |
Superseded 2026-09-28: the first release of her PRS: a v0 smoke release of 590 scores over 109 disease anchors (tag
smoke_v0, release runc3be9df0), normalized against the 667-sample EUR reference. The final Gate F release is still ahead. The paragraph below describes the state before it.
No released PRS exists, and that is still true after E2. 3,752 scores are computed
and every one is quarantined; only Gate F promotes, so every reader correctly returns
nothing. The remaining blocker on §5.4 item 4, and therefore on G3, is D and F — the
reference FASTA and the panel are both staged.
The palindrome decision is made (D-Q4-08, GH #966, Richard 2026-10-15: option D).
Gate C deferred palindromic SNVs (2.99% of rows, but a median 10.4% of rows for each of
the 1,687 affected scores). Under v1, the small curated class is read forward (527 files,
14,250 palindromic rows) and R5 is retired; the genome-wide class waits for GH #414, and
the allele-frequency route is not in v1. That obliges one whole-fleet v1 re-score
(GH #422), with strand-flip recovery riding along; it is not “E3”, which is run
40b804a8. See docs/prs_primer.md §5.5. (2026-10-30, #1131: this used to say “One
decision sits between E2 and release”.)
Resolved (Richard, 2026-09-22): run both, every time, and mine the divergence.
This document used to say pgsc_calc v2.3.0 was “the scoring engine of record, not the
bespoke scorer”, while docs/prs_primer.md defined Gate C as building the bespoke scorer
and reconciling it against pgsc_calc. That either/or was the wrong frame. Both run on
every scoring pass; the delta between them is a first-class output, not a one-time
acceptance test.
The reason this is stronger than picking one: the July audit’s lesson was that a check
sharing the scorer’s assumptions cannot fail. A permanent second opinion is the structural
answer to that, where a one-off gate is only a snapshot. And the divergence decomposes —
pgsc_calc mean-imputes missing dosages to 2p and resolves palindromes by allele
frequency, both of which MODS deliberately does not do (§ prs_primer.md 5.4). So each
per-score delta splits into an imputation term, a palindrome term, and a residual that
should be zero. A non-zero residual points at a real defect in one of the two
calculators; the imputation term separately quantifies how much of a published score’s
value is invented rather than measured, which is worth knowing about a score no matter
who computed it.
Division of labour that follows: MODS is canonical for the released value (it is the only
one that emits the coverage_v1 payload the read layer renders, and it is reproducible
in-repo), pgsc_calc is the independent witness, and agreement within tolerance is a
Gate F release criterion. backend/scripts/prs/reconcile_pgsc_calc.py already exports
the bundle and diffs the sums; what it still needs is Nextflow and a container runtime —
plausibly the existing digest-pinned Vertex image_uri seam. Smaller question still open:
where the per-score delta is stored (a reconciliation_v1 block in the score’s metadata
is the obvious home, and needs no migration).
The other trap here, closed in code on 2026-09-28 (GH #244): the 13-entry list then
named UKB_TRAIT_TO_PGS_DEFAULTS silently sized the model’s disease axis (schema v1:
6 diseases, no colorectal cancer), and three of those 13 are labeled for the wrong
disease. It is now SMOKE_TEST_PGS_SET, used only where it is asked for by name. Axis
v2 is built from the released Gate F axis picks, one position per anchor, with
colorectal cancer’s MONDO:0005575 required, and v1 is never rewritten. Gate C does
not use the list either — an omitted pgs_ids resolves to the Gate B manifest’s
production-eligible set.
Ancestry note: Maureen is almost entirely European, corroborated from her own WGS at ancestry-informative loci. European-trained scores are best-case portability for her, so no elaborate per-score portability flagging is needed.
5.6 A validation flaw you must know about
mods_patient_kg_service._build_drug_sensitivity_edges materializes her RGCC
sensitivities as MAPLE:sensitive_to_drug edges on her patient node. Any foundation
exported with --include-source maple_patient therefore trains on the RGCC data we
then validate against. The reported Tier-1 and Tier-2 numbers are not a clean
holdout. Tracked as GH #214, closed 2026-09-29: runs of record since smoke run #1 export
without these edges (below).
Quantified 2026-09-27. The de-facto foundation’s training split held 74 of 135 RGCC edges and 62 medication edges; §5.3 has what that did to the v2 numbers. The export also splits PrimeKG’s mirror pairs apart: 60.6% of that foundation’s test triples have their reverse in train, which inflated every PrimeKG foundation MRR exported before GH #432 (2026-09-28).
The design of record is: train on her orthogonal biology — genetics, expression, PRS,
variants — and hold RGCC out entirely. RGCC is then a secondary check, not the
acceptance test (D-Q4-03 D15, 2026-10-01): gate S6 asks for a partial ρ(score, RGCC
given degree) with a CI above 0 on both draws, graded panel, BRAF/MEK/EGFR agents
excluded (D-Q4-19). The primary gates are S3–S5 (docs/q4_2026_roadmap.md §3.3).
(Fixed 2026-09-28; it was not one flag. The export takes --exclude-predicate, applied
to the overlay too, and the PDR2 handlers reuse its split without re-adding the overlay
(GH #432, #433). An export is clean only when it names the six predicates (three
MAPLE:*_to_drug, three medication); /pdr-vertex-train requires them since GH #1190.
Without these edges a foundation cannot score MAPLE:sensitive_to_drug, so runs query
(drug, treats, MONDO:0005575). Corrected 2026-10-30, #1131: this paragraph used to say
“trust the ranking only if it recovers her measured sensitivities” and “The fix is
roughly one export flag”.)
6. Validation doctrine
There is no ground truth for “which drug will work for Maureen.” There are proxies, and their quality determines what can be claimed.
6.1 The three tiers
RGCC gives 224 quantitative drug-sensitivity measurements on her own circulating tumor cells — 112 distinct drugs across two draws. This is the colorectal analogue of the papers’ Alzheimer’s case study, but stronger, because it is patient-specific and continuous rather than population-level and binary.
Three properties of this label set govern what can be claimed from it, all established 2026-09-24 (GH #317):
- Two grading schemes, one column. 59 of the 112 per report are graded on a percentage scale; the other 53 (MoAb, SMW) come off a binary “No sensitivity / Sensitivity” chart encoded as 0. They are real negatives, but a Spearman over all 112 carries 53 pairs tied at zero. Report Tier-1 both ways — all-panel and graded-only.
- The two draws are not replicates. All-panel test-retest is ρ = +0.9616 (n = 112); graded-only is ρ = +0.7635 (n = 59, mean |Δ| 14.5 points). The panel is globally stable, but 12 drugs move ≥25 points and they move as two coherent classes — four taxanes down (Abraxane 75→15, Paclitaxel 75→22, Docetaxel 70→20, Cabazitaxel 70→14) and eight anthracycline / topoisomerase-II agents up (Doxorubicin 24→79, Etoposide 22→71, Epirubicin 20→67, …). RGCC says so itself: its page-1 summary lists “Partial sensitivity: taxanes” in February and “inhibitors of topoisomerase I, inhibitors of topoisomerase II” in September, with taxanes dropped. That straddles the Jul 2025 SOT injection and the Aug 2025 recurrence. Both draws precede her second course, which began 2025-10-07 (§2.2), so the shift is not a response to it. (Corrected 2026-10-30, #1131: this used to say “That straddles the Aug 2025 recurrence and the BREAKWATER start”.)
- Therefore: never pool the draws. Averaging sends both classes to mid-range
and erases the only real longitudinal signal in the set while leaving the other
100 drugs almost unchanged.
compute_metrics_crc.pynow evaluates per timepoint and prints the test-retest figures on every run.
- Tier 1 — Spearman ρ between model score and % cell death. Works on any checkpoint, no fine-tuning. Most permissive test.
- Tier 2 — AUROC/AUPR with >80% cell death as positives, <35% as negatives. Direct analogue of KG-Predict’s AD case study.
- Tier 3 — leave-one-out personalization. Hold out one responsive drug, fine-tune on the rest, check whether the held-out drug climbs. Only feasible on PDR2, where fine-tuning is cheap.
Tiers 1 and 2 validate the base ranker. Tier 3 validates whether personalization adds anything, and is only worth running once the base ranker shows nonzero correlation.
6.2 What must be disclosed every time RGCC is cited
- In vitro circulating tumor cells at fixed drug concentrations, not in vivo response.
- Prodrugs such as capecitabine will underperform relative to their active metabolite.
- Two time points, which must be reported separately rather than averaged.
- Non-uniform panel coverage.
- Correlation is supportive, never conclusive.
- Single agents only, so it cannot see her working regimen. Encorafenib and binimetinib are not on the panel. The BRAF/MEK inhibitors it does test (dabrafenib, vemurafenib, trametinib) score 0 on both draws, and cetuximab scores 10 → 15. Her ctDNA fell from 20.74 to 0.15 MTM/mL between the 2025-10-01 and 2025-10-27 draws, after FOLFOX + cetuximab + encorafenib began on 2025-10-07 (binimetinib came only with maintenance, from 2026-01-13). That course also carried oxaliplatin, which RGCC graded high-sensitivity (81) on both draws, so the fall does not isolate the targeted agents. (Corrected 2026-10-30, #1131: this used to credit the fall to “the combination”.) In colorectal cancer, BRAF inhibition works only when EGFR feedback is also blocked (Prahallad 2012). So a ranker that correctly puts BRAF/MEK/EGFR agents high is penalized by RGCC; flag or exclude them in Tier-1/Tier-2. (Added 2026-09-28.)
- RGCC’s own outcome study. Guadagni et al., BMC Cancer 2022, co-authored by RGCC: 36 refractory CRC patients treated with RGCC-selected drugs. PPV 47%, specificity 5%, overall accuracy 47%. The design is selection-biased, but it is the only outcome validation the assay has. (Added 2026-09-28.)
6.3 Other validation surfaces
- Cross-KG agreement. A candidate scoring high on both GP-KG and PrimeKG is more trustworthy than one scoring high on either.
- Her medication history. The models should rank drugs she was actually
prescribed and responded to above random. 13 response episodes are labeled.
(⚠ 2026-09-27: circular on every foundation trained so far. All 13 episodes are
“beneficial”, every drug involved is a
tried_drugtarget, and 7 of the 8 had a patient→drug edge in the training split. The surface is usable only on a foundation exported without the medication predicates, and even then, with no negative episodes, it tests rank-above-random only. (Corrected 2026-10-31, D-Q4-48: one of the 14 put binimetinib in Course 2, where she never took it; deleted.)) - Literature review of top candidates. What the PDR2 paper did. Weakest form, but it is the last gate before anything goes to a clinician.
CV MRR is a poor proxy for any of this. Training-time metrics do not predict patient-specific generalization. Validate against RGCC directly.
One more warning: never trust an upstream evaluation function without auditing what
it computes. PDR2’s own validate() reported MRR ≈ 0.99 because of a
relation-aware filter bug. Use eval_maple.py full-ranking evaluation for any
cross-method comparison.
7. Rules
These were paid for. Several cost real data; two produced wrong clinical claims.
7.1 Clinical truth
- Trace every patient fact to her data. A driver that “sounds typical” for
colorectal cancer (KRAS, TP53) is exactly the failure mode. Cross-check
mods_list_alterationsand followalteration.document_idto the source report. - Trial status comes from the ClinicalTrials.gov v2 API, never from press
releases, sponsor sites, or news coverage. Read
overallStatusandwhyStopped. A wrong trial status can send Maureen and her oncologist chasing a dead program. - VAF across specimens is not a trajectory. Variant allele fraction scales with tumor purity and copy number. Every variant rising together across her two Caris reports is the signature of a purity shift, not three clonal expansions. Use serial plasma ctDNA for trajectory.
7.2 Data integrity (hard rules, from CLAUDE.md)
- Never collapse rows that look like duplicates but carry distinct semantics. A
(subject, object, source)triple appearing with twosource_predicatevalues is the source asserting two different things. A prior migration silently deleted 15,045 rows this way and lost the drug-metabolism distinction from the canonical graph. - Never decide an ontology or vocabulary mapping that is not crystal clear.
Propose the mapping as a table with the judgment calls flagged, get approval, then
commit.
biolink:related_tois the giving-up predicate. - Any new edge must preserve
source_predicate. - Register every schema change in
backend/migrations.py. Never ship a standalone.sqlfile. Pick the next migration number against all branches, not just HEAD.
7.3 Operating discipline
- Long jobs go through the worker queue, never raw
gcloud, so they are visible in the Training Cockpit. - Assume multi-step jobs fail on the first try. Build them batched and resumable up front, commit per item, and measure progress in the costly unit (bytes, rows), not item count.
- Do not edit
docs/PDR_PIPELINE_PLAN.md, its checklists, or the run catalog without being asked. Report results and wait. - Repository documents are the source of truth. Open the doc; do not infer from its title or a commit message.
- Verify before defending. When Richard pushes back, that is context you lack. Dump the actual data or open the actual file first, then concede or push back with evidence. He does not want a yes-AI.
7.4 Scope
- Mobile is maintained, not extended. New work needs no mobile view.
- Issues live in GitHub, not in markdown and not in memory. Memory is for durable lessons; lifecycle state belongs in issues.
- Richard handles the ethical and contractual calls. Surface a technical risk once, then defer.
8. The open frontier
Ordered by expected value to Maureen, not by how interesting the work is.
The executable sequence (updated 2026-10-30, #1131). Smoke run #1 (GH #439,
docs/mods_smoke_run_1_playbook.md) closed 2026-09-29 with all ten machinery checks
passing; since then no open issue has carried critical-path. The plan of record is
docs/q4_2026_roadmap.md (gates S0–S9), worked through the steward ledger GH #599 under
docs/research_steward_charter.md. Open decisions are issues titled “Decision D-Q4-nn”.
The ledger holds the current state. (This used to point at the critical-path label
and GH #439 as the live sequence.)
Metro is a priority lane (Richard, 2026-10-05, D-Q4-04, GH #612). The Metro Map is the only Maple feature Maureen has asked about or researched. A useful Metro is the fastest way to get her using the system, and her use is the only user feedback this project will get.
- Do as much with it as data and architecture allow.
- Look for ways to bring new work into it, and its ideas into other surfaces.
- Treat the metabolic hypotheses as research beside PDR, not a detour from it. The repurposing machinery can also be pointed at combinations of metabolic changes (diet, drugs or other), not only at single prescription drugs.
The lane is GH #595; the plan is docs/q4_2026_roadmap.md §4.5.
Tier 1 — directly on the critical path to G1
- Normalize and release her polygenic risk scores. PRS Gates D and F — the
computation is done. This unblocks the disease half of the personalization loss, which
first saw real values in smoke run #1’s Track B fine-tunes (
smoke_v0, 590 scores over 109 anchors; corrected 2026-10-30, #1131: this used to say it “has never seen a nonzero value”). As of 2026-09-26, 3,752 scores are computed and quarantined against the v4 callset (E2), the reference FASTA and the HGDP+1kGP panel are both staged, and D1/D2/D3 are built (2026-09-27). What remains is running D1 → the palindrome decision → E3 → D2 → ancestry PCs → D3 → F release. (2026-09-28: done for the v0 set: E3, D1, D2, D3 against EUR and a v0 Gate F release ran for smoke run #1. The palindrome decision, the final policy and ancestry PCs remain for the full release.) (2026-10-15: palindromes (D-Q4-08) and NR scale (D-Q4-07) are decided; the v1 re-score (GH #422), the mapping table, D2/D3 and the v1 release remain, and ancestry PCs (GH #429) are deferred on a documented EUR basis.) The last hop to the model is already wired:build_pdr2_input_pickle.pyreads the normalized field (z_score, elsepercentile) and refuses raw sums unless explicitly opted in (GH #297), so Gate D’s output has somewhere to go the moment it exists. - Fix the edge-blind criterion (Phase 12, GH #47). Learn a signed per-relation
strength so that
sensitive_topushes up andcontraindicationpushes down. No foundation retrain needed; each candidate is a fast criterion fine-tune. (Implementation is GH #420; #47 was closed when the design doc was written. The released loss is also closed-form, ŵ → −PRS/‖PRS‖, so the fine-tune needs an outcome signal too.) (2026-10-30, #1131: no longer the first lever, nor “the most likely single cause of the null personalization result”, as this used to say. The clean holdout showed no base-ranker signal (GH #214) and the foundation ranks mostly by popularity (S5, GH #523), so the null has an upstream cause. The roadmap builds #420 only if a conditioned baseline beats drug-mean on the proxies (roadmap §3.1, GH #591).) - Clean the RGCC leak (GH #214). Export a foundation without the
MAPLE:*_to_drugedges, keeping her biology edges, then score all ~112 RGCC drugs as a genuine holdout. Until this is done, no validation number is defensible. (2026-09-27: GH #432, #433. The smoke run scores a disease query, because the patient relation disappears with the edges.) - Actually run the personalized ranking and look at it (GH #114). Launch the fine-tune on her profile, render the ranked drug list, annotate the top 30. This is G1. It has been blocked behind infrastructure for months.
- Keep her Signatera record current. Serial tumor-informed ctDNA has run since January 2025, 19 reports on file to 2026-03-03 (§2.6), and is parsed (item 12). The action is to fetch the reports after March 2026 (GH #512, by hand under GH #1167). A more sensitive whole-genome assay built from the August 2025 block would be an optional add-on, likely self-pay, e.g. Personalis NeXT Personal. (Corrected 2026-10-30, #1131: this item used to read “Order tumor-informed ctDNA (Signatera)”; it was already running. Corrected 2026-10-25, #1253: it used to say “monthly”.)
Tier 2 — high value, larger scope
- Variant-aware personalization (Phase 8.5). The ClinGen CAID resolver is built
(
_resolve_variant_to_caid,backend/mods_patient_kg_service.py), and her overlay carries variant-levelbiolink:has_variantedges (BRAF V600E:CAID:CA123643) beside gene-level edges for variants that do not resolve. Remaining: the misses (GH #669) and checking that a training export carries the variant edges. (Corrected 2026-10-30, #1131: this used to say her edges were still gene-level.) - Temporal modeling (Phase 13). The model sees one CA 19-9 value (19 U/mL on 2026-10-01), not its trajectory: 110 on 2025-10-06, 26 by 2025-11-03, and 18–30 since. No published precedent exists in this lineage; this is genuine research. Tier 1 trajectory features are cheap and could ship anytime.
- Expand the expression channel from the 84-gene report panel to the full 59,960-gene transcriptome now sitting in the database. Note that rebuilding the feature schema against it is a schema-version change.
- Population-supervised training. Add cell lines, PDX models and public cohorts
(GDSC, CCLE, DepMap, TCGA, GENIE) as proxy patients so the model learns from
thousands of (subject, drug, outcome) triples rather than one. Design doc exists at
docs/population_supervised_outcome_planning.md.
Tier 3 — infrastructure that unblocks the above
- RTX-KG2 is 7% ingested; either finish it or stop treating it as a source (GH #85).
- Close or asterisk the Phase 0 Alzheimer’s gap.
Parse the nine Signatera reports (GH #131).Done 2026-10-13: 21 documents and 20 timepoints, stored as 19 report rows; see §2.6.- Ingest the melanoma Caris report (GH #213).
9. What “done” looks like
| Level | Done means |
|---|---|
| G4 | Any candidate on the list can be walked back to the edges, the model, the checkpoint and the source data that produced it, by someone who was not there. |
| G3 | Personalized and non-personalized rankings on the same checkpoint differ measurably in her favor: Tier-1 ρ improves by ≥0.05, or Tier-2 AUROC by ≥0.03. |
| G2 | On a clean holdout with RGCC excluded from training, the ranking still recovers her measured sensitivities at Tier-1 and Tier-2. |
| G1 | A ranked list of candidates exists, each with mechanism, evidence level, her own supporting data, interaction and contraindication flags, and an access path — trial, off-label, or compassionate use. Short enough that a physician will read all of it. |
| G0 | Not ours to declare. |
10. Orientation kit
10.1 Answer “what is true right now” here, not from this document
If you are reading this on the public site, you cannot reach any of the sources below. Every one of them — the MCP tools, the database tables, the REST endpoints, the issue tracker, the memory store — is private. That is not a reason to fall back on the numbers in this document as though they were live; it is a reason to quote them as of the
last-verifieddate at the top of the page, and to say that is what you are doing.What the public site does carry, in preference to any figure quoted elsewhere: §5 and §8 below for what has been built and what remains, the PRS primer’s gate table for where that pipeline actually stands, and the pipeline plan for where operational state lives. A manifest of the whole published corpus, with a
last-verifieddate per page, is at/llms.txt.Two corrections worth carrying, because both have propagated before: the patient has no KRAS mutation (§2.4), and every patient-specific correlation figure predating 2026-09-24 was computed on pooled ex vivo draws and awaits restatement (§5.3). Pages carrying those figures flag them inline.
| Question | Source |
|---|---|
| What should I work on? | The Q4 ledger (GH #599), docs/q4_2026_roadmap.md and the open “Decision D-Q4-nn” issues. No open issue carries critical-path since smoke run #1 (GH #439) closed on 2026-09-29. The pdr_status task list is deprecated as of 2026-09-28; its in-flight runs and recent decisions are still current. (2026-10-30, #1131: this used to point at critical-path and #439.) |
| Open work items | gh issue list — labels are type + area + priority; auto means fix-now |
| Training run history | mods_research_run + mods_run_metric; GET /api/mods/research/runs |
| Decisions and learnings | Decision cards (issues titled “Decision D-Q4-nn”, sub-issues of the ledger GH #599, whose Decided section holds the current state) and pdr_note_search (vector search). docs/PDR_NOTES.md is pre-Q4 history, last touched 2026-09-24. |
| KG state | mods_kg_canonical_stats, mods_kg_list_sources, mods_kg_list_compositions |
| Which sources are trustworthy | mods_kg_list_sources: read each source’s status beside its entity_count; partial (today rtx_kg2) means do not trust coverage (2026-10-30, #1131: this used to name a memory file that no longer exists) |
| Her clinical facts | mods_get_patient, mods_list_alterations, mods_list_genomic_reports, mods_get_drug_sensitivity, mods_get_expression_profile |
| PRS state | mods_prs_status, mods_prs_manifest_stats |
10.2 Documents worth reading, in this order
CLAUDE.md— repository conventions and the hard rules. Non-optional.- This file, then q4_2026_roadmap.md: the Q4 plan of record (gates, decision cards).
- PDR_PIPELINE_PLAN.md — short navigation kernel; tells you where state lives.
- paan_planning.md — the strategic architecture argument, including the supervision primer and the population-tapestry direction.
- pdr_phase0_gpkg_writeup.md — the canonical writeup format, and the first real reproduction.
- pdr_personalization_writeup.md — PDR1 vs PDR2 mechanism reference.
- pdr2_alt_loss_ab_writeup.md — why the paper-text loss is destructive.
- KG_CATALOG.md — every knowledge graph identified, with published baselines.
docs/essays/intro_the_project.md— the lay-audience framing, as of April 2026.docs/Project Post for Substack.txt— Richard’s own account. Read it for the why.
Full index: the Docs catalog section of memory file references.md (2026-10-30, #1131: this used to name docs_catalog.md, which no longer exists).
10.3 Working environment
- Windows 11, PowerShell primary, Bash available. Docker Desktop runs the local stack.
- Port map: 5432 legacy Docker DB, 5433 production Cloud SQL proxy, 5434 local non-production test DB.
backend/data/is host-only and gitignored. Never commit it.- Long jobs run on workers, Vertex AI, or Colab, never in the foreground.
- Richard pays Cloud SQL egress by the byte. Design for one-time pulls and shared caches, not per-task streaming.
11. Glossary
| Term | Meaning |
|---|---|
| MODS | Maureen Oncologic Decision Support — the oncology component of Maple |
| PDR / PDR1 / PDR2 | Precision Drug Repurposing, the 2025 and 2026 papers this replicates |
| GP-KG | Genotypic-Phenotypic Knowledge Graph (KG-Predict, Case Western). Paper comparator |
| PrimeKG | Precision Medicine Knowledge Graph (Zitnik Lab, Harvard). Production graph |
| RGCC | Greek lab providing ex vivo chemosensitivity testing on circulating tumor cells |
| CTC | Circulating tumor cell |
| MSS / MSI | Microsatellite stable / instable. Maureen is MSS, which historically predicts immunotherapy failure |
| TMB | Tumor mutational burden. Hers is low (2–4 mut/Mb, §2.4) (corrected 2026-10-24, #1255: this row used to say 2–3) |
| PRS / PGS | Polygenic risk score; PGS Catalog is the public repository of scoring files. Full arc: the PRS primer |
| KGIA | The patient feature schema for PDR2 fine-tuning: N diseases × M genes. Data QC: the profile QC |
| Track A / Track B | Zero-PRS vs real-PRS. Track B first ran in smoke run #1 (2026-09-28/29) on smoke_v0: 590 scores over 109 diseases, computed in E3 (run 40b804a8) and released 2026-09-28 (2026-10-30, #1131: this used to say Track A was “all runs to date” and the scores were “computed at E2”) |
| Composition | A named, versioned recipe of KG sources and filters that a run points at |
| PaaN | Patient-as-a-Node — the architecture where the patient is a first-class KG entity. Argued in the thinking doc |
| NED | No evidence of disease |
| MRD | Minimal residual disease |
| BOT/BAL | Botensilimab + balstilimab, the leading immunotherapy option for her phenotype |
| Breakwater | The trial that established FOLFOX + cetuximab + encorafenib for BRAF V600E mCRC |
12. Provenance
Assembled 2026-09-07 from: the MODS memory store, CLAUDE.md, docs/PDR_PIPELINE_PLAN.md,
docs/paan_planning.md, docs/pdr_framework_gap_analysis.md, docs/KG_CATALOG.md,
docs/temporal_patient_modeling_planning.md, docs/maureen_clinical_journal_archive.md,
docs/essays/intro_the_project.md, docs/Project Post for Substack.txt, the PDR2
writeups, live queries against the production database via the MODS MCP tools, the
GitHub issue backlog, and the mods_research_run catalog.
Clinical facts were verified against mods_get_patient, mods_list_alterations,
mods_list_genomic_reports and mods_list_functional_tests rather than taken from
memory, per §7.1.
Numbers current as of 2026-09-07. Re-verify via §10.1 before relying on any of them.