Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/loopbench-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: LoopBench tests
on:
pull_request:
paths:
- "projects/loopbench-manifold/**"
- ".github/workflows/loopbench-tests.yml"
push:
branches: [main]
paths:
- "projects/loopbench-manifold/**"
- ".github/workflows/loopbench-tests.yml"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Validate synthetic fixture
run: python projects/loopbench-manifold/loopbench.py validate projects/loopbench-manifold/data/synthetic_candidate_outcomes.csv
- name: Run unit tests
run: python -m unittest discover -s projects/loopbench-manifold/tests -v
- name: Run holdout diagnostic
run: python projects/loopbench-manifold/loopbench.py evaluate projects/loopbench-manifold/data/synthetic_candidate_outcomes.csv --top-k 5
64 changes: 64 additions & 0 deletions projects/loopbench-manifold/PRODUCT_MEMO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# LoopBench — Product & Evaluation Memo

## Executive thesis
With high-throughput design and experimental loops, the platform challenge is not only generating more candidates. It is ensuring every candidate, prediction, physical measurement and downstream decision can be compared, reproduced and audited—and knowing when a retrospective metric is not a prospective result.

## Product hypothesis
A lightweight evidence operating layer could make this chain queryable and decision-ready:

**Model run → design record → construct ID → assay batch → readout → scientific decision**

Every transition carries a stable ID, timestamp, source reference, version and accountable owner. Corrections append events rather than silently overwriting history.

## Public evidence motivating the concept
Manifold's 22 September 2026 mBER-2 report describes 56 targets. It reports 1,298,334 designs ordered, 584,450 high-signal designs, 26,026 specific on-design hits across formats, pooled hit coverage of 55/56 targets, and 430 binder–antigen pairs tested by BLI.

Reported hit rates:
- VHH: 8.6% overall; 16.8% for retrospectively selected top-100 designs per target.
- Minibinder: 4.64% overall; 8.62% top-100 retrospective.
- Microbinder: 0.93% overall; 3.55% top-100 retrospective.

The top-100 rates are retrospective, not a prospective holdout claim. That distinction can become operational: store the evaluation regime with every metric, prevent retrospective results from being labelled prospective, and require a frozen scorer plus untouched holdout for a generalisation claim.

## Product surfaces
### 1. Evidence graph
Versioned model run, design intent, construct identity, assay batch, readout, QC and decision records. Each object has a canonical ID and immutable event history.

### 2. Evaluation guardrails
- Split manifests for target, epitope, campaign, time and assay-batch boundaries.
- Import-time checks for duplicate identifiers and development/holdout overlap.
- Frozen model, scorer, feature-pipeline, code-commit and configuration hashes.
- Explicit retrospective/prospective labels and pre-registered thresholds.
- Reports with denominators, QC attrition, missingness and target/format heterogeneity.

### 3. Decision-aware scorecards
Each scorecard begins with the decision it supports. A binding hit is not a claim about in-vivo distribution. Distribution is not proof of therapeutic function. Evidence maturity and missing evidence should be explicit.

### 4. Partner collaboration surface
Export an approved, schema-versioned evidence package with data rights, permitted uses, IP, retention, access controls and derivative-use boundaries stated.

## Metrics worth discussing
**Data reliability:** lineage completeness, duplicate rate, missingness, QC attrition, batch coverage, data latency and correction rate.

**Model evaluation:** per-target/per-format top-k enrichment, target-level hit coverage, calibration/Brier score where probabilities are meaningful, held-out-target/epitope/time performance, ranking stability, epitope breadth and uncertainty intervals.

**Workflow impact:** time from readout to decision, share of decisions with complete evidence, experiment-to-model feedback latency, scientist review burden and repeat use.

## A 30-day validation plan
**Week 1 — Discover.** Interview 3–5 scientists, AI/ML researchers and programme owners. Map actual handoffs, identifiers, recurring failures and decision points. Do not assume this prototype's schema is correct.

**Week 2 — Contract.** Agree one low-risk, permitted data slice. Define event IDs, versioning, QC semantics, evaluation splits, source of truth and export boundaries.

**Week 3 — Integrate.** Connect one approved read-only dataset or a partner-approved synthetic sandbox. Add lineage and leakage checks.

**Week 4 — Evaluate.** Run a pre-registered holdout. Measure reproducibility, missing lineage, time-to-review, evaluation quality and scientist usefulness. Expand, redesign or stop based on evidence.

## Main risks
- False confidence from pooled metrics: mitigate with stratified reporting and uncertainty.
- Retrospective metrics presented as prospective lift: mitigate with holdout custody, split manifests and frozen scoring.
- Binding interpreted as biodistribution or therapeutic effect: mitigate with evidence maturity levels.
- Partner data rights: mitigate with explicit access, retention, IP and derivative-use controls.
- Added metadata burdens scientists: derive identifiers where possible and measure review burden.

## Scope boundary
This is an independent product/evaluation concept using public aggregate figures and synthetic examples. It is not protein design software, a biological model, a wet-lab planner or a claim about Manifold's internal infrastructure. Every workflow hypothesis requires validation with the people who use the real system.
56 changes: 56 additions & 0 deletions projects/loopbench-manifold/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# LoopBench — Prospective Evidence & Evaluation Workbench

Independent AI-platform work sample inspired by Manifold Bio's public mBER-2 report.

## Open the prototype
Open [the interactive prototype](./index.html). Read the [product memo](./PRODUCT_MEMO.md), [evaluation charter](./evaluation-charter.md), and [candidate outcome schema](./candidate-outcome.schema.json).

## Product thesis
As AI design and experimental throughput increase, the platform challenge is making every candidate, model version, physical construct, assay readout, uncertainty and next decision traceable—and distinguishing retrospective results from prospective evaluation.

