proef.

Proef · agentic science framework

Agents propose, run and review.
A scientist decides. The record proves it.

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.

Python · FastAPI · ReactMCP + Agent Skills hash-chained provenanceApache-2.0 drug discovery first, domain-agnostic core
The workbench: review what the agents did, see why a candidate abstained, run a plate by hand and have it judged against the gate registered beforehand, and verify the ledger. All numbers are simulated.

WHY PROEFAn agent that can be graded, not just trusted

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.

Pre-registered, falsifiable
Every hypothesis records its predicted value and a refuted-if clause before any data exists. Verdicts are judged against criteria registered beforehand.
Honest about uncertainty
A confidence interval that straddles the gate abstains. It is never rounded into a pass or a fail, and an abstention is graded down, not counted as a win.
A person stays in control
The only path from an agent to a lab is a gateway with a policy engine the agent cannot modify, an operator halt it cannot lift, budgets, and a plan a person reviews first.
Auditable end to end
Every decision, call, result and verdict lands on a hash-chained ledger. A campaign can be replayed from it with no model and no network, and an audit checks its rules over the record.

HOW IT WORKSOne campaign, from question to verdict

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.

How a campaign runs
proef demo: a campaign abstains on a borderline result and refutes a planted false hit
The same engine from the terminal: proef demo abstains where the confidence interval straddles the gate and refutes a planted false hit. All numbers are simulated.
StageWhat happensWho 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)
ProposeA portfolio of mechanistic, falsifiable hypotheses, each with a refuted-if clause. Citations are checked against PubMed; a fake citation ranks below none.Model
SelectRank, cap for diversity, and optionally choose the batch by applicability-domain-gated Bayesian expected improvement.Engine
Plan reviewA person sees the plan, the critic's concerns and the warnings, removes hypotheses and approves or declines.A person
Check, then submitSafety screening (toxicophores, regulated agents, biosafety level), halt switch, authorization, budgets.Engine, policy code the agent cannot reach
RunThe assay runs and raw evidence comes back.Lab adapter
Analyze and judgeDose-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 nextFollow 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 auditEverything goes on the hash-chained ledger; replayable offline.Provenance store

THE WORKBENCHWhere a scientist actually works

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.

Plan review
Plan review: the plan, the critic's concerns, and what grounds each hypothesis. Remove, approve or decline.
Research result
A result with its interval and verdict, and why a candidate abstained.
Programs and campaigns
A program is the goal and its gate. Campaigns run against it, in parallel, sharing one pool of lab runs. A model can split an objective into sub-problems that you review first.
Decisions in one place
Pending approvals and abstentions to follow up, accept or drop, filterable or grouped by program, each recorded under a name.
Bring your own plate
proef read results.csv turns an instrument export into fitted curves, intervals and QC, with no model involved.

TRUST MECHANISMSGuarantees that live in code, not in a prompt

MechanismWhat it guarantees
Uncertainty vetoes certaintyA 95% interval that straddles the gate abstains, on any metric.
Molecular safety gateVersioned 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 governanceAn operator halt the agent cannot lift, an autonomous / human-approved / never authorization matrix, budgets that cap what a campaign may consume.
Tiered trustDeterministic rules hold the floor. A model may add a flag or demand human review; it can never clear a refusal.
Provenance physicsThe hash chain is enforced by the database and recomputed on read; Merkle anchoring lets anyone check the record was not edited.
Grounded, not assertedItems a model cites from the literature must trace to retrieved results. Prior predictions are labelled priors, never evidence.
Input trust boundaryJunk or adversarial instrument files degrade to "unreadable, no verdicts changed"; injection-shaped sample names cannot reach the gate as instructions.
The verdict rule

EVIDENCEGraded by its own harness, tested on real data

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.

TierCovers
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

Eight case studies, negative results included

StudyResult
Tyrphostins (1989), blind reproductionIllustrative only: the model had already seen the paper.
AZ3246 HPK1 (2025), post-cutoff paperFound the paper's core from structures alone. Ranking above chance (ρ ≈ +0.5) but not significantly better than simple baselines at n = 21.
Four ChEMBL papersChemotype identified 4/4; audit trail intact; no enrichment claim survives correction.
EGFR hit-to-lead, prospective, seven successors hidden5 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 depositNegative: our rules don't port to self-normalized data (ρ = 0.107), which led to refusing them.
Proteinbase reproductionHit rates reproduced. Computed confidence picked worse than random; a miscalibrated applicability-domain floor was found and fixed.
PD-L1 binder designsScore 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.

PLUGGABLE BY DESIGNFive interfaces, swap anything

Architecture: people, engine, gates and the ledger
InterfaceAdapters today
ModelProviderOpenAI-compatible endpoints (OpenAI, ollama, vLLM), Anthropic
LabAdapterSimulators, recording/replay, plate-reader share, Opentrons OT-2/Flex (contract-tested against a simulated robot), MCP instrument servers
Sandboxlocal, Docker, OpenSandbox, AgentENV
ProvenanceStoreSQLite (hash-chained, engine triggers)
BioToolRDKit 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.

STATUSWhat is and is not proven

  • Most results here come from simulated labs and replayed real data. Simulated numbers are always labelled as such.
  • Nothing is hardware-validated yet: the Opentrons path is contract-tested against a simulated robot, and the MCP instrument path was exercised live against two third-party servers only.
  • With a real model, the framework was validated end to end (tool use, grounding, replay, blinding). Whether grounding improves hypothesis quality has not been evaluated.
  • Sandboxing is opt-in. Docker isolation is verified in CI; analysis fits still run in-process.
  • The live plan is on GitHub in docs/ROADMAP.md.

GET STARTEDTry it in two minutes

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.