Claude Code · high
PendingResults by dataset
| Dataset | Metric | Value | Chance |
|---|---|---|---|
| ox2r ip1 Peptide-GPCR potency | Spearman ρ | 0.286 | 0.000 |
Integrity
- passtrace scan0 blacklist hits, 341 URLs used
- refusedjudgeonly 0 of 3 votes cast: Refused: claude-sonnet-5: stop_reason refusal (bio)
Agent trace
Evaluation history
This run kept no evaluation log: the validation scores the agent saw, read from its trace after the run. Not test scores.
x: hours since the run started. Line: best so far. Hollow dot (†): the number was not found at the trace step it cites.
All 408 scores as a table
| Step | Time | Split | Dataset | Metric | Value | Model |
|---|---|---|---|---|---|---|
| 1100 | +0.33 h | cv | overall (OX2R, leave-one-document-out, n-weighted) | Spearman ρ | 0.4910 | ridge, doc-median-centred target, 54 features |
| 1100 | +0.33 h | cv | Lang2004 OX2R | Spearman ρ | 0.7030 | ridge, centred target |
| 1100 | +0.33 h | cv | Asahi2003 OX2R | Spearman ρ | 0.3830 | ridge, centred target |
| 1100 | +0.33 h | cv | German2013 OX2R | Spearman ρ | 0.3530 | ridge, centred target |
| 1100 | +0.33 h | cv | Karhu2018 OX2R | Spearman ρ | 0.0030 | ridge, centred target |
| 1100 | +0.33 h | cv | overall (OX2R LODO) | Spearman ρ | 0.2010 | GradientBoostingRegressor |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4840 | ridge, target=center |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4730 | ridge, target=z-score |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5970 | ridge, target=within-doc rank normal scores |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4990 | ridge, target=raw pEC50 |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5560 | PLS 8 components, rank target |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4270 | ridge on OX2R rows only, rank target |
| 1109 | +0.35 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4450 | ridge without RDKit descriptors, rank target |
| 1122 | +0.37 h | cv | overall (OX2R, zero-shot) | Spearman ρ | 0.4890 | literature knowledge-penalty score, no fitting |
| 1122 | +0.37 h | cv | Lang2004 OX2R | Spearman ρ | 0.5260 | zero-shot knowledge score |
| 1122 | +0.37 h | cv | Asahi2003 OX2R | Spearman ρ | 0.4710 | zero-shot knowledge score |
| 1122 | +0.37 h | cv | German2013 OX2R | Spearman ρ | 0.2120 | zero-shot knowledge score |
| 1122 | +0.37 h | cv | Karhu2018 OX2R | Spearman ρ | 0.9590 | zero-shot knowledge score |
| 1143 | +0.38 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5790 | ridge[all features], rank target |
| 1143 | +0.38 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5830 | ridge[robust features], rank target |
| 1143 | +0.38 h | cv | overall (OX2R LODO) | Spearman ρ | 0.4730 | ridge[mechanistic features] |
| 1143 | +0.38 h | cv | overall (OX2R LODO) | Spearman ρ | 0.6110 | blend 0.6 ridge[robust] + 0.4 knowledge (z-scored) |
| 1160 | +0.40 h | train | Lang2004 OX2R | Spearman ρ | 0.7920 | final fitted blend, in-sample |
| 1160 | +0.40 h | train | Asahi2003 OX2R | Spearman ρ | 0.4510 | final fitted blend, in-sample |
| 1160 | +0.40 h | train | German2013 OX2R | Spearman ρ | 0.6190 | final fitted blend, in-sample |
| 1160 | +0.40 h | train | Karhu2018 OX2R | Spearman ρ | 0.9610 | final fitted blend, in-sample |
| 1236 | +0.44 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5670 | ridge, 43 sign-consistent features, rank target |
| 1239 | +0.45 h | cv | overall (OX2R LODO) | Spearman ρ | 0.5820 | log-space blend, w_ridge=0.3, knowledge exp map tau=8, anchor 7.40, floor 5.30 |
| 1256 | +0.48 h | cv | overall (4-paper LODO, OX2R, n-weighted) | Spearman ρ | 0.5120 | ridge only, 32 winsorised features |
| 1256 | +0.48 h | cv | overall (4-paper LODO) | Spearman ρ | 0.4890 | zero-shot knowledge score only |
| 1256 | +0.48 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5760 | ridge+knowledge blend, tau=4, w_ridge=0.2 |
| 1256 | +0.48 h | cv | Lang2004 | Spearman ρ | 0.6700 | blend |
| 1256 | +0.48 h | cv | Asahi2003 | Spearman ρ | 0.4600 | blend |
| 1256 | +0.48 h | cv | German2013 | Spearman ρ | 0.4600 | blend |
| 1256 | +0.48 h | cv | Karhu2018 | Spearman ρ | 0.7700 | blend |
| 1261 | +0.49 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5850 | blend + per-position present[1..28] features |
| 1261 | +0.49 h | cv | overall (4-paper LODO) | Spearman ρ | 0.4880 | blend + per-position wild-type[1..28] features |
| 1261 | +0.49 h | cv | overall (4-paper LODO) | Spearman ρ | 0.4970 | blend, ridge trained on OX2R rows only |
| 1266 | +0.51 h | train | Lang2004 | Spearman ρ | 0.7360 | final blend, in-sample, alpha 0.5 |
| 1266 | +0.51 h | train | Karhu2018 | Spearman ρ | 0.9610 | final blend, in-sample |
| 1269 | +0.51 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5790 | blend, ridge alpha floor 3 |
| 1269 | +0.51 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5680 | blend, ridge alpha floor 1000 |
| 1284 | +0.54 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5030 | knowledge score with position-resolved substitution penalty |
| 1284 | +0.54 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5740 | blend with position-aware penalty, tau=12, w=0.1 |
| 1307 | +0.58 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5650 | blend with monomer-composed descriptors (no RDKit at inference) |
| 1307 | +0.58 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5130 | knowledge only, composed descriptors |
| 1327 | +0.62 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5040 | ridge only after monomer resolver fixes |
| 1327 | +0.62 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5230 | knowledge only after resolver fixes |
| 1327 | +0.62 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5760 | blend after resolver fixes, tau=4, w=0.2 |
| 1345 | +0.68 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5260 | blend ablation: no D-residue term |
| 1345 | +0.68 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5500 | blend ablation: no importance term |
| 1345 | +0.68 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5710 | blend ablation: no ESM term |
| 1345 | +0.68 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5810 | blend ablation: no message-substitution term |
| 1366 | +0.72 h | cv | overall (4-paper LODO) | Spearman ρ | 0.5760 | blend after sequence-parsing fixes |
| 1375 | +0.74 h | other | training peptides | Spearman ρ | 0.9947 | train-time vs deployed predict() consistency |
| 1507 | +0.83 h | cv | overall (5-paper LODO incl. Ammoun2003) | Spearman ρ | 0.4720 | ridge only |
| 1507 | +0.83 h | cv | overall (5-paper LODO) | Spearman ρ | 0.5310 | knowledge only |
| 1507 | +0.83 h | cv | overall (5-paper LODO) | Spearman ρ | 0.5740 | blend tau=4, w=0.1 |
| 1507 | +0.83 h | cv | Ammoun2003 | Spearman ρ | 0.7300 | blend |
| 1521 | +0.84 h | cv | overall (5-paper LODO, n-weighted) | Spearman ρ | 0.5720 | blend, rank target, w=0.15 |
| 1521 | +0.84 h | cv | overall (5-paper LODO, paper-averaged) | Spearman ρ | 0.6480 | blend, rank target, w=0.15 |
| 1521 | +0.84 h | cv | Ammoun2003 | Spearman ρ | 0.8000 | blend, rank target, w=0.15 |
| 1521 | +0.84 h | cv | overall (5-paper LODO, n-weighted) | Spearman ρ | 0.5810 | blend, z-score target |
| 1530 | +0.84 h | train | Ammoun2003 | Spearman ρ | 0.7930 | final blend, in-sample |
| 1651 | +0.97 h | cv | overall (6-paper LODO incl. Gubra2025) | Spearman ρ | 0.4320 | ridge only, 37 features incl. lipid terms |
| 1651 | +0.97 h | cv | overall (6-paper LODO) | Spearman ρ | 0.5910 | knowledge only with Gubra-measured lipid position penalty |
| 1651 | +0.97 h | cv | overall (6-paper LODO) | Spearman ρ | 0.6220 | blend tau=4, w=0.1 |
| 1651 | +0.97 h | cv | Gubra2025 | Spearman ρ | 0.8300 | blend |
| 1651 | +0.97 h | cv | Gubra2025 | Spearman ρ | 0.8200 | knowledge only |
| 1670 | +0.98 h | cv | LODO over 5 papers, Gubra fold excluded | Spearman ρ | 0.5670 | blend w_ridge=0.10, Gubra used in ridge training |
| 1670 | +0.98 h | cv | LODO over 5 papers, Gubra fold excluded | Spearman ρ | 0.5730 | blend w_ridge=0.10, Gubra left out of ridge training |
| 1670 | +0.98 h | cv | LODO over 5 papers, Gubra fold excluded | Spearman ρ | 0.5310 | knowledge score only |
| 1670 | +0.98 h | cv | LODO over all 6 papers | Spearman ρ | 0.4320 | ridge only, before satellite fix |
| 1693 | +0.99 h | holdout | Gubra Table 1 Glu scan (n=24) | Spearman ρ | 0.7010 | zero-shot knowledge score |
| 1693 | +0.99 h | train | Gubra Table 2 lipid scan (n=28) | Spearman ρ | 0.7830 | knowledge score with lipid table calibrated on this data |
| 1693 | +0.99 h | holdout | Gubra Table 2 lipid scan | Spearman ρ | 0.5340 | knowledge score with original guessed lipid prior |
| 1708 | +1.01 h | cv | LODO over all 6 papers | Spearman ρ | 0.5320 | ridge only, lipid satellites excluded from size descriptors |
| 1708 | +1.01 h | cv | LODO over all 6 papers | Spearman ρ | 0.6290 | best blend tau=4, w=0.1 |
| 1716 | +1.01 h | cv | LODO over 5 papers, Gubra fold excluded | Spearman ρ | 0.5750 | blend w=0.10, Gubra in ridge training |
| 1716 | +1.01 h | cv | LODO over 5 papers, Gubra fold excluded | Spearman ρ | 0.4810 | ridge only |
| 1774 | +1.12 h | holdout | Gubra Tables 3-5 slice (110 optimised peptides) | Spearman ρ | -0.5860 | additive-penalty blend |
| 1774 | +1.12 h | holdout | Gubra Tables 3-5 slice | MAE | 2.4000 | additive-penalty blend |
| 1774 | +1.12 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | -0.2520 | additive-penalty blend |
| 1785 | +1.16 h | cv | LODO over all 6 papers | Spearman ρ | 0.6270 | knowledge only with Glu-scan POSCOST |
| 1785 | +1.16 h | holdout | Gubra Tables 3-5 slice | MAE | 1.8200 | blend with Glu-scan POSCOST |
| 1790 | +1.18 h | holdout | mixture: Gubra T3-5 + Lang floor + Lang actives | Spearman ρ | 0.3250 | blend before p-norm |
| 1790 | +1.18 h | holdout | optimised vs inactive | auc | 1.0000 | blend before p-norm |
| 1790 | +1.18 h | holdout | optimised vs Lang actives | auc | 0.6620 | blend before p-norm |
| 1804 | +1.24 h | cv | LODO over 5 papers | Spearman ρ | 0.5940 | p-norm p=3, ESM weight 0 in penalty |
| 1807 | +1.24 h | cv | LODO over all 6 papers | Spearman ρ | 0.6340 | knowledge only, p-norm p=3 |
| 1810 | +1.25 h | holdout | dead+potent mixture | Spearman ρ | 0.7130 | p-norm blend |
| 1810 | +1.25 h | holdout | optimised vs Lang actives | auc | 0.9810 | p-norm blend |
| 1826 | +1.30 h | cv | LODO over 5 papers | Spearman ρ | 0.5950 | p=3, POSFLOOR=1.0 |
| 1826 | +1.30 h | cv | German2013 | Spearman ρ | 0.3380 | p=3, POSFLOOR=1.0, orexin-A as wild type |
| 1837 | +1.31 h | holdout | dead+potent mixture | Spearman ρ | 0.6690 | blend with floor=1.0 |
| 1837 | +1.31 h | holdout | optimised vs Lang actives | auc | 0.9360 | blend with floor=1.0 |
| 1843 | +1.33 h | cv | LODO over 5 papers, n-weighted | Spearman ρ | 0.5950 | blend |
| 1843 | +1.33 h | cv | LODO over all 6 papers | Spearman ρ | 0.6560 | blend |
| 1861 | +1.38 h | cv | LODO over 5 papers | Spearman ρ | 0.6540 | position-weighted D-residue cost, DCOST=1.0 |
| 1866 | +1.39 h | cv | LODO over 5 papers, n-weighted | Spearman ρ | 0.6570 | blend with DCOST=1.5 |
| 1866 | +1.39 h | cv | LODO over 5 papers, paper-averaged | Spearman ρ | 0.6980 | blend with DCOST=1.5 |
| 1866 | +1.39 h | cv | Asahi2003 | Spearman ρ | 0.6550 | blend with DCOST=1.5 |
| 1866 | +1.39 h | cv | LODO over 5 papers | Spearman ρ | 0.6480 | knowledge only |
| 1917 | +1.51 h | cv | Gubra Table 4 | Spearman ρ | -0.4100 | linker-only ridge, 5-fold |
| 1926 | +1.53 h | cv | Gubra Table 5 | Spearman ρ | 0.3480 | linker-feature ridge, 5-fold |
| 1926 | +1.53 h | train | Gubra Table 5 | r2 | 0.7080 | OLS on diacid/spacer/acyl/branched |
| 1951 | +1.59 h | holdout | Gubra Table 5 | Spearman ρ | 0.4700 | knowledge score, DIACID=0.75, C16=0.17 |
| 1954 | +1.59 h | holdout | knowledge-only mixture | Spearman ρ | 0.4380 | with diacid term |
| 1957 | +1.60 h | holdout | dead+potent mixture | Spearman ρ | 0.7400 | full model with diacid term |
| 1966 | +1.62 h | holdout | Gubra Table 5 | Spearman ρ | 0.4990 | staple/AADI folded into p-norm |
| 1971 | +1.63 h | cv | LODO over 5 papers, n-weighted | Spearman ρ | 0.6580 | final blend, LIABILITY_PNORM=True |
| 1971 | +1.63 h | cv | LODO over 5 papers, paper-averaged | Spearman ρ | 0.7010 | final blend |
| 1971 | +1.63 h | cv | LODO over all 6 papers | Spearman ρ | 0.6950 | final blend |
| 1971 | +1.63 h | cv | Karhu2018 | Spearman ρ | 0.9650 | final blend |
| 1971 | +1.63 h | holdout | dead+potent mixture | Spearman ρ | 0.7820 | final full model |
| 1971 | +1.63 h | holdout | dead+potent mixture | MAE | 1.1200 | final full model |
| 1971 | +1.63 h | holdout | optimised vs Lang actives | auc | 0.9430 | final full model |
| 1971 | +1.63 h | holdout | Gubra Table 5 (n=80 in mixture) | Spearman ρ | 0.3720 | final full model |
| 1997 | +1.70 h | cv | LODO over 5 papers | Spearman ρ | 0.4100 | learned per-position ridge (lam=100) |
| 2000 | +1.71 h | cv | LODO over 5 papers | Spearman ρ | 0.6580 | 3-way blend know .9 / pos .1 |
| 2008 | +1.73 h | cv | LODO over 5 papers | Spearman ρ | 0.6490 | 7-member scalar ensemble, penalty-averaged |
| 2014 | +1.75 h | cv | leave-one-paper-out, 5 non-Gubra folds (OX2R) | Spearman ρ | 0.6580 | 0.10 ridge / 0.90 knowledge blend, with the HELM-parse guard |
| 2014 | +1.75 h | cv | LODO, paper-averaged over 5 folds | Spearman ρ | 0.7010 | blend |
| 2014 | +1.75 h | cv | LODO, all 6 folds including the contaminated Gubra fold | Spearman ρ | 0.6950 | blend |
| 2014 | +1.75 h | cv | LODO, 5 folds | Spearman ρ | 0.6480 | knowledge score only |
| 2014 | +1.75 h | cv | LODO, 5 folds | Spearman ρ | 0.4810 | ridge only |
| 2014 | +1.75 h | cv | Lang2004 fold (n=79) | Spearman ρ | 0.6900 | blend |
| 2014 | +1.75 h | cv | Asahi2003 fold (n=59) | Spearman ρ | 0.6550 | blend |
| 2014 | +1.75 h | cv | German2013 fold (n=29) | Spearman ρ | 0.3370 | blend |
| 2014 | +1.75 h | cv | Karhu2018 fold (n=13) | Spearman ρ | 0.9650 | blend |
| 2014 | +1.75 h | cv | Ammoun2003 fold (n=15) | Spearman ρ | 0.8570 | blend |
| 2014 | +1.75 h | cv | Gubra2025 fold (n=52, contaminated) | Spearman ρ | 0.8340 | blend |
| 2014 | +1.75 h | holdout | Gubra Table 4 Aib scan (n=31) | Spearman ρ | 0.2170 | knowledge score |
| 2014 | +1.75 h | holdout | Gubra Table 5 exemplary peptides (n=69) | Spearman ρ | 0.4990 | knowledge score |
| 2014 | +1.75 h | holdout | optimised Gubra peptides vs inactives | auc | 1.0000 | blend |
| 2014 | +1.75 h | holdout | dead+potent mixture (mixed_eval) | Spearman ρ | 0.7820 | full bundle |
| 2014 | +1.75 h | holdout | dead+potent mixture | MAE | 1.1200 | full bundle, before calibration |
| 2014 | +1.75 h | holdout | engineered potent vs Lang actives | auc | 0.9430 | full bundle |
| 2014 | +1.75 h | holdout | Gubra Table 5 (n=80), mixed_eval | Spearman ρ | 0.3720 | full bundle |
| 2017 | +1.75 h | cv | LODO, 5 folds | Spearman ρ | 0.6640 | blend sweep, w_ridge=0.05, tau=3 (best; 0.10 kept) |
| 2126 | +2.00 h | cv | LODO, 5 folds | Spearman ρ | 0.6560 | truncation double-count removed (INTERNAL_ONLY=1.0), rejected |
| 2132 | +2.03 h | holdout | Gubra Table 5 | Spearman ρ | -0.0650 | Ala-specific substitution cost, ALA_FLOOR=4.0, rejected |
| 2135 | +2.03 h | train | Lang2004, in-sample | Spearman ρ | 0.7350 | refit final model |
| 2140 | +2.04 h | cv | Lang2004 actives only | Spearman ρ | 0.3380 | knowledge penalty |
| 2140 | +2.04 h | cv | Lang2004, active vs floor | auc | 0.9830 | knowledge penalty |
| 2140 | +2.04 h | cv | German2013, active vs floor | auc | 0.6790 | knowledge penalty |
| 2183 | +2.15 h | other | BindingDB vs ChEMBL pEC50 on 100 shared sequences | Pearson r | 0.9600 | curation cross-check, not a model |
| 2214 | +2.27 h | holdout | Gubra Tables 3-5 slice (n=110) | MAE | 1.5850 | bundle before calibration (centre 7.0, gain 1.3) |
| 2219 | +2.29 h | cv | worst case over 15 rescaled-LODO scenarios | MAE | 1.0760 | calibration centre 7.2 / gain 2.0 (shipped setting was 1.380) |
| 2219 | +2.29 h | cv | mean over 15 scenarios | MAE | 0.7930 | calibration centre 7.2 / gain 2.0 |
| 2225 | +2.30 h | cv | LODO, 5 folds | Spearman ρ | 0.6583 | blend after the new calibration |
| 2230 | +2.31 h | holdout | Gubra Tables 3-5 slice (n=110) | MAE | 1.1870 | recalibrated bundle |
| 2230 | +2.31 h | holdout | Gubra Tables 3-5 slice (n=110) | Spearman ρ | 0.2344 | recalibrated bundle |
| 2232 | +2.32 h | holdout | dead+potent mixture | MAE | 0.8600 | recalibrated bundle |
| 2256 | +2.37 h | cv | LODO, 5 folds | Spearman ρ | 0.6579 | soft floor or no floor (hard clip 0.65825) |
| 2259 | +2.38 h | cv | LODO, 5 folds | Spearman ρ | 0.6800 | floor raised to 5.8 (German-only artifact, rejected) |
| 2265 | +2.39 h | cv | LODO excluding German | Spearman ρ | 0.7140 | shipped blend |
| 2275 | +2.41 h | holdout | Gubra Table 5 | Spearman ρ | 0.4352 | lipid cost moved into the p-norm, rejected |
| 2336 | +2.55 h | cv | LODO, 5 folds | Spearman ρ | 0.5633 | pairwise logistic ranker, margin 0, C=0.1 |
| 2339 | +2.56 h | cv | LODO, 5 folds | Spearman ρ | 0.6626 | best 3-way blend: knowledge 0.95 / ridge 0.05 / pairwise 0 |
| 2378 | +2.61 h | cv | LODO 5 papers (honest, Gubra excluded) | Spearman ρ | 0.6580 | blend 0.10 ridge / 0.90 knowledge |
| 2378 | +2.61 h | cv | LODO paper-averaged 5 folds | Spearman ρ | 0.7010 | blend w_ridge 0.10 |
| 2378 | +2.61 h | cv | LODO all 6 folds | Spearman ρ | 0.6950 | blend w_ridge 0.10 |
| 2378 | +2.61 h | cv | LODO 5 folds | Spearman ρ | 0.6480 | knowledge-only score |
| 2378 | +2.61 h | cv | LODO 5 folds | Spearman ρ | 0.4810 | ridge-only |
| 2378 | +2.61 h | holdout | Gubra optimised vs Lang inactives | auc | 1.0000 | blend w_ridge 0.10 |
| 2385 | +2.63 h | cv | LODO 5 folds | Spearman ρ | 0.4679 | ridge-only + amphipathicity features |
| 2385 | +2.63 h | cv | LODO 5 folds | Spearman ρ | 0.6402 | blend + amphipathicity features |
| 2385 | +2.63 h | cv | LODO actives only | Spearman ρ | 0.5095 | base blend |
| 2385 | +2.63 h | cv | LODO actives only | Spearman ρ | 0.4870 | blend + amphipathicity features |
| 2388 | +2.64 h | holdout | Gubra slice + Lang inactives mixture (knowledge-term harness) | Spearman ρ | 0.5740 | blend w_ridge 0.10 |
| 2406 | +2.68 h | holdout | Gubra Table 4 (n=31, knowledge-term harness) | Spearman ρ | 0.2170 | blend |
| 2406 | +2.68 h | holdout | Gubra Table 5 (n=69, knowledge-term harness) | Spearman ρ | 0.4990 | blend |
| 2586 | +3.09 h | other | Gubra Table 4 oracle-of-design noise ceiling | Spearman ρ | 0.4540 | simulated oracle |
| 2592 | +3.10 h | holdout | Gubra Table 4 end-to-end | Spearman ρ | 0.1460 | shipped bundle w_ridge 0.10 |
| 2592 | +3.10 h | holdout | Gubra Table 5 end-to-end | Spearman ρ | 0.4150 | shipped bundle w_ridge 0.10 |
| 2592 | +3.10 h | holdout | Gubra slice + Lang inactives mixture end-to-end | Spearman ρ | 0.5240 | shipped bundle w_ridge 0.10 |
| 2592 | +3.10 h | holdout | mixture end-to-end | MAE | 1.0390 | shipped bundle w_ridge 0.10 |
| 2596 | +3.11 h | holdout | mixture end-to-end | Spearman ρ | 0.3610 | shipped bundle w_ridge 0.30 |
| 2596 | +3.11 h | holdout | mixture end-to-end | Spearman ρ | 0.5740 | shipped bundle w_ridge 0.00 |
| 2606 | +3.13 h | cv | worst case over 15 assay-scale scenarios | MAE | 1.0010 | calibration centre 7.2 gain 2.4 at w_ridge 0.05 |
| 2620 | +3.15 h | cv | LODO 5 papers (honest) | Spearman ρ | 0.6630 | blend 0.05 ridge / 0.95 knowledge (final) |
| 2620 | +3.15 h | cv | LODO paper-averaged 5 folds | Spearman ρ | 0.7020 | final blend w_ridge 0.05 |
| 2620 | +3.15 h | cv | LODO all 6 folds | Spearman ρ | 0.6980 | final blend w_ridge 0.05 |
| 2620 | +3.15 h | cv | Lang2004 | Spearman ρ | 0.6920 | final blend |
| 2620 | +3.15 h | cv | Asahi2003 | Spearman ρ | 0.6750 | final blend |
| 2620 | +3.15 h | cv | German2013 | Spearman ρ | 0.3200 | final blend |
| 2620 | +3.15 h | cv | Karhu2018 | Spearman ρ | 0.9490 | final blend |
| 2620 | +3.15 h | cv | Ammoun2003 | Spearman ρ | 0.8710 | final blend |
| 2620 | +3.15 h | cv | Gubra2025 (contaminated) | Spearman ρ | 0.8320 | final blend |
| 2620 | +3.15 h | holdout | Gubra Table 4 end-to-end | Spearman ρ | 0.1490 | final bundle |
| 2620 | +3.15 h | holdout | Gubra Table 5 end-to-end | Spearman ρ | 0.4600 | final bundle |
| 2620 | +3.15 h | holdout | mixture end-to-end | Spearman ρ | 0.5460 | final bundle |
| 2620 | +3.15 h | holdout | mixture end-to-end | MAE | 0.9800 | final bundle |
| 2620 | +3.15 h | holdout | optimised vs inactive end-to-end | auc | 1.0000 | final bundle |
| 2668 | +3.24 h | train | 493 training rows, train-side vs shipped predict.py | Spearman ρ | 0.1230 | fidelity check before SMILES-orientation fix |
| 2700 | +3.30 h | train | 493 training rows, train-side vs shipped | Spearman ρ | 0.9997 | fidelity check after fixes |
| 2758 | +3.45 h | other | n-weighted per-fold noise ceiling at sigma 0.25 | Spearman ρ | 0.9030 | simulated oracle (observed 0.698) |
| 2766 | +3.49 h | cv | Lang2004 OX2R, peptides of 20 residues or fewer (n=15) | Spearman ρ | 0.5960 | shipped blend, LODO, by length band |
| 2766 | +3.49 h | cv | Lang2004 OX2R, 21-25 residues (n=52) | Spearman ρ | 0.6280 | shipped blend, LODO, by length band |
| 2766 | +3.49 h | cv | Lang2004 OX2R, 26 residues or more (n=12) | Spearman ρ | 0.0980 | shipped blend, LODO, by length band |
| 2766 | +3.49 h | cv | Asahi2003 OX2R, 26 residues or more (n=59) | Spearman ρ | 0.6750 | shipped blend, LODO |
| 2766 | +3.49 h | cv | German2013 OX2R, 20 residues or fewer (n=28) | Spearman ρ | 0.2450 | shipped blend, LODO |
| 2786 | +3.54 h | cv | honest LODO over 5 papers | Spearman ρ | 0.6630 | blend, 0.05 ridge / 0.95 knowledge (pre-Grantham) |
| 2786 | +3.54 h | cv | paper-averaged LODO | Spearman ρ | 0.7020 | blend, pre-Grantham |
| 2786 | +3.54 h | cv | all 6 folds | Spearman ρ | 0.6980 | blend, pre-Grantham |
| 2786 | +3.54 h | cv | LODO over 5 papers | Spearman ρ | 0.6480 | knowledge score only, pre-Grantham |
| 2786 | +3.54 h | cv | LODO over 5 papers | Spearman ρ | 0.4810 | ridge only |
| 2786 | +3.54 h | cv | Gubra2025 fold (contaminated) | Spearman ρ | 0.8320 | blend, pre-Grantham |
| 2786 | +3.54 h | holdout | Gubra Table 4 (n=31) | Spearman ρ | 0.1490 | shipped bundle end-to-end, pre-Grantham |
| 2786 | +3.54 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | 0.4600 | shipped bundle end-to-end, pre-Grantham |
| 2786 | +3.54 h | holdout | Gubra slice plus Lang inactives (mixture) | Spearman ρ | 0.5460 | shipped bundle end-to-end, pre-Grantham |
| 2786 | +3.54 h | holdout | mixture | MAE | 0.9800 | shipped bundle end-to-end, pre-Grantham |
| 2786 | +3.54 h | holdout | optimised vs inactive | auc | 1.0000 | shipped bundle |
| 2804 | +3.60 h | cv | LODO over 5 papers | Spearman ρ | 0.4070 | k-NN analogue transfer alone (POSCOST-weighted, h=2, k=40) |
| 2806 | +3.61 h | cv | LODO over 5 papers | Spearman ρ | 0.6630 | three-way blend; best at k-NN weight 0 |
| 2808 | +3.62 h | cv | LODO over 5 papers | Spearman ρ | 0.6670 | distance-gated k-NN in the blend (wkmax 0.15, d0 0.5) |
| 2810 | +3.63 h | holdout | mixture | Spearman ρ | 0.5460 | gated k-NN blend (unchanged from baseline) |
| 2820 | +3.67 h | cv | LODO over 4 papers (excluding Asahi) | Spearman ρ | 0.6220 | POSCOST fully replaced by Asahi Ala scan |
| 2820 | +3.67 h | holdout | mixture | Spearman ρ | 0.5210 | POSCOST fully replaced by Asahi Ala scan |
| 2824 | +3.68 h | cv | LODO over 5 papers | Spearman ρ | 0.6610 | blend with ridge trained on OX2R rows only |
| 2824 | +3.68 h | cv | LODO over 5 papers | Spearman ρ | 0.5010 | ridge trained on OX1R rows only |
| 2832 | +3.72 h | holdout | mixture (knowledge term) | Spearman ρ | 0.6010 | Grantham with Gly/Pro exemption, p=1 |
| 2836 | +3.74 h | cv | honest LODO over 5 papers | Spearman ρ | 0.6640 | final blend with Grantham substitution factor |
| 2836 | +3.74 h | cv | paper-averaged LODO | Spearman ρ | 0.6960 | final blend with Grantham |
| 2836 | +3.74 h | cv | all 6 folds | Spearman ρ | 0.6950 | final blend with Grantham |
| 2836 | +3.74 h | cv | LODO over 5 papers | Spearman ρ | 0.6540 | knowledge score only, with Grantham |
| 2836 | +3.74 h | holdout | Gubra Table 4 | Spearman ρ | 0.1070 | final bundle end-to-end |
| 2836 | +3.74 h | holdout | Gubra Table 5 | Spearman ρ | 0.5140 | final bundle end-to-end |
| 2836 | +3.74 h | holdout | mixture | Spearman ρ | 0.5850 | final bundle end-to-end |
| 2840 | +3.75 h | holdout | mixture | MAE | 0.8120 | final bundle after recalibration (centre 7.2, gain 2.4) |
| 2846 | +3.78 h | cv | Lang2004 | Spearman ρ | 0.7200 | final blend, LODO |
| 2846 | +3.78 h | cv | Asahi2003 | Spearman ρ | 0.6470 | final blend, LODO |
| 2846 | +3.78 h | cv | German2013 | Spearman ρ | 0.3290 | final blend, LODO |
| 2846 | +3.78 h | cv | Karhu2018 | Spearman ρ | 0.9490 | final blend, LODO |
| 2846 | +3.78 h | cv | Ammoun2003 | Spearman ρ | 0.8360 | final blend, LODO |
| 2846 | +3.78 h | cv | Gubra2025 (contaminated) | Spearman ρ | 0.8100 | final blend |
| 2852 | +3.80 h | cv | Lang2004, actives only | Spearman ρ | 0.3950 | final blend |
| 2870 | +3.84 h | cv | LODO over 5 papers | Spearman ρ | 0.6770 | Grantham relative to Glu, clipped 0.35-1.0 (rejected) |
| 2870 | +3.84 h | holdout | mixture | Spearman ρ | 0.5750 | Grantham relative to Glu, clipped 0.35-1.0 (rejected) |
| 2878 | +3.86 h | holdout | Gubra Table 5 | Spearman ρ | 0.5450 | oracle noise ceiling from design variables (final model reaches 94% of it) |
| 2922 | +4.02 h | cv | LODO over 5 papers | Spearman ρ | 0.6700 | POSCOST shrunk toward IMPORTANCE prior, lambda 0.5 (rejected) |
| 2922 | +4.02 h | holdout | mixture | Spearman ρ | 0.5460 | POSCOST shrunk toward IMPORTANCE prior, lambda 1.0 |
| 2926 | +4.04 h | holdout | mixture | Spearman ρ | 0.5810 | POSCOST sharpened, gamma 2.0 (rejected) |
| 2940 | +4.09 h | other | mean of Asahi and Lang position scans | Spearman ρ | 0.9170 | Gubra Glu-scan POSCOST, leave-one-source-out triangulation |
| 3078 | +4.43 h | cv | LODO 5 papers (excl. Gubra), OX2R | Spearman ρ | 0.6640 | knowledge+ridge blend (pre-session state) |
| 3078 | +4.43 h | cv | LODO 5 papers | Spearman ρ | 0.6540 | knowledge-only |
| 3078 | +4.43 h | cv | LODO 5 papers | Spearman ρ | 0.4810 | ridge-only |
| 3078 | +4.43 h | cv | Gubra2025 fold (contaminated) | Spearman ρ | 0.8100 | blend |
| 3078 | +4.43 h | holdout | Gubra Table 4 (n=31) | Spearman ρ | 0.1070 | blend |
| 3078 | +4.43 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | 0.5140 | blend |
| 3078 | +4.43 h | holdout | optimised vs inactive | auc | 1.0000 | blend |
| 3078 | +4.43 h | holdout | mixture (Gubra T3-5 + Lang inactives) | Spearman ρ | 0.5850 | blend |
| 3078 | +4.43 h | holdout | mixture | MAE | 0.8120 | blend |
| 3130 | +4.68 h | cv | LODO 5 papers | Spearman ρ | 0.6670 | blend with truncation ramp softened to 0.6 |
| 3130 | +4.68 h | cv | LODO 5 papers | Spearman ρ | 0.6560 | knowledge-only, softened truncation |
| 3174 | +4.87 h | cv | LODO 5 papers | Spearman ρ | 0.6580 | blend with hard clip of prediction at 5.3 (honest re-score) |
| 3180 | +4.88 h | cv | German2013 fold | Spearman ρ | 0.3480 | blend, output clip 5.0 |
| 3180 | +4.88 h | holdout | mixture | MAE | 0.8450 | blend, hard clip 5.0 |
| 3212 | +5.07 h | holdout | mixture | MAE | 0.8170 | blend with linear soft floor d=0.10 |
| 3212 | +5.07 h | holdout | mixture | Spearman ρ | 0.5840 | blend, soft floor |
| 3224 | +5.17 h | other | Gubra fold | Spearman ρ | 0.7870 | POSCOST rebuilt from Asahi Ala scan |
| 3224 | +5.17 h | holdout | Gubra Table 5 | Spearman ρ | 0.4240 | POSCOST from Asahi |
| 3224 | +5.17 h | other | Gubra fold | Spearman ρ | 0.7220 | POSCOST from Asahi + lipid positions flattened |
| 3224 | +5.17 h | holdout | mixture | Spearman ρ | 0.3780 | POSCOST from Asahi + lipid positions flattened |
| 3242 | +5.25 h | holdout | Gubra Table 5 | Spearman ρ | 0.3510 | lipid-position table shuffled |
| 3248 | +5.26 h | other | Gubra fold | Spearman ρ | 0.8710 | skip substitution cost at lipid site (rejected) |
| 3248 | +5.26 h | holdout | Gubra Table 5 | Spearman ρ | 0.5170 | skip substitution cost at lipid site (rejected) |
| 3282 | +5.45 h | other | 7L1U, 9 resolved positions | Spearman ρ | 0.5670 | lipid table vs structural exit-vector blocking |
| 3308 | +5.56 h | cv | LODO 5 papers | Spearman ρ | 0.6630 | blend after staple-notation fix |
| 3308 | +5.56 h | cv | LODO 5 papers | Spearman ρ | 0.4740 | ridge-only after staple fix |
| 3308 | +5.56 h | holdout | Gubra Table 5 | Spearman ρ | 0.5130 | blend after staple fix |
| 3308 | +5.56 h | holdout | mixture | MAE | 0.8160 | blend after staple fix |
| 3320 | +5.64 h | cv | LODO 5 papers | Spearman ρ | 0.6580 | ridge without 4 paper-identifier features (rejected) |
| 3322 | +5.65 h | holdout | mixed set: Gubra T3-5 + Lang actives/inactives (n=189) | Spearman ρ | 0.8480 | shipped bundle |
| 3322 | +5.65 h | holdout | mixed set | MAE | 0.7300 | shipped bundle |
| 3322 | +5.65 h | holdout | engineered potent vs Lang actives | auc | 0.9950 | shipped bundle |
| 3326 | +5.66 h | cv | all 5 papers pooled on raw pEC50 (n=195) | Spearman ρ | 0.8780 | blend |
| 3326 | +5.66 h | cv | orexin-B + orexin-A papers pooled | Spearman ρ | 0.6390 | blend |
| 3326 | +5.66 h | cv | unstapled + stapled pooled | Spearman ρ | 0.7710 | blend |
| 3330 | +5.68 h | other | Asahi D-scan, 28 points | Spearman ρ | 0.7480 | old DCOST*IMPORTANCE vs measured loss |
| 3336 | +5.71 h | cv | LODO 5 papers | Spearman ρ | 0.7080 | blend with Asahi measured D-scan table |
| 3336 | +5.71 h | cv | Asahi2003 fold (now contaminated) | Spearman ρ | 0.7490 | blend with D-scan table |
| 3336 | +5.71 h | cv | German2013 fold | Spearman ρ | 0.4210 | blend with D-scan table |
| 3336 | +5.71 h | cv | LODO paper-averaged | Spearman ρ | 0.7360 | blend with D-scan table |
| 3336 | +5.71 h | holdout | mixture | MAE | 0.7760 | blend with D-scan table |
| 3338 | +5.74 h | cv | clean LODO 4 folds (Lang, German, Karhu, Ammoun; 136 rows) | Spearman ρ | 0.6900 | final blend with D-scan table |
| 3362 | +5.80 h | cv | LODO 5 folds (Lang, Asahi, German, Karhu, Ammoun) | Spearman ρ | 0.7080 | knowledge+ridge blend, after the D-scan fix |
| 3362 | +5.80 h | cv | LODO paper-averaged | Spearman ρ | 0.7360 | knowledge+ridge blend |
| 3362 | +5.80 h | cv | clean LODO, 4 folds (Lang, German, Karhu, Ammoun), 136 rows | Spearman ρ | 0.6900 | knowledge+ridge blend |
| 3362 | +5.80 h | holdout | Gubra Table 4 Aib scan (n=31) | Spearman ρ | 0.1070 | knowledge+ridge blend |
| 3362 | +5.80 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | 0.5130 | knowledge+ridge blend |
| 3362 | +5.80 h | holdout | mixture (Gubra Tables 3-5 + Lang inactives) | Spearman ρ | 0.5860 | knowledge+ridge blend |
| 3362 | +5.80 h | holdout | mixture | MAE | 0.7760 | knowledge+ridge blend |
| 3368 | +5.85 h | cv | D-residue class (n=37), within-class | Spearman ρ | 0.9360 | term audit of blend |
| 3368 | +5.85 h | cv | substitution class (n=105) | Spearman ρ | 0.8110 | term audit of blend |
| 3368 | +5.85 h | cv | free-acid class (n=78) | Spearman ρ | 0.7090 | term audit of blend |
| 3370 | +5.86 h | other | Karhu 2018 stapled analogues (n=10) | Spearman ρ | 0.9230 | old hand-set staple tiers vs measured loss |
| 3376 | +5.88 h | cv | Karhu2018 fold | Spearman ρ | 0.9540 | blend with measured Karhu staple table |
| 3376 | +5.88 h | other | Lang+Karhu pooled | Spearman ρ | 0.7630 | measured staple table (old tiers 0.771) |
| 3378 | +5.91 h | holdout | mixture | MAE | 0.7690 | blend with measured staple table |
| 3392 | +6.02 h | other | pooled cross-paper | Spearman ρ | 0.9110 | amide penalty 3.0 (0.780 at 0.5); judged a cross-assay offset artifact |
| 3404 | +6.07 h | holdout | Gubra Table 4 | Spearman ρ | 0.1380 | knowledge-only, Aib-pair cost variants (all identical) |
| 3412 | +6.15 h | cv | German2013 fold | Spearman ρ | 0.4210 | blend before truncation floor |
| 3416 | +6.18 h | cv | Lang2004 (n=79) | Spearman ρ | 0.7180 | blend + truncation-context floor |
| 3416 | +6.18 h | cv | Asahi2003 (n=59) | Spearman ρ | 0.7490 | blend + truncation floor |
| 3416 | +6.18 h | cv | German2013 (n=29) | Spearman ρ | 0.4660 | blend + truncation floor |
| 3416 | +6.18 h | cv | Karhu2018 (n=13) | Spearman ρ | 0.9540 | blend + truncation floor |
| 3416 | +6.18 h | cv | Ammoun2003 (n=15) | Spearman ρ | 0.8360 | blend + truncation floor |
| 3416 | +6.18 h | cv | Gubra2025 (n=52) | Spearman ρ | 0.8100 | blend + truncation floor |
| 3416 | +6.18 h | cv | LODO 5 folds | Spearman ρ | 0.7150 | blend + truncation floor |
| 3416 | +6.18 h | cv | LODO paper-averaged | Spearman ρ | 0.7450 | blend + truncation floor |
| 3416 | +6.18 h | cv | all 6 folds | Spearman ρ | 0.7350 | blend + truncation floor |
| 3416 | +6.18 h | cv | LODO 5 folds | Spearman ρ | 0.7090 | knowledge-only |
| 3416 | +6.18 h | cv | LODO 5 folds | Spearman ρ | 0.4740 | ridge-only |
| 3416 | +6.18 h | cv | clean LODO, 4 folds, 136 rows | Spearman ρ | 0.7000 | blend + truncation floor (final) |
| 3424 | +6.22 h | holdout | mixture | MAE | 0.7680 | final blend |
| 3440 | +6.31 h | cv | Lang actives only (n=60) | Spearman ρ | 0.3920 | final blend |
| 3440 | +6.31 h | cv | Lang Ala-substitution actives | Spearman ρ | 0.7450 | final blend |
| 3440 | +6.31 h | cv | Lang Pro-substitution actives | Spearman ρ | 0.7100 | final blend |
| 3446 | +6.33 h | other | Lang actives noise ceiling at sd 0.25 | Spearman ρ | 0.8800 | simulated noise ceiling |
| 3450 | +6.35 h | cv | Lang test-like actives (n=40) | Spearman ρ | 0.5670 | final blend |
| 3602 | +7.24 h | other | Gubra patent prose groups vs POSCOST | auc | 0.9740 | glutamate-scan table |
| 3602 | +7.24 h | other | Gubra patent prose groups vs lipid-position table | auc | 1.0000 | lipidation table |
| 3626 | +7.34 h | cv | LODO 5 folds (excluding Gubra) | Spearman ρ | 0.7150 | shipped blend (0.05 ridge / 0.95 knowledge) |
| 3626 | +7.34 h | cv | LODO 5 folds, paper-averaged | Spearman ρ | 0.7450 | shipped blend |
| 3626 | +7.34 h | cv | CLEAN LODO 4 folds (Lang, German, Karhu, Ammoun; 136 rows) | Spearman ρ | 0.7000 | shipped blend |
| 3626 | +7.34 h | holdout | Gubra Table 4 (n=31) | Spearman ρ | 0.1070 | shipped blend |
| 3626 | +7.34 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | 0.5130 | shipped blend |
| 3626 | +7.34 h | holdout | mixture (Gubra slice + Lang inactives) | Spearman ρ | 0.5860 | shipped blend |
| 3626 | +7.34 h | holdout | mixture (Gubra slice + Lang inactives) | MAE | 0.7680 | shipped blend |
| 3656 | +7.45 h | cv | LODO 5 folds | Spearman ρ | 0.6980 | blend + Met28 liability penalty (reverted) |
| 3656 | +7.45 h | cv | Asahi2003 fold | Spearman ρ | 0.6950 | blend + Met28 liability penalty (reverted) |
| 3658 | +7.46 h | cv | Asahi2003 fold | Spearman ρ | 0.7490 | blend + Nle28 bonus |
| 3658 | +7.46 h | cv | Lang2004 fold | Spearman ρ | 0.7180 | blend + Nle28 bonus |
| 3658 | +7.46 h | cv | German2013 fold | Spearman ρ | 0.4660 | blend + Nle28 bonus |
| 3658 | +7.46 h | cv | Karhu2018 fold | Spearman ρ | 0.9540 | blend + Nle28 bonus |
| 3658 | +7.46 h | cv | Ammoun2003 fold | Spearman ρ | 0.8360 | blend + Nle28 bonus |
| 3658 | +7.46 h | cv | LODO 5 folds | Spearman ρ | 0.7090 | knowledge-only component |
| 3658 | +7.46 h | cv | LODO 5 folds | Spearman ρ | 0.4740 | ridge-only component |
| 3660 | +7.49 h | holdout | Gubra Table 5 | Spearman ρ | 0.4940 | blend + Nle28 bonus (reverted) |
| 3660 | +7.49 h | holdout | mixture | MAE | 0.3080 | blend + Nle28 bonus (reverted) |
| 3674 | +7.60 h | holdout | Gubra slice (110) | MAE | 0.8800 | shipped bundle (bias -0.85) |
| 3678 | +7.62 h | holdout | Gubra slice Tables 3-5 (110) | Spearman ρ | 0.3350 | shipped bundle, HELM input |
| 3678 | +7.62 h | holdout | Gubra slice Tables 3-5 (110) | Spearman ρ | -0.3380 | bundle on sequence column only, before K#/K*n fix |
| 3684 | +7.63 h | holdout | Gubra slice Tables 3-5 (110) | Spearman ρ | 0.0170 | bundle on sequence column only, after conjugation-marker fix |
| 3752 | +8.10 h | holdout | Gubra Table 5 | Spearman ρ | 0.5380 | knowledge score at p-norm=12 (not adopted) |
| 3766 | +8.21 h | holdout | Gubra Table 5 | Spearman ρ | 0.0780 | largest substitution term only |
| 3770 | +8.23 h | cv | CLEAN LODO 4 folds | Spearman ρ | 0.6790 | POSFLOOR=0 (shipped 1.0 is optimal at 0.700) |
| 3833 | +8.48 h | holdout | Gubra Table 5 | Spearman ρ | 0.0320 | shipped bundle with DIACID_PEN and C16_PEN ablated |
| 3833 | +8.48 h | holdout | mixture | Spearman ρ | 0.3720 | shipped bundle with linker terms ablated |
| 3833 | +8.48 h | holdout | optimised slice vs Lang inactives | auc | 1.0000 | shipped bundle |
| 3902 | +8.65 h | holdout | Gubra Table 5 | Spearman ρ | 0.5100 | leave-one-out refit of the diacid/C16 constants |
| 3902 | +8.65 h | holdout | Gubra Table 5 | MAE | 0.7580 | leave-one-out refit of the linker constants |
| 3927 | +8.70 h | cv | CLEAN LODO 4 folds | Spearman ρ | 0.6900 | TRUNC_FLOOR_EXTRA=0 (German-tuned floor removed) |
| 3927 | +8.70 h | cv | German2013 fold | Spearman ρ | 0.4210 | TRUNC_FLOOR_EXTRA=0 |
| 3942 | +8.74 h | cv | actives only, n-weighted over 331 actives across all folds + slice | Spearman ρ | 0.5230 | shipped bundle |
| 3942 | +8.74 h | cv | Lang2004 actives (n=60) | Spearman ρ | 0.4460 | shipped bundle |
| 3942 | +8.74 h | cv | Asahi2003 actives (n=58) | Spearman ρ | 0.7330 | shipped bundle |
| 3942 | +8.74 h | cv | German2013 actives (n=28) | Spearman ρ | 0.4370 | shipped bundle |
| 3942 | +8.74 h | cv | Karhu2018 actives (n=10) | Spearman ρ | 0.8000 | shipped bundle |
| 3996 | +8.88 h | cv | honest LODO 5 folds | Spearman ρ | 0.7150 | knowledge+ridge blend, w_ridge=0.05 |
| 3996 | +8.88 h | cv | paper-averaged 5 folds | Spearman ρ | 0.7450 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | cv | clean LODO 4 folds (136 rows) | Spearman ρ | 0.7000 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | Gubra Table 4 (n=31) | Spearman ρ | 0.1070 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | Gubra Table 5 (n=69) | Spearman ρ | 0.5130 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | Gubra Table 5, shift +2 | Spearman ρ | 0.5040 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | optimised vs inactive | auc | 1.0000 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | mixture (Tables 3-5 + Lang inactives) | Spearman ρ | 0.5860 | blend, w_ridge=0.05 |
| 3996 | +8.88 h | holdout | mixture | MAE | 0.7680 | blend, w_ridge=0.05 |
| 4005 | +8.90 h | cv | clean LODO | Spearman ρ | 0.6880 | w_ridge=0 (knowledge only) |
| 4005 | +8.90 h | holdout | mixture | Spearman ρ | 0.6010 | w_ridge=0 |
| 4005 | +8.90 h | cv | clean LODO | Spearman ρ | 0.6380 | w_ridge=0.30 |
| 4005 | +8.90 h | holdout | mixture | Spearman ρ | 0.4210 | w_ridge=0.30 |
| 4005 | +8.90 h | holdout | Gubra Table 5 | Spearman ρ | 0.1750 | w_ridge=0.30 |
| 4013 | +8.94 h | holdout | Gubra Table 4 | Spearman ρ | 0.1380 | w_ridge=0 |
| 4013 | +8.94 h | holdout | Gubra Table 4 | Spearman ρ | 0.1530 | w_ridge=0.20 |
| 4016 | +8.97 h | cv | honest LODO 5 folds | Spearman ρ | 0.7170 | blend, w_ridge=0.025 (final) |
| 4016 | +8.97 h | cv | paper-averaged 5 folds | Spearman ρ | 0.7490 | final |
| 4016 | +8.97 h | cv | clean LODO 4 folds | Spearman ρ | 0.7040 | final |
| 4016 | +8.97 h | holdout | Gubra Table 4 | Spearman ρ | 0.0940 | final |
| 4016 | +8.97 h | holdout | Gubra Table 5 | Spearman ρ | 0.5210 | final |
| 4016 | +8.97 h | holdout | mixture | Spearman ρ | 0.6060 | final |
| 4016 | +8.97 h | holdout | mixture | MAE | 0.8250 | final before bmean fix |
| 4034 | +9.05 h | other | calibration scenarios, mean (worst 0.975) | MAE | 0.7990 | centre 7.2 / gain 2.4 |
| 4040 | +9.06 h | holdout | mixture | MAE | 0.7770 | final after bmean fix |
| 4046 | +9.10 h | cv | Lang2004 | Spearman ρ | 0.7160 | final |
| 4046 | +9.10 h | cv | Asahi2003 | Spearman ρ | 0.7490 | final |
| 4046 | +9.10 h | cv | German2013 | Spearman ρ | 0.4910 | final |
| 4046 | +9.10 h | cv | Karhu2018 | Spearman ρ | 0.9540 | final |
| 4046 | +9.10 h | cv | Ammoun2003 | Spearman ρ | 0.8320 | final |
| 4046 | +9.10 h | cv | Gubra2025 | Spearman ρ | 0.7940 | final |
| 4046 | +9.10 h | cv | all 6 folds | Spearman ρ | 0.7330 | final |
| 4046 | +9.10 h | cv | honest 5 folds | Spearman ρ | 0.7090 | knowledge only |
| 4046 | +9.10 h | cv | honest 5 folds | Spearman ρ | 0.4740 | ridge only |
| 4046 | +9.10 h | cv | clean LODO | Spearman ρ | 0.6950 | final, TFE=0 (no German-tuned floor) |
| 4048 | +9.10 h | holdout | Gubra Table 5 | Spearman ρ | 0.0670 | final with linker terms ablated |
| 4105 | +9.30 h | cv | n-weighted over folds | Pearson r | 0.8190 | final |
| 4105 | +9.30 h | cv | Lang2004 | Pearson r | 0.8710 | final |
| 4105 | +9.30 h | cv | Asahi2003 | Pearson r | 0.9010 | final |
| 4105 | +9.30 h | cv | German2013 | Pearson r | 0.8180 | final |
| 4105 | +9.30 h | cv | Karhu2018 | Pearson r | 0.8320 | final |
| 4105 | +9.30 h | cv | Ammoun2003 | Pearson r | 0.2740 | final |
| 4105 | +9.30 h | cv | Gubra2025 | Pearson r | 0.8020 | final |
| 4105 | +9.30 h | holdout | Gubra slice Tables 3-5 | Pearson r | 0.4060 | final |
| 4105 | +9.30 h | holdout | Gubra slice Tables 3-5 (n=110) | Spearman ρ | 0.3680 | final |
| 4105 | +9.30 h | holdout | mixture | Pearson r | 0.9550 | final |
| 4174 | +9.52 h | cv | actives-only, 331 actives n-weighted | Spearman ρ | 0.5330 | final |
Turning points
- Part 3: the target changed to within-document rank-normal scores because assay scales differ across papers. Ridge LODO 0.49→0.60. The first shipped bundle was 0.6 ridge / 0.4 knowledge with RDKit wheels.
- Part 4: the dryrun rejected the cp312 wheels, so RDKit was removed and descriptors precomputed per monomer. Bundle shrank 42 MB→0.6 MB. Adding the Gubra Tables 1–2 fold raised LODO to 0.622.
- Part 5: the Gubra Tables 3–5 slice showed additive penalties ranking optimised peptides lowest (Spearman −0.59, MAE 2.40). Switching to p-norm (p=3) with Glu-scan costs moved the mixture 0.325→0.669, and LODO reached about 0.658. A predict.py unpacking bug that returned a constant 7.00 was fixed.
- Part 6: the metamorphic suite found pd.NA and sys.path-shadowing bugs that would have sent every row to the constant fallback. The calibration map was set by minimax MAE (gain 2.0).
- Part 7: the end-to-end held-out sweep showed Spearman falling as ridge weight rose, so w_ridge went 0.10→0.05 and gain to 2.4. SMILES orientation-by-alignment raised train-vs-predict fidelity ρ 0.12→0.9997.
- Part 8: Grantham-scaled substitution costs were adopted. LODO 0.663→0.664, Table 5 0.460→0.514, mixture 0.546→0.585, MAE 0.980→0.812. A top-level rdkit import that made predict() return the constant 7.2 under Python 3.12 was fixed.
- Part 9: the Asahi D-scan table became the D-residue cost (German fold 0.322→0.421), and a soft floor replaced the hard 5.3 clip, which had tied 26 rows. Clean 4-fold LODO 0.690.
- Part 10: staple costs were recalibrated to Karhu's measured losses (no metric change), and a truncation-context floor was added. Clean LODO 0.690→0.700, partly in-sample because the floor was tuned on German.
- Part 11: Table 5's apparent skill turned out to come from linker constants fitted on Table 5. Ablating them takes Table 5 from 0.513 to 0.032. Leave-one-out refit gives 0.510, so the constants are stable but not independently validated.
- Part 12: w_ridge 0.05→0.025 (mixture +0.020 by bootstrap; LODO a coin flip). A stale bmean was fixed, moving mixture MAE 0.825→0.777. Final clean LODO 0.704, mixture ρ 0.606, Table 4 0.094.
How this model was built
The submitted bundle is a pure numpy/pandas predictor, about 652 KB with no wheels. It blends two scores in log units: 0.975 from a hand-built 'knowledge' penalty score and 0.025 from a ridge regression (α=3, 32 features) fitted to within-study rank-normalised potency. The penalty score converts measured position costs into pEC50 with know = 5.3 + (7.4−5.3)·exp(−pen/4). The position costs come from the Gubra glutamate and lipidation scans, Asahi's D-scan and Karhu's staple data. The ridge was trained on 493 public OX1R/OX2R peptide EC50s (ChEMBL curations of Lang, Asahi, German and Darker, plus Ammoun 2003, Karhu 2018 and Gubra WO2025252662A1 Tables 1–2). A minimax-calibrated map (centre 7.2, gain 2.4, soft floor at 5.3, clip at 10) turns the blend into pEC50. All model selection used local leave-one-paper-out validation and a Gubra Tables 3–5 slice; the trace shows no hub validation submission.
Components
- trained
Ridge regressionα=3, 32 aggregate features: pharmacophore integrity, importance-weighted loss, ESM scores, length/truncation, D/non-standard counts, staple and lipid flags, bulk descriptors. Features are winsorised to the 1–99% training range and z-clipped. The target is pEC50 rank-normalised within each study. Fitted on 493 rows from both receptors (247 OX2R, 246 OX1R). Exported to model.npz and reimplemented in numpy. Ridge-only LODO is about 0.47.
- features
HELM/sequence/SMILES parser and orexin aligner (features.py, smiles2seq.py)Builds a monomer list from HELM, falling back to the sequence column and then SMILES. It maps non-standard monomers to natural analogues using a 3,255-monomer library with precomputed descriptors and aligns each peptide to orexin-B, or to orexin-A for orexin-A analogues. SMILES-only rows are oriented by alignment because ChEMBL deposits some peptides C→N. Lipid and staple satellite chains are detected, and lipid satellites are excluded from the size descriptors. RDKit is used only at build time; inference does not need it.
Per-monomer descriptor table (monomer_props.csv)RDKit descriptors (10 fields) precomputed for 3,255 HELM monomers. Natural analogues are assigned by Morgan-fingerprint Tanimoto ≥0.40 plus curated overrides. Peptide descriptors are summed from this table at inference.
ESM masked-marginal substitution matrix (esm_subs.npz)Frozen esm2_t33_650M, esm2_t36_3B and esm1v_t33_650M_UR90S_1–5, run once on the prepro-orexin precursor (UniProt O43612) to give a 28×20 log-odds matrix averaged over the 7 models. It is used only as ridge features; it was removed from the knowledge penalty in part 5.
- rule
Knowledge penalty score (knowledge.py)Position costs from the Gubra Glu scan (POSCOST) for all 28 positions, scaled by Grantham distance onto [0.35, 1]. Gly and Pro pay the full cost. A floor of 1.0×importance applies, with an extra truncation-context floor. D-residue and N-methyl costs come from Asahi's 28-position D-scan. Staple costs follow Karhu (3.0/4.0/4.7 by position), with an Aib/α,α-disubstitution cost. Message-segment deletion and insertion cost 2.6 per residue, plus an N-terminal truncation ramp and a 2.0 penalty for a missing C-terminal amide. Liabilities are aggregated by p-norm with p=3. Lipid-position costs (LIPID_POS_PEN from Gubra Table 2) are added on top, along with DIACID_PEN=0.75 and C16_PEN=0.17. Those two linker constants were regressed on Gubra Table 5. The penalty maps to a score with tau 4, anchor 7.4 and floor 5.3.
Score→pEC50 calibration mapCentre 7.2, gain 2.4, bmean 6.490691, chosen by minimax worst-case MAE over 15 IP-1 assay scenarios. Values below 5.3 are mapped linearly into (5.2, 5.3) as a soft floor, and outputs are clipped at 10. Spearman is invariant to this map.
- ensemble
BlendLog-unit blend of w_ridge·(7.4 + 1.3·z_ridge) and (1−w)·know, with w_ridge=0.025. The weight went 0.6→0.3→0.2→0.15→0.10→0.05→0.025 over the run.
Training and submission
- Final model
- The final ridge refit (fit_final.py) is closed-form numpy/sklearn on CPU and takes seconds. calibrate.py re-derived the output map over 15 scenarios. The knowledge score has no training beyond regressing two linker constants on Gubra Table 5.
- All training
- 6 min · H100 for about 4 minutes of one-off ESM inference (7 PLMs); everything else ran on CPU.
- Trace span
- 9.7 h
- In tool calls
- 8.1 h (measured)
- Submitted
final_model/ holds predict.py, features.py, knowledge.py, smiles2seq.py and weights/ (config.json, model.npz, esm_subs.npz, monomers.csv, monomer_props.csv): 9 files, about 652 KB, depending only on numpy and pandas. The prediction is the 0.975 knowledge / 0.025 ridge blend, calibrated to pEC50 in [~5.2, 10].
Data used
| Source | Used for | Records |
|---|---|---|
| ChEMBL OX1R (CHEMBL5113) / OX2R (CHEMBL4792) activities | training | 359 |
| Ammoun 2003 JPET orexin-A(14-33) Ala scan | training | 30 |
| Karhu 2018 Peptides, stapled orexin-A(15-33) | training | 26 |
| Gubra WO2025252662A1 Tables 1–2 (Glu scan and lipidation position scan, IP-1 HTRF) | training | 104 |
| Gubra WO2025252662A1 Tables 3–5 | validation | 110 |
| Asahi 2003 D-amino-acid scan (via ChEMBL CHEMBL1145783) | training | 28 |
| ESM-2 (650M, 3B) and ESM-1v ×5 checkpoints | pretrained-weights | — |
| UniProt O43612 prepro-orexin | features | 1 |
| HELM monomer libraries (Pistoia HELMCore, monomerLib2.0, HELMMonomerService, Ionis, ChEMBL 37) plus 14 manual entries | features | 3,255 |
| PDB 7L1U OX2R–orexin-B cryo-EM | features | — |
| BindingDB O43614 dump | validation | 12,927 |
| Orexia/Centessa patents (WO2024015797A1 etc.) | validation | 20 |
Caveats (8)
- No hub validation submission appears anywhere in the trace, so every reported number is local (LODO, the Gubra slice, the mixture). The model was never scored on the provider's validation half.
- The knowledge score's scalars (p, POSFLOOR, D-cost, tau, blend weight, truncation floor) were tuned on the same LODO folds. Two folds (Gubra, Asahi) are contaminated by tables derived from them, and the Table 5 linker constants were fitted on Table 5. method.md acknowledges this; the clean LODO of 0.704 is optimistic (0.695 without German's floor).
- training_manifest.json is internally stale and inconsistent. Its validation block quotes 5-fold 0.717, a 'tuned_scalars ... 0.657' note, and a blend_weight_note saying 0.10 was kept, while the shipped weight is 0.025. The Gubra dataset entry says 'Tables 3-5 were not used', but they are the held-out slice. It labels Darker as 1999 while the trace says 2001, and counts 3,258 monomers against 3,255 in the trace.
- method.md says 'twenty-one silent faults'; the part 10 trace reports 19, and more were fixed later, so the count is approximate.
- The manifest lists RDKit 2026.09.1 as a build tool, while the wheel downloaded early was rdkit 2024.3.2. Neither ships, so this has no effect on inference.
- Staple, lipid, Aib and amide terms each vary inside only one source fold, so LODO cannot constrain them. Staple costs are calibrated on i,i+4 only, and an i,i+3 staple scores slightly better than i,i+4 (left unfixed).
- An unknown monomer inserted outside the message segment scores slightly above wild type because of the library-median descriptor fallback. This is documented and unfixed.
- Training potencies come from mixed assays (Ca2+ flux, IP-1) and from figure-reconstructed values (Karhu). Only Gubra uses the benchmark's IP-1 HTRF format.
The agent's write-up
Self-reported. The card above is read from the trace; where they disagree, its caveats say so.
Method
OX2R peptide agonist potency — method
Data
No training data ships; I assembled one: 493 rows, six studies.
ChEMBL gives 359 peptide EC50s (Lang, Asahi, German, Darker) as SMILES, so I wrote a backbone-fragmentation converter. It revealed ChEMBL's "OREXIN B" (CHEMBL413434), and BindingDB's, is deposited reversed; molecules are oriented by alignment. Plus Karhu 2018, the only stapled-orexin study; Ammoun 2003, an orexin-A Ala scan; and Gubra WO2025252662A1 Tables 1–2, glutamate and lipidation scans by IP-1 HTRF.
Features
Each peptide becomes a monomer list (HELM, else sequence, else SMILES)
aligned to orexin-B; orexin-A analogues align to orexin-A, else an Ala
scan says nothing. Descriptors are precomputed for 3,255 monomers, so
inference needs no cheminformatics. Lipid satellites are excluded, else a
fatty acid reads as length.
Model
Blend in log units, 0.025 ridge / 0.975 knowledge, soft 5.3 floor. The score→pEC50 map minimises worst-case MAE across IP-1 assays that disagree by 1.5 log; Spearman is invariant to it.
Ridge (α=3, 32 features) on within-study rank-normalised potency, since source assays differ 1000-fold; features winsorised, pinning out-of-domain peptides. ESM log-odds enter here.
Zero-shot score. Per-position substitution costs for all 28 positions from the Gubra glutamate scan, scaled by Grantham's 1974 chemical distance over the [0.35, 1] range a binary rule spanned, adding no parameter — except at Gly and Pro, where the change is backbone. Aggregated as a p-norm (p=3), not a sum. Three scans triangulate; patent prose separates preferred from pronounced positions at AUC 0.97. Staple, α,α-disubstitution (one Aib tolerated; pairs cost) and D costs join it; invisible to the table, Asahi's D-scan supplies 28 values. Separately: truncation, C-terminal amide, lipidation by position and linker.
Validation
Leave-one-paper-out, within-paper Spearman on OX2R. Gubra calibrates two tables and Asahi the D table, so both are dropped. Over the four clean folds ρ = 0.704 (Lang +0.72, German +0.49, Karhu +0.95, Ammoun +0.83); with Asahi, 0.717. Knowledge alone 0.709, ridge 0.474. Pearson r, also scored, is +0.82.
Held-out slice. Gubra Tables 3–5 (110 peptides) exposed the worst failure: additive penalties gave −0.59, the most-optimised lowest. The p-norm fixed it; with Lang's inactives the mixture is +0.61, AUC 1.000. Table 5's +0.52 is not held out: its diacid and acyl constants were regressed on those same 69 peptides, and ablating them drops it to +0.07. Leave-one-out refitting matches it, so they are stable. Table 4, untouched, is the honest slice number at +0.09, itself noise-limited (oracle 0.45); German (ceiling 0.82) is not. LODO is Ala scans, not lipidated peptides. Term-ablation: 97% of the penalty is measured.
Robustness. 45 metamorphic properties, HELM fuzzing, a 493-row replay and
a simulated sandbox found twenty-one silent faults. Three returned the
constant for every row — Spearman zero, which dryrun passes: pd.NA
nulls, sys.path shadowing, a top-level rdkit import. Checked under
Python 3.12 with rdkit blocked; 3.11 and 3.12 agree bit for bit.
Scalars were tuned here, so 0.704 is optimistic (0.695 without German's
floor); REBUILD.md rebuilds it.
Training manifest
Raw training_manifest.json
{
"task": "ox2r_peptide_potency",
"contract_version": 3,
"built": "2026-10-20",
"summary": "All training data is public; none ships with the task. Six sources, 493 rows: ChEMBL curations of Lang 2004, Asahi 2003, German 2013 and Darker 1999 (359 peptide EC50s, 184 unique peptides, as SMILES); Karhu 2018 (26 values, the only stapled-orexin study); Ammoun 2003 (an orexin-A alanine scan); and Gubra WO2025252662A1, the heaviest single source, whose glutamate and lipidation scans (Tables 1-2) supply the per-position substitution and lipid-position tables, with Tables 3-5 held back as a slice. Zero-shot priors from protein language models on the prepro-orexin precursor and from the published OX2R-orexin-B cryo-EM structure. The shipped model is 0.975 mechanistic knowledge / 0.025 ridge. Headline validation: leave-one-PAPER-out over the four folds touching no knowledge table, rho +0.704 (optimistic - see clean_lodo_is_also_partly_in_sample); most test-like estimate is the mixture at +0.606; Pearson +0.82; AUC 1.000 against inactives.",
"datasets": [
{
"name": "ChEMBL bioactivities, human orexin-1 receptor (HCRTR1)",
"target_chembl_id": "CHEMBL5113",
"url": "https://www.ebi.ac.uk/chembl/api/data/activity.json?target_chembl_id=CHEMBL5113",
"accessed": "2026-10-19",
"records": 24348,
"local": "/task/data/raw/activities_ox1r.json",
"licence": "CC BY-SA 3.0",
"use": "auxiliary task; peptide subset used for training"
},
{
"name": "ChEMBL bioactivities, human orexin-2 receptor (HCRTR2)",
"target_chembl_id": "CHEMBL4792",
"url": "https://www.ebi.ac.uk/chembl/api/data/activity.json?target_chembl_id=CHEMBL4792",
"accessed": "2026-10-19",
"records": 30116,
"local": "/task/data/raw/activities_ox2r.json",
"licence": "CC BY-SA 3.0",
"use": "primary training target; peptide subset only"
},
{
"name": "Source papers behind the ChEMBL peptide records (used via ChEMBL curation, not re-transcribed)",
"documents": [
{
"chembl": "CHEMBL1148480",
"ref": "Lang M. et al., J Med Chem 2004, 47:1153-1160",
"rows": 164,
"content": "orexin-B alanine scan and truncation series"
},
{
"chembl": "CHEMBL1145783",
"ref": "Asahi S. et al., Bioorg Med Chem Lett 2003, 13:111-113",
"rows": 126,
"content": "short orexin-B analogues, [Ala11,D-Leu15]-orexin-B"
},
{
"chembl": "CHEMBL3102805",
"ref": "German N.A. et al., ACS Med Chem Lett 2013",
"rows": 81,
"content": "truncated orexin-A analogues"
},
{
"chembl": "CHEMBL1134228",
"ref": "Darker J.G. et al., Bioorg Med Chem Lett 2001",
"rows": 4,
"content": "orexin C-terminal fragments"
}
]
},
{
"name": "Ammoun S. et al., 'Distinct Recognition of OX1 and OX2 Receptors by Orexin Peptides', J Pharmacol Exp Ther 2003, 305:507-514",
"doi": "10.1124/jpet.102.048025",
"pmid": "12606634",
"url": "https://web.archive.org/web/20170819153502if_/http://jpet.aspetjournals.org/content/jpet/305/2/507.full.pdf",
"accessed": "2026-10-19",
"records": 30,
"local": "/task/work/ammoun2003_JPET/jpet_305_507.pdf",
"use": "orexin-A(14-33) alanine scan + full-length references, Tables 2/4/5; pEC50 reported directly at hOX1R and hOX2R (Ca2+, CHO, 1 mM [Ca2+]e). Not present in ChEMBL or BindingDB.",
"caveat": "The paper's Table 1 header labels the E18A analogue 'F18A'; the printed sequence (CRLYALLHGAGNHAAGILTL) and the Table 4/5 row labels both say E18A, which is what was used. Qualitative Fig. 3 truncation data was NOT used."
},
{
"name": "Gubra A/S, WO2025252662A1 'Orexin receptor agonists', Tables 1 and 2",
"url": "https://patents.google.com/patent/WO2025252662A1/en",
"retrieved_via": "WIPO PATENTSCOPE pamphlet PDF (image-only scan) and, independently, the SureChEMBL API",
"accessed": "2026-10-19",
"records": 104,
"use": "Glutamate scan (SEQ 1-28) and lipidation position scan (SEQ 34-61) on 28Nle-orexin-B, IP-1 accumulation (HTRF CisBio IP-One) in CHO-K1 expressing human OX1R/OX2R - the same assay format as the benchmark. Used both as a training fold and to calibrate the knowledge score's per-position lipidation penalty.",
"verification": "All 52 compounds read off the page images by eye, then cross-checked against an independent extraction obtained through a different route (SureChEMBL API): 52/52 exact agreement.",
"caveat": "SEQ 11, 16, 22 and 28 print a stray second substitution (T at P10/P19/P15, A at P14) and were dropped rather than guessed. SEQ 32/33 and 29-31 are 'potency assay 1' and were excluded so the block is one assay. Tables 3-5 were not used (narrow dynamic range, higher transcription risk)."
},
{
"name": "Karhu L. et al., 'Stapled truncated orexin peptides as orexin receptor agonists', Peptides 2018, 102:54-60",
"doi": "10.1016/j.peptides.2018.02.004",
"url": "https://erepo.uef.fi/bitstreams/62ecb941-f1cd-428e-8373-fdc2a5e01249/download",
"accessed": "2026-10-19",
"records": 26,
"local": "/task/data_karhu/karhu2018.csv",
"use": "the only public hydrocarbon-stapled orexin SAR; potencies reconstructed from Fig. 3A bar heights calibrated against fold-shifts stated in the text (uncertainty ~0.2 log; inactives censored at the 20 uM top concentration)",
"caveat": "figure-derived, not printed values"
},
{
"name": "UniProt O43612 (OREX_HUMAN), prepro-orexin precursor",
"url": "https://rest.uniprot.org/uniprotkb/O43612.fasta",
"accessed": "2026-10-19",
"use": "sequence context for the language-model substitution scores; confirms orexin-B = residues 70-97"
},
{
"name": "UniProt HCRT orthologues (446 sequences)",
"url": "https://rest.uniprot.org/uniprotkb/stream?query=(gene:HCRT)%20AND%20(length:[80%20TO%20200])&format=fasta",
"accessed": "2026-10-19",
"local": "/task/work/hcrt_all.fasta",
"use": "conservation profile (computed, ultimately not used in the shipped model - orexin-B is near-invariant across mammals so it added nothing over the ESM scores)"
},
{
"name": "HELM monomer libraries (Pistoia HELMCoreLibrary, monomerLib2.0, HELMMonomerService, Ionis) and the EBI ChEMBL 37 monomer library",
"urls": [
"https://github.com/PistoiaHELM/HELMMonomerSets",
"https://github.com/PistoiaHELM/HELMMonomerService",
"https://www.ebi.ac.uk/chembl/ (ChEMBL 37 monomer library XML)"
],
"accessed": "2026-10-19",
"records": 3258,
"local": "/task/helm_tools/monomers.csv",
"use": "resolve bracketed HELM monomers to a natural analogue and to precomputed descriptors; shipped in the bundle as weights/monomers.csv and weights/monomer_props.csv"
},
{
"name": "PDB 7L1U - active-state OX2R bound to orexin-B (Hong C. et al., Nat Commun 2021, 12:815)",
"url": "https://files.rcsb.org/download/7L1U.cif",
"accessed": "2026-10-19",
"use": "per-residue contact analysis informing the curated importance vector; also the source of the IP-1 anchor (orexin-B pEC50 7.17 at OX2R, Cisbio IP-One)"
},
{
"name": "Guide to Pharmacology ligand/interaction CSVs",
"url": "https://www.guidetopharmacology.org/DATA/",
"accessed": "2026-10-19",
"local": "/task/data/gtop_orexin.csv",
"use": "cross-check only; 8 orexin peptide rows, not used for fitting"
}
],
"model_checkpoints": [
{
"name": "facebook/esm2_t33_650M_UR50D",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm2_t36_3B_UR50D",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm1v_t33_650M_UR90S_1",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm1v_t33_650M_UR90S_2",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm1v_t33_650M_UR90S_3",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm1v_t33_650M_UR90S_4",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
},
{
"name": "facebook/esm1v_t33_650M_UR90S_5",
"source": "HuggingFace",
"use": "masked-marginal substitution log-odds"
}
],
"model_checkpoint_note": "The 7 models are used only at BUILD time, on the 131-residue prepro-orexin precursor, to produce a 28x20 substitution log-odds matrix (weights/esm_subs.npz, 6.8 kB). No neural network runs at inference.",
"apis_and_tools": [
{
"name": "ChEMBL REST API",
"url": "https://www.ebi.ac.uk/chembl/api/data/"
},
{
"name": "UniProt REST API",
"url": "https://rest.uniprot.org/"
},
{
"name": "RDKit 2026.09.1",
"use": "build time only - SMILES-to-sequence conversion and per-monomer descriptors; NOT a runtime dependency"
},
{
"name": "scikit-learn 1.9.1 RidgeCV",
"use": "build time only - the fitted coefficients are exported to numpy and re-implemented in predict.py"
},
{
"name": "transformers 4.41.2 + torch 2.3.0",
"use": "build time only - ESM inference on an H100"
}
],
"sources_attempted_but_unavailable": [
{
"name": "WO2024015797A1 / US20250277001A1 (Orexia/Centessa orexin peptide agonists)",
"reason": "RETRIEVED on 2026-10-20 (Google Patents was 503 in earlier sessions, 200 now): WO2024015797A1 and its US sibling US20250277001A1, both read in full.",
"note": "its potencies are published only as bins (+/++/+++/++++) in any case",
"why_still_not_used": "its only potency table (Table A, 20 peptides) reports hOX2 pEC50 in four bins and EVERY ONE of the 20 is '++++' (>= 10.0) with Emax 'A' (>= 90%). Zero rankable variance on the target receptor - the OX1 column varies ('+' vs '++') but that is the wrong receptor. The assay is calcium flux in CHO cells, not IP-1. Nothing here can train or validate a ranking model.",
"what_it_did_give": "two ordinal facts from Example 4, and a chemotype warning. The 14/15-mers of Table A are OxB(15-28) analogues; the 13-mers they were compared against are OxB(16-28) analogues, and 'all of the 13 amino acid sequences tested showed OX2 pEC50 below 9.6', with the two named examples below 8.8. So one residue of further truncation costs more than a log even in an optimised series - and an ENGINEERED, capped, amidated 14-mer can still be very potent, which this model's extrapolated truncation ramp denied.",
"monomer_vocabulary_seen": "hArg, hArg(Et)2, Phg, Hyp(4-OH), 2-AOC, N-Me-Asn, N-phenethyl-Gly, D-Gln, D-Pro, PEG6, Nle - the vocabulary a peptide-OX2R program actually uses."
},
{
"name": "BindingDB bulk TSV",
"reason": "downloaded but superseded by ChEMBL for this target; not used"
},
{
"name": "Prischich 2024 and Duffet 2022 orexin photopharmacology papers",
"reason": "few data points, supplementary tables inaccessible; not used"
},
{
"name": "Lang 2004 / Asahi 2003 / Darker 2001 'green OA' copies",
"reason": "Semantic Scholar and OpenAlex flag these as open access, but every such location is a 10.7270/... DOI that resolves to a BindingDB entry page, not a manuscript. The papers remain paywalled; their numbers were taken from the ChEMBL curation."
}
],
"runtime_dependencies": "numpy and pandas only (both provided by the sandbox). The bundle ships no wheels.",
"bundle_size_bytes": 665764,
"validation": {
"scheme": "leave-one-paper-out over 6 papers; within-paper Spearman on OX2R rows",
"spearman_honest_5_folds": 0.717,
"spearman_paper_averaged_5_folds": 0.749,
"spearman_all_6_folds": 0.733,
"note": "Gubra Tables 1-2 calibrate the per-position substitution and lipidation tables, so that fold is not out-of-sample. The 5-fold figure excludes it.",
"spearman_knowledge_only": 0.709,
"spearman_ridge_only": 0.474,
"per_paper": {
"Lang2004": 0.716,
"Asahi2003_contaminated": 0.749,
"German2013": 0.491,
"Karhu2018": 0.954,
"Ammoun2003": 0.832,
"Gubra2025_contaminated": 0.794
},
"held_out_slice": {
"name": "Gubra Tables 3-5: 110 optimised, multiply-modified peptides, never fitted QUALIFICATION (found 2026-10-20): 'never fitted' holds for the SUBSTITUTION tables but NOT for the two linker constants, DIACID_PEN and C16_PEN, which were regressed on Table 5 itself. See table5_linker_terms_are_fitted_on_table5.",
"failure_found": "with additive penalty aggregation: MAE 2.40, bias -2.40, Spearman -0.59 (every modification penalised, so the most optimised compounds ranked lowest)",
"after_fix": "p-norm aggregation (p=3), measured substitution costs, corrected Aib term",
"mixture_spearman_before_after": [
0.325,
0.669
],
"auc_optimised_over_inactive": 1,
"auc_optimised_over_lang_actives_before_after": [
0.662,
0.936
],
"remaining_limitation": "Table 4 (+0.149) is noise-limited, not defect-limited - see table4_is_noise_not_defect.",
"mixture_spearman_progression": [
0.325,
0.669,
0.74,
0.782
],
"table5_spearman_progression": [
-0.148,
-0.148,
0.299,
0.372
],
"auc_optimised_over_lang_actives": 0.943,
"scored_end_to_end": "This slice is scored by invoking the SHIPPED final_model/predict.py, not the knowledge term alone. An earlier harness used the knowledge score only, so every held-out number it printed described a model that does not ship. End-to-end at the shipped settings: Table 4 +0.094, Table 5 +0.521, mixture +0.585, mixture MAE 0.812, AUC(optimised>inactive) 1.000.",
"ridge_weight_on_never_fitted_data": {
"finding": "End-to-end held-out Spearman falls MONOTONICALLY as ridge weight rises - mixture 0.574, 0.546, 0.524, 0.515, 0.487, 0.361 at w = 0, 0.05, 0.10, 0.15, 0.20, 0.30, and the same ordering holds separately within Table 4 and Table 5. MAE moves the other way, because the ridge inflates the predicted range.",
"resolution": "w cut 0.10 -> 0.05, which is also the LODO argmax (0.663 vs 0.658 at 0.10 and 0.648 at 0). Four of five honest folds improve. The calibration was re-derived by the same minimax procedure at the new blend (centre 7.2, gain 2.0 -> 2.4, bmean 6.5877 -> 6.5425), which restores MAE: the held-out mixture MAE is 0.980, better than the 1.039 the old settings gave. Spearman is invariant to that affine map, so the gains are independent.",
"why_not_zero": "w = 0 wins the held-out slice outright but loses 0.015 of LODO and 0.28 of held-out MAE. 0.05 keeps a ridge contribution - the only part of the model that sees ESM log-odds and bulk descriptors - for peptides the alignment handles badly."
},
"table4_is_noise_not_defect": {
"observation": "Table 4 (31 Aib anti-fibrillation analogues) ranks at only +0.149 end-to-end.",
"analysis": "Its pEC50 spans 8.96-10.00, sd 0.238. Regressing pEC50 on the table's own design factors (backbone code x lipid attachment position) gives R2 = 0.227, so the reproducible component has sd 0.114 and the residual 0.210 - ordinary IP-1 HTRF scatter. An ORACLE that knows the design exactly and is scored against the noisy readout averages rho 0.454 (5-95%: 0.215-0.670); the bootstrap 95% CI on the observed 0.149 is -0.183..+0.457. The slice carries almost no rankable signal, so its low score is not evidence of a model defect and must not be optimised against.",
"model_vs_denoised_target": "rho +0.317 against the design-factor means, versus a 0.476 ceiling."
},
"table5_is_near_saturated": {
"observation": "Table 5 (69 exemplary peptides) scores +0.514 end-to-end.",
"analysis": "its pEC50 spans 7.92-9.19 with sd 0.277. Regressing on the table's own design variables (gGlu count, AEEA count, Aib count, Ste/Palm/C18diacid identity, lipid attachment position, length) gives R2 0.717, leaving residual sd 0.147. An oracle that knows the design exactly and is graded against the noisy readout averages rho +0.545 (5-95%: 0.414-0.667). The model reaches +0.514 - about 94% of attainable - and correlates +0.557 with the denoised design means. The bootstrap 95% CI on its rho is 0.297-0.690.",
"consequence": "both held-out Gubra tables are now close to their ceilings (Table 5 94%, Table 4 noise-limited at an oracle of 0.45). The remaining headroom in this project is in Lang (77% of a 0.94 ceiling) and Asahi (71% of 0.915), not in the held-out slice."
},
"a_term_deliberately_not_added": "the one design variable that correlates with the model's residual on Table 5 is the gGlu spacer count (+0.31: the model ranks multi-gGlu conjugates too low). Adding a gGlu term would improve Table 5 - and destroy the only never-fitted measurement this project has. The slice is worth more as an arbiter than the few hundredths of rho are worth as a score, and the residual sits inside the 6% of attainable rho that remains anyway.",
"table5_linker_terms_are_fitted_on_table5": {
"how_found": "Following the previous session's reframing - 'Table 5 is an arbiter for the CONJUGATE machinery and barely tests the substitution tables' - I checked where the conjugate constants themselves came from. knowledge.py's own comment reads 'Linker architecture (Gubra Table 5, n=69)'. The arbiter was grading two parameters fitted to it.",
"ablation_end_to_end_through_shipped_predict_py": {
"Table 5 (n=69)": "+0.513 shipped -> +0.032 with DIACID_PEN=C16_PEN=0",
"Table 4 (n=31)": "+0.107 shipped -> +0.107 (UNCHANGED - no linker term fires)",
"Tables 3-5 (n=110)": "+0.335 -> -0.010",
"mixture (+Lang inactives)": "+0.586 -> +0.372",
"AUC(optimised>inactive)": "1.000 -> 1.000 (unchanged)"
},
"interpretation": "Essentially ALL of Table 5's apparent skill is recital of constants fitted to those same 69 peptides. Only 18 of the 110 slice rows carry a linker term (7 diacid, 11 C16), but within Table 5 the rest of the design is held near-constant, so those terms carry nearly all of its ranking. Table 5 is therefore NOT a held-out test of the conjugate machinery. Table 4 (+0.107, bit-identical under the ablation) and the AUC are the honest slice numbers.",
"were_the_constants_themselves_overfitted": "No - and an initial read that they were was wrong. The raw C16-vs-C18 group gap is only -0.085 (t -0.81), which looked like C16_PEN=0.17 being 2x too big. But all eight C16 peptides are non-diacid, so the marginal gap is diluted by diacids sitting in the C18 group. Controlling for diacid, the PARTIAL coefficients are diacid -0.762 (t -12.3) and C16 -0.172 (t -2.95), matching the shipped 0.75 and 0.17 almost exactly. Both are honestly estimated partial effects of real, cleanly measured SAR, so neither was changed. The defect was the VALIDATION CLAIM, not the model.",
"why_the_7_diacids_move_spearman_so_much": "They are exactly the bottom 7 of Table 5: diacid pEC50 7.92-8.49 (mean 8.162), non-diacid 8.49-9.19 (mean 8.901). The flag separates the tail almost perfectly, so one fitted indicator reproduces most of the ranking.",
"action_taken": "No model change - the constants stand. method.md now states 'Table 5's +0.51 is not held out' with the ablation number and names Table 4 as the honest slice figure; knowledge.py carries a PROVENANCE note at the term; this entry records the measurement.",
"leave_one_out_refit": {
"script": "work/loo_linker.py",
"why": "'Not held out' leaves Table 5 with no honest number. Since only TWO parameters were fitted on 69 points, LOO refitting separates 'fitted here' from 'overfitted here'.",
"method": "for each of the 69 peptides, refit the diacid and C16 partial coefficients by OLS on the other 68, install them, and predict the held-out peptide through the shipped predict.py.",
"result": {
"in-sample (shipped)": "+0.513",
"leave-one-out refit": "+0.510",
"linker terms ablated": "+0.032",
"MAE in-sample / LOO": "0.757 / 0.758",
"constant stability": "diacid 0.762 +- 0.010 (range 0.722-0.818); C16 0.172 +- 0.007 (range 0.151-0.203)"
},
"conclusion": "In-sample optimism is 0.003. The constants are NOT overfitted - two parameters cannot overfit 69 points, and the refits barely move. So the honest reading is narrower than 'Table 5 is contaminated': the +0.51 is a fair estimate of how the model ranks THIS chemotype, but it is not independent evidence that the diacid and acyl effects transfer to a new peptide series or assay. That transfer remains untested; Table 4 (+0.107, unchanged by the ablation) is still the only genuinely held-out table."
},
"measured_at": "All figures in this entry were measured at w_ridge=0.05, the value shipping when the audit was run. At the current 0.025 the conclusion is unchanged but the numbers shift: Table 5 +0.521 shipped -> +0.067 ablated. See ridge_weight_re_derived_after_the_audits."
},
"current_values_at_w_ridge_0.025": "Table 4 +0.094, Table 5 +0.521, Tables 3-5 +0.368, mixture rho +0.606 / MAE 0.777, AUC 1.000"
},
"robustness": "blend weight flat over 0.05-0.15; p-norm exponent flat over 2-4; POSCOST floor has an interior optimum at 1.0",
"tuned_scalars": "p-norm exponent (3), POSCOST floor (1.0), D-cost (1.5), blend weight (0.025), tau (4) were chosen on these folds; each lies in a flat region and was set to a round value, so 0.657 is to that extent optimistic.",
"weakest_fold": "German 2013 (0.337): a truncated orexin-A(17-33) Ala/Pro/D scan. Position cost tables derived from full-length orexin-B transfer poorly; a truncation-context multiplier was tested and made no difference (0.657 -> 0.659), so it was not shipped.",
"negative_results": [
{
"idea": "learned per-position effect model (sub/del/D-residue/Aib indicators for all 28 positions, ridge + optional second-difference smoothing across positions, fitted on all 493 rows)",
"result": "LODO 0.410 vs 0.658 for the knowledge score; a three-way blend puts ~0 weight on it and does not beat the two-way blend",
"why": "under leave-one-PAPER-out each fold must extrapolate position effects that only that paper varies, so pooled fitting cannot recover what the Gubra in-assay scan and the structural priors supply directly"
},
{
"idea": "ensemble the knowledge score over the flat region of its five tuned scalars (7 members, one-at-a-time excursions)",
"result": "no change (LODO 0.649 vs 0.651, T5 0.498 vs 0.499, AUC 1.000 both)",
"why": "the LODO surface really is flat in those scalars, so averaging over the region equals the centre point - which also bounds how much the tuning-on-folds caveat can be costing",
"caution": "an initial version averaged RANKS and appeared to help (0.670); that was an artifact of ranking each evaluation group separately, and rank averaging would also have made predictions batch-dependent, breaking the harness's batch invariance"
},
{
"idea": "charge imp_lost only for internal deletions, since _trunc_penalty already covers N-terminal truncation",
"result": "LODO 0.658 -> 0.656; the apparent double count is in fact calibrated, and removing half of it under-penalises truncation"
},
{
"idea": "substitution-type-aware cost: weight the alanine-scan importance vector more when the incoming residue is Ala/Gly (side-chain deletion) than when it is charged, since POSCOST derives from a glutamate scan",
"result": "Lang's actives got WORSE (0.340 -> 0.292 as the multiplier rose) and the held-out Gubra Table 5 collapsed (0.499 -> -0.065), because Table 5's optimised compounds carry deliberate Ala substitutions that then get over-penalised. POSFLOOR=1.0 for all substitution types is already optimal."
},
{
"idea": "truncation-context multiplier (substitutions cost more in a shorter peptide)",
"result": "no effect (0.657 -> 0.659); not shipped"
},
{
"idea": "soft / absent floor instead of hard clipping at 5.3, on the reasoning that clipping creates ties and ties cannot help Spearman",
"result": "hard clipping is in fact slightly BETTER (LODO 0.65825 vs 0.65788 for no floor or any soft floor) and better on MAE. The truth also ties its inactives at the ceiling, and the model's ordering among near-dead compounds is noise, so collapsing them to a tie removes anti-signal rather than information.",
"kept": "hard clip at 5.3"
},
{
"idea": "raise the floor above 5.3 to tie more of the uninformative bottom (a floor of 5.8 appeared to lift LODO 0.658 -> 0.680)",
"result": "REJECTED as a fold-specific artifact. The entire gain came from German 2013 alone (0.337 -> 0.484), where a 5.8 floor collapses 23 of its 29 compounds into one tie. Excluding German, the floor has no effect at all (0.7144 / 0.7122 / 0.7142 / 0.7121 across floors 5.3-6.0). It would also contradict the stated 5.3 inactive ceiling and cost MAE.",
"note": "a reminder that a non-monotonic response across a swept parameter is a signal of noise, and that per-fold breakdown should precede believing any aggregate gain"
},
{
"idea": "move the lipidation cost inside the p-norm, for consistency with the staple / AADI / substitution liabilities",
"result": "LODO unchanged (0.6580); the Gubra fold improves 0.834 -> 0.882 but that fold is partly contaminated (the lipid table was calibrated on its Table 2), while the clean HELD-OUT Table 5 degrades 0.499 -> 0.435. Kept additive.",
"rationale": "the lipid-position effect was measured by walking one lipid along a fixed scaffold, so it is an independent cost that genuinely adds; the staple/AADI/substitution costs are all damage to the same pharmacophore and are sub-additive."
},
{
"idea": "a proline-specific substitution penalty (Pro removes a backbone NH and constrains the chain, so it ought to cost more than Ala at the same position)",
"result": "not supported. Comparing single-substitution compounds at matched positions, Pro is if anything slightly BETTER than Ala (German +0.09, Lang +0.29 mean delta), with per-position deltas scattering from -1.12 to +1.39. Not encoded."
},
{
"idea": "replace or supplement the ridge with a pairwise learning-to-rank model (logistic regression on within-block feature differences), which optimises ordering directly and sidesteps the cross-assay scale problem since pairs never cross a study",
"result": "It IS the better learner in isolation - honest LODO 0.563 vs the ridge's 0.481, and it notably repairs German (0.36 -> 0.49). But a three-way blend puts ZERO weight on it: best is knowledge 0.95 / ridge 0.05 / pairwise 0.00 at 0.6626, against 0.6580 for the shipped two-way.",
"why": "blend weight tracks decorrelation, not individual strength. Within folds the ranker correlates with the knowledge score at +0.83/+0.90/+0.86 (Lang/Karhu/Ammoun) against the ridge's +0.62/+0.92/+0.85, so it duplicates information the knowledge score already carries.",
"implication": "a direct rank-optimiser extracts nothing from these features that the hand-built score has not already captured, which points at the FEATURE SET rather than the learner as the binding constraint.",
"blend_weight_note": "the 3-way optimum at ridge=0.05 (0.6626) versus the shipped 0.10 (0.6580) is a 0.005 difference, inside noise and inside the flat region identified in an earlier session; 0.10 is kept deliberately because the ridge is the only conventionally fitted component and so the only hedge against systematic error in the hand-built priors."
},
{
"idea": "helical amphipathicity features (Eisenberg hydrophobic moment muH over windows 7-19, 10-20, 14-22, 7-28, plus mean face hydrophobicity and the deviation of each peptide's moment from wild-type orexin-B). Motivated by the previous session's finding that the FEATURES, not the learner, are the binding constraint, and aimed squarely at ranking within actives.",
"result": "worse on every measure. Ridge-only LODO 0.481 -> 0.468; blend 0.658 -> 0.640; ranking among actives 0.510 -> 0.487.",
"why": "the within-fold correlations are weak and INCONSISTENT IN SIGN across papers (muH_7_19 -0.24 in Asahi but muH_10_20 +0.25 in German; hyd_7_28 +0.21 in Lang but -0.52 in Ammoun) - the same signature that identified charge and clogp as document-confounded in the first session.",
"structural_reading": "consistent with 7L1U, where only N20-M28 is resolved and it binds in an EXTENDED conformation with residues 1-19 unmodelled. Amphipathicity of a segment that is disordered when bound should not govern potency, and Karhu's result that helix-stabilising staples HURT points the same way."
},
{
"idea": "instance-based analogue transfer (k-nearest-neighbour over aligned positions)",
"rationale": "a fourth model family, chosen because neither existing component can say 'this peptide is two conservative steps from one another lab measured at the top of its range'. Each peptide is encoded as its 28 aligned orexin-B positions plus lipid/staple/D/orexin-A flags; distance is a POSCOST-weighted mismatch count with conservative swaps at 0.4 of a step; the prediction is a kernel-weighted mean of neighbours' within-study rank-normalised potency. Under LODO the neighbours necessarily come from other papers, so it doubles as a test of whether orexin SAR transfers across labs. work/knn.py.",
"result": "standalone LODO +0.413 (best of an 18-point grid over weighting, bandwidth and k) - below knowledge alone (0.648) and comparable to the ridge (0.481). In a three-way blend it earns ZERO weight: LODO is maximised at w_knn = 0 over w_ridge x w_knn in {0, .05, .10} x {0, .05, .10, .15, .20, .30}.",
"refinement_also_rejected": "a distance-GATED version (weight = wmax * exp(-d_nearest/d0)), letting analogue transfer speak only where a close analogue exists, reached LODO +0.667 vs +0.663 - but the +0.004 is bought with two more scalars tuned on the same LODO, and it transfers NOTHING to the held-out Gubra slice (mixture +0.546 either way, Table 4 identical to three decimals). The gate explains why: real out-of-domain peptides have no close analogue, which is exactly when the transfer would be needed.",
"what_it_did_show": "it independently rediscovers last session's cross-lab finding - with POSCOST weighting it lifts German from +0.27 to +0.47 and Ammoun to +0.88, the two orexin-A folds, by matching German's peptides to Ammoun's Ala scan. But it costs Lang more than it gains (+0.69 to +0.59 ungated).",
"verdict": "rejected. Third model family in a row - after a learned per-position model (0.41) and a pairwise ranker (0.563) - to beat chance alone and then earn zero blend weight. The binding constraint is the features, not the learner."
},
{
"idea": "build the per-position cost table from TWO independent scans instead of one",
"rationale": "POSCOST is Gubra's glutamate scan of orexin-B alone. Asahi 2003 independently ALANINE-scanned the same parent (28 single substitutions, 26 positions, parent pEC50 10.09). Over the shared positions the two tables agree at only rho +0.56 overall - and within 1-18 at +0.03, within 19-23 at MINUS 0.90. A single-source table could be carrying assay noise, or Glu-specific chemistry, as if it were position importance, so averaging two scans should be more robust.",
"offset_check": "before mixing, the index alignment was verified: rho(POSCOST[p+k], Asahi[p]) peaks at k=0 among k=-3..+1 and the C-terminal shape matches (24, 26, 27, 28 high in both). The disagreement is real, not a transcription shift.",
"result": "mixing fraction swept 0, 0.25, 0.5, 0.75, 1.0. Every honest measure degrades MONOTONICALLY: LODO over Lang/German/Karhu/Ammoun 0.657 -> 0.622, held-out Gubra Table 5 0.499 -> 0.366, held-out mixture 0.574 -> 0.521, Lang alone 0.692 -> 0.651. The ONLY thing that improves is the Asahi fold itself, 0.675 -> 0.754, monotonically - which is what contamination looks like.",
"verdict": "rejected, and it converts a stated assumption into a measured one. method.md argued that an Ala scan measures REMOVING a side chain and so overstates CHANGING one; this is the direct test of that argument, and the glutamate scan wins on every fold that did not contribute to it.",
"by_product": "the Asahi fold gains +0.079 purely from having its own scan in the table. That is a useful scale for how much a contaminated fold inflates, and it is why the Gubra fold (+0.832) is excluded from the headline number."
},
{
"idea": "train the ridge on OX2R rows only, or on OX1R rows only",
"result": "the table carries 247 OX2R and 246 OX1R rows. Ridge-only LODO on OX2R targets: 0.481 trained on both, 0.470 trained on OX2R alone, 0.501 trained on OX1R ALONE. The blend moves 0.661-0.663 across all three.",
"verdict": "no change (both receptors kept). The result is diagnostic rather than useful: a ridge trained only on the OTHER receptor predicts OX2R slightly better than one trained on OX2R itself, so the ridge is learning generic 'intact, orexin-like, right size' signal rather than receptor-specific SAR - which is exactly what the error decomposition says (AUC 0.98-1.00 for active-vs-floor, 0.34 within actives)."
},
{
"idea": "scale a substitution by Grantham distance RELATIVE to the perturbation that measured the position, d(wt,X)/d(wt,Glu), rather than relative to the global maximum",
"rationale": "POSCOST[p] is literally the measured cost of wt -> Glu, so the exactly consistent reading is that a different mutation costs POSCOST[p] times d(wt,X)/d(wt,Glu). The shipped form instead divides by the global maximum distance (215), which is dimensionally the same but ignores which substituent did the measuring.",
"result": "LODO rises 0.664 -> 0.677, but both never-fitted measures fall: held-out Table 5 0.519 -> 0.493 and the held-out mixture 0.601 -> 0.575, at the most favourable clip (0.35-1.0); looser clips (0.30-1.3, 0.20-1.5) are worse still (mixture 0.528, 0.502). The best member of the relative family is the one whose clip pushes it closest to the absolute form, which suggests the clip is doing the work and the renormalisation is not.",
"verdict": "rejected, applying the same rule that drove the ridge-weight cut: when LODO and never-fitted data disagree, the never-fitted data wins. LODO shares a Gubra-derived position table across every fold, and its scalars were tuned on it; the Gubra Tables 3-5 slice is the only data nothing was fitted to, and it looks more like the benchmark's description of its test set - optimised, multiply-modified orexin-B peptides - than Lang's alanine scan does."
},
{
"idea": "shrink the single-source POSCOST table toward the curated IMPORTANCE prior",
"rationale": "POSCOST comes from one glutamate scan, so each entry carries that assay's noise; IMPORTANCE is a curated literature prior over the same 28 positions and is fitted to no fold, so shrinking toward it trades a little bias for less variance - the standard fix for a one-replicate table. The two already agree at rho +0.77, so the shrinkage is mild.",
"result": "geometric shrinkage swept at lambda 0, 0.15, 0.3, 0.5, 0.7, 1.0. LODO rises 0.664 -> 0.670 at lambda 0.5, while held-out Table 5 falls 0.519 -> 0.471 and the held-out mixture falls 0.601 -> 0.546, both monotonically past lambda 0.3.",
"verdict": "rejected, on the never-fitted data."
},
{
"idea": "stop charging the substitution cost at the lipid attachment site, on the grounds that it is already inside LIPID_POS_PEN",
"rationale": "Gubra's Table 2 measured the WHOLE change at each position - wild type replaced by a lysine that already carries the C18-diacid-gGlu lipid - so LIPID_POS_PEN should contain the wt->Lys substitution that the position-cost loop then charges a second time. The two tables correlate at rho +0.52 / r +0.76, which is consistent with a double count.",
"result": "Gubra fold +0.810 -> +0.871, held-out Table 5 +0.519 -> +0.517, held-out mixture +0.601 -> +0.596, LODO unchanged at +0.667 (no other fold has a lipidated peptide).",
"verdict": "rejected. A large gain confined to the fold whose Tables 1-2 produced the table in question, with a small loss on the data nothing was fitted to, is the signature of contamination rather than of a bug being fixed. The double count stays, and the reasoning is now a comment in knowledge.py so the next reader does not re-derive the hypothesis and act on it."
},
{
"idea": "drop the ridge features that are really paper identifiers",
"rationale": "work/ridge_audit.py reports, per feature, the share of variance lying BETWEEN papers and the within-paper rank correlation with the target. Four features never vary inside any paper at all - has_staple, is_oxa_like, maxring and n_gap - so they carry no within-paper signal, yet three of them hold non-zero coefficients. Leave-one-paper-out CANNOT see what they do: they are constant on the held-out fold and shift every row equally. A real test set is not like that, so those coefficients could act as discriminators learned from assay-level differences rather than SAR.",
"test": "work/cross_chemotype.py pools the papers into ONE ranking on raw pEC50, which is where such a feature would do its damage, and compares feature sets.",
"result": "all five papers pooled: 0.878 with every feature, 0.876 without the four. Orexin-B and orexin-A papers pooled: 0.639 vs 0.638. Unstapled and stapled pooled: 0.771 vs 0.767. LODO 0.663 vs 0.658.",
"verdict": "rejected - the hypothesis was reasonable and is simply not supported. The coefficients are small and the ridge carries 5% of the blend, so the features are inert rather than harmful. Kept, and the audit is retained as a diagnostic: it also explains why ridge-only LODO is just 0.474, since most of its features are predominantly between-paper."
},
{
"idea": "add a helix-breaking penalty for proline substitutions",
"rationale": "Lang's scan is 21 proline substitutions against only 12 alanine ones, and the triangulation showed POSCOST correlates with Lang's Pro losses at +0.65 against +0.85 for her Ala losses. A proline in a helix should cost more than losing the same side chain to alanine.",
"result": "tested before implementing, by comparing Ala and Pro at the SAME position. Lang: the Pro-minus-Ala difference runs from -1.39 to +1.12 with a mean near zero - proline is BETTER than alanine at positions 7 and 26 and worse at 15 and 16. German: -0.69 to +0.22, mean -0.12. The two papers do not even agree in sign. There is no systematic proline effect to encode.",
"verdict": "rejected before any code was written, and the current treatment is vindicated: Gly and Pro are already exempt from the Grantham discount and so pay the full position cost, like alanine. Within Lang's actives, Pro substitutions rank at +0.710 and Ala at +0.745 - the two classes the knowledge tables target are the two that work."
},
{
"idea": "encode the measured Nle28-over-Met28 improvement",
"the_measurement": "real and well sourced. Google Patents' description of WO2025252662A1 says 'the potency of Orexin B scaffold can be improved by substituting the methionine (M) in position P28 with a norleucine (Nle) (see comparison between SEQ ID NO: 32 and 33, in Table 2)', and the matched pair is in the training table: orexin-B 8.31 against 28Nle-orexin-B 9.10 in the same assay, a 0.79 log gain. The model scored the swap at -0.02, correct as a SUBSTITUTION and wrong as a comparison.",
"attempt_1_penalise_Met28": "charging Met28 a 0.79 liability also lets M28A off it, and Asahi measures M28A as 2.27 log WORSE than parent. The Asahi fold fell 0.749 to 0.695 and the 5-fold LODO 0.715 to 0.698. What Gubra measured is that Nle beats Met, not that removing Met helps in every direction.",
"attempt_2_credit_Nle28": "a bonus restores every fold (CLEAN LODO 0.700, Asahi 0.749) and transforms the held-out mixture MAE, 0.768 to 0.308 - but that gain is a CALIBRATION artefact, since the slice is 96% Nle28 and the minimax map was set on mostly-Met28 folds. Against that: it drives the penalty negative, which lifts the knowledge score above its anchor and puts potent peptides on the 10.0 ceiling - property P26 broke with a prediction of exactly 10.0 - and the never-fitted Table 5 ranking fell 0.513 to 0.494.",
"verdict": "reverted. Ties at the ceiling are the mirror of the floor problem the soft floor was built to avoid, and the held-out slice cannot arbitrate the Met-versus-Nle distinction anyway: 106 of its 110 peptides carry Nle28, so the term is a constant there. The measurement is recorded in knowledge.py as a known, deliberately unencoded fact rather than left to be rediscovered.",
"what_was_kept": "two genuine bugs found along the way: disguise_distance read the raw props dict instead of MonomerProps.get, so it silently scored every non-exact spelling - K(C16), D-Leu, Met(O), NMeLeu - at distance zero; and once fixed, a lipid-bearing lysine scored 23.7 and would have been double-charged alongside LIPID_POS_PEN, so monomers covered by another term are now excluded. The shape fuzzer also gained a ceiling check."
}
],
"error_decomposition": {
"method": "each fold split into (a) separating compounds at the assay floor from actives, and (b) Spearman among the actives only",
"per_fold": {
"Lang2004": {
"n": 79,
"n_floor": 19,
"rho_all": 0.72,
"rho_actives_only": 0.395,
"auc_active_over_floor": 0.989
},
"Asahi2003": {
"n": 59,
"n_floor": 1,
"rho_all": 0.647,
"rho_actives_only": 0.631,
"auc_active_over_floor": 0.897
},
"German2013": {
"n": 29,
"n_floor": 1,
"rho_all": 0.329,
"rho_actives_only": 0.261,
"auc_active_over_floor": 0.964
},
"Karhu2018": {
"n": 13,
"n_floor": 3,
"rho_all": 0.949,
"rho_actives_only": 0.9,
"auc_active_over_floor": 1
},
"Ammoun2003": {
"n": 15,
"n_floor": 1,
"rho_all": 0.836,
"rho_actives_only": 0.798,
"auc_active_over_floor": 1
},
"Gubra2025": {
"n": 52,
"n_floor": 1,
"rho_all": 0.81,
"rho_actives_only": 0.802,
"auc_active_over_floor": 0.882
}
},
"reading": "Nearly all of the Lang score is floor separation (AUC 0.983) - among its actives, which are single alanine substitutions, the model reaches only 0.338. Asahi (D-scan), Ammoun and Gubra retain 0.66-0.82 among actives. The model is therefore strong at distinguishing crippled from viable peptides and weaker at fine SAR, which favours a test set spanning the full range - as the stated 5.3 inactive ceiling implies.",
"update_note": "recomputed after the Grantham substitution distance. Lang's within-actives ranking - the standing weakness - moves 0.338 -> 0.395, which is where the fold's 0.692 -> 0.720 comes from: the model now distinguishes a near swap from a radical one at the same position."
},
"prior_sensitivity": {
"question": "The staple and lipid terms are the two least validated parts of the knowledge score. How much does the predicted ranking depend on them being right?",
"method": "Build test sets shaped like the described benchmark (orexin-B derived, non-standard residues, lipidation, staples) and treat each alternative penalty scale in turn as if it were the truth; report the Spearman the SHIPPED setting achieves against it.",
"staple_term": {
"10pct_stapled": {
"0x": 0.97,
"0.5x": 0.989,
"0.75x": 0.997,
"1.5x": 0.994,
"2x": 0.983
},
"30pct_stapled": {
"0x": 0.905,
"0.5x": 0.965,
"0.75x": 0.99,
"1.5x": 0.978,
"2x": 0.936
},
"50pct_stapled": {
"0x": 0.864,
"0.5x": 0.949,
"0.75x": 0.985,
"1.5x": 0.971,
"2x": 0.919
}
},
"lipid_position_table": {
"flattened_to_its_mean": 0.981,
"0.5x_spread": 0.995,
"1.5x": 0.997,
"2x": 0.99
},
"conclusion": "Exposure is bounded and modest. Even if the staple penalty were entirely wrong (0x) the shipped ranking still correlates 0.86-0.97 with the truth-model's, and a factor-of-two error costs at most ~0.92-0.98. Flattening the lipid table entirely costs only ~0.02. Substitution and truncation terms dominate the ranking, so hedging these magnitudes toward neutral would buy little and would cost if the priors are right. No change made."
},
"independent_curation_check": {
"source": "BindingDB UniProt O43614 (human OX2R) REST dump, 12,927 affinity records, 173 peptide EC50s",
"provenance": "PMIDs 14971895 (Lang 2004), 12467628 (Asahi 2003), 24707347 (German 2013) plus 3 singletons - exactly the papers already used, so BindingDB adds no new source.",
"agreement": "100 sequences match the training table; pEC50 agreement r=0.960, mean |diff| 0.059 log, and only 3 differ by >0.5 log - all three being the same sequence measured in two different papers with different assay floors, not curation errors.",
"retires": "the early concern that ChEMBL's Lang 2004 values might be a 1000x unit error: an independent curation of the same paper reproduces them to 0.08 log.",
"also_corroborates": "the reversed-deposition finding - BindingDB carries the Asahi compounds C-to-N as well, so orientation-by-alignment is necessary against both databases.",
"new_data": "8 records genuinely absent, all orexin-A analogues containing pyroglutamate/disulfide fragments the converter cannot resolve, mostly censored at the assay ceiling. Not added.",
"side_benefit": "an independent check of the SMILES-to-sequence converter: it reproduces BindingDB's curation of the same molecules."
},
"output_calibration": {
"rationale": "Spearman is invariant to any monotone transform of the score, so the affine map from blended score to pEC50 can be chosen on MAE alone. The obstacle is that the test assay's absolute scale is unknown: orexin-B reads 7.17 (Hong), 8.09 (Asada), 8.31 (Gubra), 8.62 (Malherbe) across published IP-1 studies.",
"method": "Grid over (centre, gain) scored against 15 scenarios (assumed active ceiling 8.0-10.0 x inactive share 10-40%). The joint distribution of prediction and truth is taken from the real leave-one-paper-out predictions, so the correlation structure is the model's actual one. Chosen by best WORST-CASE mean absolute error.",
"result": {
"old": {
"centre": 7,
"gain": 1.3,
"mean_MAE": 0.853,
"worst_MAE": 1.38
},
"new": {
"centre": 7.2,
"gain": 2,
"mean_MAE": 0.793,
"worst_MAE": 1.076
}
},
"spearman_cost": "none: per-fold OX2R Spearman is identical for five of six folds and Lang improves by 0.0006 (one fewer floor tie); honest LODO 0.6580 -> 0.6583.",
"caveat": "Clipping at the 5.3 floor is NOT strictly order preserving - it creates ties - so larger gains are not free. At gain 2.4 the floor holds 37/247 compounds and LODO falls to 0.654. Gain 2.0 sits before that knee.",
"effect": "prediction range widens 5.30-8.35 to 5.30-9.31 (sd 0.82 -> 1.21), far more plausible for an IP-1 assay whose inactives sit at 5.3 and whose optimised analogues reach 9-10. On the held-out Gubra slice MAE falls 1.585 -> 1.187; on the dead+potent mixture 1.12 -> 0.86."
},
"fold_influence": {
"note": "German 2013 drags the five-fold honest LODO from 0.714 to 0.658; it is 29 of 195 OX2R compounds and is the truncated orexin-A Ala/Pro scan the position tables fit worst.",
"lodo_excluding_german": 0.714
},
"noise_ceiling": {
"method": "work/noise_ceiling.py. Spearman is bounded by the reproducibility of the readout, so each fold's observed rho is compared with what an ORACLE would score: one that knows the true potency exactly and is graded against a single measurement of it, corrupted by 0.25 log of noise (the within-table residual scatter measured on Gubra Table 4 was 0.21).",
"ceiling_at_0.25_log": {
"Lang2004": 0.94,
"Asahi2003": 0.915,
"German2013": 0.823,
"Karhu2018": 0.962,
"Ammoun2003": 0.755,
"Gubra2025": 0.907
},
"fraction_of_attainable_captured": {
"Karhu2018": "99%",
"Gubra2025": "92%",
"Ammoun2003": ">100%",
"Lang2004": "74%",
"Asahi2003": "74%",
"German2013": "39%"
},
"n_weighted": "ceiling +0.903 against an observed +0.698",
"interpretation": "Karhu and Gubra are effectively saturated; Lang and Asahi hold real headroom; German is the one fold that is genuinely under-modelled rather than noise-limited. Gubra Table 4, by contrast, IS noise-limited (oracle 0.45) - the two must not be treated alike."
},
"weakest_fold_diagnosis": {
"fold": "German 2013, rho +0.320 against a 0.823 ceiling",
"what_it_is": "an orexin-A(17-33) Ala/Pro/D scan: 24 single substitutions of the 17-mer YELLHGAGNHAAGILTL, parent 6.73, spanning 5.11-6.81, plus three longer reference peptides.",
"cross_lab_evidence": "Ammoun 2003 independently Ala-scanned orexin-A(14-33). Over the 9 positions both labs cover (OxA 17-22, 24-26) their measured losses agree at Spearman +0.81 / Pearson +0.82, slope 0.81 - so the position-specific signal German reports is real and reproducible, not scatter.",
"why_the_model_misses_it": "the model's POSCOST comes from Gubra's glutamate scan of FULL-LENGTH orexin-B, which scores OxB 16, 17 and 19 (= OxA 21, 22, 24) at exactly 0.00. Both labs measure ~0.9-1.0 log losses there in a TRUNCATED orexin-A. POSCOST correlates only +0.35 with German and +0.45 with Ammoun at these positions. It is a context effect: a shortened peptide has no binding energy to spare, so positions that are free in the full-length parent stop being free.",
"why_the_earlier_multiplier_failed": "a scalar truncation multiplier was tried in an earlier session and rejected. It could never have worked: the positions at fault have POSCOST 0.00, and any multiple of zero is zero.",
"why_it_is_not_fixed": "the benchmark states its peptides derive from orexin-B, and the effect does NOT appear there. Within Lang 2004, short orexin-B peptides rank BETTER than long ones (rho +0.60 at <=20 residues, +0.63 at 21-25, +0.10 at >=26), the opposite of the German pattern. Rebuilding POSCOST from the orexin-A Ala scans would contaminate the Ammoun fold - trading 15 rows of honest validation - to improve the single fold least like the test set."
},
"analogue_distance_to_training_set": {
"measure": "median distance from each fold's peptides to their nearest peptide in ANY other paper, in the POSCOST-weighted aligned-position metric of work/knn.py. One unit is roughly one non-conservative substitution at an important position.",
"by_fold": {
"Asahi2003": 0.5,
"Ammoun2003": 0.63,
"German2013": 1.05,
"Lang2004": 1.73,
"Gubra2025_slice_tables3to5": 2.11
},
"why_it_matters": "the never-fitted Gubra slice - multiply-modified, lipidated, optimised peptides, the closest thing on hand to the benchmark's test set - sits four times further from anything measured than Asahi's analogues do. Any method that works by resemblance to a training compound has little to resemble, which is the argument for the model being 95% mechanistic knowledge rather than 95% fitted."
},
"why_lodo_and_the_slice_disagree": {
"pattern": "three independent changes now show the same signature - LODO up, never-fitted slice down: gated k-NN analogue transfer (+0.004 LODO, +0.000 slice), Grantham distance renormalised to the measuring substituent (+0.013 LODO, -0.026 slice), and shrinking POSCOST toward the curated prior (+0.006 LODO, -0.055 slice).",
"explanation": "each change blurs the per-position table toward something smoother. LODO's folds are single-substitution scans, where one term decides the whole penalty and a smooth, roughly-right prior ranks positions acceptably. The held-out slice is multiply-modified peptides aggregated by a p-norm, where the MAXIMUM term decides and blurring it costs real accuracy. The two validation sets reward opposite things.",
"which_one_to_trust": "the benchmark describes its test peptides as orexin-B derivatives carrying non-standard amino acids, lipidation and hydrocarbon staples - multiply modified, like the slice, not like an alanine scan. That, plus the slice being the only data nothing was fitted to, is why every one of these was rejected despite the LODO gain.",
"the_one_change_that_did_both": "Grantham distance in its absolute form is the exception: LODO 0.663 -> 0.664, Table 5 0.460 -> 0.514, mixture 0.546 -> 0.585, MAE 0.980 -> 0.812. It changes WHICH substitution at a position costs what, rather than rescaling the positions against each other.",
"the_tidy_explanation_was_tested_and_failed": "The obvious reading of the three rejections was 'blurring the position table hurts the slice, so sharpening it should help'. That is a falsifiable prediction, and it is false. Raising POSCOST to a power above 1 (mean-preserving, gamma 1.2 to 2.0) degrades the held-out mixture exactly as shrinkage does - 0.601 down to 0.580 - and Table 5 peaks at gamma = 1.0. The table is at a LOCAL OPTIMUM in both directions, which is a stronger statement than the story it replaced: Gubra's glutamate scan is right as measured, not merely right in rank order, and the honest summary is that LODO's single-substitution folds are simply less discriminating than the multiply-modified slice, not that they reward smoothness as such."
},
"position_table_triangulation": {
"script": "work/triangulate.py",
"question": "POSCOST is one source. Rather than assume the source in the model is the right one, compare it against every other per-position scan of orexin-B the literature provides and ask which is the outlier.",
"sources": "Gubra's glutamate scan (what POSCOST is); Asahi 2003's alanine scan of the FULL-LENGTH peptide, 23 positions, parent pEC50 10.09; Lang 2004's alanine/proline scan of the OxB(6-28) FRAGMENT, 12 Ala and 21 Pro positions, parent 6.89. Three labs, three assays, three perturbation chemistries.",
"pairwise_spearman": {
"Gubra_vs_LangAla": 0.851,
"Gubra_vs_LangPro": 0.654,
"Gubra_vs_AsahiAla": 0.525,
"AsahiAla_vs_LangPro": 0.404,
"AsahiAla_vs_LangAla": 0.214
},
"leave_one_source_out": {
"Gubra": 0.917,
"Lang": 0.582,
"Asahi": 0.547
},
"conclusion": "Gubra's glutamate scan predicts the mean of the other two at rho +0.917, far better than either of them predicts the remaining pair, and the two ALANINE scans agree with each other least of all (+0.214). The table in the model is the consensus source, not the outlier - which independently explains why mixing Asahi into it degraded every honest fold, and why the sharpen/blur sweep found the published numbers to be a local optimum in both directions. Nothing was fitted to reach this: it is three published tables compared.",
"caveat": "at position 14 the two Ala scans disagree outright - Lang measures a 1.24 log loss, Asahi measures a 0.10 log GAIN - and POSCOST sits between them at 0.65. Positions where independent labs differ by 1.3 log are a floor on what any model of this data can achieve."
},
"conjugation_site_ground_truth": {
"why": "lipid attachment position is the single largest term the model assigns to a conjugate - free at P1-P19 and P23, up to 2.86 log at P25 - and the benchmark's peptides are lipidated. A HELM connection endpoint is a raw monomer index, which is NOT the orexin-B position number when the chain carries an N-terminal cap.",
"check": "for all 108 lipidated peptides in the Gubra slice, the position the featuriser assigns was compared with the endpoint index stated in the HELM.",
"result": "103 peptides carry an [ac] cap and map at index minus one; the 5 without a cap map at index exactly; and in all 108 the monomer sitting at the stated index is the conjugation lysine. 108/108 correct, with the two populations separating cleanly on whether a cap is present - the signature of a correct rule rather than a lucky constant. Locked in as property P28.",
"note": "the gubra_slice 'lipid_at' column is the raw HELM index, so a naive comparison shows 103 'mismatches'. Every one of them is the cap."
},
"truncation_ramp_past_position_12": {
"status": "softened to 0.6 of its extrapolated excess on 2026-10-20",
"what_constrains_it": "nothing in the training table. The measured points stop at OxB(12-28) amidated = 5.98; the only peptides starting past 12 are Lang's OxB(14-28) and (18-28), both FREE ACIDS at the assay floor, and the missing C-terminal amide alone costs 2.0 in this model. Positions 13-18 were a hand-drawn cliff.",
"contradicting_evidence": "Orexia/Centessa US20250277001A1 Example 4: engineered capped amidated OxB(15-28) analogues reach hOX2 pEC50 >= 10, and OxB(16-28) ones sit below 8.8. The cliff floored both.",
"effect_on_validation": "none measurable. LODO 0.664 -> 0.667, knowledge-only 0.654 -> 0.656, Lang 0.720 -> 0.719, held-out Table 5 0.519 and mixture 0.601 identical to three decimals, because no training peptide lives in the region being changed.",
"why_it_is_worth_doing": "ties. Of 300 random short engineered C-terminal fragments (start 10-19, capped, amidated, 0-2 non-standard residues), 47% were pinned at the 5.3 floor before and 37% after, with distinct values rising from 108 to 122. A tie at the floor contributes nothing to Spearman, and the order among them is monotone in `start` either way, so breaking the ties can only help.",
"honest_caveat": "0.6 is the midpoint of the range swept, not the value that minimises floor ties (0.25 would). No held-out data constrains it. This is a hedge against a chemotype the benchmark does not name - it names lipidation and staples, which are the Gubra and Karhu chemotypes, both of which this model already handles (Karhu fold +0.95). Locked in as property P29.",
"limitation_it_does_not_fix": "the model is a PENALTY model: it can only go down from orexin-B. Orexia recover several logs on a 14-mer through hArg(Et)2, Phg, Hyp(4-OH), N-methylation and an N-cap - engineering that improves on nature. Those changes are scored as substitutions and therefore charged, not credited. Nothing in the available data would let that be fitted honestly."
},
"leave_one_SOURCE_out": {
"script": "work/source_holdout.py",
"question": "LODO holds a PAPER out of the ridge, but the knowledge tables - POSCOST from Gubra's glutamate scan, LIPID_POS_PEN from Gubra's lipidation scan - are the same in every fold. That is why the Gubra fold is excluded from the headline. But the benchmark's peptides are lipidated orexin-B derivatives, i.e. more like Gubra than like anything else on hand, so what forecasts the test set is neither 0.810 (contaminated) nor 0.667 (measured on chemotypes the test set is not made of).",
"design": "rebuild POSCOST from Asahi 2003's independent alanine scan (26 of 28 positions), score the Gubra fold and the never-fitted Gubra Tables 3-5 - then do it again with LIPID_POS_PEN flattened to its mean, since no second source for lipid positions exists. The two levels bracket the honest expectation.",
"results": {
"shipped_Gubra_derived": {
"Gubra_fold": 0.81,
"Table5": 0.519,
"mixture": 0.601,
"LODO5": 0.667
},
"POSCOST_from_Asahi": {
"Gubra_fold": 0.787,
"Table5": 0.424,
"mixture": 0.54,
"LODO5": 0.679
},
"and_lipid_positions_flattened": {
"Gubra_fold": 0.722,
"Table5": 0.374,
"mixture": 0.378,
"LODO5": 0.679
}
},
"reading": [
"the contamination premium in POSCOST is only 0.023 on Gubra-like data (0.810 -> 0.787). The Gubra fold's score is mostly real generalisation, not memorisation of its own scan.",
"the LIPID POSITION table is where the weight is: flattening it costs 0.065 on the Gubra fold, 0.050 on Table 5 and 0.162 on the mixture. On lipidated peptides it is the largest single piece of knowledge the model has, and it is measured, not fitted to the thing it is scored on - Tables 3-5 are different peptides from the Tables 1-2 that calibrated it.",
"LODO5 RISES to 0.679 with the Asahi table, which is contamination running the other way: Asahi's fold inflates once its own scan is in POSCOST, exactly the +0.079 measured separately in negative result 13. It is not evidence that the Asahi table is better."
],
"forecast": "for test-like lipidated orexin-B peptides the expectation is well above the 0.667 headline - around 0.79 on the honest reading - because 0.667 is measured on alanine scans, truncation series and orexin-A analogues, none of which the benchmark says its test set contains. The corroborating number is the never-fitted Gubra Tables 3-5 at 94% of their attainable rho."
},
"lipid_table_sensitivity": {
"script": "work/lipid_sensitivity.py",
"why": "leave-one-source-out showed LIPID_POS_PEN is the heaviest single piece of knowledge the model has on lipidated peptides, and it comes from ONE scan, so each entry carries that assay's noise.",
"degradation": {
"as_measured": {
"Table5": 0.519,
"mixture": 0.601
},
"plus_minus_0.25_log_noise": {
"Table5": 0.453,
"mixture": 0.56
},
"plus_minus_0.50_log": {
"Table5": 0.418,
"mixture": 0.517
},
"plus_minus_1.00_log": {
"Table5": 0.375,
"mixture": 0.467
},
"positions_fully_shuffled": {
"Table5": 0.351
}
},
"reading": "degradation is graceful - half a log of noise on every entry costs 0.10 of Table 5 - and even a fully shuffled table leaves 0.351, so roughly a third of the slice's ranking comes from the lipid positions and two thirds from the rest of the model. The worst of 40 noisy draws was 0.108, so the spread is wide; the measured table is worth having.",
"untested_region": "the held-out slice attaches its lipid at positions 3, 4, 7, 9, 10, 12, 13, 14, 15, 17, 18 and 24 - almost entirely where the table is nearly flat (0.10 to 0.92), with a single site at 24. The table's most consequential entries, P20-P22 and P25-P28 (1.21 to 2.86), are therefore validated by NO held-out data. If the benchmark's peptides are lipidated in the message segment, that region is a prior, not a measurement that has been checked.",
"indexing_verified": "shifting the whole table by -2, -1, +1 or +2 positions and scoring the NEVER-FITTED Gubra Tables 3-5 gives 0.164, 0.299, 0.415 and 0.504 against 0.519 for the shipped indexing. Shift 0 is a sharp optimum, so the table is aligned to orexin-B position numbers and not, for instance, to raw HELM monomer indices - the off-by-one that the N-terminal [ac] cap creates and that had to be verified separately for the conjugation site. Independently, the correlation with POSCOST also peaks at shift 0. This check is now in verify_all.sh and fails the chain if any shift wins.",
"reproduce": "the degradation table is produced by `python -I work/lipid_sensitivity.py --full`; the plain invocation runs only the indexing check, which is what verify_all.sh needs and keeps the chain at about 70 seconds.",
"structural_corroboration": {
"script": "struct/exit_vector.py, run on struct/pdb/7l1u.cif",
"why": "the costly entries of LIPID_POS_PEN (P20-P22, P24-P28) are validated by NO held-out assay data - the slice attaches its lipid almost entirely where the table is flat. The cryo-EM structure 7L1U resolves exactly those residues (N20 is the first with density), so it is the one independent check available, and it is structural rather than assay-based.",
"method": "a conjugate needs an EXIT VECTOR. For each resolved residue the script walks out along the Calpha->Cbeta direction - a virtual Cbeta built from N, CA and C for glycine - and counts receptor heavy atoms within 3.5 A of probe points at 4, 6, 8 and 10 A. A blocked exit vector cannot carry a C16-C18 chain however tolerant the side-chain substitution itself is.",
"result": "Spearman(LIPID_POS_PEN, total blocking atoms) = +0.567 across the nine resolved positions, from structure alone.",
"the_entry_it_vindicates": "P23 = 0.48 stood out as a suspiciously low value between P22 = 2.06 and P24 = 2.28, and looked like a possible transcription error. The structure says otherwise: Ala23's exit vector is clear at every probe distance (0, 0, 1, 1 blocking atoms), pointing into solvent past V209/D211. P20 is likewise completely unobstructed (0 at all four probes) and carries the lowest cost in the region, 1.21. The blocked positions - 22, 24, 25, 28, each with 4-5 atoms at 4 A - carry 2.06, 2.28, 2.86 and 2.25.",
"known_exception": "H21 is heavily enclosed (5/12/16/12) yet costs only 1.28. That is the same residue the structural notes already flag: it makes the largest raw contact count of any orexin-B residue in 7L1U while its alanine scan reads '=', so burial overstates its energetic weight. The assay number is kept; the structure is corroboration, not a replacement.",
"what_the_flat_region_means": "positions 1-19 have no density in 7L1U at all. Every position the receptor does not grip is a position where lipidation is nearly free (0.10-0.92 in the table), which is the same statement read two ways."
}
},
"disulfides_note": "a disulfide written as an R3-R3 connection is charged as a hydrocarbon staple. Orexin-B has no cysteines so this cannot arise for its derivatives, and any 14-18 crosslink does constrain the helix, so it is left as is - recorded because an orexin-A-derived test peptide supplied as HELM would hit it.",
"cross_chemotype_ranking": {
"script": "work/cross_chemotype.py",
"why": "within-paper Spearman is the honest LODO protocol, but the benchmark's test set is ONE assay holding both inactives at 5.3 and optimised peptides - a far wider range than any single SAR series. Pooling papers is the closest available analogue to that shape.",
"numbers": {
"all_five_papers_pooled": 0.878,
"orexinB_plus_orexinA": 0.639,
"unstapled_plus_stapled": 0.771,
"Gubra_slice_plus_Lang_inactives_and_actives": 0.848
},
"caveat": "the truth carries cross-assay offsets the model cannot know, so these are not clean generalisation estimates - they flatter the model where the offsets happen to align with it. They are reported as a RANGE and as a comparison between feature sets, not as a headline.",
"reading": "cross-paper rankings land at 0.85-0.88 and the never-fitted mixed set at 0.848, consistently far above the 0.663 within-paper LODO. A test set with a wide potency range is simply easier to rank than a within-paper alanine scan, which corroborates - from a different direction - the leave-one-SOURCE-out finding that the test-like expectation sits well above the headline."
},
"spearman_clean_4_folds": 0.704,
"term_audit": {
"script": "work/term_audit.py",
"method": "every row is labelled by its dominant modification - substitution, D residue, staple, free acid, short fragment - and the model's SIGNED error is averaged within each class relative to that fold's own overall bias, so cross-assay offsets cancel. A class with a consistent bias is a term whose scale is wrong, which an overall Spearman cannot see because a uniform shift inside one class barely moves the ranking of the rest.",
"result": "after the D-residue fix: substitution -0.06 (n=105, within-class rho +0.811), D-residue -0.17 (n=37, +0.936), free acid -0.02 (n=78, +0.709), short fragment +0.15 (n=18, +0.387), staple +0.41 (n=7). Only the staple class exceeded 0.2, and chasing it is what produced the staple-cost change above. The other terms are calibrated relative to one another."
},
"what_the_protocol_can_see": {
"script": "work/coverage.py",
"point": "leave-one-paper-out measures Spearman WITHIN a paper, so a term whose modification appears in only one paper is constant inside every fold that contains it and absent from the rest. The protocol cannot constrain such a term at all, however good the headline looks. This counts, mechanically, how many folds each modification varies inside.",
"coverage": {
"truncation": "3 folds (Ammoun, Karhu, Lang) - best constrained",
"D residue": "2 folds (Asahi 49%, German 28%) - which is exactly why the D-scan change could be confirmed independently",
"C-terminal amide": "1 fold, and barely: Lang is 100% free acid and every other paper is 100% amide, so the feature is almost a perfect paper indicator",
"staple": "Karhu only",
"alpha,alpha-disubstituted": "Karhu only (plus Gubra Table 4, which is noise-limited at an oracle of 0.45)",
"lipid": "Gubra only, though the never-fitted Tables 3-5 do vary the attachment site across 12 positions"
},
"why_it_matters": "this was derived mechanically, and it explains after the fact why the D-residue recalibration had independent confirmation (+0.099 on German) while the staple recalibration had none. It is the map of which parts of this model rest on a measurement and which rest on a prior."
},
"amide_penalty_is_a_prior": {
"finding": "the 2.0 log C-terminal amide penalty is essentially unconstrained by the available data. Swept from 0.5 to 3.0: the CLEAN 4-fold LODO is flat (0.686-0.693, non-monotone), and the held-out Table 5 and mixture are EXACTLY constant because neither contains a free acid.",
"the_trap": "the one metric that responds is a pooled cross-paper ranking, which climbs monotonically from 0.780 to 0.911 as the penalty grows. That is not evidence about amides: every Lang row is a free acid and Lang's assay reads about 2.5 log below Asahi's, so the metric is measuring how far to shift Lang down. Tuning the amide term on it would be fitting a lab offset. Recorded explicitly because it looks like a clean signal.",
"the_matched_pairs": "three same-sequence amide/acid pairs exist, all cross-lab (German amide vs Lang acid): +3.02, +0.76 and -0.37 log. Two of them are the same length and still disagree by 1.13 log, so they constrain nothing.",
"decision": "left at 2.0, which rests on the structure and the literature - the amidated terminus H-bonds Y354(7.43) in 7L1U and the amide is a long-established requirement - not on fitting. The benchmark lists [am] among its example monomers, so the term will rarely fire on the test set either way."
},
"aib_term_checked_and_left_alone": {
"single_Aib_is_confirmed": "Gubra Table 4 turns out to be a SINGLE-Aib scan: all 31 peptides carry exactly one Aib, at orexin-B positions 17-22, and every one stays between pEC50 8.96 and 10.00. The model charges 0.2 for a lone Aib outside the message segment, which is effectively free - so that branch of the term is independently confirmed. It had never been checked.",
"the_pair_cost_is_a_prior": "Karhu's 3EL carries TWO Aibs at orexin-B 18 and 22 - placed i,i+4 as a staple surrogate - and loses 3.13 log against her matched parent. The model's hand-set 0.2 + 1.2*(n-1) gives 1.40. That is the ONLY measurement of an Aib pair in any source available.",
"why_it_was_left_at_1.4": "raising it to the measured 3.1 changes nothing measurable - CLEAN LODO 0.690, Karhu 0.954, Table 4 0.138, Table 5 0.519, identical to three decimals whether the new cost is applied to any pair or only to i,i+3/i+4 pairs - because Table 4 has no pairs and Karhu has exactly one such row. The coverage map says why: alpha,alpha-disubstitution varies in Karhu only.",
"the_asymmetry_with_the_staple_change": "the staple level WAS changed on a similar argument, and the difference is the evidence. There, ten measurements agreed in rank (Spearman +0.923) and sat a uniform 1.04 log below the model. Here there is one datum. Acting on n=1 with no measurable consequence, and needing an extra unvalidated 'helical pair' condition to avoid over-penalising distant pairs, would be fitting the only study available rather than correcting a term.",
"what_a_reader_should_know": "if the benchmark's peptides carry Aib PAIRS, this model probably under-penalises them by about 1.7 log. Singles are right."
},
"lang_actives_decomposed": {
"the_standing_claim": "method.md had said for many sessions that fine SAR is poor, on the strength of Lang's actives ranking at +0.392 against a +0.880 noise ceiling - 44% captured, the largest absolute gap anywhere.",
"decomposition": {
"Ala substitutions (n=12)": 0.745,
"Pro substitutions (n=21)": 0.71,
"unnameable residues (n=15)": -0.006,
"multiple substitutions (n=9 actives)": -0.017,
"non-contiguous length variants (n=7 actives)": -0.143
},
"what_the_failures_are": [
"UNNAMEABLE: 15 rows where the backbone fragmenter could not name a residue, because ChEMBL deposits these as SMILES only. They get a neutral placeholder and the model has literally no information about them. The test set supplies HELM with named monomers.",
"NON-CONTIGUOUS: the seven actives here are orexin-A fragments starting at OxA 2, 4, 6 or 8, which leaves FREE CYSTEINES whose disulfide partners have been truncated away. Lang measures them as weak; the model has no unpaired-cysteine term and simply rewards length, predicting 6.3 to 7.7 against a flat measured 5.6 to 6.5. Orexin-B has no cysteines, so an orexin-B derivative cannot reproduce this.",
"MULTIPLE: nine actives spanning only 1.3 log, close to the assay's resolution."
],
"restricting_to_the_test_like_subset": {
"all actives": "rho +0.392, n=60, 44% of ceiling",
"minus unnameable residues": "rho +0.477, n=50, 54%",
"orexin-B scaffold, all residues named, no free cysteines": "rho +0.567, n=40, 63%"
},
"conclusion": "the two classes the knowledge tables are built for - single substitutions on an orexin-B scaffold - rank at 0.71 to 0.75. The classes that rank badly are a ChEMBL formatting artifact and a chemotype orexin-B derivatives cannot have. The honest figure for the benchmark's chemotype is +0.567, not +0.392, and method.md has been corrected."
},
"measured_versus_prior": {
"script": "work/provenance.py, now in verify_all.sh",
"why": "several terms come from a published scan and several do not, and over many sessions the second group grew - a truncation floor whose magnitude was chosen on one fold, an N-methyl cost transferred from the D-scan, a disguise term whose threshold is read off the library. Each was added because nothing measurable moved, which is a reasonable test for 'does no harm' and a bad one for 'is supported'. So: how much of the penalty do they actually carry?",
"method": "each term is switched off in turn over 260 test-like peptides - the 110 never-fitted Gubra Tables 3-5 plus 150 random analogues - and the change in the TOTAL penalty is attributed to it. Switching off is not perturbing, so these are shares of the penalty, not sensitivities.",
"mean_total_penalty": 1.4,
"measured": {
"lipid position (Gubra Table 2)": 0.476,
"POSCOST (Gubra glutamate scan)": 0.283,
"diacid and acyl (Gubra Table 5)": 0.072,
"D and N-methyl (Asahi D-scan)": 0.055,
"staple (Karhu)": 0
},
"prior": {
"truncation ramp past position 12": 0.022,
"alpha,alpha-disubstitution pair": 0.002,
"truncation-context floor": 0,
"disguise (decorated stand-ins)": 0,
"C-terminal amide": 0
},
"result": "measured 97%, prior 3%.",
"reading": "the priors are real but carry about a thirtieth of the penalty on peptides like the test set. They exist for shapes the test set MAY contain - short C-terminal fragments, N-methylation in the message, a decorated residue standing in for its own parent - and on the peptides it probably does contain they are nearly silent. The staple term reads 0.000 only because this population has no staples, and the amide term because all 260 are amidated.",
"the_one_that_deserves_scepticism": "the truncation-context floor contributes 0.000 here but +0.045 on German, and its magnitude was chosen on German, which is one of the four clean folds. Its +0.010 on the clean LODO is therefore partly self-referential. It is kept because the mechanism is supported by two labs agreeing at rho 0.81 and the knee is read off Ammoun rather than swept - but a reader discounting that +0.010 would be right to."
},
"patent_prose_cross_check": {
"script": "work/patent_prose_check.py, now in verify_all.sh",
"what_is_new": "Google Patents now serves the WO2025252662A1 DESCRIPTION. It did not in the sessions where Tables 1 and 2 were transcribed from image scans on WIPO, so the patent's own prose is an independent witness to tables that had only ever been checked against the scans themselves.",
"the_two_statements": [
"glutamate scan: 'the polypeptides having a glutamate (E) residue in one of the positions selected from P7, P10-11, P14-15, P20-22, and P24-28 had a pronounced decrease in hOX1R and hOX2R potency' against preferred 'P1-6, P8-9, P12-13, P16-19 and P23'",
"lipidation scan: 'the positions P1-19 and P23 were identified to be suitable for introducing a lipidated lysine residue'"
],
"result": {
"POSCOST AUC(pronounced > preferred)": 0.974,
"POSCOST means": "1.37 against 0.10",
"LIPID_POS_PEN AUC(unsuitable > suitable)": 1,
"LIPID_POS_PEN means": "1.86 against 0.60, with NO suitable position above the lowest unsuitable one"
},
"why_it_matters": "these are the two heaviest terms in the model - on test-like peptides they carry 0.283 and 0.476 of a mean 1.40 penalty - and the lipid table's costly half had previously been corroborated only by the cryo-EM exit vectors, with no assay data holding it out. The patent states P1-19 and P23 are the suitable sites and the table separates them perfectly.",
"the_one_imperfection": "P23 sits at 0.76 in POSCOST while the prose groups it with the preferred positions, above five the prose calls pronounced. Sweeping it to 0.50, 0.30, 0.10 and 0.00 makes every measure slightly WORSE and then flat - clean LODO 0.700 to 0.698, Asahi 0.749 to 0.745, held-out Table 5 0.519 to 0.516, mixture 0.601 to 0.597 - so the transcribed number is better supported than the prose's binarisation, which only distinguishes 'pronounced' from 'not'. Left at 0.76 and recorded, since the conflict is real even though the data settles it."
},
"calibration_grid_boundary": "the minimax calibration grid stopped at gain 2.4 and the optimum sat on that edge, which is not an optimum. Extended to 4.0: the best is still centre 7.2, gain 2.4, now interior (2.8 scores 0.964 against 0.957 on worst-case MAE). The calibration is sound under its own criterion. The model still under-predicts the never-fitted slice by 0.85 log, but that is the minimax hedge doing its job - the criterion spreads its bet over assumed test ceilings from 8.0 to 10.0, and narrowing it would be guessing the test assay to improve a secondary metric.",
"scalars_rechecked_against_the_current_score": {
"script": "work/rescan_scalars.py",
"why": "w_ridge, rscale, tau and the p-norm exponent were set many sessions ago against a knowledge score that has since changed substantially - Grantham distance replaced a binary rule, the D-residue term was rebuilt from Asahi's scan, the staple level moved onto Karhu's measurements, and truncation-context, N-methyl and disguise terms were added. A scalar tuned against the old score is not necessarily right for the new one.",
"w_ridge_rscale_tau": "all three remain within 0.004 of their optimum on the clean 4-fold LODO, the only arbiter that can see them (the held-out slice is scored knowledge-only, so the ridge does not enter). w_ridge peaks at 0.025 against the shipped 0.05 (0.704 vs 0.700), rscale at 0.8 (0.704), tau at 4.5 (0.702). Those margins are inside the noise of a 136-row estimate and the measure is the one repeatedly flagged as partly self-referential, so none was moved.",
"the_p_norm_finding": "the exponent is the interesting one. The clean LODO is FLAT from p=2 to p=12 (0.699 to 0.701), while the never-fitted slice improves MONOTONICALLY: Table 5 goes 0.493, 0.519, 0.529, 0.536, 0.538 and the mixture 0.559, 0.601, 0.623, 0.631, 0.643 at p = 2, 3, 5, 6, 12. An earlier sweep had recorded it as 'flat over 2-4', which is true of LODO and not of the slice.",
"why_it_was_not_followed": "there is no interior optimum. p -> infinity is max(), where only the single worst liability counts and the model can no longer tell one mild modification from five. A parameter whose best value is 'as extreme as possible' is usually a metric rewarding a degenerate limit rather than a real effect, and the slice - 110 optimised peptides carrying many mild modifications - may simply contain no case where that distinction is tested. Picking p=5 because the limit is uncomfortable would be arbitrary, so p stays at 3, the value chosen with a stated rationale: keep the worst liability dominant while still letting further ones accumulate.",
"what_was_checked_before_declining": "p=5 and p=6 were installed and run end to end. Both pass the 500-molecule shape fuzzer, and the stacking behaviour barely differs - five message alanine substitutions cost 1.5x a single one at p=3 and 1.4x at p=5 - so the concern that a higher exponent would destroy the dose-response was NOT borne out. The decision rests on the absence of an optimum, not on a measured harm."
},
"what_each_held_out_set_actually_tests": {
"the_puzzle": "the p-norm exponent sweep had no interior optimum: the clean LODO was flat from p=2 to p=12 while the never-fitted Table 5 improved monotonically. Declining to follow a boundary was the right call but a weak explanation, so the mechanism was tracked down.",
"the_mechanism": "on Table 5 the substitution p-norm carries essentially NO signal. Ranking by its largest term alone gives rho +0.078 and by the sum of its terms -0.155, against the full model's +0.519 - yet the model's residual correlates +0.451 with the penalty and +0.340 with the largest term. The term is injecting noise, not information, and raising p helps only because it shrinks that noise. There is no interior optimum because what the slice actually wants is the substitution term switched off, and p is the only knob that approaches it.",
"where_the_noise_comes_from": "not POSCOST. Zeroing every POSCOST entry below 0.10, 0.25, 0.35 or 0.50 changes nothing, because POSFLOOR replaces a zeroed entry with 1.0 x IMPORTANCE. Table 5's ~4 small terms per peptide are the FLOOR, at positions where the glutamate scan measured zero.",
"and_the_floor_is_already_right": "POSFLOOR swept at 0, 0.25, 0.5, 0.75, 1.0 and 1.5 has a clean INTERIOR optimum on the clean LODO at exactly the shipped 1.0 - 0.679, 0.685, 0.688, 0.696, 0.700, 0.695 - and Table 5 is tied-best at 0.75-1.0. Unlike p, this parameter has a real optimum and it is where it is set.",
"the_reframing_that_matters": "Table 5 is an arbiter for the CONJUGATE machinery - lipid position, linker, acyl - and barely tests the substitution tables at all. Its 69 peptides share a common set of deliberately tolerated Glu and Lys substitutions and differ mainly in conjugate chemistry. The substitution tables are tested by Lang, Asahi and German, which is to say by LODO. Several past decisions were weighed partly on Table 5; for substitution-table changes that evidence was measuring noise reduction rather than added signal - still a real improvement, but a different claim.",
"the_trade": "the slice wants the substitution machinery quieter and the alanine scans want it exactly as loud as it is. The shipped value is the alanine scans' optimum, which is the right trade, because the substitution tables exist to serve precisely the kind of data the alanine scans provide."
},
"clean_lodo_is_also_partly_in_sample": {
"script": "work/trunc_floor_audit.py",
"how_found": "Error analysis of German (the weakest non-noise-limited fold, +0.47 against a 0.82 ceiling) led to the position-cost floor, whose source comment admits 'The magnitude was chosen on German, which is one of the four clean folds, so the gain there is partly in-sample.' The same audit just applied to Table 5 therefore had to be applied to the HEADLINE number.",
"sweep_of_TRUNC_FLOOR_EXTRA": {
"0.00": "German +0.421 CLEAN +0.690 honest-5 +0.708",
"0.50": "German +0.449 CLEAN +0.696 honest-5 +0.712",
"1.00 (shipped)": "German +0.466 CLEAN +0.700 honest-5 +0.715",
"1.25": "German +0.472 CLEAN +0.701 honest-5 +0.716",
"2.00": "German +0.499 CLEAN +0.707 honest-5 +0.720",
"Lang / Karhu / Ammoun": "+0.718 / +0.954 / +0.836 at EVERY value - the constant only touches truncated peptides",
"Gubra Table 4": "+0.107 at every value (flat, so no held-out signal)"
},
"result": "De-contaminated CLEAN LODO is +0.690; the reported +0.700 overstates by 0.010. The constant's in-sample gain on German itself is +0.045.",
"why_the_constant_was_left_alone": "1.0 is NOT the argmax - German keeps improving to +0.499 at 2.0, and CLEAN to +0.707. Had it been tuned hard on German it would sit at 2.0, so the shipped value is conservative. Raising it would buy LODO by fitting harder on a fold that is supposed to be clean, while Table 4 - the one genuinely held-out table - is flat across the entire sweep and gives no support. Under the project's standing rule (never-fitted data wins) the value stays at 1.0 and the honest figure is reported instead.",
"scale_vs_table5": "Worth contrasting: the Table 5 linker terms cost 0.48 of Spearman when ablated, this one costs 0.010 of CLEAN LODO. Same class of defect, two orders of magnitude apart in consequence."
},
"actives_only_generalisation": {
"script": "work/actives_only.py",
"why": "The contract records inactives at about pEC50 5.3, i.e. TIED in the truth vector, so they contribute separation (already AUC 1.000) but almost no ranking. The score therefore rests on ordering ACTIVES, which every all-rows figure in this manifest flatters.",
"per_fold_actives_only": {
"Lang2004": "+0.446 (n=60, active span 2.53 log)",
"Asahi2003": "+0.733 (n=58, 3.88)",
"German2013": "+0.437 (n=28, 3.65)",
"Karhu2018": "+0.800 (n=10, 4.94)",
"Ammoun2003": "+0.429 (n=14, 1.10)",
"Gubra2025": "+0.797 (n=51, 3.26)",
"Gubra slice 3-5": "+0.368 (n=110, 2.08) - the most test-like set"
},
"headline": "n-weighted actives-only Spearman +0.533 over 331 actives, against +0.70-0.75 for the same folds scored with their floor compounds included. (Measured +0.523 at the former w_ridge=0.05; re-measured at 0.025.)",
"what_predicts_it": "Active potency SPAN, not chemotype: the wide-span sets rank well (Karhu 4.94 log -> +0.80, Asahi 3.88 -> +0.73) and the narrow ones badly (Gubra slice 2.08 -> +0.34, Ammoun 1.10 -> +0.43). This is the noise ceiling showing through - a narrow span means assay error is a larger share of the spread - and it is consistent with the per-table oracle estimates already recorded (Table 4 ceiling 0.45, Table 5 ceiling 0.545).",
"expectation_for_the_test_set": "The prompt says inactives are present at ~5.3, so the test span should be wide (5.3 to ~9.5). The realistic expectation is therefore nearer the mixture figure (+0.586) than the narrow-slice figure (+0.335): the model separates actives from inactives essentially perfectly and then orders the actives at roughly +0.4-0.5.",
"harness_fault_found_and_fixed": "First run of this script fed every fold a sequence built as ''.join(residues) alongside its SMILES. For Asahi that silently cut the fold from +0.746 to +0.501: joining multi-character monomers (dL, meL) with no delimiter is ambiguous, and the sequence path takes precedence over SMILES, so a corrupt string overrode a good structure. Not a bundle defect - the contract guarantees HELM on every test row, and property P44 already covers HELM-vs-SMILES disagreement - but it is the same unbracketed-monomer failure mode as fault 7, reappearing in test code. The script now falls back to a joined residue list only when the fold has neither SMILES nor HELM (Karhu, Ammoun, which are single-character)."
},
"staple_machinery_audit": {
"why": "The prompt names hydrocarbon staples as one of three modification classes in the test set, but the staple cost rests on Karhu's 13 OX2R rows - the thinnest evidence base of any term. Audited for the fault class that has hit this project twice: a modification the featuriser does not see, scoring as wild type.",
"no_fault_found": true,
"position_profile_vs_an_independent_source": "Stapling orexin-B at i,i+4 for every i from 1 to 24 gives a monotone penalty ramp (drop 2.25 log at 1-5 rising to 3.96 at 24-28). Spearman against the summed POSCOST of the two replaced positions - which comes from the Gubra glutamate scan, a completely independent measurement - is +0.861. The 4-bucket step function is therefore corroborated out of source, the same way LIPID_POS_PEN was corroborated against cryo-EM exit vectors (+0.567).",
"symbol_coverage": "S5, R8, S8, R5, X3, X4, X5, X7, X8 all present in STAPLE_SYMBOLS and in the monomer library; B5, S3, R3 are in STAPLE_SYMBOLS but absent from the library, and are still flagged because the test is name-based. No gap.",
"notation_independence": "An S5/R8 i,i+7 pair and an S5/S5 i,i+4 pair each score IDENTICALLY with and without an explicit CHEM crosslink (6.23/6.23 and 6.72/6.72), so a staple written without a bridge is not missed. No tested notation scored a stapled peptide as wild type.",
"limitation_characterised_not_fixed": {
"finding": "Every one of Karhu's staples is span 4. _STAPLE_COST is calibrated on i,i+4 ONLY; spans 3, 7 and 11 are extrapolations whose cost moves only when the bridge's top position crosses a bucket edge. Holding the anchor fixed, i+3 / i+4 / i+7 differ by under 0.12 log, while i+11 drops 0.3-0.6.",
"chemically_backwards_case": "At anchors 6 and 11 the model scores an i,i+3 staple slightly BETTER than i,i+4 (7.29 vs 7.20; 6.82 vs 6.71), because it sees only which positions were replaced. A real i,i+3 hydrocarbon staple is geometrically strained and should be worse.",
"why_not_fixed": "A span/strain term would be a pure prior with no measurement behind it, in a model that attributes 97% of its penalty to measured scans, and it would be fitted against the Karhu fold that currently sits at +0.954 - the same trap documented for Table 5 and for TRUNC_FLOOR_EXTRA. The exposure is also small: i,i+4 is the standard geometry and the only one the single orexin staple study used."
},
"locked_in": "Property P45: an S5/R8 i,i+7 staple -- a symbol pair and a span absent from all training data -- must be seen, must cost at least 1 log, and must read identically with and without an explicit CHEM bridge. 45/45 hold."
},
"ridge_weight_re_derived_after_the_audits": {
"scripts": "work/ridge_weight_redux.py, work/ridge_bootstrap.py, work/t4_bootstrap.py",
"why": "w_ridge was cut 0.10 -> 0.05 using 'the held-out slice' as never-fitted data. The contamination audits showed Table 5 inside that slice is graded largely by constants fitted to it, so the decision rested on evidence that no longer stands up and was re-run.",
"sweep": {
"w=0.000": "CLEAN +0.688 HON5 +0.709 Table4 +0.138 Table5 +0.519 mixture +0.601",
"w=0.025": "CLEAN +0.704 HON5 +0.717 Table4 +0.094 Table5 +0.519 mixture +0.606",
"w=0.050 (old)": "CLEAN +0.700 HON5 +0.715 Table4 +0.107 Table5 +0.513 mixture +0.586",
"w=0.100": "CLEAN +0.690 HON5 +0.702 Table4 +0.124 Table5 +0.483 mixture +0.582",
"w=0.300": "CLEAN +0.638 HON5 +0.661 Table4 +0.127 Table5 +0.175 mixture +0.421",
"AUC": "1.000 at every value"
},
"paired_bootstrap_0.025_vs_0.05": {
"mixture": "+0.0203, 95% CI [+0.0008, +0.0459], P(better) 0.981",
"CLEAN LODO": "+0.0032, 95% CI [-0.0189, +0.0307], P(better) 0.596",
"Table 4": "-0.0115, 95% CI [-0.0859, +0.0535], P(0.025 better) 0.345"
},
"how_the_conflict_was_resolved": "Table 4 is the only genuinely held-out table and it nominally prefers 0.05, which under the standing rule (never-fitted data wins) would end the matter. But bootstrapping Table 4 shows it carries NO signal on this question: every contrast spans zero widely (even w=0.20 vs 0.05, +0.045, sits at P=0.823) and its curve is non-monotone in w. A set that cannot discriminate cannot adjudicate. The only measure that does discriminate is the mixture, at P=0.981, and it agrees with the direction of every earlier finding - the ridge is trained on Ala scans and is out of domain for optimised lipidated peptides, so less of it is safer.",
"decision": "w_ridge 0.05 -> 0.025. Headline CLEAN LODO +0.700 -> +0.704, honest-5 +0.715 -> +0.717, mixture +0.586 -> +0.606, Table 5 +0.513 -> +0.521, Table 4 +0.107 -> +0.094.",
"follow_on_staleness_found": {
"bmean": "config.json carried bmean 6.515993, the LODO blend mean at w=0.05. At 0.025 the true mean is 6.490691, so every prediction sat 0.061 pEC50 low - invisible to Spearman, but it pushed mixture MAE from 0.768 to 0.825. Corrected; MAE back to 0.777.",
"calibrate.py": "defined its own TAU, WR, RSCALE = 4.0, 0.05, 1.3 at module level (dead but misleading) and hardcoded the 'shipped setting' row as centre 7.0 / gain 1.3 when config holds 7.2 / 2.4. Both now read load_cfg(). Same drift class as the earlier mapping.py fault.",
"gain_and_centre": "refitted at the new weight: minimax optimum moves to 7.2/2.8 (worst 0.963) but shipped 7.2/2.4 gives worst 0.975 and a much better mean (0.799 vs 0.867), so it was kept.",
"table5_ablation_figure": "the linker-ablation number is weight-dependent: +0.032 at w=0.05, +0.067 at w=0.025. The conclusion is unchanged."
},
"honest_caveat": "The gain is small and was selected on data already examined many times. Mixture +0.020 at P=0.98 is the whole of the positive evidence; CLEAN LODO is a coin flip and Table 4 is silent. It is defensible mainly because it moves the model toward the pure-knowledge end, which every independent result has favoured."
},
"config_consistency_guard": {
"script": "work/config_consistency.py, wired into verify_all.sh",
"why": "config.json mixes CHOSEN hyperparameters with values DERIVED from the data (mu_r, sd_r, bmean). A derived value goes stale whenever anything upstream moves, and nothing else in the suite can see it: the bundle remains perfectly self-consistent with its own wrong number, so fidelity, relocation, dryrun and all 45 metamorphic properties still pass.",
"the_fault_that_motivated_it": "bmean stayed at 6.515993 - the LODO blend mean at w_ridge=0.05 - after the weight moved to 0.025, where the true value is 6.490691. Every prediction sat 0.061 pEC50 low. Spearman could not see it (a constant shift) but mixture MAE went 0.768 -> 0.825.",
"checks": [
"mu_r recomputed from the shipped ridge, exact match",
"sd_r recomputed from the shipped ridge, exact match",
"feature_names identical to the fitted model's",
"bmean within 0.01 of all three defensible definitions",
"those three definitions within 0.01 of each other"
],
"negative_test": "The guard was re-run with the stale 6.515993 injected back into config.json and correctly FAILED that one check, exiting 1. A guard that has never been seen to fail is not evidence of anything.",
"current_state": "5/5 pass. mu_r and sd_r match to 0.00e+00 - they are w-independent, so they were never at risk. The three bmean definitions span 0.002 blend units (0.005 pEC50): fit_final.py writes the in-sample mean while calibrate.py chose CENTRE/GAIN against the LODO mean, a definitional mismatch that is immaterial at this spread and is now commented at both sites rather than silently relied on."
},
"pearson_r_the_unmeasured_scored_metric": {
"script": "work/pearson_audit.py",
"gap_it_closes": "Scoring is Spearman (headline) PLUS Pearson r and MAE. Spearman was optimised and MAE was minimax-calibrated, but Pearson had never once been measured in this project. Re-reading prompt.md surfaced it.",
"why_it_is_a_separate_question": "Pearson is invariant to centre and gain, both affine, so it cannot be read off the MAE calibration. It is driven only by the NONLINEAR parts of the map: the exp() in know_of (tau), the soft floor, and the clip at hi. Spearman is blind to all three.",
"result": {
"n-weighted over folds": "Spearman +0.717, Pearson +0.819",
"Lang2004": "+0.739 / +0.871",
"Asahi2003": "+0.746 / +0.901",
"German2013": "+0.487 / +0.818",
"Karhu2018": "+0.922 / +0.832",
"Ammoun2003": "+0.496 / +0.274",
"Gubra2025": "+0.794 / +0.802",
"Gubra slice": "+0.368 / +0.406",
"mixture": "+0.606 / +0.955"
},
"conclusion": "Pearson is HEALTHIER than Spearman almost everywhere, so the nonlinear map is not costing anything on it and no change is warranted. Zero predictions reach the hi clip (max 9.459) and only 13 of 129 sit at the floor, so neither saturation is distorting the linear fit.",
"one_exception": "Ammoun2003 is the only fold where Pearson falls well below Spearman (+0.274 vs +0.496). It is the smallest and narrowest fold - n=15 over a 1.10 log span - so a couple of points dominate the linear fit while barely moving the ranks. Consistent with the noise-ceiling picture already recorded for narrow-span sets rather than a distinct defect.",
"useful_property_established": "Because Pearson is affine-invariant and Spearman is monotone-invariant, the minimax choice of centre and gain trades against MAE ALONE and cannot harm either correlation metric. That makes the calibration a free parameter with respect to two of the three scored metrics."
},
"unknown_monomer_robustness": {
"script": "work/unknown_monomer_fuzz.py, wired into verify_all.sh",
"why": "The test set is unpublished and the prompt only promises that bracketed monomers are 'non-standard'. A symbol outside the 3,255 in the library that raised would cost the WHOLE run, not one row - the same blast radius as the three constant-prediction faults.",
"tested": "25 unknown symbols substituted at position 11 (Zzz9, Cit, Orn, Dab, Tle, Oic, Tic, 4Pal, Lys(N3), non-ASCII beta-Ala, the empty string, a bare space, '123', 'A?!#', a 60-character name), plus an unknown inserted, four at once, and all 28 replaced.",
"result": "No exception. 29/29 rows returned, every value finite and <= 15, so the contract holds. 28 nonsense residues score 6.698 against a 9.459 wild type - degraded, not silently wild-type.",
"defect_found_and_characterised_not_fixed": {
"finding": "An UNKNOWN monomer INSERTED outside the message scores +0.046 ABOVE wild type, identically at positions 2, 6, 11, 16 and 20. A chain insertion shifts the register of everything downstream and must never read as an improvement.",
"scope": "Narrow. Inserting a KNOWN residue at the same positions costs 0.002-0.003 (the deliberate allowance that keeps orexin-A analogues, which differ in N-terminal length, from being penalised). Inserting anything at 24 or 27 is charged properly (-0.41 to -2.35), and deletions are charged everywhere (-0.33 to -2.98). Substituting an unknown is also fine. The bug needs unknown AND inserted AND outside the message.",
"magnitude": "+0.046 on a 5.3-9.5 range, about 1%, and position-independent - so it is a feature-level offset, not an alignment failure.",
"why_not_fixed_now": "Found with ~12 minutes left. The insertion window is load-bearing for orexin-A alignment across the Lang, German and Ammoun folds, and this project has already had to revert two late unvalidated changes (Met28 liability, Nle28 bonus). Patching feature code without time to re-run the folds is the known way to turn a 0.046 cosmetic issue into a real regression. Recorded instead.",
"what_shipped": "The fuzz is now in verify_all.sh asserting the property that actually matters - no exception, contract-valid output - so the run-ending risk is guarded even though the +0.046 remains.",
"root_cause_diagnosed_next_session": {
"mechanism": "_classify keeps an unknown backbone monomer in the chain as alanine so position numbering stays correct (features.py ~984, nat='A'), but MonomerProps.get falls back to the LIBRARY MEDIAN for descriptors. So the residue is an alanine positionally and a 202 Da monomer dimensionally: +184 Da, +1 aromatic ring, +14 heavy atoms versus the +55 Da a real alanine adds. Some of those descriptors carry positive ridge coefficients, which is the whole of the +0.046.",
"verdict_reversed": "I called this a fabricated bulky aromatic profile and a defect. On inspection that was an over-call and the fallback is defensible, so it was left alone on the merits rather than only for lack of time.",
"why_the_median_is_actually_right": [
"202 Da is a sensible neutral prior for an unknown NON-STANDARD amino acid, which typically runs 130-250 Da. Alanine at 73 would understate a modified residue at least as badly as 202 overstates it.",
"The 58 unknown occurrences in training are not HELM symbols at all but '?<SMILES>' fragments the backbone converter could not name - genuinely large chemistry, one of them an entire cyclic peptide. For these the median is clearly better than alanine, and switching would have made 40 of 501 training rows worse to fix a hypothetical.",
"The Gubra slice, the most test-like set available, contains ZERO rows with unknown monomers (0 of 110), so the realistic exposure on test-like chemistry is small."
],
"what_remains": "The +0.046 above-wild-type reading for an unknown INSERTED outside the message is still wrong in kind and still unfixed. It is now understood as a second-order consequence of median descriptors meeting positive ridge coefficients, not a bad default. Fixing it properly means making insertion cost independent of the inserted residue's size, which touches the orexin-A alignment allowance and was not worth the risk at 0.046 on a 5.3-9.5 range."
}
}
}
},
"model_notes": [
"Substitution costs come from the Gubra glutamate scan rather than alanine scans: an Ala scan measures the cost of REMOVING a side chain and overstates the cost of CHANGING one at positions 19-23.",
"Costs are aggregated as a p-norm (p=3) rather than summed. This was the single largest correction of the project.",
"Orexin-A analogues are scored against orexin-A as wild type; scoring them against orexin-B makes an alanine scan invisible wherever the two parents differ.",
"A single alpha,alpha-disubstituted residue (Aib) outside the message segment is tolerated (Gubra Table 4); Karhu's ~1300x loss came from a rigidifying Aib PAIR.",
"predict.py now writes a warning to stderr if rows fail to featurise, and the test harness asserts the output is not constant - a silent fall-back to a constant would score ~0.",
"Asahi 2003 is a complete D-amino-acid scan of orexin-B. A flat per-D-residue penalty gave that fold literally zero ranking signal, because a D residue maps to the same natural analogue as its L partner. Weighting the D cost by the curated importance vector lifted the fold from 0.34 to 0.66 and honest LODO from 0.595 to 0.657; only the scalar was tuned, the position shape comes from the pre-existing importance vector.",
"Lipid-linker architecture: regressing Gubra Table 5 (n=69) on diacid / spacer length / acyl length / branching shows the ONLY separable effect is the terminal diacid (-0.76 log). The marginal correlation of spacer length (+0.37) is confounded with diacid and vanishes (+0.01) once it is controlled, so spacer and branching are deliberately not encoded.",
"Staple, alpha,alpha-disubstitution and D-residue costs are aggregated in the SAME p-norm as substitutions. Treating them additively over-penalised peptides carrying a staple plus other modifications; folding them in improved Karhu (0.949->0.965) and the held-out Table 5 (0.470->0.499) at equal LODO.",
"Process note: one knowledge.py patch silently failed to match, leaving the diacid term defined but never called. It was caught because an A/B sweep returned bit-identical results for every parameter value - a constant result across a parameter sweep is a strong signal the parameter is not wired in.",
"HELM-parse guard: every test peptide derives from orexin-B, so a parsed chain that aligns poorly (<0.45 of the query matching either parent) means the parse failed rather than the peptide being exotic. In that case the `sequence` column is used instead, if it aligns at least 0.15 better. Inert on well-formed HELM - all validation metrics are unchanged with it enabled."
],
"inference_robustness": {
"metamorphic_suite": "/task/work/metamorphic.py - 35 properties: row-order and batch-size invariance, duplicate agreement, HELM vs sequence agreement, boundedness, monotonicity under a fatal message-segment mutation, inert N-terminal extension, stray-SMILES independence, whitespace-variant HELM, id preservation, null handling, extra columns, non-string ids, oversized peptides, and agreement between bracketed and inline branch notation.",
"faults_found": [
{
"fault": "pd.NA nulls raise TypeError on a bare truth test (`if x`), which the broad except swallowed",
"impact": "CATASTROPHIC - every row fell back to the constant 7.0, Spearman ~0. Triggered by pandas 'string' dtype, dtype_backend='pyarrow' and dtype_backend='numpy_nullable', i.e. three of five realistic ways to load the test parquet.",
"fix": "all null forms (None, float nan, pd.NA, pd.NaT) normalised to None in _as_list, the single point where the columns are read"
},
{
"fault": "a top-level module named `features`, `knowledge` or `smiles2seq` earlier on sys.path shadows the bundle's own",
"impact": "CATASTROPHIC - import fails, every row falls back to the constant. `features` is a plausible name for an installed package, and the sandbox installs wheels before importing predict.py.",
"fix": "bundle modules are loaded by explicit file path and registered in sys.modules before execution, so their cross-imports resolve to the bundle's copies"
},
{
"fault": "bytes-encoded strings from some parquet writers",
"impact": "would fall back to the constant",
"fix": "decoded in _as_list"
},
{
"fault": "the HELM monomer splitter exploded an unbracketed parenthesised branch, so `PEPTIDE1{...K(Palm)...}` became K, P, a, l, m",
"impact": "SILENT CORRUPTION - four spurious residues, shifting every downstream position. Alignment quality only fell to 0.84, above the 0.45 HELM-parse guard, so nothing caught it. Standard HELM 2.0 expresses branches through the connection section, so this needs a non-canonical writer, but the failure mode is silent rather than loud.",
"fix": "_split_monomers rewritten to keep a parenthesised group attached to the monomer it follows; a bracketed [K(Palm)] and an inline K(Palm) now parse identically (29 residues, alignment quality 0.96) and score within 0.04.",
"locked_in": "metamorphic property P16 asserts the two encodings agree"
},
{
"fault": "HELM connection endpoints were read by regex-scanning the joined connection string instead of positionally, so an unparseable endpoint (HELM's `?:?`) was skipped and the OTHER polymer's index was attributed to the main chain",
"impact": "an unknown attachment point was silently read as residue 1 - a tolerated, near-free position - instead of 'unknown', which carries the 0.8 default penalty. Silently wrong rather than loud.",
"fix": "endpoints are split on '-' and matched positionally against the two polymers; an endpoint that does not match `\\\\d+:R\\\\d+` yields None",
"locked_in": "metamorphic property P17"
},
{
"fault": "with more than one lipid conjugate, lipid_pos took min(sites) - the lowest-numbered attachment",
"impact": "a peptide lipidated at both a tolerated and a damaging position was scored on the tolerated one (P8 reported for a P8+P25 pair), understating the cost",
"fix": "the reported site is now the one with the highest curated importance, i.e. the most damaging",
"locked_in": "metamorphic property P18"
},
{
"fault": "a residue BEARING a lipid was dropped from the peptide chain. _classify removed any monomer matching the lipid/PEG regex before checking whether it resolved to a real residue, so `K(C16)` (N-epsilon-palmitoyl-lysine, a backbone residue) left the chain entirely.",
"impact": "SILENT CORRUPTION of exactly the chemotype the benchmark contains. Position 12 read as a DELETION rather than a lipidated Lys (n_core 27 instead of 28), and the conjugate became position-unknown, taking the 0.8 default penalty instead of the measured 0.61 for P12. Found by scanning all 3,255 library monomers for symbols that resolve to a residue yet would be dropped - only 3 hits, two of them (bAla, gGlu) deliberate spacers.",
"fix": "only an explicitly curated linker, or a lipid/PEG regex hit with NO natural analogue, now leaves the chain",
"follow_on": "keeping K(C16) in the chain then let its acyl bulk inflate the size descriptors, so the same molecule scored 0.29 higher inline than with the acyl as a satellite. Property P19 caught this immediately; size descriptors now use the bare residue, preserving the rule that lipid bulk is not peptide length.",
"locked_in": "metamorphic property P19"
},
{
"fault": "monomer naming variants resolved inconsistently. (a) The D-residue detector required the symbol to END after d+uppercase, so it caught `dL` but missed 79 of the 150 D-residues in the library (`dAbu`, `dCha`, `dOrn`, `dPhe(4-Cl)`...). (b) Three-letter codes resolved to nothing, so `Leu` and `D-Leu` became unknown placeholders - a spurious substitution at that position. (c) WORST: the decorated symbol was resolved BEFORE the D-prefix was stripped, so `dNle` picked up the monomer library's fingerprint guess instead of the curated override. Norleucine mapped to M, but dNle to K and D-Nle to L - three spellings, three different residues, one of them swapping a hydrophobic side chain for a charged one.",
"impact": "silent mis-identification of exactly the non-standard residues the benchmark names ([Nle], [hR]) in their D forms, plus a spurious substitution penalty for any three-letter spelling.",
"fix": "one shared is_d_residue() used by both modules (and excluding `deamino-*`, which is not D); MonomerDB.natural() resolves the D-stripped BASE before the decorated symbol so curated knowledge wins, and accepts three-letter codes.",
"follow_on": "MonomerProps.get had the same blind spot and silently returned the library MEDIAN (mw 202) for `D-Leu` instead of leucine's (mw 115), so identical residues gave different molecular descriptors. Property P20 caught the residual 0.15 discrepancy after the first fix; the lookup now mirrors natural().",
"locked_in": "metamorphic property P20"
},
{
"fault": "a peptide supplied only as SMILES was read in whichever direction the depositor drew it. The backbone fragmenter walks from an arbitrary terminus, and ChEMBL deposits the entire Asahi 2003 series C->N - 118 of 333 SMILES rows, orexin-B itself (CHEMBL413434) among them.",
"impact": "CATASTROPHIC for SMILES-only rows. Reversed orexin-B aligns so badly that the knowledge score pins it at the inactive floor: predicted 5.30 against a true 8.3-9.4. Invisible to every validation number, because the TRAINING loader (prep_chembl.py) re-oriented molecules by alignment and inference did not - the two sides of the project disagreed and nothing compared them.",
"fix": "features.residues_from_row now aligns the SMILES-derived monomer list both ways against orexin-A/B and reverses it when the reversed reading is clearly better (margin 0.10 identity). All 333 SMILES rows now parse forward; orexin-B from the reversed deposit scores 9.41, matching its HELM form. Locked in as property P22.",
"how_found": "fidelity.py - replaying the whole training table through the shipped bundle and comparing with the training-side pipeline. Agreement was rho 0.12; it is now 0.9997. This check is in verify_all.sh."
},
{
"fault": "decorated monomer names resolved or failed by accident of library coverage. `hR` is given in the benchmark's own prompt, and `hArg`, `hSer`, `hCys`, `hPhe`, `hGlu` and `hLys` happen to sit in the 3,255-monomer library - but `hLeu`, `hTyr` and `hTrp` do not. Likewise `Glp` and `Met(O)` resolve while the equally common `pGlu` and `MetO` did not, and no N-methyl spelling resolved at all.",
"impact": "MODERATE and position-specific. An unresolved monomer has no natural analogue, so it contributes nothing to the alignment, leaves a hole at its orexin-B position, and takes the library MEDIAN descriptors. A homo-leucine at Leu20 would be scored as a deletion rather than a near-conservative swap. The benchmark explicitly promises non-standard amino acids, so this is in-domain.",
"fix": "features.undecorate() applies homo-, N-methyl- and alias rules (pGlu/Glp, MetO/Met(O)) as a LAST resort, after every direct lookup has failed, so it can only add resolutions and never change one that already worked - verified by all validation numbers being bit-identical. MonomerProps.get mirrors it, and the MetO alias points at the library's own Met(O) entry rather than at Met, so the sulfoxide keeps its real descriptors. beta/gamma prefixes are deliberately NOT stripped: bAla and gGlu are spacers here and must not consume a position number. Locked in as property P23.",
"how_found": "a coverage audit of 113 plausible modified-peptide symbols against MonomerDB.natural(), after noticing the homo- family was inconsistent."
},
{
"fault": "the HELM monomer splitter exploded an UNBRACKETED multi-character monomer name into one-letter codes. `PEPTIDE1{...T.M.am}` became ...T, M, a, m - the C-terminal amide lost and two spurious residues appended.",
"impact": "LATENT, and large when triggered: orexin-B scored 6.67 instead of 9.40, a 2.7 log error, because the missing amide alone costs 2.0 and the two phantom residues shift the C-terminal alignment. Strict HELM 2.0 brackets every multi-character monomer, so no training or held-out row triggers it - which is exactly why nothing would have caught it if a test-set producer were less strict.",
"fix": "an unbracketed run between dots is now kept whole when it NAMES a monomer (resolves in the library, the three-letter table or the cap list) and split into one-letter codes otherwise. Strictly additive: every training and held-out row parses identically and all reported metrics are bit-for-bit unchanged. Locked in as property P26.",
"how_found": "input-variation stress testing of predict.py - non-default and string indexes, duplicate ids, extra columns, pyarrow dtypes, trailing whitespace, reversed order. Those all passed; the reference value they were compared against was wrong, and only looked wrong because 6.67 is not what orexin-B scores."
},
{
"fault": "smiles2seq.py imported rdkit at module scope, and predict.py loaded it in the same try block as the featuriser. The scoring sandbox provides numpy, pandas, pyarrow, scipy, scikit-learn, torch, transformers, safetensors, accelerate, peft and pyyaml - the task prompt names rdkit explicitly as something you must ship yourself. This container has rdkit installed, so the import always succeeded here.",
"impact": "RUN-ENDING. ModuleNotFoundError inside load_model() took the featuriser down with it and predict() returned the constant 7.2 for EVERY row: Spearman zero, Pearson zero. No test on the training machine could see it, and `bmb-eval dryrun` PASSES a constant model - it validates the schema, not the content. method.md had claimed for several sessions that inference needs no cheminformatics; that was the design intent and it was not true of the code.",
"fix": "the rdkit import in smiles2seq.py is guarded and sets HAVE_RDKIT; smiles_to_residues and build_dictionary return empty without it; the module-level backbone SMARTS is built only when rdkit is present; and predict.py loads smiles2seq in its own try block so its failure cannot reach the featuriser. The SMILES path is a last-resort fallback: contract.json marks `helm` and `sequence` non-nullable and only `smiles` nullable, so HELM always carries the peptide. No wheel is shipped - a failed offline wheel install is a worse risk than losing a fallback that the contract says can never be needed.",
"how_found": "downloading CPython 3.12 (the sandbox interpreter; this container is 3.11) and running the bundle under it. The very first call returned 7.2 for all seven test peptides."
},
{
"fault": "predict() wrote its 'N rows could not be featurised' warning straight to sys.stderr, and load_model() called traceback.print_exc(). If a harness hands the process a CLOSED stderr, writing raises ValueError: I/O operation on closed file - from inside predict(), after the predictions had already been computed.",
"impact": "would abort the scoring run outright, and only on inputs that contain an unparsable row - so a clean test set would pass and a slightly messy one would crash. With sys.stderr = None instead, print() silently redirects to STDOUT, which pollutes whatever the harness is reading there.",
"fix": "a two-line _warn() in both predict.py and features.py that returns early when stderr is None and swallows any exception from the write. Every diagnostic in the bundle goes through it. Locked in as property P27, which runs the same rows with stderr closed, with stderr None, and normally, and requires identical results.",
"how_found": "working through what the scoring harness could plausibly do to the process that this container does not - after the rdkit fault showed that the gap between the two environments is where the real faults live.",
"principle": "a diagnostic must never be able to break the thing it diagnoses."
},
{
"fault": "the output clip reused the knowledge score's asymptote. config.json's `floor` (5.3) was both the value the exponential decays toward AND the lower bound applied to the final prediction - but the final prediction has been through centre + gain*(blend - bmean) with gain 2.4, so clipping it at 5.3 is a far more aggressive operation than clipping the blend at 5.3.",
"impact": "26 of 247 training rows were pinned to a single value, and 12 of those 26 had truth ABOVE their fold's minimum - rank information destroyed for nothing. Honest LODO was 0.658, not the 0.667 being reported. Clipping is monotone, so it can only CREATE ties, and a tie costs Spearman whenever the truth distinguishes the pair.",
"fix": "the output bound is now a SOFT floor, not a clip. Everything below `floor` is mapped linearly from (soft_lo=2.0, 5.3) into (5.3 - soft_d, 5.3) with soft_d = 0.10. Spearman is invariant to any strictly monotone map, so the full rank gain is kept - LODO 0.658 -> 0.667, German 0.329 -> 0.348 - while every prediction stays within 0.1 of the 5.3 the benchmark records inactives at, so MAE barely moves: 0.814 with the old hard clip, 0.817 now, against 0.845 for a hard clip at 5.0. This strictly dominates both alternatives. Locked in as property P31.",
"how_far_down": "5.0, 4.5, 4.0, 3.0 and no clip at all were swept: LODO is identical at every one of them and MAE keeps rising, so 5.0 captures the whole measurable Spearman gain for a third of the MAE cost. Breaking ties further would be neutral anyway - pairs the TRUTH ties contribute nothing to Spearman however the prediction orders them.",
"how_found": "asking whether the 5.3 floor was throwing away rankable signal, then noticing the harness and the bundle clipped at different points in the pipeline - the second reporting-fidelity gap of this kind.",
"why_linear_not_tanh": "tanh was the obvious smooth choice and is wrong: at soft_d = 0.05 it saturates and re-ties half the values (1,057 distinct out of 2,000 probe points) because tanh(x) reaches 1.0 in float64 for x above about 19. The linear squash keeps all 2,000 and is strictly increasing everywhere.",
"sweep": "soft_d 0.02 / 0.05 / 0.10 / 0.20 all give LODO 0.667 - the gain is guaranteed by monotonicity, so the choice is purely an MAE and float-resolution question. 0.10 was taken for numerical margin; MAE across that range is 0.938-0.943 on the mixture against the hard clip's 0.938."
},
{
"fault": "hydrocarbon staples were invisible in two of the three HELM notations a producer might use. (a) X4, X5 and X7 - the HELM library's names for the olefinic staple residues, and the ones Karhu 2018 uses - were in knowledge.AADI but not in features.STAPLE_SYMBOLS, so a HELM that names the stapled residues without also declaring the olefin metathesis bond was read as two ordinary alpha,alpha-disubstituted substitutions. (b) A staple written as a CHEM polymer bridging two chain positions was read as two CONJUGATE attachments, because any connection involving a satellite was assumed to be a conjugate.",
"impact": "the prompt names hydrocarbon staples as a test-set feature. Case (a) under-penalised by 0.76 log (7.91 instead of 7.15). Case (b) scored a stapled orexin-B at 9.40 - EXACTLY WILD TYPE - a ~2 log error, because the bridge was neither charged as a staple nor lipid-like enough to be charged as a conjugate.",
"fix": "X3/X4/X5/X7/X8 added to STAPLE_SYMBOLS, and a satellite bonded to the chain at TWO OR MORE distinct positions is now a crosslinker by definition - a lipid or PEG hangs off one point. Staple positions are de-duplicated, since a staple declared both ways would otherwise double staple_imp, a ridge feature. Verified that a single-attachment conjugate is still a lipid and not a staple. Locked in as property P32.",
"cost": "honest LODO 0.667 -> 0.663. The loss is a ridge-refit artefact: has_staple and staple_imp are ridge features, so changing what Karhu's rows look like moves the fitted coefficients and hence every fold's 5% ridge contribution. The direct evidence on stapled peptides goes the other way - knowledge-only Karhu improves 0.943 -> 0.960 - and the held-out slice is unchanged. A 0.004 wobble on folds that contain no staples is not worth leaving a 2-log blind spot on a chemotype the prompt names.",
"how_found": "fuzzing staple notation the way lipid notation was fuzzed for P25, after noticing that the lipid work had never been repeated for the other modification the prompt calls out."
},
{
"fault": "an acyl group written INLINE in the chain was not recognised as a lipid. features.LIPID_PAT matches 'stea' but the HELM library's symbol for stearoyl is `Ste`, which is what the training patent writes - 90 times in the held-out slice alone. It worked there only because a SATELLITE polymer is tested by its carbon-chain length rather than by its name, so the same group inside PEPTIDE2{...} was found while `PEPTIDE1{[Ste].R.S...}` was not.",
"impact": "MODERATE and notation-dependent. An inline N-terminal stearoyl got no lipid position at all and fell through to the position-unknown default of 0.80 instead of the measured 0.61 for P1; an inline C-TERMINAL one missed the 2.25 charged at P28, predicting 7.2 where it should predict 6.5. The benchmark's peptides are lipidated, and nothing says they will be written the way the training patent writes them.",
"fix": "a monomer is a lipid if the name matches OR its longest carbon chain is at least 8 - the same test the satellite path already used, now applied to inline monomers too. The separation is clean: Ste is 17, Palm 15, Myr 13, while the longest ordinary residue (Nle) is 4. A residue BEARING a lipid, K(C16) at 15, still stays in the chain because it has a natural analogue. Inline acyl groups with no connection to read a position from now inherit the terminus they sit at. Locked in as property P37.",
"how_found": "probing combinations and notations the training data never contains - lipid plus staple, two lipids, terminal versus side-chain attachment - because the prompt lists non-standard residues, lipidation and staples together and no training row carries more than one of them."
},
{
"fault": "the C-terminal amide requirement asked only whether an amide cap EXISTED, not whether it sat on the message terminus. A peptide extended past Met28 - `PEPTIDE1{...T.M.G.S.G.S.[am]}` - still had cterm_amide = 1 and paid nothing.",
"impact": "the extension scored HIGHER than orexin-B itself: 9.62 against 9.48 for ten appended residues, because the extra residues inflate the size descriptors the ridge reads while no term charged for the loss. Chemically it should behave like a free acid or worse - appending a residue turns Met28's amidated carbonyl into an ordinary backbone amide and moves the H-bond to Y354(7.43) that 7L1U shows anchoring the terminus. A C-terminally extended analogue is a plausible design for a peptide that 'derives from orexin-B'.",
"fix": "a new feature n_cterm_extra counts core residues after the last ALIGNED position, and the 2.0 amide penalty now fires on a missing amide OR a non-zero count. Extensions of 1, 4 and 10 residues now cost 1.89, 1.87 and 1.74 - the same as a free acid's 1.88. Orexin-A is untouched at +0.14, because it aligns to orexin-A where its own C-terminal Leu is the last aligned position, and an N-terminal extension is untouched at +0.01. Locked in as property P38.",
"how_found": "probing chain extensions, after a library-wide audit of the name-based classifiers came back clean and the search moved to molecule shapes no training row contains."
},
{
"fault": "an INSERTION inside the message segment cost nothing. Adding a residue between T27 and M28 scored -0.01 against wild type, while DELETING a residue there costs 3.0 to 3.8. Every position still mapped through the alignment, so no substitution fired, and the knowledge score never read the n_insert feature the featuriser was already computing.",
"impact": "G24-M28 binds in an extended conformation with each side chain in its own subpocket - 7L1U puts I25 between Y343 and F346, L26 against Q134/P131/W120, T27 to N324 and M28 into the lipophilic patch - so one extra residue shifts the register of everything after it. The model called that free.",
"fix": "a new feature n_insert_msg counts unaligned core residues lying BETWEEN the residues mapped to positions 23 and 28, charged at 2.6 each - the same rate as a deletion. Insertions in the message now cost 2.30 against a deletion's 3.03. The 23-28 window is what keeps orexin-A unaffected: its five extra residues relative to orexin-B are N-terminal, so it still scores +0.14, and an insertion after position 10 or 20 is still free. Locked in as property P39.",
"how_found": "work/shape_fuzz.py - see below. It was not a notation bug, so HELM fuzzing could not have caught it, and no fold contains an insertion."
},
{
"fault": "N-methylated residues cost nothing. `meL` - the HELM library's symbol for N-methyl-leucine, one of 22 such monomers - resolves to L, so at a leucine position aa == wt and no substitution fires. Methylating the backbone amide at L26 scored -0.02 against wild type.",
"impact": "the same blind spot as the D-residue term, which the model already patches for exactly this reason: a backbone modification sharing its parent's natural analogue is invisible to the side-chain table. N-methylation removes an H-bond donor and biases the local conformation, and G24-M28 binds extended with its backbone read by the receptor. It is also a standard medicinal-chemistry move on peptides, so a test set of 'modified peptide agonists' may well contain it.",
"fix": "features.is_n_methyl covers the library's 22 N-methyl monomers plus sarcosine and the hand spellings NMeLeu / N-Me-Asn / MeLeu, while excluding Met, Met(O) and Met_O2. Those residues are charged on the SAME measured profile as D inversion - d_cost, from Asahi's D-scan - because there is no N-methyl scan for orexin and that profile has the right shape for a backbone perturbation: near-free through position 21, steep in the message. A residue that is both D and N-methylated is charged once.",
"evidence_it_is_the_right_shape": "Orexia/Centessa put N-Me-Asn and an N-phenethylglycine peptoid at orexin-B 19 in peptides reaching pEC50 >= 10. d_cost charges 0.30 there, and the model now gives -0.36 for N-methyl at 19 and -0.04 at 7, against -2.75 to -3.02 at 25, 26 and 28. The magnitude in the message is a transfer from the D-scan, not a measurement, and that is recorded as a prior.",
"how_found": "extending the shape fuzzer's damaging generators past the obvious ones - transposition, scramble, chain reversal, duplicated message, head-to-tail cyclisation, N-methylation. Of those, only N-methylation came back free: transposing I25/L26 already cost 1.78, scrambling the message 4.20, reversing the chain 4.19."
},
{
"fault": "the `sequence` column's conjugation shorthand was not understood. Gubra writes a lipidated lysine as `K#` or `K*14` - the digits a footnote pointing at which conjugate - and 106 of the 110 held-out peptides carry one. Neither form resolved, so the residue became an unknown placeholder AND the lipid vanished entirely.",
"impact": "the sequence-only path ranked the held-out slice at MINUS 0.338 against truth and Table 5 at MINUS 0.179 - actively anti-correlated - because the heaviest term the model has, the lipid position, was silently absent. Normally HELM is preferred so this never fires, but `_align_quality` falls back to `sequence` when a HELM parse looks poor, so an unfamiliar HELM dialect would have switched the model onto an anti-correlated path.",
"fix": "a trailing # or *<digits> is stripped to resolve the base residue - nothing in the 3,255-monomer library contains either character, so it is unambiguous - and the marked residue is flagged as bearing a conjugate. Sequence-only now ranks the slice at +0.017 and Table 5 at -0.014, and agreement with the HELM path rises from rho 0.238 to 0.720. It cannot do better: the string names the conjugation SITE but not the conjugate, and within Table 5 the peptides differ mainly by linker and acyl, so zero is the honest ceiling for that path.",
"second_half_of_the_fix": "the fallback itself is now guarded: a HELM parse that found a conjugate is never abandoned for a sequence parse that did not. Falling back would have swapped the heaviest term in the model for nothing.",
"how_found": "asking how well the sequence-only path agrees with the HELM path on test-like molecules - a comparison never made, because every check so far had fed the model its preferred input.",
"locked_in": "property P42",
"note": ""
},
{
"fault": "free-text heuristics treated a MENTION as a confirmation. has_lipid was set if the lipid regex matched anywhere in the concatenated sequence and HELM text, and has_staple if the text contained 'stapl' - regardless of what the structure showed. The `sequence` column is prose: 'human-readable sequence with modifications'.",
"impact": "negative controls were penalised as positives. With a perfectly good HELM attached, a sequence reading '...-NH2 (Palmitoyl-free control)' cost 0.87 log and '...-NH2 unstapled control' cost 2.60 - the word 'unstapled' contains 'stapl'. A second, compounding fault: annotations after the C-terminal cap were parsed as residues, so '...-NH2 unstapled control' became a 46-residue peptide instead of 29, and '...-NH2 (Palmitoyl-free control)' lost the amide entirely.",
"fix": "three parts. A text mention is now a LAST RESORT, consulted only when the parse did not come from HELM - when the structure is known the words add nothing. Mentions are negation-aware, so 'un', 'non-', 'des-', 'free of', 'without' and 'no' immediately before the word suppress it. And parsing stops at the C-terminal cap, since nothing after it is sequence. All four annotated variants now score bit-identically to the bare peptide, and the normal spellings are unchanged. Locked in as property P43.",
"how_found": "reading predict.py end to end - the entry point had been modified least - and then probing the text heuristics with deliberately NEGATIVE controls rather than positives.",
"completing_the_sweep": "two further heuristics of the same shape were found by grepping for every use of the free-text field and probing each with a negative control. has_peg fired on 'non-PEGylated' - the same mention-as-confirmation bug, though it feeds only the ridge so nothing measurable moved. cterm_amide ORed in an end-anchored text regex that could never actually fire, because the concatenated text ends with the HELM string rather than the sequence; it worked, but by accident. Both are now explicit last resorts used only when the parse did not come from a HELM, so the STRUCTURE decides: a HELM free acid stays a free acid however the sequence is annotated, and the sequence-only path still reads its own -NH2 correctly. P43 covers all of it.",
"the_principle": "across lipid, staple, PEG and amide the rule is now the same and stated once: when the structure is known the words add nothing, and when the words are all there is they must be read with their negations."
}
],
"verified": "predictions identical across object/None, pandas string dtype, parquet default, parquet pyarrow backend and parquet numpy_nullable; identical with all three local modules shadowed; non-default/duplicated/non-monotonic indices, categorical dtype, single-row and extra-column inputs all correct.",
"throughput": "5000 randomly generated analogues - 40% of them lipid conjugates - in 19 s (3.8 ms/row), peak RSS 296 MB, no NaNs. That extrapolates to ~190 s for 50,000 rows against the contract 3600 s predict timeout, and 296 MB against 24 GB. Measured on the shipped bundle, not on a reconstruction of it.",
"equivalence_fuzzing": {
"method": "semantically equivalent HELM encodings of the same molecule must score alike - the technique that exposed the branch-notation fault",
"verified_equivalent": [
"lipid as CHEM vs PEPTIDE satellite",
"polymer order swapped",
"connection written in reverse argument order",
"staple endpoints reversed",
"[am] vs [NH2]",
"version suffix absent"
],
"topologies_checked": [
"N-terminal lipid via R1",
"two separate conjugates",
"staple declared via R4",
"unknown ?:? attachment",
"short peptide with a satellite longer than itself",
"three polymers"
],
"result": "all six equivalences hold; the topology sweep is what surfaced the ?:? and multi-lipid faults above.",
"automated_suite": {
"script": "work/fuzz_helm.py, now in verify_all.sh",
"what": "generates random orexin-B analogues - 0-3 point substitutions, an optional non-standard residue (Nle, Aib, dL, dA, hR, Cha, 2Nal), an optional N-terminal truncation, and a 40%-probability lipid conjugate with a random attachment site and a random gGlu/AEEA/acyl composition - then renders each in up to six equivalent notations and asserts the predictions agree to 1e-6.",
"notations": "bracketed vs bare monomer names; [am] vs [NH2]; the acyl chain as PEPTIDE2 vs CHEM1; satellite declared before vs after the chain; the connection written from either end; whitespace around the endpoint separator; the V2.0 suffix present or absent.",
"result": "5,816 predictions over 1,200 molecules across six seeds: zero disagreements, with predictions spanning 5.33-9.46 so the generator is exercising real variation rather than near-identical peptides.",
"why_automated": "the one-off checks recorded above each found a fault and then stopped existing. A fuzzer in the verification chain cannot be forgotten, and every fault this project has found in the parsing layer was of exactly this shape."
}
},
"clean_audits": {
"note": "After seven consecutive sessions each finding a defect, a systematic audit of the residue-classification layer found NONE. Recorded because a clean audit is evidence of convergence, not a wasted check.",
"monomer_classification_audit": {
"terminal_monomers_occupying_a_chain_position": "the deamino-* family (10 symbols). Correct: a deamino residue lacks the alpha-amino group so the library types it Terminal, but it still contributes a backbone carbonyl and a side chain and does belong in the chain.",
"backbone_residues_dropped_as_caps": "AEEA/Aeea (no natural analogue, correctly spacers) and bAla/gGlu (deliberately in LINKERS: in these conjugates they are spacers, and as non-alpha amino acids they should not consume an orexin-B position number).",
"natural_resolution_disagreeing_with_the_library_column": "40 symbols, all cases where the curated override is chemically better than the library's backbone-skeleton convention - 2Nal/1Nal to Phe rather than Ala, Cha to Leu, Chg to Val, Aib to Ala, Cit to Gln (neutral urea, capturing the loss of the Arg charge)."
},
"position_mapping_verified": "truncations oxB(1-28) through oxB(20-28), a point substitution, and internal single deletions at unique positions (Gln8, Gly19, Ile25) all map exactly. Deleting Leu15 reports position 14 as absent, which is the equivalent alignment because Leu14 and Leu15 are indistinguishable. Locked in as property P21.",
"input_column_interactions": "Two guarantees were checked and both hold, so they are now properties rather than assumptions. (P44) A disagreeing `smiles` column cannot corrupt a row that HELM already describes: a correct SMILES, an unrelated peptide's, outright garbage, a non-molecule string and an empty string all give bit-identical predictions, because the descriptors come from the per-monomer table rather than from the SMILES. The column is nullable in the contract and nothing guarantees it agrees with the HELM - a salt form, a tautomer or a mis-joined record would all be plausible. (statelessness) Predicting 300 analogues batched, reversed, shuffled, one at a time and twice in a row agrees to 0.0e+00, 0.0e+00, 0.0e+00 and 1.8e-15 - no row's prediction depends on its neighbours, which matters because the Featuriser does carry per-row mutable state."
},
"evaluation_harness_fidelity": "An eighth silent fault, in the evaluation code rather than the model: final_eval.py scored the held-out slice with the knowledge term alone while the bundle ships a blend, so it over-reported Table 5 (0.499 vs 0.460) and the mixture (0.574 vs 0.524) and concealed that the ridge weight hurt. Fixed by having final_eval.py import and call final_model/predict.py directly, which also makes the reported held-out numbers a genuine test of the shipped artefact. Lesson: an evaluation that reproduces the model instead of invoking it will eventually diverge from it.",
"train_vs_ship_fidelity": {
"why": "Every reported metric is computed on the training side in numpy; only predict.py scores the benchmark. They are independent implementations of the same arithmetic and can drift without any fold-level metric noticing.",
"check": "work/fidelity.py, in verify_all.sh; fails below rho 0.995 / mean |diff| 0.05 / max 0.60",
"result": "rho 0.9997, mean |diff| 0.006, max 0.37 over all 493 rows",
"residual": "the largest gaps are Karhu's stapled peptides reached through a written-out sequence, which cannot carry the staple connection HELM encodes - expected, not a fault."
},
"helm_notation_equivalence": {
"why": "the benchmark's peptides are lipidated and the attachment POSITION is the single largest term the lipid contributes (free at P1-P19 and P23, up to 2.86 log at P25). The training patent writes the conjugate one way; a different HELM producer may write the same molecule another way, and any of those differences could silently move the attachment.",
"forms_tested": "the acyl chain as PEPTIDE2 or as CHEM1; the attachment polymer declared before or after the peptide; the connection stated PEPTIDE1->PEPTIDE2 or PEPTIDE2->PEPTIDE1 with the endpoints swapped to match; whitespace around the endpoint separator.",
"result": "all five forms give bit-identical predictions, and moving the attachment from P12 into the message segment costs 2.6 log as it should. No fault found - recorded because this is the highest-consequence parsing surface left, and the check is now property P25 so a future edit cannot quietly break it."
},
"sandbox_simulation": {
"script": "work/sandbox_sim.py, in verify_all.sh, run under BOTH interpreters",
"method": "installs an import blocker that refuses every top-level third-party module the scoring sandbox does not provide, then runs 200 random analogues through the shipped predict.py and asserts the predictions are finite, below the contract maximum of 15, one per input row, and - the check that matters - that they take at least 10 distinct values. Every catastrophic fault this project has found shared one symptom: the predictions stopped varying. A constant passes every schema check in the contract and scores zero.",
"result": "200 rows, 171 distinct predictions, range 5.75-9.40, under 3.11 and under 3.12.",
"cross_interpreter": "work/cross_interp.py asks both interpreters for the same 400 predictions. Python 3.11 with numpy 2.4.6 and Python 3.12.15 with numpy 2.5.4 agree BIT FOR BIT - max |diff| exactly 0.",
"bundle_imports": "the whole bundle imports only numpy, pandas, optionally rdkit, and the standard library (csv, importlib.util, json, math, os, re, sys, traceback). Nothing else needs to be shipped."
},
"environment_sweep": {
"why": "the scoring sandbox is Python 3.12; this container is 3.11 and has a much larger set of installed packages. Everything that differs between them lands on the test set and nowhere else. CPython 3.12.15 was downloaded (python-build-standalone) and the bundle run under it directly.",
"matrix": [
"Python 3.11.12, numpy 2.4.6, pandas 3.0.6 - the training container (reference)",
"Python 3.12.15, numpy 2.5.4, pandas 3.0.6 - BIT-IDENTICAL to the reference over 400 predictions",
"Python 3.12.15, numpy 1.26.4, pandas 2.2.2, pyarrow 16.1 - max |diff| 5.3e-15 (BLAS rounding)",
"all three with rdkit and every other non-sandbox package blocked at import",
"all three under LC_ALL=C, after pinning encoding='utf-8' on the three file reads",
"PYTHONHASHSEED 0, 1, 42 and 12345 - bit-identical, so nothing depends on set or dict iteration order",
"bundle directory mounted read-only - works (no bytecode cache needed)",
"sys.stderr closed, and sys.stderr set to None - identical predictions (property P27)",
"the official `bmb-eval dryrun` contract check run under Python 3.12 itself, not just 3.11"
],
"dtype_backends": "default object, pandas 'string', convert_dtypes(numpy_nullable) and convert_dtypes(pyarrow) all agree, on both the new and the old stack.",
"file_encoding": "config.json, monomers.csv and monomer_props.csv are pure ASCII (verified byte by byte), and the three open() calls now pass encoding='utf-8' rather than inheriting the locale. Under LC_ALL=C a locale-encoded read of a non-ASCII monomer name would have raised inside the featuriser - the same shape of failure as the rdkit import.",
"conclusion": "the bundle's behaviour does not depend on the interpreter, the numeric stack version, the dtype backend or the locale."
},
"relocation": {
"why": "the sandbox unpacks the bundle somewhere that is not /task/final_model. Three resource lookups kept a /task/... path as a last resort so the training scripts could share one copy of each table, and on this machine those fallbacks would satisfy a bundle that was packaged wrong - masking here exactly the failure that would happen there.",
"test": "work/relocate_test.py copies the bundle to a fresh nested directory, rewrites every /task/... literal in the COPY to a path that does not exist, and runs it from an unrelated working directory. 120 predictions, bit-identical to the in-place bundle, under both 3.11 and 3.12. In verify_all.sh.",
"loud_resolver": "features._resource now prints to stderr when a PACKAGED bundle (one with a weights/ directory beside it) loads a table from outside itself, or when no candidate exists at all. A missing descriptor table would otherwise show up only as slightly worse predictions, never as an error. Verified both ways: silent in place, and loud when weights/monomer_props.csv is deleted from a copy. The training copy in work/ has no weights/ beside it and so stays quiet while legitimately sharing the bundle's tables."
},
"dress_rehearsal": {
"script": "work/dress_rehearsal.py, in verify_all.sh, run under 3.11 and 3.12",
"why": "every other check builds the input DataFrame in the same process. The harness reads a parquet file somebody else wrote and calls predict in batches of 1024 (contract.json prediction.batch_size). That path had never been walked.",
"what": "2,500 realistic peptides - capped and uncapped, truncated, non-standard residues, 40% lipid conjugates, 15% null smiles - written to parquet, read back, and predicted in three batches.",
"result": "ids returned in input order; the batched answer is bit-identical to the whole-frame answer; 2,044 distinct values over 5.30-9.51; all finite and under the contract maximum of 15; columns [compound_id, pec50] as float64; 3.8-4.0 ms per row."
},
"programme_vocabulary_coverage": {
"why": "the benchmark promises non-standard amino acids but does not say which. The one other published peptide-OX2R agonist programme (Orexia/Centessa, US20250277001A1) names the residues such a programme actually uses, so its claim language was mined for vocabulary even though its potency table is unusable.",
"tested": "Phg, Hyp(4-OH), 2-AOC, N-Me-Asn, N-phenethyl-Gly, hArg, hArg(Et)2, D-Gln, D-Leu, D-Pro, D-Ala, D-Phe, PEG6, Nle - plus the usual Tle, Cha, 2Nal, Abu, Orn, Dab, Dap, Aib, Pen, Sar, Cit, Thi, Tic.",
"gaps_found": "2-aminooctanoic acid (the C-terminal residue of every peptide in that programme), octahydroindole-2-carboxylic acid, the 4Hyp spelling, and the N-phenethylglycine peptoid are all ABSENT from the 3,255-monomer HELM library. Each took the library median descriptors (mw 202 rather than ~115-155) and contributed nothing to the alignment, leaving a hole at its orexin-B position - at position 28 in the case of Aoc, where the substitution cost is 1.30.",
"fix": "aliases added as a LAST resort in features._ALIAS, after every direct lookup has failed, so they can only add resolutions: Aoc/2-Aoc/Aoc2 to Nle (a straight C6 side chain), Oic to Pro, 4Hyp to Hyp, Nphe to Gly (a peptoid keeps the glycine backbone). Verified that every previously-working symbol is unchanged and that AEEA, PEG6 and Ahx stay UNRESOLVED - a spacer that acquired a natural analogue would start consuming an orexin-B position number. Locked in as property P30.",
"also_checked": "an N-terminal PEG6, AEEA or Ahx spacer does not shift the alignment: position 1 is still Arg and position 28 still Met, with all 28 mapped."
},
"reporting_fidelity_round_two": "final_eval.py clipped the BLEND at 5.3 while the bundle clips the mapped PREDICTION at 5.3; the first is much milder, so LODO was over-reported by 0.009. final_eval and fidelity.py now both apply centre/gain and then clip at clip_lo, exactly as predict.py does. This is the same lesson as the earlier knowledge-only slice scoring: an evaluation that REPRODUCES the model instead of invoking it will eventually diverge from it.",
"shared_mapping_module": {
"problem": "the four lines that turn a blended score into a pEC50 were written out by hand in final_eval.py, fidelity.py and calibrate.py, and they drifted. Two clipped the BLEND at 5.3; the bundle clips the MAPPED PREDICTION, which after a gain of 2.4 is a far more aggressive operation. That is how LODO came to be over-reported by 0.009.",
"fix": "work/mapping.py is now the single definition - know_of, blend_of, pec_of, score - and all three scripts import it. predict.py deliberately does NOT: the bundle must stand alone. The two are kept honest by fidelity.py, which replays the whole training table through the shipped predict.py and compares (rho 0.9997).",
"lesson": "twice now a reported number described a model that does not ship. Both times the cause was an evaluation that REPRODUCES the model rather than invoking it. Where reproduction is unavoidable - LODO has to refit the ridge per fold - the reproduction should at least be one function, not three copies."
},
"tie_structure": {
"why": "Spearman is a rank metric, so two peptides given the same prediction contribute nothing whenever the truth distinguishes them. After the output-bound fix, where do the remaining ties come from?",
"measurement": "3,000 random analogues, of which 2,549 are distinct molecules (the generator repeats itself). On the distinct set: 2,464 distinct predictions, 5% of rows in any tie, largest tie group 7.",
"neither_bound_binds": "nothing reaches the 5.0 output bound or the 10.0 ceiling - the range is 5.07 to 9.45, leaving 0.55 of headroom at the top. The apparent 22% tie rate on the raw sample was almost entirely duplicate molecules, not a model defect.",
"conclusion": "the floor clip was the one real source of ties, and it is fixed."
},
"combination_molecules_checked": {
"why": "the prompt lists non-standard amino acids, lipidation AND hydrocarbon staples, so a test peptide may carry several at once. No training row does: Gubra is lipid-only, Karhu staple-only.",
"result": "lipid plus staple costs more than either alone and less than their sum (the staple sits in the p-norm, the lipid is additive); two lipids are scored by the more damaging SITE, not the lower-numbered one - 12+19 costs 1.36 while 12+25 costs 3.60; a lipid plus a free-position modification costs about the same as the lipid alone. All sensible and monotone, now property P36.",
"what_it_turned_up": "the inline-acyl fault above, found while varying attachment notation."
},
"classifier_audit": {
"script": "work/classifier_audit.py",
"why": "the Ste fault had a shape worth generalising: a NAME test disagreed with a measurable PROPERTY. Every classifier in features.py is name-based - LIPID_PAT, PEG_PAT, LINKERS, CAP_SYMBOLS, STAPLE_SYMBOLS - so all 3,255 library monomers were walked looking for the same disagreement elsewhere.",
"result": [
"acyl chains the name regex misses: exactly THREE in the whole library - Ste (the fault already fixed), 5Toc (a tocopherol nucleic-acid conjugate, irrelevant to peptides) and X2590 (a Backbone monomer carrying a C17 chain). So the gap was narrow, which is why it survived so long.",
"the reverse - a name that says lipid with no chain to match - occurs ZERO times.",
"X2590 and 5Toc were checked explicitly at a chain position: both stay IN the chain as unknown placeholders (n_res 29, n_core 28) AND are flagged as carrying a lipid at that position, which is the same treatment K(C16) gets and is correct for a residue bearing a long chain."
],
"false_alarms": "the heuristic also flagged 152 'oxygen-rich spacers' and 487 'olefin-looking' monomers. Inspection shows the first are fluorophore and biotin conjugates from the HELM NUCLEIC-ACID libraries (3FAM, 5BioTEG, 3Alex594N) and the second are the generic X#### backbone series. Neither is reachable from an orexin peptide. Recorded so the next reader does not re-raise them.",
"conclusion": "the name-based classifiers are in better shape than the Ste fault suggested - that was the only real gap, and it is closed."
},
"shape_fuzzing": {
"script": "work/shape_fuzz.py, now in verify_all.sh",
"why": "the last three faults were all one kind: a structurally damaging edit the model failed to charge - an inline acyl group, residues appended past the message terminus (which scored HIGHER than orexin-B), and an insertion inside the message. None was a parsing bug, so notation fuzzing could not reach them, and none was visible to any fold.",
"method": "generates molecules by SHAPE rather than notation and asserts two contracts. DAMAGING - message substitutions, deletions, truncation into the message, C-terminal extension, free acid, lipid in the message, a staple across it, a D residue in it, an insertion inside it - must all score at least 0.5 below orexin-B. TOLERATED - substitutions at the eleven positions the glutamate scan reads as 0.00, a single Aib, a lipid at a free site, an N-terminal cap, Met28 to Nle - must stay within 1.8. Neither list is fitted: both come from the published scans the model already encodes, so a failure means the code disagrees with its own tables.",
"result": "500 molecules; one violation class survived scrutiny and became the fault above. The tolerated threshold is 1.8 rather than 1.2 because a 'lipid at a free site' also substitutes that residue for lysine, so the comparison carries the substitution too.",
"generators": "fourteen damaging classes - message substitution, deletion, truncation into the message, C-terminal extension, free acid, lipid in the message, staple across it, D residue in it, insertion inside it, transposition, N-methylation, duplicated message, reversed chain, scrambled message - and six tolerated ones, including N-methylation OUTSIDE the message at the positions Orexia actually uses."
}
},
"reproducibility": {
"doc": "/task/work/REBUILD.md",
"pipeline": [
{
"stage": 1,
"script": "prep_chembl.py",
"needs": "data/raw/activities_ox{1,2}r.json + rdkit",
"produces": "chembl_all.pkl, chembl_residues.pkl"
},
{
"stage": 2,
"script": "esm_scores.py",
"needs": "GPU, torch, transformers (~6 min on an H100)",
"produces": "esm_subs.npz",
"note": "output already shipped in the bundle, so this stage is optional"
},
{
"stage": 3,
"script": "make_monomer_props.py",
"needs": "rdkit + helm_tools/monomers.csv",
"produces": "weights/monomer_props.csv"
},
{
"stage": 4,
"script": "build_train.py",
"needs": "stage 1",
"produces": "train_table.pkl (493 rows used)"
},
{
"stage": 5,
"script": "fit_final.py",
"needs": "stages 1,3,4",
"produces": "weights/model.npz, weights/config.json"
},
{
"stage": 6,
"script": "install_bundle.sh",
"produces": "final_model/ populated"
}
],
"verification": "verify_all.sh runs test_bundle.py (10 mechanistic checks), metamorphic.py (15 invariance properties), final_eval.py (LODO + held-out slice + mixture) and the bmb-eval dryrun.",
"gap_closed": "Stage 1 was originally executed inline and never saved, so the chain could not be rerun from raw data. It has been reconstructed as prep_chembl.py and verified exact with `--verify`: 54,464 activity rows, 184 peptide molecules, 61 of them deposited C-to-N, 166 with every residue identified, and the residue lists match the stored artifacts key-for-key and value-for-value.",
"embedded_data": "The Karhu 2018, Ammoun 2003 and Gubra WO2025252662A1 tables are transcribed directly into build_train.py rather than downloaded, since their sources are a figure, a Wayback PDF and image-only patent scans respectively."
},
"model_components": {
"substitution_distance": {
"what": "the fraction of a position's cost that a wild-type -> mutant swap actually incurs is Grantham's 1974 chemical distance (composition, polarity, side-chain volume), mapped linearly onto [0.35, 1.0].",
"replaces": "a two-valued rule: 0.35 if wt and mutant shared one of seven similarity groups, 1.0 otherwise.",
"no_new_parameters": "Grantham's values are published - the implementation reproduces ten tabulated distances exactly (L->I 5, D->E 45, K->R 26, G->A 60, C->W 215) - and the [0.35, 1.0] range is inherited unchanged from the binary rule. The map is linear, so there is no exponent to pick.",
"gly_pro_exemption": "Gly and Pro keep the full cost. Grantham scores SIDE CHAINS, but changing to or from glycine or proline is a backbone-conformational change. Asahi's orexin-B alanine scan settles it: G19A costs 1.13 log and G24A costs 3.55, while Grantham rates Gly->Ala as mild (60/215). Without the exemption the held-out mixture still improves but Lang gains less (+0.69 vs +0.72).",
"effect": "honest LODO 0.663 -> 0.664, knowledge-only 0.648 -> 0.654, Lang 0.692 -> 0.720 (the fold whose within-actives ranking was the known weakness), held-out Table 5 0.460 -> 0.514, held-out mixture 0.546 -> 0.585, held-out MAE 0.980 -> 0.812. Asahi falls 0.675 -> 0.647 and Table 4 0.149 -> 0.107, but Table 4 is noise-limited (oracle 0.45, bootstrap CI -0.18..+0.46) so that movement carries no information.",
"robustness": "the gain is not a tuning artefact: every variant tried - exponent 0.5, 1.0 or 2.0, lower bound 0.0, 0.20 or 0.35, with or without the Gly/Pro exemption - puts the held-out mixture at 0.587-0.607 against the binary rule's 0.574. The linear, 0.35-bounded, Gly/Pro-exempt form was taken because it is the least-tuned member of that family, not the best.",
"locked_in": "property P24"
},
"d_residue_cost": {
"what": "the cost of inverting the alpha carbon at orexin-B position p is now Asahi 2003's MEASURED D-scan, used directly the way the Gubra glutamate scan is used for POSCOST.",
"replaces": "DCOST * IMPORTANCE, an approximation that spanned 0.08 to 1.50 against a measurement spanning 0.00 to 3.96. It was simultaneously too harsh mid-chain and far too soft in the message segment: D-Leu15, which Asahi measures as a small GAIN (10.28 against a 10.09 parent) and which the structural notes call the key OX2-selectivity substitution, was charged 0.75; D-Leu26, the largest potency loss reported for any orexin-B substitution at 17,000-fold, was charged 1.50. D-Leu15 was the single worst-ranked row in the Asahi fold.",
"effect": {
"German2013_INDEPENDENT_arbiter": "0.322 -> 0.421",
"Asahi2003_now_contaminated": "0.647 -> 0.749",
"Lang_Karhu_Ammoun_Gubra": "unchanged",
"held_out_Table5": "0.513, unchanged - the slice has no D residues",
"held_out_mixture_MAE": "0.816 -> 0.776",
"LODO_5_folds": "0.663 -> 0.708",
"CLEAN_LODO_4_folds": "0.669 -> 0.690"
},
"honesty": "Asahi's D-scan is 28 of that fold's 59 rows, so the Asahi fold is no longer fully independent and final_eval.py now also prints a CLEAN LODO over the four folds that touch none of the knowledge tables - Lang, German, Karhu and Ammoun, 136 rows. That figure, 0.690, is the one to quote. The headline 0.708 includes the contaminated Asahi fold. method.md had already claimed the D cost came from Asahi ('free at 1-21, severe at 22-28'), so the source was always Asahi; what changed is that the implementation now matches the claim.",
"why_it_is_believable": "German 2013 is an independent fold containing six D substitutions (OxA 17-23) and it improves by +0.099. Nothing else moves. The gain is not the contamination.",
"how_found": "work/panel.py, a behavioural panel that prints the shipped model's opinion of each named chemotype beside what the literature says. D-Leu15 at -0.95 and D-Leu26 at -1.63 both contradicted the line directly above them.",
"locked_in": "property P33"
},
"staple_cost": {
"what": "the cost of a hydrocarbon staple is now Karhu 2018's measured losses, keyed on the orexin-B position the staple bridges up to: 14-18 costs 3.0, 18-22 costs 4.0 (the mean of five analogues), 20-24 and 22-26 cost 4.7.",
"replaces": "hand-set tiers of 3.5 / 3.0 / 2.2 / 1.4. Against Karhu's ten stapled orexin-A(15-33) analogues, measured against the matched Ac-parent at 9.39, those tiers RANKED almost perfectly - Spearman +0.923 - while sitting a uniform 1.04 log BELOW the measurements. A stapled peptide therefore ranked correctly against other stapled peptides and too high against everything else.",
"corroboration": "work/term_audit.py, which labels every row by its dominant modification and reports the model's signed error within each class relative to its own fold's level, independently flagged the staple class at +0.41 - the only class with a bias above 0.2.",
"effect": "nothing measurable moves: CLEAN LODO 0.690, Karhu 0.954, held-out Table 5 0.513 all unchanged, held-out mixture MAE 0.776 -> 0.769. The within-Karhu ranking was already right; only the level was wrong, and no fold mixes stapled with unstapled peptides.",
"honest_caveat": "NO independent arbiter exists. Karhu is the only stapled study, so unlike the D-residue change - which German confirmed at +0.099 - this rests on faithfulness to the cited source rather than on a measured gain. The one metric that moves, a pooled Lang+Karhu ranking, prefers the OLD tiers by 0.008, but it moves monotonically with a uniform shift and those two papers' assays differ by ~2.5 log at the parent, so it is reading a cross-assay offset, not the staple term.",
"why_it_may_be_an_upper_bound": "Karhu installed her staples on orexin-A(15-33), an already truncated and compromised scaffold. A staple on a full-length orexin-B derivative - what the benchmark describes - could be better tolerated. The position-unknown fallback is deliberately kept at the conservative 3.1 rather than the 3.9 mean for that reason, and the sub-14 tier is an extrapolation of the same +1.04 offset.",
"locked_in": "property P34"
},
"truncation_context_floor": {
"what": "the floor under a position's substitution cost, cost = max(POSCOST[p], floor_mult * IMPORTANCE[p-1]), now rises with truncation: floor_mult = 1.0 + 1.0 * min(max(start - 9, 0)/6, 1).",
"why": "POSCOST comes from a scan of FULL-LENGTH orexin-B and reads exactly 0.00 at eleven positions. German 2013 and Ammoun 2003 both measure ~1 log losses at those same mid-chain positions in TRUNCATED peptides and agree with each other at rho +0.81. An earlier session tried a scalar truncation multiplier and rejected it; it could never have worked, because any multiple of zero is zero. The FLOOR can express it, since it lifts exactly the positions the full-length scan calls free and leaves the measured ones untouched.",
"where_the_knee_comes_from": "not from the sweep. Ammoun's peptides start at orexin-B 9 and the full-length table still ranks them well (+0.836); putting the knee at 6 so that they are affected costs 0.08 there. German's start at 12 and the table does not rank them. The knee sits between the two, at 9, where Ammoun stops needing the correction and German starts.",
"effect": {
"German2013": "0.421 -> 0.466",
"CLEAN_LODO_4_folds": "0.690 -> 0.700",
"LODO_5_folds": "0.708 -> 0.715",
"Lang_Karhu_Ammoun_Gubra": "all unchanged to three decimals",
"held_out_Table5": "0.513, exactly unchanged - the slice has no truncated peptide",
"mixture_MAE": "0.769 -> 0.768"
},
"honest_caveat": "the MAGNITUDE was chosen on German, which is one of the four clean folds, so that fold's +0.045 is partly in-sample and the clean LODO's +0.010 inherits that. Nothing independent can arbitrate it: the held-out slice contains no truncated peptide, and the coverage map shows truncation varies in only three folds, two of which (Lang start 6, Ammoun start 9) sit below the knee and are therefore untouched by construction. 1.0 and 1.5 give the same clean LODO, so the smaller intervention was taken.",
"when_it_fires": "rarely, for the chemotype the prompt describes. Gubra-style lipidated peptides are full length (no bump) and Karhu-style stapled ones start at orexin-B 10 (a bump of 0.17). It matters for short C-terminal fragments, which the prompt does not mention.",
"locked_in": "property P35, asserted on the PENALTY rather than the prediction because the score is convex in the penalty, so the same increment looks smaller once the baseline is large - which it is for a truncated peptide."
},
"disguised_monomers": {
"what": "when a monomer resolves to the wild-type residue, the substitution loop skips it - `aa == wt`. That is right for an isosteric replacement and wrong for a heavily decorated residue standing in for its own parent. Such a monomer is now charged the position's cost scaled by how far its descriptors sit from the plain amino acid it resolves to.",
"why_this_class_matters": "two faults already fixed were exactly this shape - D residues and N-methylation, both invisible because they share their parent's analogue. work/disguise_audit.py enumerates the rest: of 2,546 library monomers with an analogue, 191 are already covered by a dedicated term (D, N-methyl, staple/AADI, lipid) and the remainder were uncharged however large.",
"where_the_threshold_comes_from": "read off the data, not chosen. The realistic non-standard vocabulary all scores under 5 on the distance scale - Aib 0.6, hR 1.6, Phg 1.6, Orn 1.6, hPhe 1.6, Cha 2.3, Nle 2.7 (the MEASURED near-free Met28 replacement), 2Nal 3.0, Dab 3.1, Cit 3.4, Hyp 3.7, Dap 4.7 - while the library median is 7.3, its 90th percentile 16.7 and its maximum 62.1. The cost ramps from zero at 5 to full at 15.",
"effect": "nothing measurable moves - CLEAN LODO 0.700, Table 5 0.513, mixture 0.586, MAE 0.768 - because no training or held-out peptide uses a monomer past the threshold. Isosteric stand-ins stay free (Nle28 -0.02, Cha26 +0.05, hR10 -0.01) while a +517 Da decoration at a leucine position now costs 2.26.",
"honest_caveat": "this is insurance, not a measured term. It fires only if the test set names a monomer far from its analogue - plausible if a provider writes HELM library IDs rather than the readable names the prompt's examples use ([Nle], [hR], [am]). The magnitude is the position's own cost, so it inherits a measured scale rather than inventing one.",
"locked_in": "property P41"
}
}
}