Proef · agentic science framework
Proef is an open-source framework where AI agents propose hypotheses, run experiments and judge the results against criteria fixed before the experiment ran. Every claim carries its uncertainty, every decision is on a tamper-evident record, and a person stays in control of what reaches the lab.
Most agent demos show a model that sounds right. Proef is built around the opposite question: when the model is wrong, thin on evidence or manipulated, what stops it from reaching the lab or a published claim?
Models propose and advise. Code decides and enforces. A person approves what reaches the lab.
A model never writes a verdict, never approves its own submission and never moves a gate.
Given a research problem and its constraints, agents propose a portfolio of hypotheses, select the ones worth testing, design experiments, run them on simulated or real equipment, and deliver verdicts as the results arrive.
proef demo abstains where the confidence interval straddles the gate and refutes a planted false hit. All numbers are simulated.| Stage | What happens | Who acts |
|---|---|---|
| Read the field (opt-in) | Look up literature, target biology and published activities before proposing. Every cited item must trace to something actually retrieved; queries are checked so nothing identifying the study leaves the machine. | Model, with read-only knowledge tools (PubMed, ChEMBL, Open Targets) |
| Propose | A portfolio of mechanistic, falsifiable hypotheses, each with a refuted-if clause. Citations are checked against PubMed; a fake citation ranks below none. | Model |
| Select | Rank, cap for diversity, and optionally choose the batch by applicability-domain-gated Bayesian expected improvement. | Engine |
| Plan review | A person sees the plan, the critic's concerns and the warnings, removes hypotheses and approves or declines. | A person |
| Check, then submit | Safety screening (toxicophores, regulated agents, biosafety level), halt switch, authorization, budgets. | Engine, policy code the agent cannot reach |
| Run | The assay runs and raw evidence comes back. | Lab adapter |
| Analyze and judge | Dose-response fit with a confidence interval and QC, then validated, invalidated or abstain. An orthogonal assay confirms before a result counts as confirmed. | Engine (deterministic rule) |
| Decide what next | Follow up an abstention, re-plan, run the next round or stop, always within a list of actions the engine allows. | Model or fixed order; a person decides accept and drop |
| Record and audit | Everything goes on the hash-chained ledger; replayable offline. | Provenance store |
A web workbench sits on top of the engine. Programs hold a pre-registered gate and many campaigns; decisions wait for a person; a plate run by hand is judged against the gate registered beforehand.


proef read results.csv turns an instrument export into fitted curves, intervals and QC, with no model involved.| Mechanism | What it guarantees |
|---|---|
| Uncertainty vetoes certainty | A 95% interval that straddles the gate abstains, on any metric. |
| Molecular safety gate | Versioned toxicophore rules; hard classes always refuse; electrophilic warheads pass only with declared covalent intent. Regulated pathogens and toxins are refused and the refusal is recorded. |
| Execution governance | An operator halt the agent cannot lift, an autonomous / human-approved / never authorization matrix, budgets that cap what a campaign may consume. |
| Tiered trust | Deterministic rules hold the floor. A model may add a flag or demand human review; it can never clear a refusal. |
| Provenance physics | The hash chain is enforced by the database and recomputed on read; Merkle anchoring lets anyone check the record was not edited. |
| Grounded, not asserted | Items a model cites from the literature must trace to retrieved results. Prior predictions are labelled priors, never evidence. |
| Input trust boundary | Junk or adversarial instrument files degrade to "unreadable, no verdicts changed"; injection-shaped sample names cannot reach the gate as instructions. |
proef eval runs 25 scored tasks against seeded ground truth: deterministic, offline, and run in CI.
The latest run: mean 0.966 across 38 tasks, all passing. Scores below 1.0 are kept as reported.
| Tier | Covers |
|---|---|
| epistemics (15) | hit recovery (honest abstains credited 0.5, not 1.0), verdict honesty, confirmation coverage, falsifiability, adaptive dosing (3 wells beat 4), Bayesian acquisition beating random, flywheel memory, sandbox isolation |
| models (6) | baseline property models on scaffold folds, against a random floor |
| reproductions (2) | published-paper reruns on frozen data |
| agent (2, opt-in) | end-to-end triage with an exact refusal map; no refused compound tested, no wrong confirm |
| Study | Result |
|---|---|
| Tyrphostins (1989), blind reproduction | Illustrative only: the model had already seen the paper. |
| AZ3246 HPK1 (2025), post-cutoff paper | Found the paper's core from structures alone. Ranking above chance (ρ ≈ +0.5) but not significantly better than simple baselines at n = 21. |
| Four ChEMBL papers | Chemotype identified 4/4; audit trail intact; no enrichment claim survives correction. |
| EGFR hit-to-lead, prospective, seven successors hidden | 5 true hits, 5 true refutations, 2 honest abstentions. |
| SARS-CoV 3CLpro screen (2013) | 98.9% agreement on decided calls, 0 false actives, 14 abstentions. |
| NCATS qHTS deposit | Negative: our rules don't port to self-normalized data (ρ = 0.107), which led to refusing them. |
| Proteinbase reproduction | Hit rates reproduced. Computed confidence picked worse than random; a miscalibrated applicability-domain floor was found and fixed. |
| PD-L1 binder designs | Score separates designs from controls (AUC 0.80) but does not rank sequences: use it as a gate, not a ranking. |
Each study's README has the setup, full results and limitations. The suite has caught real bugs, including an observed-max fit bias and a Make step that ran before the safety screen; each is now a permanent regression test.
| Interface | Adapters today |
|---|---|
ModelProvider | OpenAI-compatible endpoints (OpenAI, ollama, vLLM), Anthropic |
LabAdapter | Simulators, recording/replay, plate-reader share, Opentrons OT-2/Flex (contract-tested against a simulated robot), MCP instrument servers |
Sandbox | local, Docker, OpenSandbox, AgentENV |
ProvenanceStore | SQLite (hash-chained, engine triggers) |
BioTool | RDKit descriptors, ADMET, AlphaGenome variant scoring |
Proef ships as an Agent Skills package and exposes its tools over MCP (proef mcp); it also consumes MCP instrument servers.
docs/ROADMAP.md.From a checkout, no lab and no API key needed. The demo and tests run offline on a simulated lab.
git clone https://github.com/rbalachandar/proef.git cd proef make install # python package + web deps into ./.venv .venv/bin/python -m proef.cli demo # abstain-and-refute cascade (simulated) make run # workbench on http://localhost:8000
# with .venv/bin on your PATH (or prefix each command with .venv/bin/)
proef read results.csv # analyze an instrument export
proef campaign auto --template dose-response-screen \
--field compounds=C1,C2,C3 --autonomy act --yes
proef prove <branch> --html out.html # tamper-evident report
proef eval # the graded suite
Bring a model with PROEF_LLM_PRESET / PROEF_LLM_MODEL (any OpenAI-compatible endpoint or Anthropic). Full guide: QUICKSTART.