## Public report facts
The September 22, 2026 mBER-2 technical report describes 56 targets, 1,298,334 designs ordered, 584,450 high-signal designs, 26,026 specific on-design hits across formats, 55/56 targets with at least one hit pooled across formats, and 430 binder–antigen pairs tested by BLI.

| Format | Overall hit rate | Retrospective top-100 |
|---|---:|---:|
| VHH | 8.6% | 16.8% |
| Minibinder | 4.64% | 8.62% |
| Microbinder | 0.93% | 3.55% |

**The top-100 rates are retrospective selections, not prospective holdout performance.** The product opportunity is to make that distinction operational and enforceable.

## Included engineering components
- loopbench.py: standard-library CSV validator and prospective holdout diagnostic.
- data/synthetic_candidate_outcomes.csv: synthetic-only event-level fixture; every identifier is prefixed SYN-.
- data/public_mber2_aggregate.json: source-attributed public aggregate metrics.
- tests/test_loopbench.py: tests for duplicate IDs, split leakage, absent holdouts, QC filtering, target-stratified top-k and bootstrap boundary.
- .github/workflows/loopbench-tests.yml: CI validation and test workflow.
- candidate-outcome.schema.json: machine-readable record contract.

### Run locally
Python 3.10+; no third-party packages required.

```bash
python loopbench.py validate data/synthetic_candidate_outcomes.csv
python loopbench.py evaluate data/synthetic_candidate_outcomes.csv --top-k 5 --out report.json
python -m unittest discover -s tests -v
```

The CLI only computes holdout metrics from rows explicitly labelled prospective_holdout and with qc_status=PASS. It blocks if no eligible holdout rows exist. It warns about target, epitope, campaign or assay-batch overlap. The bootstrap resamples targets as clusters; for fewer than three holdout targets it reports no interval. This is a simple descriptive diagnostic, not a statistician-approved analysis plan or biological conclusion.

## Guardrails
- Keep development, retrospective and prospective results distinct.
- Freeze model/scorer/configuration before unblinding an untouched holdout.
- Check target, epitope, campaign, time and assay-batch overlap.
- Keep PASS, FAIL, REVIEW and missing outcomes explicit.
- Report denominators, QC attrition, target-level variation and uncertainty.
- Do not treat binding as proof of in-vivo distribution, PK or therapeutic function.

## Scope and safety
This is an independent concept using public aggregate metrics and synthetic examples. It uses no protein sequences, internal Manifold data, patient data or wet-lab protocols. It does not make biological predictions, rank actual targets or recommend experiments. The workflow is a hypothesis to pressure-test with scientists, not a claim about Manifold's internal infrastructure.

## Sources
- [mBER-2 technical report](https://manifold-bio-public.s3.us-east-2.amazonaws.com/mBER-2_technical_report_v20260922.pdf)
- [Manifold mBER-2 announcement](https://www.manifold.bio/news/mber-2-scaling-ai-protein-design-to-learn-from-living-systems)
- [mBER-open repository](https://github.com/manifoldbio/mber-open)
- [AI Platform & Partnerships role](https://job-boards.greenhouse.io/manifoldbio/jobs/5127283007)
87 changes: 87 additions & 0 deletions projects/loopbench-manifold/candidate-outcome.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "LoopBench Candidate Outcome Record",
"type": "object",
"additionalProperties": false,
"required": [
"design_id",
"target_id",
"epitope_id",
"binder_format",
"model_version",
"campaign_id",
"assay_batch",
"predicted_score",
"observed_hit",
"qc_status",
"evaluation_split",
"evidence_ref"
],
"properties": {
"design_id": {
"type": "string",
"minLength": 1
},
"target_id": {
"type": "string",
"minLength": 1
},
"epitope_id": {
"type": "string",
"minLength": 1
},
"binder_format": {
"type": "string",
"enum": [
"VHH",
"Minibinder",
"Microbinder",
"Other"
]
},
"model_version": {
"type": "string",
"minLength": 1
},
"campaign_id": {
"type": "string",
"minLength": 1
},
"assay_batch": {
"type": "string",
"minLength": 1
},
"predicted_score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"observed_hit": {
"type": "integer",
"enum": [
0,
1
]
},
"qc_status": {
"type": "string",
"enum": [
"PASS",
"FAIL",
"REVIEW"
]
},
"evaluation_split": {
"type": "string",
"enum": [
"development",
"prospective_holdout",
"retrospective"
]
},
"evidence_ref": {
"type": "string",
"minLength": 1
}
}
}
18 changes: 18 additions & 0 deletions projects/loopbench-manifold/data/public_mber2_aggregate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"source": "Manifold Bio mBER-2 technical report, 2026-09-22",
"source_url": "https://manifold-bio-public.s3.us-east-2.amazonaws.com/mBER-2_technical_report_v20260922.pdf",
"targets": 56,
"designs_ordered": 1298334,
"primary_on_panel_sequences": 1250720,
"high_signal_designs": 584450,
"specific_on_design_hits_all_formats": 26026,
"targets_with_any_hit_pooled": 55,
"targets_with_hits_on_at_least_two_predicted_epitope_clusters": 51,
"binder_antigen_pairs_tested_by_bli": 430,
"format_rates": [
{"format":"VHH","overall_hit_rate_pct":8.6,"top100_retrospective_hit_rate_pct":16.8},
{"format":"Minibinder","overall_hit_rate_pct":4.64,"top100_retrospective_hit_rate_pct":8.62},
{"format":"Microbinder","overall_hit_rate_pct":0.93,"top100_retrospective_hit_rate_pct":3.55}
],
"interpretation": "Top-100 rates are retrospective selections, not prospective holdout performance."
}
Loading
Loading