proef 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- proef-0.2.0/.github/workflows/ci.yml +144 -0
- proef-0.2.0/.github/workflows/release.yml +41 -0
- proef-0.2.0/.gitignore +26 -0
- proef-0.2.0/AGENTS.md +64 -0
- proef-0.2.0/Dockerfile.sandbox +8 -0
- proef-0.2.0/LICENSE +202 -0
- proef-0.2.0/Makefile +53 -0
- proef-0.2.0/PKG-INFO +662 -0
- proef-0.2.0/README.md +625 -0
- proef-0.2.0/assets/demo/demo-plate.csv +11 -0
- proef-0.2.0/assets/demo/proef-demo.gif +0 -0
- proef-0.2.0/assets/demo/proef-ui-demo.gif +0 -0
- proef-0.2.0/assets/fig/evidence.svg +103 -0
- proef-0.2.0/assets/fig/recovery.svg +49 -0
- proef-0.2.0/assets/fig/stability.svg +29 -0
- proef-0.2.0/assets/logo/favicon-light.png +0 -0
- proef-0.2.0/assets/logo/favicon.png +0 -0
- proef-0.2.0/assets/logo/proef-banner.png +0 -0
- proef-0.2.0/assets/logo/proef-lockup-onDark.png +0 -0
- proef-0.2.0/assets/logo/proef-lockup.png +0 -0
- proef-0.2.0/assets/logo/proef-mark-onDark.png +0 -0
- proef-0.2.0/assets/logo/proef-mark-tile-light.png +0 -0
- proef-0.2.0/assets/logo/proef-mark-tile.png +0 -0
- proef-0.2.0/assets/logo/proef-mark.png +0 -0
- proef-0.2.0/assets/logo/proef-wordmark-onDark.png +0 -0
- proef-0.2.0/assets/logo/proef-wordmark.png +0 -0
- proef-0.2.0/assets/screenshots/plan-review.png +0 -0
- proef-0.2.0/assets/screenshots/research-result.png +0 -0
- proef-0.2.0/assets/social-preview.png +0 -0
- proef-0.2.0/assets/story/demo-run.json +546 -0
- proef-0.2.0/case-studies/01-egfr-blind-reproduction/README.md +169 -0
- proef-0.2.0/case-studies/01-egfr-blind-reproduction/fixtures/chembl_CHEMBL203.csv.gz +0 -0
- proef-0.2.0/case-studies/01-egfr-blind-reproduction/fixtures/manifest.json +11 -0
- proef-0.2.0/case-studies/01-egfr-blind-reproduction/rf_baseline.py +53 -0
- proef-0.2.0/case-studies/01-egfr-blind-reproduction/run.py +240 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/README.md +131 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/agent_runs.py +231 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/agent_runs_gpt-6-luna.json +179 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_04d18538edf2.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_0a9b3f78542a.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3348c1f61330.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3c7e5e8e3f93.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3f29a4a08b63.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5487ac742379.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5ca5a79fa456.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5f293049f842.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5f3f66cda4b7.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_76c56373f3ce.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_77ff7667f128.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_7a8298202ae0.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_80bf7ac1b210.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_8680f62cba3f.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_9107f64c19ce.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_98a9ba2dcfed.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_a23470f9bf30.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_a6a6fd874c91.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_bbcf1d570706.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_bd69cac2c7a2.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_c447feddb437.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_cc66d3ed4f31.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ccbc8d940915.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_d3c9d45d4896.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_d5a3c73b4d13.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_dd0e06c62e58.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_de16fee32935.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_e5f02a9b2aa6.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_e6b2d7b31b39.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ebef7a0e720c.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ee597442135c.json.gz +0 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/manifest.json +191 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/rf_baseline.py +111 -0
- proef-0.2.0/case-studies/02-az3246-hpk1/run.py +337 -0
- proef-0.2.0/case-studies/03-multi-paper/README.md +199 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6078657.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087407.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087413.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087414.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087416.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087417.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103581.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103582.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103584.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103593.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/manifest.json +101 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL247.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL392.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL4508.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL612545.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL613835.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL614245.json.gz +0 -0
- proef-0.2.0/case-studies/03-multi-paper/flow_check.py +277 -0
- proef-0.2.0/case-studies/03-multi-paper/flow_results.json +132 -0
- proef-0.2.0/case-studies/03-multi-paper/llm-run.log +32 -0
- proef-0.2.0/case-studies/03-multi-paper/papers_found.json +242 -0
- proef-0.2.0/case-studies/03-multi-paper/reference_manifest.json +23 -0
- proef-0.2.0/case-studies/03-multi-paper/results.json +130 -0
- proef-0.2.0/case-studies/03-multi-paper/run.py +437 -0
- proef-0.2.0/case-studies/03-multi-paper/screen_papers.py +90 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/README.md +138 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/acq_replay.py +295 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/acq_replay_results.json +244 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/chembl_CHEMBL203.csv.gz +0 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/heldout.json.gz +0 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/manifest.json +17 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/heldout.json +80 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/results.json +841 -0
- proef-0.2.0/case-studies/04-prospective-hit2lead/run.py +468 -0
- proef-0.2.0/case-studies/05-paper-pilot/README.md +149 -0
- proef-0.2.0/case-studies/05-paper-pilot/fixtures/aid_1879.csv.gz +0 -0
- proef-0.2.0/case-studies/05-paper-pilot/fixtures/aid_1890.csv.gz +0 -0
- proef-0.2.0/case-studies/05-paper-pilot/fixtures/manifest.json +17 -0
- proef-0.2.0/case-studies/05-paper-pilot/results.json +1624 -0
- proef-0.2.0/case-studies/05-paper-pilot/run.py +213 -0
- proef-0.2.0/case-studies/05-paper-pilot/scripts/fetch_raw_data.sh +25 -0
- proef-0.2.0/case-studies/05-paper-pilot/sources.json +27 -0
- proef-0.2.0/case-studies/06-ncats-deposit/README.md +121 -0
- proef-0.2.0/case-studies/06-ncats-deposit/fixtures/aid_2061307.csv.gz +0 -0
- proef-0.2.0/case-studies/06-ncats-deposit/fixtures/manifest.json +11 -0
- proef-0.2.0/case-studies/06-ncats-deposit/results.json +86 -0
- proef-0.2.0/case-studies/06-ncats-deposit/run.py +243 -0
- proef-0.2.0/case-studies/06-ncats-deposit/scripts/fetch_raw_data.sh +16 -0
- proef-0.2.0/case-studies/06-ncats-deposit/sources.json +24 -0
- proef-0.2.0/case-studies/07-proteinbase/README.md +77 -0
- proef-0.2.0/case-studies/07-proteinbase/fixtures/MANIFEST.json +22 -0
- proef-0.2.0/case-studies/07-proteinbase/fixtures/pairs.csv.gz +0 -0
- proef-0.2.0/case-studies/07-proteinbase/fixtures/proteins.csv.gz +0 -0
- proef-0.2.0/case-studies/07-proteinbase/results.json +211 -0
- proef-0.2.0/case-studies/07-proteinbase/run.py +153 -0
- proef-0.2.0/case-studies/07-proteinbase/scripts/derive_fixtures.py +93 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/README.md +181 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/cs08_io.py +47 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/diversity_select.py +42 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/entry_gates.py +54 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/proef_cycle.py +123 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/proef_cycle_results.json +41 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/prospective_results.json +72 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/prospective_run.py +124 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/replay.py +68 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/replay_results.json +22 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/runpack/README.md +17 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/runpack/jobrunner.py +131 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/runpack/runpod_setup.sh +12 -0
- proef-0.2.0/case-studies/08-proteinbase-entry/seed_workbench.py +243 -0
- proef-0.2.0/diagrams/README.md +16 -0
- proef-0.2.0/diagrams/architecture.svg +71 -0
- proef-0.2.0/diagrams/campaign-flow.svg +66 -0
- proef-0.2.0/diagrams/gates.svg +60 -0
- proef-0.2.0/diagrams/verdict-rule.svg +33 -0
- proef-0.2.0/docs/ACQUISITION-IMPLEMENTATION-PLAN.md +141 -0
- proef-0.2.0/docs/ADAPTERS.md +122 -0
- proef-0.2.0/docs/BRAND.md +66 -0
- proef-0.2.0/docs/DOMAIN-TOOLS.md +97 -0
- proef-0.2.0/docs/EXPERIMENT-ANALYSIS-IMPLEMENTATION-PLAN.md +325 -0
- proef-0.2.0/docs/LLM-ORCHESTRATION.md +866 -0
- proef-0.2.0/docs/MODELS.md +179 -0
- proef-0.2.0/docs/PLAN.md +105 -0
- proef-0.2.0/docs/QUICKSTART.md +102 -0
- proef-0.2.0/docs/REVIEW-2026-10.md +270 -0
- proef-0.2.0/docs/ROADMAP.md +1331 -0
- proef-0.2.0/docs/UX.md +168 -0
- proef-0.2.0/docs/WORKBENCH-REDESIGN.md +196 -0
- proef-0.2.0/docs/architecture.md +73 -0
- proef-0.2.0/docs/benchmarks.md +93 -0
- proef-0.2.0/docs/critical-review.md +152 -0
- proef-0.2.0/docs/design/legacy-theme/README.md +8 -0
- proef-0.2.0/docs/design/legacy-theme/app.css +65 -0
- proef-0.2.0/docs/design/legacy-theme/campaign-dark.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/campaign-light.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/inbox-dark.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/inbox-light.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/program-dark.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/program-light.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/today-dark.png +0 -0
- proef-0.2.0/docs/design/legacy-theme/today-light.png +0 -0
- proef-0.2.0/docs/design/wireframes/a-notebook.html +75 -0
- proef-0.2.0/docs/design/wireframes/b-composition.html +56 -0
- proef-0.2.0/docs/design/wireframes/c-record.html +54 -0
- proef-0.2.0/docs/design/wireframes/d-common.js +20 -0
- proef-0.2.0/docs/design/wireframes/d-mission.html +48 -0
- proef-0.2.0/docs/design/wireframes/d-theme.css +29 -0
- proef-0.2.0/docs/design/wireframes/d2-mission-light.html +31 -0
- proef-0.2.0/docs/design/wireframes/d2-mission.html +31 -0
- proef-0.2.0/docs/design/wireframes/d3-rounds-light.html +37 -0
- proef-0.2.0/docs/design/wireframes/d3-rounds.html +37 -0
- proef-0.2.0/docs/design/wireframes/d4-tree-light.html +35 -0
- proef-0.2.0/docs/design/wireframes/d4-tree.html +35 -0
- proef-0.2.0/docs/design/wireframes/d5-record-light.html +43 -0
- proef-0.2.0/docs/design/wireframes/d5-record.html +43 -0
- proef-0.2.0/docs/design/wireframes/e-blueprint.html +54 -0
- proef-0.2.0/docs/design/wireframes/f-swiss-cool.html +56 -0
- proef-0.2.0/docs/design/wireframes/plot.js +45 -0
- proef-0.2.0/docs/domain-review.md +46 -0
- proef-0.2.0/docs/flows.md +88 -0
- proef-0.2.0/docs/images/dose-response.svg +33 -0
- proef-0.2.0/docs/research-landscape.md +288 -0
- proef-0.2.0/docs/safety-and-security.md +169 -0
- proef-0.2.0/docs/stability.md +59 -0
- proef-0.2.0/docs/virtual-lab.md +51 -0
- proef-0.2.0/evals/fixtures/hallucination.json +573 -0
- proef-0.2.0/evals/leaderboard.md +48 -0
- proef-0.2.0/evals/results.json +481 -0
- proef-0.2.0/evals/runs/grounding-2026-11-21.analysis.json +325 -0
- proef-0.2.0/examples/campaign.json +26 -0
- proef-0.2.0/examples/campaign_llm.json +14 -0
- proef-0.2.0/examples/demo_full_flow.py +264 -0
- proef-0.2.0/examples/demo_imaging.py +57 -0
- proef-0.2.0/examples/ezo_sensor_campaign.py +46 -0
- proef-0.2.0/examples/pilot_campaign.json +38 -0
- proef-0.2.0/examples/run_benchmarks.py +91 -0
- proef-0.2.0/examples/workflow.yml +37 -0
- proef-0.2.0/plugin.json +14 -0
- proef-0.2.0/pyproject.toml +49 -0
- proef-0.2.0/scripts/capture_story_run.py +89 -0
- proef-0.2.0/scripts/ci_core.sh +14 -0
- proef-0.2.0/scripts/export_openapi.py +19 -0
- proef-0.2.0/scripts/grounding_analyze.py +23 -0
- proef-0.2.0/scripts/grounding_compare.py +96 -0
- proef-0.2.0/scripts/grounding_experiment.py +58 -0
- proef-0.2.0/scripts/grounding_real_model.py +170 -0
- proef-0.2.0/scripts/grounding_suite.json +9 -0
- proef-0.2.0/scripts/make_brand_assets.mjs +78 -0
- proef-0.2.0/scripts/record_api_fixtures.py +68 -0
- proef-0.2.0/scripts/record_cli_demo.py +96 -0
- proef-0.2.0/scripts/record_ui_demo.mjs +154 -0
- proef-0.2.0/scripts/render_diagrams.py +203 -0
- proef-0.2.0/scripts/render_social_preview.mjs +36 -0
- proef-0.2.0/scripts/reset_data.sh +20 -0
- proef-0.2.0/scripts/seed_sample_workspace.py +94 -0
- proef-0.2.0/scripts/smoke_real_model.py +50 -0
- proef-0.2.0/scripts/update_slow_list.py +27 -0
- proef-0.2.0/skills/proef/SKILL.md +132 -0
- proef-0.2.0/skills/proef-campaign/SKILL.md +48 -0
- proef-0.2.0/skills/proef-labread/SKILL.md +44 -0
- proef-0.2.0/skills/proef-labwatch/SKILL.md +40 -0
- proef-0.2.0/skills/proef-opentrons/SKILL.md +43 -0
- proef-0.2.0/src/proef/__init__.py +25 -0
- proef-0.2.0/src/proef/acquisition.py +244 -0
- proef-0.2.0/src/proef/ad.py +159 -0
- proef-0.2.0/src/proef/adapters/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/admet.py +196 -0
- proef-0.2.0/src/proef/adapters/bio/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/bio/rdkit_ops.py +52 -0
- proef-0.2.0/src/proef/adapters/bio/safety_rules.json +146 -0
- proef-0.2.0/src/proef/adapters/bio/seq_alerts.py +79 -0
- proef-0.2.0/src/proef/adapters/bio/structure_score.py +85 -0
- proef-0.2.0/src/proef/adapters/bio/tox_alerts.py +99 -0
- proef-0.2.0/src/proef/adapters/data/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/data/admet.py +62 -0
- proef-0.2.0/src/proef/adapters/data/chembl.py +110 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/MANIFEST.json +48 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/bbb_martins/test.csv +407 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/bbb_martins/train_val.csv +1625 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/caco2_wang/test.csv +183 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/caco2_wang/train_val.csv +729 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/hia_hou/test.csv +118 -0
- proef-0.2.0/src/proef/adapters/data/frozen/admet/hia_hou/train_val.csv +462 -0
- proef-0.2.0/src/proef/adapters/data/moleculenet.py +60 -0
- proef-0.2.0/src/proef/adapters/databases/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/databases/chembl_gates.py +121 -0
- proef-0.2.0/src/proef/adapters/databases/chembl_lookup.py +35 -0
- proef-0.2.0/src/proef/adapters/databases/open_targets.py +102 -0
- proef-0.2.0/src/proef/adapters/databases/pubmed.py +94 -0
- proef-0.2.0/src/proef/adapters/devices/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/devices/ezo_ph.py +251 -0
- proef-0.2.0/src/proef/adapters/devices/hcs_microscope.py +143 -0
- proef-0.2.0/src/proef/adapters/devices/lcms.py +123 -0
- proef-0.2.0/src/proef/adapters/devices/scheduler.py +84 -0
- proef-0.2.0/src/proef/adapters/devices/sila2.py +134 -0
- proef-0.2.0/src/proef/adapters/genomics/alphagenome.py +146 -0
- proef-0.2.0/src/proef/adapters/lab/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/lab/bioprocess.py +32 -0
- proef-0.2.0/src/proef/adapters/lab/devices.py +170 -0
- proef-0.2.0/src/proef/adapters/lab/imaging.py +226 -0
- proef-0.2.0/src/proef/adapters/lab/mhs_driver.py +124 -0
- proef-0.2.0/src/proef/adapters/lab/opentrons.py +222 -0
- proef-0.2.0/src/proef/adapters/lab/ot2_sim.py +174 -0
- proef-0.2.0/src/proef/adapters/lab/plate_reader_share.py +108 -0
- proef-0.2.0/src/proef/adapters/lab/protein_design.py +199 -0
- proef-0.2.0/src/proef/adapters/lab/recording.py +119 -0
- proef-0.2.0/src/proef/adapters/lab/replay.py +107 -0
- proef-0.2.0/src/proef/adapters/lab/simulator.py +282 -0
- proef-0.2.0/src/proef/adapters/lab/synthesis.py +92 -0
- proef-0.2.0/src/proef/adapters/models/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/models/anthropic_provider.py +157 -0
- proef-0.2.0/src/proef/adapters/models/assayloop_ranker.py +67 -0
- proef-0.2.0/src/proef/adapters/models/from_env.py +93 -0
- proef-0.2.0/src/proef/adapters/models/gp_policy.py +93 -0
- proef-0.2.0/src/proef/adapters/models/gp_policy_gp.py +36 -0
- proef-0.2.0/src/proef/adapters/models/llm_policy.py +187 -0
- proef-0.2.0/src/proef/adapters/models/openai_compat.py +150 -0
- proef-0.2.0/src/proef/adapters/models/sklearn_policy.py +65 -0
- proef-0.2.0/src/proef/adapters/retrosynthesis.py +247 -0
- proef-0.2.0/src/proef/adapters/sandbox/__init__.py +20 -0
- proef-0.2.0/src/proef/adapters/sandbox/agentenv.py +145 -0
- proef-0.2.0/src/proef/adapters/sandbox/docker.py +217 -0
- proef-0.2.0/src/proef/adapters/sandbox/local.py +164 -0
- proef-0.2.0/src/proef/adapters/sandbox/opensandbox.py +122 -0
- proef-0.2.0/src/proef/adapters/store/__init__.py +0 -0
- proef-0.2.0/src/proef/adapters/store/sqlite.py +207 -0
- proef-0.2.0/src/proef/adaptive.py +108 -0
- proef-0.2.0/src/proef/advisory.py +76 -0
- proef-0.2.0/src/proef/analysis_profiles/__init__.py +8 -0
- proef-0.2.0/src/proef/analysis_profiles/measurements.py +266 -0
- proef-0.2.0/src/proef/analysis_profiles/plate_assay.py +316 -0
- proef-0.2.0/src/proef/analysis_report.py +195 -0
- proef-0.2.0/src/proef/analysis_store.py +183 -0
- proef-0.2.0/src/proef/anchor.py +154 -0
- proef-0.2.0/src/proef/api/app.py +107 -0
- proef-0.2.0/src/proef/api/launch.py +170 -0
- proef-0.2.0/src/proef/api/v1/__init__.py +29 -0
- proef-0.2.0/src/proef/api/v1/analyses.py +367 -0
- proef-0.2.0/src/proef/api/v1/campaigns.py +802 -0
- proef-0.2.0/src/proef/api/v1/deps.py +10 -0
- proef-0.2.0/src/proef/api/v1/evals.py +16 -0
- proef-0.2.0/src/proef/api/v1/evidence.py +132 -0
- proef-0.2.0/src/proef/api/v1/governance.py +35 -0
- proef-0.2.0/src/proef/api/v1/inbox.py +119 -0
- proef-0.2.0/src/proef/api/v1/lab.py +110 -0
- proef-0.2.0/src/proef/api/v1/pauses.py +77 -0
- proef-0.2.0/src/proef/api/v1/programs.py +397 -0
- proef-0.2.0/src/proef/api/v1/results.py +147 -0
- proef-0.2.0/src/proef/api/v1/schemas.py +932 -0
- proef-0.2.0/src/proef/api/v1/system.py +79 -0
- proef-0.2.0/src/proef/api/v1/trees.py +216 -0
- proef-0.2.0/src/proef/api/wizard_sessions.py +253 -0
- proef-0.2.0/src/proef/approvals.py +102 -0
- proef-0.2.0/src/proef/assays/__init__.py +15 -0
- proef-0.2.0/src/proef/assays/dls.py +114 -0
- proef-0.2.0/src/proef/assays/dsf.py +81 -0
- proef-0.2.0/src/proef/assays/elisa.py +58 -0
- proef-0.2.0/src/proef/assays/properties.py +65 -0
- proef-0.2.0/src/proef/assays/simulate.py +157 -0
- proef-0.2.0/src/proef/audit.py +152 -0
- proef-0.2.0/src/proef/autoloop.py +1620 -0
- proef-0.2.0/src/proef/benchmark.py +442 -0
- proef-0.2.0/src/proef/campaign_fsm.py +151 -0
- proef-0.2.0/src/proef/citations.py +141 -0
- proef-0.2.0/src/proef/cli.py +1249 -0
- proef-0.2.0/src/proef/connect.py +74 -0
- proef-0.2.0/src/proef/core/__init__.py +0 -0
- proef-0.2.0/src/proef/core/contracts/__init__.py +35 -0
- proef-0.2.0/src/proef/core/contracts/analysis.py +100 -0
- proef-0.2.0/src/proef/core/contracts/models.py +395 -0
- proef-0.2.0/src/proef/core/device_card.py +125 -0
- proef-0.2.0/src/proef/core/hypothesis.py +720 -0
- proef-0.2.0/src/proef/core/interfaces.py +164 -0
- proef-0.2.0/src/proef/core/registry.py +123 -0
- proef-0.2.0/src/proef/core/safety.py +324 -0
- proef-0.2.0/src/proef/core/workflow.py +159 -0
- proef-0.2.0/src/proef/critic.py +62 -0
- proef-0.2.0/src/proef/demo.py +164 -0
- proef-0.2.0/src/proef/derivation.py +128 -0
- proef-0.2.0/src/proef/diary.py +301 -0
- proef-0.2.0/src/proef/eln.py +87 -0
- proef-0.2.0/src/proef/evals/__init__.py +1 -0
- proef-0.2.0/src/proef/evals/hallucination.py +86 -0
- proef-0.2.0/src/proef/evals/harness.py +358 -0
- proef-0.2.0/src/proef/evals/orchestration.py +254 -0
- proef-0.2.0/src/proef/evals/tasks.py +1010 -0
- proef-0.2.0/src/proef/evals/toolcalls.py +425 -0
- proef-0.2.0/src/proef/experiment.py +172 -0
- proef-0.2.0/src/proef/experiment_analysis.py +114 -0
- proef-0.2.0/src/proef/experiments/__init__.py +0 -0
- proef-0.2.0/src/proef/experiments/grounding_exp.py +689 -0
- proef-0.2.0/src/proef/figures.py +218 -0
- proef-0.2.0/src/proef/fitting.py +309 -0
- proef-0.2.0/src/proef/fixtures.py +140 -0
- proef-0.2.0/src/proef/flywheel.py +125 -0
- proef-0.2.0/src/proef/followup.py +126 -0
- proef-0.2.0/src/proef/governance.py +290 -0
- proef-0.2.0/src/proef/groundedness.py +361 -0
- proef-0.2.0/src/proef/grounding.py +202 -0
- proef-0.2.0/src/proef/hypothesis_agent.py +369 -0
- proef-0.2.0/src/proef/ingest.py +157 -0
- proef-0.2.0/src/proef/instruments.json +173 -0
- proef-0.2.0/src/proef/interpret.py +95 -0
- proef-0.2.0/src/proef/kinetic.py +102 -0
- proef-0.2.0/src/proef/labread/__init__.py +45 -0
- proef-0.2.0/src/proef/labread/analysis.py +428 -0
- proef-0.2.0/src/proef/labread/common.py +153 -0
- proef-0.2.0/src/proef/labread/formats.py +190 -0
- proef-0.2.0/src/proef/labread/layout.py +168 -0
- proef-0.2.0/src/proef/labread/pubchem.py +179 -0
- proef-0.2.0/src/proef/labselect.py +431 -0
- proef-0.2.0/src/proef/materials.py +140 -0
- proef-0.2.0/src/proef/mcp_instrument.py +396 -0
- proef-0.2.0/src/proef/mcp_server.py +283 -0
- proef-0.2.0/src/proef/modality.py +111 -0
- proef-0.2.0/src/proef/model_guard.py +245 -0
- proef-0.2.0/src/proef/output_blocks.py +183 -0
- proef-0.2.0/src/proef/paths.py +32 -0
- proef-0.2.0/src/proef/physfail.py +55 -0
- proef-0.2.0/src/proef/plan.py +160 -0
- proef-0.2.0/src/proef/plots.py +123 -0
- proef-0.2.0/src/proef/predictors.py +217 -0
- proef-0.2.0/src/proef/probes.py +79 -0
- proef-0.2.0/src/proef/problem_tree.py +581 -0
- proef-0.2.0/src/proef/program.py +308 -0
- proef-0.2.0/src/proef/protocol_design.py +42 -0
- proef-0.2.0/src/proef/proxy.py +78 -0
- proef-0.2.0/src/proef/readiness.py +259 -0
- proef-0.2.0/src/proef/reliability.py +49 -0
- proef-0.2.0/src/proef/report.py +117 -0
- proef-0.2.0/src/proef/reproduce.py +310 -0
- proef-0.2.0/src/proef/reviewer.py +254 -0
- proef-0.2.0/src/proef/sandbox_session.py +247 -0
- proef-0.2.0/src/proef/sandboxd.py +109 -0
- proef-0.2.0/src/proef/scaffold.py +195 -0
- proef-0.2.0/src/proef/series.py +327 -0
- proef-0.2.0/src/proef/skills.py +203 -0
- proef-0.2.0/src/proef/sweep.py +83 -0
- proef-0.2.0/src/proef/taste.py +177 -0
- proef-0.2.0/src/proef/templates/confirmatory-followup.json +34 -0
- proef-0.2.0/src/proef/templates/dose-response-screen.json +39 -0
- proef-0.2.0/src/proef/templates/sar-exploration.json +38 -0
- proef-0.2.0/src/proef/templates.py +124 -0
- proef-0.2.0/src/proef/toolkit.py +433 -0
- proef-0.2.0/src/proef/toolloop.py +133 -0
- proef-0.2.0/src/proef/tools.py +441 -0
- proef-0.2.0/src/proef/tpp.py +185 -0
- proef-0.2.0/src/proef/views/__init__.py +14 -0
- proef-0.2.0/src/proef/views/counts.py +102 -0
- proef-0.2.0/src/proef/views/experiment.py +154 -0
- proef-0.2.0/src/proef/views/ids.py +49 -0
- proef-0.2.0/src/proef/views/narrative.py +294 -0
- proef-0.2.0/src/proef/views/pipeline.py +370 -0
- proef-0.2.0/src/proef/vision.py +165 -0
- proef-0.2.0/src/proef/watch.py +790 -0
- proef-0.2.0/src/proef/wizard_chain.py +25 -0
- proef-0.2.0/src/proef/wizard_store.py +373 -0
- proef-0.2.0/tests/__init__.py +0 -0
- proef-0.2.0/tests/conftest.py +65 -0
- proef-0.2.0/tests/data/instruments/README.md +19 -0
- proef-0.2.0/tests/data/instruments/biotek_1steptimer.csv +780 -0
- proef-0.2.0/tests/data/instruments/gen5_demo_input.txt +850 -0
- proef-0.2.0/tests/data/instruments/plate_layout_96.csv +29 -0
- proef-0.2.0/tests/data/instruments/tecan_ON1.csv +292 -0
- proef-0.2.0/tests/data/instruments/tecan_ON1.xlsx +0 -0
- proef-0.2.0/tests/fixtures/api/chembl_activities.json +1 -0
- proef-0.2.0/tests/fixtures/api/chembl_id_lookup_missing.status +1 -0
- proef-0.2.0/tests/fixtures/api/chembl_id_lookup_ok.json +1 -0
- proef-0.2.0/tests/fixtures/api/chembl_target_search.json +1 -0
- proef-0.2.0/tests/fixtures/api/opentargets_search.json +1 -0
- proef-0.2.0/tests/fixtures/api/opentargets_target.json +1 -0
- proef-0.2.0/tests/fixtures/api/pubmed_efetch.xml +4 -0
- proef-0.2.0/tests/fixtures/api/pubmed_esearch.json +1 -0
- proef-0.2.0/tests/fixtures/api/pubmed_esummary.json +1 -0
- proef-0.2.0/tests/golden/campaign.json +2222 -0
- proef-0.2.0/tests/live/test_live_apis.py +70 -0
- proef-0.2.0/tests/slow_tests.txt +86 -0
- proef-0.2.0/tests/test_acquisition.py +120 -0
- proef-0.2.0/tests/test_acquisition_campaign.py +160 -0
- proef-0.2.0/tests/test_ad.py +139 -0
- proef-0.2.0/tests/test_adapters_ext.py +1852 -0
- proef-0.2.0/tests/test_admet_frozen.py +40 -0
- proef-0.2.0/tests/test_alphagenome.py +60 -0
- proef-0.2.0/tests/test_analyses_v1.py +250 -0
- proef-0.2.0/tests/test_api.py +104 -0
- proef-0.2.0/tests/test_api_fixtures.py +98 -0
- proef-0.2.0/tests/test_api_v1.py +687 -0
- proef-0.2.0/tests/test_art_triad.py +118 -0
- proef-0.2.0/tests/test_assays.py +192 -0
- proef-0.2.0/tests/test_audit.py +163 -0
- proef-0.2.0/tests/test_blinding.py +90 -0
- proef-0.2.0/tests/test_censoring.py +71 -0
- proef-0.2.0/tests/test_chembl_gates.py +52 -0
- proef-0.2.0/tests/test_cli_select.py +60 -0
- proef-0.2.0/tests/test_core.py +412 -0
- proef-0.2.0/tests/test_degraded.py +122 -0
- proef-0.2.0/tests/test_demo_moment.py +98 -0
- proef-0.2.0/tests/test_device_card.py +39 -0
- proef-0.2.0/tests/test_domain_packs.py +159 -0
- proef-0.2.0/tests/test_entry_gates.py +89 -0
- proef-0.2.0/tests/test_evals_api.py +63 -0
- proef-0.2.0/tests/test_experiment_analysis.py +82 -0
- proef-0.2.0/tests/test_ezo_campaign_mcp.py +198 -0
- proef-0.2.0/tests/test_ezo_ph_poc.py +92 -0
- proef-0.2.0/tests/test_faults.py +138 -0
- proef-0.2.0/tests/test_flywheel.py +52 -0
- proef-0.2.0/tests/test_followups.py +373 -0
- proef-0.2.0/tests/test_golden_campaign.py +79 -0
- proef-0.2.0/tests/test_governance.py +243 -0
- proef-0.2.0/tests/test_gp_policy.py +54 -0
- proef-0.2.0/tests/test_ground_step.py +286 -0
- proef-0.2.0/tests/test_grounding.py +169 -0
- proef-0.2.0/tests/test_grounding_decide.py +222 -0
- proef-0.2.0/tests/test_grounding_experiment.py +530 -0
- proef-0.2.0/tests/test_hallucination.py +329 -0
- proef-0.2.0/tests/test_ingest_memory.py +126 -0
- proef-0.2.0/tests/test_instrument_pick.py +310 -0
- proef-0.2.0/tests/test_isolation.py +34 -0
- proef-0.2.0/tests/test_labread_pubchem.py +215 -0
- proef-0.2.0/tests/test_labselect.py +194 -0
- proef-0.2.0/tests/test_legacy_names.py +31 -0
- proef-0.2.0/tests/test_loop_compute.py +155 -0
- proef-0.2.0/tests/test_makeability_gate.py +178 -0
- proef-0.2.0/tests/test_model_from_env.py +89 -0
- proef-0.2.0/tests/test_model_guard.py +206 -0
- proef-0.2.0/tests/test_one_surface.py +95 -0
- proef-0.2.0/tests/test_orchestrator.py +333 -0
- proef-0.2.0/tests/test_p3.py +204 -0
- proef-0.2.0/tests/test_pause.py +203 -0
- proef-0.2.0/tests/test_plan_gate.py +453 -0
- proef-0.2.0/tests/test_plate_assay_analysis.py +235 -0
- proef-0.2.0/tests/test_predicted_by.py +47 -0
- proef-0.2.0/tests/test_prediction_tools.py +286 -0
- proef-0.2.0/tests/test_probes.py +35 -0
- proef-0.2.0/tests/test_problem_tree.py +347 -0
- proef-0.2.0/tests/test_program.py +37 -0
- proef-0.2.0/tests/test_program_ids.py +19 -0
- proef-0.2.0/tests/test_protein_design.py +77 -0
- proef-0.2.0/tests/test_provenance_security.py +173 -0
- proef-0.2.0/tests/test_proxy_attribution.py +106 -0
- proef-0.2.0/tests/test_pubmed_parse.py +20 -0
- proef-0.2.0/tests/test_replay_agent.py +245 -0
- proef-0.2.0/tests/test_replay_all_features.py +149 -0
- proef-0.2.0/tests/test_results_v1.py +187 -0
- proef-0.2.0/tests/test_review_fixes.py +288 -0
- proef-0.2.0/tests/test_sandbox_docker_live.py +181 -0
- proef-0.2.0/tests/test_sandbox_exec.py +109 -0
- proef-0.2.0/tests/test_sandbox_session.py +299 -0
- proef-0.2.0/tests/test_series_view.py +220 -0
- proef-0.2.0/tests/test_shared_measurement.py +111 -0
- proef-0.2.0/tests/test_tool_selection_eval.py +24 -0
- proef-0.2.0/tests/test_toolkit_guarantees.py +412 -0
- proef-0.2.0/tests/test_tools.py +372 -0
- proef-0.2.0/tests/test_vendor_ingest.py +226 -0
- proef-0.2.0/tests/test_views.py +262 -0
- proef-0.2.0/tests/test_wizard.py +68 -0
- proef-0.2.0/tests/test_wizard_fence.py +109 -0
- proef-0.2.0/web/index.html +14 -0
- proef-0.2.0/web/openapi.json +7719 -0
- proef-0.2.0/web/package-lock.json +5300 -0
- proef-0.2.0/web/package.json +57 -0
- proef-0.2.0/web/public/proef-mark-light.png +0 -0
- proef-0.2.0/web/public/proef-mark.png +0 -0
- proef-0.2.0/web/src/api/auth.ts +14 -0
- proef-0.2.0/web/src/api/hooks.ts +280 -0
- proef-0.2.0/web/src/api/schema.d.ts +4444 -0
- proef-0.2.0/web/src/api/v1.ts +18 -0
- proef-0.2.0/web/src/app/CommandPalette.tsx +74 -0
- proef-0.2.0/web/src/app/HaltDialog.tsx +46 -0
- proef-0.2.0/web/src/app/Shell.tsx +89 -0
- proef-0.2.0/web/src/app/nav.ts +10 -0
- proef-0.2.0/web/src/app/theme.ts +20 -0
- proef-0.2.0/web/src/app/toast.tsx +32 -0
- proef-0.2.0/web/src/features/analyze/AnalyzePage.tsx +405 -0
- proef-0.2.0/web/src/features/campaign/ActivityFeed.tsx +28 -0
- proef-0.2.0/web/src/features/campaign/AgentsCard.tsx +78 -0
- proef-0.2.0/web/src/features/campaign/CampaignPage.tsx +155 -0
- proef-0.2.0/web/src/features/campaign/CurvePlot.tsx +70 -0
- proef-0.2.0/web/src/features/campaign/ForestPlot.tsx +99 -0
- proef-0.2.0/web/src/features/campaign/HypothesisDrawer.tsx +95 -0
- proef-0.2.0/web/src/features/campaign/MiniOutcome.tsx +28 -0
- proef-0.2.0/web/src/features/campaign/OutcomeBar.tsx +44 -0
- proef-0.2.0/web/src/features/campaign/RecordTab.tsx +98 -0
- proef-0.2.0/web/src/features/campaign/ResultsTable.tsx +62 -0
- proef-0.2.0/web/src/features/campaign/RoundsTimeline.tsx +92 -0
- proef-0.2.0/web/src/features/campaign/SubmitResultsDialog.tsx +96 -0
- proef-0.2.0/web/src/features/campaign/format.ts +57 -0
- proef-0.2.0/web/src/features/evidence/EvidencePage.tsx +146 -0
- proef-0.2.0/web/src/features/inbox/ApprovalCard.tsx +42 -0
- proef-0.2.0/web/src/features/inbox/InboxPage.tsx +137 -0
- proef-0.2.0/web/src/features/inbox/PlanReview.tsx +216 -0
- proef-0.2.0/web/src/features/inbox/ReviewControls.tsx +82 -0
- proef-0.2.0/web/src/features/inbox/group.ts +19 -0
- proef-0.2.0/web/src/features/lab/LabPage.tsx +125 -0
- proef-0.2.0/web/src/features/launch/FollowUpDialog.tsx +25 -0
- proef-0.2.0/web/src/features/launch/LaunchCampaignDialog.tsx +143 -0
- proef-0.2.0/web/src/features/launch/NewProgramDialog.tsx +65 -0
- proef-0.2.0/web/src/features/launch/SplitDialog.tsx +109 -0
- proef-0.2.0/web/src/features/launch/limits.tsx +38 -0
- proef-0.2.0/web/src/features/pause/PauseControl.tsx +57 -0
- proef-0.2.0/web/src/features/program/ProgramPage.tsx +147 -0
- proef-0.2.0/web/src/features/program/TreesCard.tsx +131 -0
- proef-0.2.0/web/src/features/program/goal.ts +17 -0
- proef-0.2.0/web/src/features/today/TodayPage.tsx +111 -0
- proef-0.2.0/web/src/main.tsx +57 -0
- proef-0.2.0/web/src/routes/Campaigns.tsx +63 -0
- proef-0.2.0/web/src/styles/app.css +73 -0
- proef-0.2.0/web/src/test/group.test.ts +16 -0
- proef-0.2.0/web/src/test/launch-split.test.tsx +34 -0
- proef-0.2.0/web/src/test/pause.test.tsx +39 -0
- proef-0.2.0/web/src/test/plan.test.tsx +180 -0
- proef-0.2.0/web/src/test/primitives.test.tsx +79 -0
- proef-0.2.0/web/src/test/record.test.tsx +57 -0
- proef-0.2.0/web/src/test/setup.ts +8 -0
- proef-0.2.0/web/src/ui/Button.tsx +35 -0
- proef-0.2.0/web/src/ui/Card.tsx +36 -0
- proef-0.2.0/web/src/ui/Chip.tsx +54 -0
- proef-0.2.0/web/src/ui/ContextStrip.tsx +27 -0
- proef-0.2.0/web/src/ui/Dialog.tsx +27 -0
- proef-0.2.0/web/src/ui/Field.tsx +22 -0
- proef-0.2.0/web/src/ui/PageHeader.tsx +18 -0
- proef-0.2.0/web/src/ui/Tabs.tsx +19 -0
- proef-0.2.0/web/src/ui/Tooltip.tsx +17 -0
- proef-0.2.0/web/src/ui/cn.ts +4 -0
- proef-0.2.0/web/tsconfig.json +15 -0
- proef-0.2.0/web/vite.config.ts +12 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# push trigger REMOVED: private-repo free minutes; run on demand with
|
|
5
|
+
# gh workflow run ci.yml (or open a PR / wait for Mondays)
|
|
6
|
+
pull_request:
|
|
7
|
+
paths-ignore: ["docs/**", "assets/**", "**/*.md"]
|
|
8
|
+
# once per PR, not every push to its branch; close+reopen re-runs cheaply
|
|
9
|
+
types: [opened, reopened]
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
schedule:
|
|
12
|
+
- cron: "17 6 * * 1" # weekly proof the suite still passes
|
|
13
|
+
|
|
14
|
+
# a newer run of the same ref cancels the one in flight
|
|
15
|
+
concurrency:
|
|
16
|
+
group: ci-${{ github.ref }}
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
core: # P1: fast, dependency-light, no network
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
25
|
+
with: { python-version: "3.12" }
|
|
26
|
+
- run: pip install pydantic pytest pytest-xdist fastapi httpx python-multipart && pip install -e . --no-deps
|
|
27
|
+
- name: Unit suite (offline — live docker contract has its own job)
|
|
28
|
+
env: {PROEF_SKIP_DOCKER: "1"}
|
|
29
|
+
# parallel workers; --dist loadscope keeps a module on one worker so its shared scenario fixtures are computed once. --durations shows where the time goes
|
|
30
|
+
run: python -m pytest tests/ -q -n auto --dist loadscope --durations=15 # includes the anti-bloat import scan
|
|
31
|
+
|
|
32
|
+
api: # web backend: endpoints + SSE over seeded stores
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
- uses: actions/setup-python@v5
|
|
37
|
+
with: { python-version: "3.12" }
|
|
38
|
+
- run: pip install pydantic pytest fastapi httpx python-multipart && pip install -e . --no-deps
|
|
39
|
+
- run: python -m pytest tests/test_api.py tests/test_views.py -q
|
|
40
|
+
|
|
41
|
+
web: # React SPA: typecheck + production build
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v4
|
|
45
|
+
- uses: actions/setup-node@v4
|
|
46
|
+
with: { node-version: "22" }
|
|
47
|
+
- run: npm ci
|
|
48
|
+
working-directory: web
|
|
49
|
+
- run: npm run typecheck
|
|
50
|
+
working-directory: web
|
|
51
|
+
- run: npm test
|
|
52
|
+
working-directory: web
|
|
53
|
+
- run: npm run build
|
|
54
|
+
working-directory: web
|
|
55
|
+
|
|
56
|
+
e2e: # P8: full DMTA flow + templates + recording playback on the virtual lab
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v4
|
|
60
|
+
- uses: actions/setup-python@v5
|
|
61
|
+
with: { python-version: "3.12" }
|
|
62
|
+
- run: pip install pydantic pytest pytest-xdist pyyaml numpy fastapi httpx python-multipart rdkit labmcp-mettler-toledo labmcp-ika && pip install -e . --no-deps
|
|
63
|
+
- name: Full flow (all layers)
|
|
64
|
+
run: python examples/demo_full_flow.py
|
|
65
|
+
- name: Provenance audit
|
|
66
|
+
run: python -m proef.cli prove full-flow --db full_flow.db
|
|
67
|
+
# - name: Template campaign
|
|
68
|
+
# run: python -m proef.cli campaign auto examples/workflow.yml --db proef.db
|
|
69
|
+
# - name: Provenance audit (template)
|
|
70
|
+
# run: python -m proef.cli prove demo-run --db proef.db
|
|
71
|
+
- name: Test suite
|
|
72
|
+
env: {PROEF_SKIP_DOCKER: "1"}
|
|
73
|
+
run: python -m pytest tests/ -q -n auto --dist loadscope --durations=15
|
|
74
|
+
|
|
75
|
+
eval: # T1: the measurable claim — epistemics + model tiers, offline
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
steps:
|
|
78
|
+
- uses: actions/checkout@v4
|
|
79
|
+
- uses: actions/setup-python@v5
|
|
80
|
+
with: { python-version: "3.12" }
|
|
81
|
+
- run: pip install pydantic pytest && pip install -e . --no-deps
|
|
82
|
+
- name: Fetch MoleculeNet datasets (models tier cache)
|
|
83
|
+
run: |
|
|
84
|
+
mkdir -p .data
|
|
85
|
+
curl -sL https://deepchemdata.s3-us-west-1.amazonaws.com/datasets/Lipophilicity.csv -o .data/lipophilicity.csv
|
|
86
|
+
curl -sL https://deepchemdata.s3-us-west-1.amazonaws.com/datasets/delaney-processed.csv -o .data/esol.csv
|
|
87
|
+
curl -sL https://deepchemdata.s3-us-west-1.amazonaws.com/datasets/HIV.csv -o .data/hiv.csv
|
|
88
|
+
- name: Eval suite (epistemics + models)
|
|
89
|
+
run: python -m proef.cli eval --suite epistemics,models
|
|
90
|
+
- name: Provenance anchoring roundtrip
|
|
91
|
+
run: |
|
|
92
|
+
python -m proef.cli anchor --db proef.db || true
|
|
93
|
+
python -m proef.cli eval --task hit-recovery >/dev/null
|
|
94
|
+
|
|
95
|
+
fixtures: # byte-reproducible case-study data
|
|
96
|
+
runs-on: ubuntu-latest
|
|
97
|
+
steps:
|
|
98
|
+
- uses: actions/checkout@v4
|
|
99
|
+
- uses: actions/setup-python@v5
|
|
100
|
+
with: { python-version: "3.12" }
|
|
101
|
+
- run: pip install pydantic && pip install -e . --no-deps
|
|
102
|
+
- run: |
|
|
103
|
+
python -m proef.cli fixtures verify case-studies/01-egfr-blind-reproduction
|
|
104
|
+
python -m proef.cli fixtures verify case-studies/02-az3246-hpk1
|
|
105
|
+
python -m proef.cli fixtures verify case-studies/03-multi-paper
|
|
106
|
+
python -m proef.cli fixtures verify case-studies/04-prospective-hit2lead
|
|
107
|
+
python -m proef.cli fixtures verify case-studies/05-paper-pilot
|
|
108
|
+
python -m proef.cli fixtures verify case-studies/06-ncats-deposit
|
|
109
|
+
python -m proef.cli fixtures verify case-studies/07-proteinbase
|
|
110
|
+
- name: materialize restores caches
|
|
111
|
+
run: |
|
|
112
|
+
python -m proef.cli fixtures materialize case-studies/01-egfr-blind-reproduction
|
|
113
|
+
test -s .data/chembl_CHEMBL203.csv
|
|
114
|
+
|
|
115
|
+
case-study: # blind reproduction of a published paper (real ChEMBL data)
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
if: false # requires LLM env; run manually or on schedule
|
|
118
|
+
steps:
|
|
119
|
+
- uses: actions/checkout@v4
|
|
120
|
+
- uses: actions/setup-python@v5
|
|
121
|
+
with: { python-version: "3.12" }
|
|
122
|
+
- run: pip install pydantic pytest scikit-learn rdkit && pip install -e . --no-deps
|
|
123
|
+
- run: python case-studies/01-egfr-blind-reproduction/run.py
|
|
124
|
+
|
|
125
|
+
sandbox-docker: # S-T3 2b: live-kernel verification — no daemon = fail loud
|
|
126
|
+
runs-on: ubuntu-latest
|
|
127
|
+
env: {PROEF_REQUIRE_DOCKER: "1"}
|
|
128
|
+
steps:
|
|
129
|
+
- uses: actions/checkout@v4
|
|
130
|
+
- uses: actions/setup-python@v5
|
|
131
|
+
with: { python-version: "3.12" }
|
|
132
|
+
- run: pip install pydantic pytest && pip install -e . --no-deps
|
|
133
|
+
- name: Wait for the docker daemon
|
|
134
|
+
run: timeout 120 sh -c 'until docker info >/dev/null 2>&1; do sleep 2; done'
|
|
135
|
+
- name: Live sandbox contract (egress, caps, ceilings, COW forks, cleanup)
|
|
136
|
+
run: python -m pytest tests/test_sandbox_docker_live.py -q --tb=short -k "not session"
|
|
137
|
+
- name: Build the in-sandbox worker image
|
|
138
|
+
run: |
|
|
139
|
+
python -m pip wheel . -w dist --no-deps
|
|
140
|
+
cp dist/proef-*.whl .
|
|
141
|
+
docker build -t proef-sandbox:ci -f Dockerfile.sandbox .
|
|
142
|
+
- name: Session e2e — tools AND lab ops inside a real container
|
|
143
|
+
env: {PROEF_SANDBOX_IMAGE: "proef-sandbox:ci"}
|
|
144
|
+
run: python -m pytest tests/test_sandbox_docker_live.py -q --tb=short -k session
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# Publishes to PyPI via Trusted Publishing (no token in repo).
|
|
4
|
+
# One-time setup on pypi.org: add a pending publisher
|
|
5
|
+
# project: proef · owner: rbalachandar · repo: proef
|
|
6
|
+
# workflow: release.yml · environment: pypi
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
tags: ["v*"]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with: { python-version: "3.12" }
|
|
18
|
+
- run: pip install build && python -m build
|
|
19
|
+
- uses: actions/upload-artifact@v4
|
|
20
|
+
with:
|
|
21
|
+
name: dist
|
|
22
|
+
path: dist/
|
|
23
|
+
|
|
24
|
+
publish:
|
|
25
|
+
needs: build
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
environment: pypi
|
|
28
|
+
permissions:
|
|
29
|
+
id-token: write # Trusted Publishing (OIDC)
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/download-artifact@v4
|
|
32
|
+
with: { name: dist, path: dist/ }
|
|
33
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
34
|
+
|
|
35
|
+
smoke: # install the published wheel and run one command
|
|
36
|
+
needs: publish
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/setup-python@v5
|
|
40
|
+
with: { python-version: "3.12" }
|
|
41
|
+
- run: pip install proef==${GITHUB_REF_NAME#v} && proef new-adapter lab smoke --dir /tmp && ls /tmp/smoke_adapter
|
proef-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
*.db
|
|
4
|
+
*.db-wal
|
|
5
|
+
*.db-shm
|
|
6
|
+
.data/
|
|
7
|
+
.DS_Store
|
|
8
|
+
web/node_modules/
|
|
9
|
+
web/dist/
|
|
10
|
+
web/tsconfig.tsbuildinfo
|
|
11
|
+
campaign_report.html
|
|
12
|
+
case-studies/**/.cache/
|
|
13
|
+
.pytest_cache/
|
|
14
|
+
.venv/
|
|
15
|
+
case-studies/**/.inbox-*/
|
|
16
|
+
case-studies/*/study.db
|
|
17
|
+
|
|
18
|
+
# local sandbox-image build inputs
|
|
19
|
+
proef-*.whl
|
|
20
|
+
|
|
21
|
+
# local UI screenshots
|
|
22
|
+
web/.shots/
|
|
23
|
+
.sample*/
|
|
24
|
+
|
|
25
|
+
# design exploration screenshots
|
|
26
|
+
.design-shots/
|
proef-0.2.0/AGENTS.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Proef
|
|
2
|
+
|
|
3
|
+
Agentic drug-discovery framework: pluggable models/labs/sandboxes behind five
|
|
4
|
+
core interfaces (ModelProvider, BioTool, LabAdapter, Sandbox, ProvenanceStore),
|
|
5
|
+
with a FastAPI + React workbench as the scientist surface.
|
|
6
|
+
|
|
7
|
+
## Continue work here
|
|
8
|
+
- **`docs/ROADMAP.md` — the live TODO plan**. Epistemic P0s (uncertainty-aware
|
|
9
|
+
verdicts, small-n stats, provenance physics, governance-on-agent-surfaces)
|
|
10
|
+
are CLOSED (Oct 2026 review — `docs/REVIEW-2026-10.md`). The frontier is now
|
|
11
|
+
**S-T4 (hardware truth for device adapters) + S-T3 1d/1e (finish the sandbox
|
|
12
|
+
lanes) + Scientist Utility** (S-T0: prospective real-data case study, real-plate
|
|
13
|
+
ingestion, Make-as-gate). Start there in any new session; update status
|
|
14
|
+
boxes as you complete items.
|
|
15
|
+
- `docs/PLAN.md` — original design (principles P1–P8)
|
|
16
|
+
- `docs/QUICKSTART.md` — scientist path · `README.md` — product overview
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
```sh
|
|
20
|
+
.venv/bin/python -m pytest -q # all tests (352 green as of Oct 10 — trust
|
|
21
|
+
# audits wave 1-2; see docs/ROADMAP S-T3/S-T4)
|
|
22
|
+
make test # fast tier, in parallel (skips tests marked `slow`: campaigns and replays)
|
|
23
|
+
make test-full # everything, in parallel: the gate before a push (about 5 min)
|
|
24
|
+
make test-ci # the whole suite in CI's minimal `core` environment (no RDKit/NumPy): run before a push
|
|
25
|
+
make test-live # adapters against the REAL services (needs the network; PROEF_LIVE=1)
|
|
26
|
+
make run # backend + built SPA on :8000
|
|
27
|
+
make api-dev # backend only, auto-reload
|
|
28
|
+
make web-dev # Vite SPA on :5173 (proxies /api)
|
|
29
|
+
python -m proef.cli campaign auto --template dose-response-screen \
|
|
30
|
+
--field compounds=a,b --field threshold=20 --autonomy act --yes # e2e sim
|
|
31
|
+
.venv/bin/python -m proef.cli demo # engineered first-run moment (abstain + refutes)
|
|
32
|
+
.venv/bin/python -m proef.cli eval # offline eval suite -> evals/leaderboard.md
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Layout (hot files)
|
|
36
|
+
- `src/proef/api/app.py` — FastAPI routes (incl. `GET /api/evals` — the
|
|
37
|
+
leaderboard read-model the workbench leads with) · `web/src/` — React SPA
|
|
38
|
+
routes (Workspace / Program / Experiment / Wizard) · the header
|
|
39
|
+
badge shows the eval mean (`/api/evals` is read-only by design; the
|
|
40
|
+
leaderboard itself lives in README + evals/leaderboard.md) ·
|
|
41
|
+
`src/proef/views.py` —
|
|
42
|
+
the read-model the API serves (pipeline cards, verdict tally, rollups)
|
|
43
|
+
- `src/proef/core/hypothesis.py` — Hypothesis lifecycle + **verdict logic**
|
|
44
|
+
- `src/proef/ad.py` — applicability domain (the local-model guard; model-side twin of the CS06 regime gate)
|
|
45
|
+
- `src/proef/watch.py` — auto-analysis agent (+ orthogonal confirmation
|
|
46
|
+
agreement check) · `autoloop.py` — campaign flow
|
|
47
|
+
- `src/proef/diary.py` — swimlane lab narrative · `program.py` — TPP state
|
|
48
|
+
- `src/proef/adapters/store/sqlite.py` — hash-chained provenance (engine
|
|
49
|
+
triggers + `verify_chain()` recompute on read)
|
|
50
|
+
- `src/proef/wizard_store.py` / `wizard_chain.py` — experiment registry +
|
|
51
|
+
wizard provenance (`.data/wizard.db`, `proef.db`)
|
|
52
|
+
- `src/proef/adapters/` — everything pluggable; tests are the contract
|
|
53
|
+
|
|
54
|
+
## Conventions
|
|
55
|
+
- **ALL communication with the user in ENGLISH, always** — every reply,
|
|
56
|
+
every summary, every explanation, regardless of what language the
|
|
57
|
+
session history contains. Never reason in another language and never
|
|
58
|
+
let it leak into responses. This has been violated repeatedly; treat
|
|
59
|
+
each turn as a fresh test of it.
|
|
60
|
+
- pydantic contracts in `core/contracts` are the source of truth (no YAML)
|
|
61
|
+
- Simulated data must be labeled simulated; verdicts must be honest about
|
|
62
|
+
uncertainty — a CI straddling the gate abstains, and READING a verdict is
|
|
63
|
+
as sacred as computing it (payload-driven, recency-wins; see the review)
|
|
64
|
+
- Conventional commits; keep `make test-full` AND `make test-ci` green before pushing (the local environment has more installed than CI's core job, so a test can pass here and fail there). Tests are isolated per process (a unique scratch dir), so runs can overlap and parallelize
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# In-sandbox tool/Lab execution image (S-T3). CI builds with the current
|
|
2
|
+
# repo as a wheel; the sandboxd worker and SandboxedLab run inside this.
|
|
3
|
+
# Local build:
|
|
4
|
+
# python -m pip wheel . -w dist --no-deps && cp dist/proef-*.whl .
|
|
5
|
+
# docker build -t proef-sandbox:ci -f Dockerfile.sandbox .
|
|
6
|
+
FROM python:3.12-slim
|
|
7
|
+
COPY proef-*.whl /tmp/
|
|
8
|
+
RUN pip install --no-cache-dir /tmp/proef-*.whl rdkit && rm /tmp/*.whl
|
proef-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
proef-0.2.0/Makefile
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
PY := $(shell [ -x .venv/bin/python ] && echo .venv/bin/python || echo python3)
|
|
2
|
+
UVICORN := $(PY) -m uvicorn
|
|
3
|
+
|
|
4
|
+
.PHONY: reset-data test run api api-dev web-dev web-build install
|
|
5
|
+
|
|
6
|
+
install: ## python package + web deps (in ./.venv — make targets use it)
|
|
7
|
+
@test -d .venv || python3 -m venv .venv
|
|
8
|
+
.venv/bin/pip install -e ".[api]" pytest
|
|
9
|
+
cd web && npm install
|
|
10
|
+
|
|
11
|
+
test: ## fast tier, in parallel (skips the slow campaign and replay tests)
|
|
12
|
+
$(PY) -m pytest tests/ -q -n auto --dist loadscope -m "not slow"
|
|
13
|
+
|
|
14
|
+
test-full: ## everything, in parallel: the gate before a push
|
|
15
|
+
$(PY) -m pytest tests/ -q -n auto --dist loadscope
|
|
16
|
+
|
|
17
|
+
test-ci: ## the whole suite in CI's `core` environment (no RDKit, NumPy, ...): run before a push
|
|
18
|
+
scripts/ci_core.sh
|
|
19
|
+
|
|
20
|
+
test-live: ## adapters against the REAL services (network); also detects API drift against tests/fixtures/api
|
|
21
|
+
PROEF_LIVE=1 $(PY) -m pytest tests/live -q
|
|
22
|
+
|
|
23
|
+
record-fixtures: ## refresh the recorded real API responses (network)
|
|
24
|
+
$(PY) scripts/record_api_fixtures.py
|
|
25
|
+
|
|
26
|
+
smoke-real: ## one real-model campaign, asserting the invariants (uses model quota; needs PROEF_LLM_PRESET/MODEL)
|
|
27
|
+
$(PY) scripts/smoke_real_model.py
|
|
28
|
+
|
|
29
|
+
reset-data: ## back up then wipe local provenance + workbench state
|
|
30
|
+
./scripts/reset_data.sh
|
|
31
|
+
|
|
32
|
+
run: ## start Proef: backend + built SPA on :8000 (PORT=... to change)
|
|
33
|
+
cd web && npm run build
|
|
34
|
+
PYTHONPATH=src $(UVICORN) proef.api.app:app --port $(or $(PORT),8000)
|
|
35
|
+
|
|
36
|
+
api: ## alias of run, kept for older docs and habits
|
|
37
|
+
@$(MAKE) --no-print-directory run
|
|
38
|
+
|
|
39
|
+
api-dev: ## backend only (auto-reload)
|
|
40
|
+
PYTHONPATH=src $(UVICORN) proef.api.app:app --port 8000 --reload
|
|
41
|
+
|
|
42
|
+
web-dev: ## Vite dev server on :5173 (proxies /api to :8000)
|
|
43
|
+
cd web && npm run dev
|
|
44
|
+
|
|
45
|
+
sample: ## seed ./.sample with two simulated campaigns and run the workbench on :8000
|
|
46
|
+
$(PY) scripts/seed_sample_workspace.py .sample
|
|
47
|
+
cd .sample && PROEF_DATA_DIR=.data ../$(UVICORN) proef.api.app:app --port $(or $(PORT),8000)
|
|
48
|
+
|
|
49
|
+
api-types: ## regenerate the typed TS client from the backend's OpenAPI
|
|
50
|
+
$(PY) scripts/export_openapi.py && cd web && npm run gen:api
|
|
51
|
+
|
|
52
|
+
web-build: ## production SPA build
|
|
53
|
+
cd web && npm run build
|