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.
Files changed (599) hide show
  1. proef-0.2.0/.github/workflows/ci.yml +144 -0
  2. proef-0.2.0/.github/workflows/release.yml +41 -0
  3. proef-0.2.0/.gitignore +26 -0
  4. proef-0.2.0/AGENTS.md +64 -0
  5. proef-0.2.0/Dockerfile.sandbox +8 -0
  6. proef-0.2.0/LICENSE +202 -0
  7. proef-0.2.0/Makefile +53 -0
  8. proef-0.2.0/PKG-INFO +662 -0
  9. proef-0.2.0/README.md +625 -0
  10. proef-0.2.0/assets/demo/demo-plate.csv +11 -0
  11. proef-0.2.0/assets/demo/proef-demo.gif +0 -0
  12. proef-0.2.0/assets/demo/proef-ui-demo.gif +0 -0
  13. proef-0.2.0/assets/fig/evidence.svg +103 -0
  14. proef-0.2.0/assets/fig/recovery.svg +49 -0
  15. proef-0.2.0/assets/fig/stability.svg +29 -0
  16. proef-0.2.0/assets/logo/favicon-light.png +0 -0
  17. proef-0.2.0/assets/logo/favicon.png +0 -0
  18. proef-0.2.0/assets/logo/proef-banner.png +0 -0
  19. proef-0.2.0/assets/logo/proef-lockup-onDark.png +0 -0
  20. proef-0.2.0/assets/logo/proef-lockup.png +0 -0
  21. proef-0.2.0/assets/logo/proef-mark-onDark.png +0 -0
  22. proef-0.2.0/assets/logo/proef-mark-tile-light.png +0 -0
  23. proef-0.2.0/assets/logo/proef-mark-tile.png +0 -0
  24. proef-0.2.0/assets/logo/proef-mark.png +0 -0
  25. proef-0.2.0/assets/logo/proef-wordmark-onDark.png +0 -0
  26. proef-0.2.0/assets/logo/proef-wordmark.png +0 -0
  27. proef-0.2.0/assets/screenshots/plan-review.png +0 -0
  28. proef-0.2.0/assets/screenshots/research-result.png +0 -0
  29. proef-0.2.0/assets/social-preview.png +0 -0
  30. proef-0.2.0/assets/story/demo-run.json +546 -0
  31. proef-0.2.0/case-studies/01-egfr-blind-reproduction/README.md +169 -0
  32. proef-0.2.0/case-studies/01-egfr-blind-reproduction/fixtures/chembl_CHEMBL203.csv.gz +0 -0
  33. proef-0.2.0/case-studies/01-egfr-blind-reproduction/fixtures/manifest.json +11 -0
  34. proef-0.2.0/case-studies/01-egfr-blind-reproduction/rf_baseline.py +53 -0
  35. proef-0.2.0/case-studies/01-egfr-blind-reproduction/run.py +240 -0
  36. proef-0.2.0/case-studies/02-az3246-hpk1/README.md +131 -0
  37. proef-0.2.0/case-studies/02-az3246-hpk1/agent_runs.py +231 -0
  38. proef-0.2.0/case-studies/02-az3246-hpk1/agent_runs_gpt-6-luna.json +179 -0
  39. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_04d18538edf2.json.gz +0 -0
  40. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_0a9b3f78542a.json.gz +0 -0
  41. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3348c1f61330.json.gz +0 -0
  42. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3c7e5e8e3f93.json.gz +0 -0
  43. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_3f29a4a08b63.json.gz +0 -0
  44. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5487ac742379.json.gz +0 -0
  45. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5ca5a79fa456.json.gz +0 -0
  46. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5f293049f842.json.gz +0 -0
  47. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_5f3f66cda4b7.json.gz +0 -0
  48. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_76c56373f3ce.json.gz +0 -0
  49. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_77ff7667f128.json.gz +0 -0
  50. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_7a8298202ae0.json.gz +0 -0
  51. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_80bf7ac1b210.json.gz +0 -0
  52. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_8680f62cba3f.json.gz +0 -0
  53. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_9107f64c19ce.json.gz +0 -0
  54. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_98a9ba2dcfed.json.gz +0 -0
  55. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_a23470f9bf30.json.gz +0 -0
  56. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_a6a6fd874c91.json.gz +0 -0
  57. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_bbcf1d570706.json.gz +0 -0
  58. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_bd69cac2c7a2.json.gz +0 -0
  59. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_c447feddb437.json.gz +0 -0
  60. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_cc66d3ed4f31.json.gz +0 -0
  61. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ccbc8d940915.json.gz +0 -0
  62. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_d3c9d45d4896.json.gz +0 -0
  63. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_d5a3c73b4d13.json.gz +0 -0
  64. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_dd0e06c62e58.json.gz +0 -0
  65. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_de16fee32935.json.gz +0 -0
  66. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_e5f02a9b2aa6.json.gz +0 -0
  67. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_e6b2d7b31b39.json.gz +0 -0
  68. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ebef7a0e720c.json.gz +0 -0
  69. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/get_ee597442135c.json.gz +0 -0
  70. proef-0.2.0/case-studies/02-az3246-hpk1/fixtures/manifest.json +191 -0
  71. proef-0.2.0/case-studies/02-az3246-hpk1/rf_baseline.py +111 -0
  72. proef-0.2.0/case-studies/02-az3246-hpk1/run.py +337 -0
  73. proef-0.2.0/case-studies/03-multi-paper/README.md +199 -0
  74. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6078657.json.gz +0 -0
  75. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087407.json.gz +0 -0
  76. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087413.json.gz +0 -0
  77. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087414.json.gz +0 -0
  78. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087416.json.gz +0 -0
  79. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6087417.json.gz +0 -0
  80. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103581.json.gz +0 -0
  81. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103582.json.gz +0 -0
  82. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103584.json.gz +0 -0
  83. proef-0.2.0/case-studies/03-multi-paper/fixtures/doc_CHEMBL6103593.json.gz +0 -0
  84. proef-0.2.0/case-studies/03-multi-paper/fixtures/manifest.json +101 -0
  85. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL247.json.gz +0 -0
  86. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL392.json.gz +0 -0
  87. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL4508.json.gz +0 -0
  88. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL612545.json.gz +0 -0
  89. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL613835.json.gz +0 -0
  90. proef-0.2.0/case-studies/03-multi-paper/fixtures/pool_CHEMBL614245.json.gz +0 -0
  91. proef-0.2.0/case-studies/03-multi-paper/flow_check.py +277 -0
  92. proef-0.2.0/case-studies/03-multi-paper/flow_results.json +132 -0
  93. proef-0.2.0/case-studies/03-multi-paper/llm-run.log +32 -0
  94. proef-0.2.0/case-studies/03-multi-paper/papers_found.json +242 -0
  95. proef-0.2.0/case-studies/03-multi-paper/reference_manifest.json +23 -0
  96. proef-0.2.0/case-studies/03-multi-paper/results.json +130 -0
  97. proef-0.2.0/case-studies/03-multi-paper/run.py +437 -0
  98. proef-0.2.0/case-studies/03-multi-paper/screen_papers.py +90 -0
  99. proef-0.2.0/case-studies/04-prospective-hit2lead/README.md +138 -0
  100. proef-0.2.0/case-studies/04-prospective-hit2lead/acq_replay.py +295 -0
  101. proef-0.2.0/case-studies/04-prospective-hit2lead/acq_replay_results.json +244 -0
  102. proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/chembl_CHEMBL203.csv.gz +0 -0
  103. proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/heldout.json.gz +0 -0
  104. proef-0.2.0/case-studies/04-prospective-hit2lead/fixtures/manifest.json +17 -0
  105. proef-0.2.0/case-studies/04-prospective-hit2lead/heldout.json +80 -0
  106. proef-0.2.0/case-studies/04-prospective-hit2lead/results.json +841 -0
  107. proef-0.2.0/case-studies/04-prospective-hit2lead/run.py +468 -0
  108. proef-0.2.0/case-studies/05-paper-pilot/README.md +149 -0
  109. proef-0.2.0/case-studies/05-paper-pilot/fixtures/aid_1879.csv.gz +0 -0
  110. proef-0.2.0/case-studies/05-paper-pilot/fixtures/aid_1890.csv.gz +0 -0
  111. proef-0.2.0/case-studies/05-paper-pilot/fixtures/manifest.json +17 -0
  112. proef-0.2.0/case-studies/05-paper-pilot/results.json +1624 -0
  113. proef-0.2.0/case-studies/05-paper-pilot/run.py +213 -0
  114. proef-0.2.0/case-studies/05-paper-pilot/scripts/fetch_raw_data.sh +25 -0
  115. proef-0.2.0/case-studies/05-paper-pilot/sources.json +27 -0
  116. proef-0.2.0/case-studies/06-ncats-deposit/README.md +121 -0
  117. proef-0.2.0/case-studies/06-ncats-deposit/fixtures/aid_2061307.csv.gz +0 -0
  118. proef-0.2.0/case-studies/06-ncats-deposit/fixtures/manifest.json +11 -0
  119. proef-0.2.0/case-studies/06-ncats-deposit/results.json +86 -0
  120. proef-0.2.0/case-studies/06-ncats-deposit/run.py +243 -0
  121. proef-0.2.0/case-studies/06-ncats-deposit/scripts/fetch_raw_data.sh +16 -0
  122. proef-0.2.0/case-studies/06-ncats-deposit/sources.json +24 -0
  123. proef-0.2.0/case-studies/07-proteinbase/README.md +77 -0
  124. proef-0.2.0/case-studies/07-proteinbase/fixtures/MANIFEST.json +22 -0
  125. proef-0.2.0/case-studies/07-proteinbase/fixtures/pairs.csv.gz +0 -0
  126. proef-0.2.0/case-studies/07-proteinbase/fixtures/proteins.csv.gz +0 -0
  127. proef-0.2.0/case-studies/07-proteinbase/results.json +211 -0
  128. proef-0.2.0/case-studies/07-proteinbase/run.py +153 -0
  129. proef-0.2.0/case-studies/07-proteinbase/scripts/derive_fixtures.py +93 -0
  130. proef-0.2.0/case-studies/08-proteinbase-entry/README.md +181 -0
  131. proef-0.2.0/case-studies/08-proteinbase-entry/cs08_io.py +47 -0
  132. proef-0.2.0/case-studies/08-proteinbase-entry/diversity_select.py +42 -0
  133. proef-0.2.0/case-studies/08-proteinbase-entry/entry_gates.py +54 -0
  134. proef-0.2.0/case-studies/08-proteinbase-entry/proef_cycle.py +123 -0
  135. proef-0.2.0/case-studies/08-proteinbase-entry/proef_cycle_results.json +41 -0
  136. proef-0.2.0/case-studies/08-proteinbase-entry/prospective_results.json +72 -0
  137. proef-0.2.0/case-studies/08-proteinbase-entry/prospective_run.py +124 -0
  138. proef-0.2.0/case-studies/08-proteinbase-entry/replay.py +68 -0
  139. proef-0.2.0/case-studies/08-proteinbase-entry/replay_results.json +22 -0
  140. proef-0.2.0/case-studies/08-proteinbase-entry/runpack/README.md +17 -0
  141. proef-0.2.0/case-studies/08-proteinbase-entry/runpack/jobrunner.py +131 -0
  142. proef-0.2.0/case-studies/08-proteinbase-entry/runpack/runpod_setup.sh +12 -0
  143. proef-0.2.0/case-studies/08-proteinbase-entry/seed_workbench.py +243 -0
  144. proef-0.2.0/diagrams/README.md +16 -0
  145. proef-0.2.0/diagrams/architecture.svg +71 -0
  146. proef-0.2.0/diagrams/campaign-flow.svg +66 -0
  147. proef-0.2.0/diagrams/gates.svg +60 -0
  148. proef-0.2.0/diagrams/verdict-rule.svg +33 -0
  149. proef-0.2.0/docs/ACQUISITION-IMPLEMENTATION-PLAN.md +141 -0
  150. proef-0.2.0/docs/ADAPTERS.md +122 -0
  151. proef-0.2.0/docs/BRAND.md +66 -0
  152. proef-0.2.0/docs/DOMAIN-TOOLS.md +97 -0
  153. proef-0.2.0/docs/EXPERIMENT-ANALYSIS-IMPLEMENTATION-PLAN.md +325 -0
  154. proef-0.2.0/docs/LLM-ORCHESTRATION.md +866 -0
  155. proef-0.2.0/docs/MODELS.md +179 -0
  156. proef-0.2.0/docs/PLAN.md +105 -0
  157. proef-0.2.0/docs/QUICKSTART.md +102 -0
  158. proef-0.2.0/docs/REVIEW-2026-10.md +270 -0
  159. proef-0.2.0/docs/ROADMAP.md +1331 -0
  160. proef-0.2.0/docs/UX.md +168 -0
  161. proef-0.2.0/docs/WORKBENCH-REDESIGN.md +196 -0
  162. proef-0.2.0/docs/architecture.md +73 -0
  163. proef-0.2.0/docs/benchmarks.md +93 -0
  164. proef-0.2.0/docs/critical-review.md +152 -0
  165. proef-0.2.0/docs/design/legacy-theme/README.md +8 -0
  166. proef-0.2.0/docs/design/legacy-theme/app.css +65 -0
  167. proef-0.2.0/docs/design/legacy-theme/campaign-dark.png +0 -0
  168. proef-0.2.0/docs/design/legacy-theme/campaign-light.png +0 -0
  169. proef-0.2.0/docs/design/legacy-theme/inbox-dark.png +0 -0
  170. proef-0.2.0/docs/design/legacy-theme/inbox-light.png +0 -0
  171. proef-0.2.0/docs/design/legacy-theme/program-dark.png +0 -0
  172. proef-0.2.0/docs/design/legacy-theme/program-light.png +0 -0
  173. proef-0.2.0/docs/design/legacy-theme/today-dark.png +0 -0
  174. proef-0.2.0/docs/design/legacy-theme/today-light.png +0 -0
  175. proef-0.2.0/docs/design/wireframes/a-notebook.html +75 -0
  176. proef-0.2.0/docs/design/wireframes/b-composition.html +56 -0
  177. proef-0.2.0/docs/design/wireframes/c-record.html +54 -0
  178. proef-0.2.0/docs/design/wireframes/d-common.js +20 -0
  179. proef-0.2.0/docs/design/wireframes/d-mission.html +48 -0
  180. proef-0.2.0/docs/design/wireframes/d-theme.css +29 -0
  181. proef-0.2.0/docs/design/wireframes/d2-mission-light.html +31 -0
  182. proef-0.2.0/docs/design/wireframes/d2-mission.html +31 -0
  183. proef-0.2.0/docs/design/wireframes/d3-rounds-light.html +37 -0
  184. proef-0.2.0/docs/design/wireframes/d3-rounds.html +37 -0
  185. proef-0.2.0/docs/design/wireframes/d4-tree-light.html +35 -0
  186. proef-0.2.0/docs/design/wireframes/d4-tree.html +35 -0
  187. proef-0.2.0/docs/design/wireframes/d5-record-light.html +43 -0
  188. proef-0.2.0/docs/design/wireframes/d5-record.html +43 -0
  189. proef-0.2.0/docs/design/wireframes/e-blueprint.html +54 -0
  190. proef-0.2.0/docs/design/wireframes/f-swiss-cool.html +56 -0
  191. proef-0.2.0/docs/design/wireframes/plot.js +45 -0
  192. proef-0.2.0/docs/domain-review.md +46 -0
  193. proef-0.2.0/docs/flows.md +88 -0
  194. proef-0.2.0/docs/images/dose-response.svg +33 -0
  195. proef-0.2.0/docs/research-landscape.md +288 -0
  196. proef-0.2.0/docs/safety-and-security.md +169 -0
  197. proef-0.2.0/docs/stability.md +59 -0
  198. proef-0.2.0/docs/virtual-lab.md +51 -0
  199. proef-0.2.0/evals/fixtures/hallucination.json +573 -0
  200. proef-0.2.0/evals/leaderboard.md +48 -0
  201. proef-0.2.0/evals/results.json +481 -0
  202. proef-0.2.0/evals/runs/grounding-2026-11-21.analysis.json +325 -0
  203. proef-0.2.0/examples/campaign.json +26 -0
  204. proef-0.2.0/examples/campaign_llm.json +14 -0
  205. proef-0.2.0/examples/demo_full_flow.py +264 -0
  206. proef-0.2.0/examples/demo_imaging.py +57 -0
  207. proef-0.2.0/examples/ezo_sensor_campaign.py +46 -0
  208. proef-0.2.0/examples/pilot_campaign.json +38 -0
  209. proef-0.2.0/examples/run_benchmarks.py +91 -0
  210. proef-0.2.0/examples/workflow.yml +37 -0
  211. proef-0.2.0/plugin.json +14 -0
  212. proef-0.2.0/pyproject.toml +49 -0
  213. proef-0.2.0/scripts/capture_story_run.py +89 -0
  214. proef-0.2.0/scripts/ci_core.sh +14 -0
  215. proef-0.2.0/scripts/export_openapi.py +19 -0
  216. proef-0.2.0/scripts/grounding_analyze.py +23 -0
  217. proef-0.2.0/scripts/grounding_compare.py +96 -0
  218. proef-0.2.0/scripts/grounding_experiment.py +58 -0
  219. proef-0.2.0/scripts/grounding_real_model.py +170 -0
  220. proef-0.2.0/scripts/grounding_suite.json +9 -0
  221. proef-0.2.0/scripts/make_brand_assets.mjs +78 -0
  222. proef-0.2.0/scripts/record_api_fixtures.py +68 -0
  223. proef-0.2.0/scripts/record_cli_demo.py +96 -0
  224. proef-0.2.0/scripts/record_ui_demo.mjs +154 -0
  225. proef-0.2.0/scripts/render_diagrams.py +203 -0
  226. proef-0.2.0/scripts/render_social_preview.mjs +36 -0
  227. proef-0.2.0/scripts/reset_data.sh +20 -0
  228. proef-0.2.0/scripts/seed_sample_workspace.py +94 -0
  229. proef-0.2.0/scripts/smoke_real_model.py +50 -0
  230. proef-0.2.0/scripts/update_slow_list.py +27 -0
  231. proef-0.2.0/skills/proef/SKILL.md +132 -0
  232. proef-0.2.0/skills/proef-campaign/SKILL.md +48 -0
  233. proef-0.2.0/skills/proef-labread/SKILL.md +44 -0
  234. proef-0.2.0/skills/proef-labwatch/SKILL.md +40 -0
  235. proef-0.2.0/skills/proef-opentrons/SKILL.md +43 -0
  236. proef-0.2.0/src/proef/__init__.py +25 -0
  237. proef-0.2.0/src/proef/acquisition.py +244 -0
  238. proef-0.2.0/src/proef/ad.py +159 -0
  239. proef-0.2.0/src/proef/adapters/__init__.py +0 -0
  240. proef-0.2.0/src/proef/adapters/admet.py +196 -0
  241. proef-0.2.0/src/proef/adapters/bio/__init__.py +0 -0
  242. proef-0.2.0/src/proef/adapters/bio/rdkit_ops.py +52 -0
  243. proef-0.2.0/src/proef/adapters/bio/safety_rules.json +146 -0
  244. proef-0.2.0/src/proef/adapters/bio/seq_alerts.py +79 -0
  245. proef-0.2.0/src/proef/adapters/bio/structure_score.py +85 -0
  246. proef-0.2.0/src/proef/adapters/bio/tox_alerts.py +99 -0
  247. proef-0.2.0/src/proef/adapters/data/__init__.py +0 -0
  248. proef-0.2.0/src/proef/adapters/data/admet.py +62 -0
  249. proef-0.2.0/src/proef/adapters/data/chembl.py +110 -0
  250. proef-0.2.0/src/proef/adapters/data/frozen/admet/MANIFEST.json +48 -0
  251. proef-0.2.0/src/proef/adapters/data/frozen/admet/bbb_martins/test.csv +407 -0
  252. proef-0.2.0/src/proef/adapters/data/frozen/admet/bbb_martins/train_val.csv +1625 -0
  253. proef-0.2.0/src/proef/adapters/data/frozen/admet/caco2_wang/test.csv +183 -0
  254. proef-0.2.0/src/proef/adapters/data/frozen/admet/caco2_wang/train_val.csv +729 -0
  255. proef-0.2.0/src/proef/adapters/data/frozen/admet/hia_hou/test.csv +118 -0
  256. proef-0.2.0/src/proef/adapters/data/frozen/admet/hia_hou/train_val.csv +462 -0
  257. proef-0.2.0/src/proef/adapters/data/moleculenet.py +60 -0
  258. proef-0.2.0/src/proef/adapters/databases/__init__.py +0 -0
  259. proef-0.2.0/src/proef/adapters/databases/chembl_gates.py +121 -0
  260. proef-0.2.0/src/proef/adapters/databases/chembl_lookup.py +35 -0
  261. proef-0.2.0/src/proef/adapters/databases/open_targets.py +102 -0
  262. proef-0.2.0/src/proef/adapters/databases/pubmed.py +94 -0
  263. proef-0.2.0/src/proef/adapters/devices/__init__.py +0 -0
  264. proef-0.2.0/src/proef/adapters/devices/ezo_ph.py +251 -0
  265. proef-0.2.0/src/proef/adapters/devices/hcs_microscope.py +143 -0
  266. proef-0.2.0/src/proef/adapters/devices/lcms.py +123 -0
  267. proef-0.2.0/src/proef/adapters/devices/scheduler.py +84 -0
  268. proef-0.2.0/src/proef/adapters/devices/sila2.py +134 -0
  269. proef-0.2.0/src/proef/adapters/genomics/alphagenome.py +146 -0
  270. proef-0.2.0/src/proef/adapters/lab/__init__.py +0 -0
  271. proef-0.2.0/src/proef/adapters/lab/bioprocess.py +32 -0
  272. proef-0.2.0/src/proef/adapters/lab/devices.py +170 -0
  273. proef-0.2.0/src/proef/adapters/lab/imaging.py +226 -0
  274. proef-0.2.0/src/proef/adapters/lab/mhs_driver.py +124 -0
  275. proef-0.2.0/src/proef/adapters/lab/opentrons.py +222 -0
  276. proef-0.2.0/src/proef/adapters/lab/ot2_sim.py +174 -0
  277. proef-0.2.0/src/proef/adapters/lab/plate_reader_share.py +108 -0
  278. proef-0.2.0/src/proef/adapters/lab/protein_design.py +199 -0
  279. proef-0.2.0/src/proef/adapters/lab/recording.py +119 -0
  280. proef-0.2.0/src/proef/adapters/lab/replay.py +107 -0
  281. proef-0.2.0/src/proef/adapters/lab/simulator.py +282 -0
  282. proef-0.2.0/src/proef/adapters/lab/synthesis.py +92 -0
  283. proef-0.2.0/src/proef/adapters/models/__init__.py +0 -0
  284. proef-0.2.0/src/proef/adapters/models/anthropic_provider.py +157 -0
  285. proef-0.2.0/src/proef/adapters/models/assayloop_ranker.py +67 -0
  286. proef-0.2.0/src/proef/adapters/models/from_env.py +93 -0
  287. proef-0.2.0/src/proef/adapters/models/gp_policy.py +93 -0
  288. proef-0.2.0/src/proef/adapters/models/gp_policy_gp.py +36 -0
  289. proef-0.2.0/src/proef/adapters/models/llm_policy.py +187 -0
  290. proef-0.2.0/src/proef/adapters/models/openai_compat.py +150 -0
  291. proef-0.2.0/src/proef/adapters/models/sklearn_policy.py +65 -0
  292. proef-0.2.0/src/proef/adapters/retrosynthesis.py +247 -0
  293. proef-0.2.0/src/proef/adapters/sandbox/__init__.py +20 -0
  294. proef-0.2.0/src/proef/adapters/sandbox/agentenv.py +145 -0
  295. proef-0.2.0/src/proef/adapters/sandbox/docker.py +217 -0
  296. proef-0.2.0/src/proef/adapters/sandbox/local.py +164 -0
  297. proef-0.2.0/src/proef/adapters/sandbox/opensandbox.py +122 -0
  298. proef-0.2.0/src/proef/adapters/store/__init__.py +0 -0
  299. proef-0.2.0/src/proef/adapters/store/sqlite.py +207 -0
  300. proef-0.2.0/src/proef/adaptive.py +108 -0
  301. proef-0.2.0/src/proef/advisory.py +76 -0
  302. proef-0.2.0/src/proef/analysis_profiles/__init__.py +8 -0
  303. proef-0.2.0/src/proef/analysis_profiles/measurements.py +266 -0
  304. proef-0.2.0/src/proef/analysis_profiles/plate_assay.py +316 -0
  305. proef-0.2.0/src/proef/analysis_report.py +195 -0
  306. proef-0.2.0/src/proef/analysis_store.py +183 -0
  307. proef-0.2.0/src/proef/anchor.py +154 -0
  308. proef-0.2.0/src/proef/api/app.py +107 -0
  309. proef-0.2.0/src/proef/api/launch.py +170 -0
  310. proef-0.2.0/src/proef/api/v1/__init__.py +29 -0
  311. proef-0.2.0/src/proef/api/v1/analyses.py +367 -0
  312. proef-0.2.0/src/proef/api/v1/campaigns.py +802 -0
  313. proef-0.2.0/src/proef/api/v1/deps.py +10 -0
  314. proef-0.2.0/src/proef/api/v1/evals.py +16 -0
  315. proef-0.2.0/src/proef/api/v1/evidence.py +132 -0
  316. proef-0.2.0/src/proef/api/v1/governance.py +35 -0
  317. proef-0.2.0/src/proef/api/v1/inbox.py +119 -0
  318. proef-0.2.0/src/proef/api/v1/lab.py +110 -0
  319. proef-0.2.0/src/proef/api/v1/pauses.py +77 -0
  320. proef-0.2.0/src/proef/api/v1/programs.py +397 -0
  321. proef-0.2.0/src/proef/api/v1/results.py +147 -0
  322. proef-0.2.0/src/proef/api/v1/schemas.py +932 -0
  323. proef-0.2.0/src/proef/api/v1/system.py +79 -0
  324. proef-0.2.0/src/proef/api/v1/trees.py +216 -0
  325. proef-0.2.0/src/proef/api/wizard_sessions.py +253 -0
  326. proef-0.2.0/src/proef/approvals.py +102 -0
  327. proef-0.2.0/src/proef/assays/__init__.py +15 -0
  328. proef-0.2.0/src/proef/assays/dls.py +114 -0
  329. proef-0.2.0/src/proef/assays/dsf.py +81 -0
  330. proef-0.2.0/src/proef/assays/elisa.py +58 -0
  331. proef-0.2.0/src/proef/assays/properties.py +65 -0
  332. proef-0.2.0/src/proef/assays/simulate.py +157 -0
  333. proef-0.2.0/src/proef/audit.py +152 -0
  334. proef-0.2.0/src/proef/autoloop.py +1620 -0
  335. proef-0.2.0/src/proef/benchmark.py +442 -0
  336. proef-0.2.0/src/proef/campaign_fsm.py +151 -0
  337. proef-0.2.0/src/proef/citations.py +141 -0
  338. proef-0.2.0/src/proef/cli.py +1249 -0
  339. proef-0.2.0/src/proef/connect.py +74 -0
  340. proef-0.2.0/src/proef/core/__init__.py +0 -0
  341. proef-0.2.0/src/proef/core/contracts/__init__.py +35 -0
  342. proef-0.2.0/src/proef/core/contracts/analysis.py +100 -0
  343. proef-0.2.0/src/proef/core/contracts/models.py +395 -0
  344. proef-0.2.0/src/proef/core/device_card.py +125 -0
  345. proef-0.2.0/src/proef/core/hypothesis.py +720 -0
  346. proef-0.2.0/src/proef/core/interfaces.py +164 -0
  347. proef-0.2.0/src/proef/core/registry.py +123 -0
  348. proef-0.2.0/src/proef/core/safety.py +324 -0
  349. proef-0.2.0/src/proef/core/workflow.py +159 -0
  350. proef-0.2.0/src/proef/critic.py +62 -0
  351. proef-0.2.0/src/proef/demo.py +164 -0
  352. proef-0.2.0/src/proef/derivation.py +128 -0
  353. proef-0.2.0/src/proef/diary.py +301 -0
  354. proef-0.2.0/src/proef/eln.py +87 -0
  355. proef-0.2.0/src/proef/evals/__init__.py +1 -0
  356. proef-0.2.0/src/proef/evals/hallucination.py +86 -0
  357. proef-0.2.0/src/proef/evals/harness.py +358 -0
  358. proef-0.2.0/src/proef/evals/orchestration.py +254 -0
  359. proef-0.2.0/src/proef/evals/tasks.py +1010 -0
  360. proef-0.2.0/src/proef/evals/toolcalls.py +425 -0
  361. proef-0.2.0/src/proef/experiment.py +172 -0
  362. proef-0.2.0/src/proef/experiment_analysis.py +114 -0
  363. proef-0.2.0/src/proef/experiments/__init__.py +0 -0
  364. proef-0.2.0/src/proef/experiments/grounding_exp.py +689 -0
  365. proef-0.2.0/src/proef/figures.py +218 -0
  366. proef-0.2.0/src/proef/fitting.py +309 -0
  367. proef-0.2.0/src/proef/fixtures.py +140 -0
  368. proef-0.2.0/src/proef/flywheel.py +125 -0
  369. proef-0.2.0/src/proef/followup.py +126 -0
  370. proef-0.2.0/src/proef/governance.py +290 -0
  371. proef-0.2.0/src/proef/groundedness.py +361 -0
  372. proef-0.2.0/src/proef/grounding.py +202 -0
  373. proef-0.2.0/src/proef/hypothesis_agent.py +369 -0
  374. proef-0.2.0/src/proef/ingest.py +157 -0
  375. proef-0.2.0/src/proef/instruments.json +173 -0
  376. proef-0.2.0/src/proef/interpret.py +95 -0
  377. proef-0.2.0/src/proef/kinetic.py +102 -0
  378. proef-0.2.0/src/proef/labread/__init__.py +45 -0
  379. proef-0.2.0/src/proef/labread/analysis.py +428 -0
  380. proef-0.2.0/src/proef/labread/common.py +153 -0
  381. proef-0.2.0/src/proef/labread/formats.py +190 -0
  382. proef-0.2.0/src/proef/labread/layout.py +168 -0
  383. proef-0.2.0/src/proef/labread/pubchem.py +179 -0
  384. proef-0.2.0/src/proef/labselect.py +431 -0
  385. proef-0.2.0/src/proef/materials.py +140 -0
  386. proef-0.2.0/src/proef/mcp_instrument.py +396 -0
  387. proef-0.2.0/src/proef/mcp_server.py +283 -0
  388. proef-0.2.0/src/proef/modality.py +111 -0
  389. proef-0.2.0/src/proef/model_guard.py +245 -0
  390. proef-0.2.0/src/proef/output_blocks.py +183 -0
  391. proef-0.2.0/src/proef/paths.py +32 -0
  392. proef-0.2.0/src/proef/physfail.py +55 -0
  393. proef-0.2.0/src/proef/plan.py +160 -0
  394. proef-0.2.0/src/proef/plots.py +123 -0
  395. proef-0.2.0/src/proef/predictors.py +217 -0
  396. proef-0.2.0/src/proef/probes.py +79 -0
  397. proef-0.2.0/src/proef/problem_tree.py +581 -0
  398. proef-0.2.0/src/proef/program.py +308 -0
  399. proef-0.2.0/src/proef/protocol_design.py +42 -0
  400. proef-0.2.0/src/proef/proxy.py +78 -0
  401. proef-0.2.0/src/proef/readiness.py +259 -0
  402. proef-0.2.0/src/proef/reliability.py +49 -0
  403. proef-0.2.0/src/proef/report.py +117 -0
  404. proef-0.2.0/src/proef/reproduce.py +310 -0
  405. proef-0.2.0/src/proef/reviewer.py +254 -0
  406. proef-0.2.0/src/proef/sandbox_session.py +247 -0
  407. proef-0.2.0/src/proef/sandboxd.py +109 -0
  408. proef-0.2.0/src/proef/scaffold.py +195 -0
  409. proef-0.2.0/src/proef/series.py +327 -0
  410. proef-0.2.0/src/proef/skills.py +203 -0
  411. proef-0.2.0/src/proef/sweep.py +83 -0
  412. proef-0.2.0/src/proef/taste.py +177 -0
  413. proef-0.2.0/src/proef/templates/confirmatory-followup.json +34 -0
  414. proef-0.2.0/src/proef/templates/dose-response-screen.json +39 -0
  415. proef-0.2.0/src/proef/templates/sar-exploration.json +38 -0
  416. proef-0.2.0/src/proef/templates.py +124 -0
  417. proef-0.2.0/src/proef/toolkit.py +433 -0
  418. proef-0.2.0/src/proef/toolloop.py +133 -0
  419. proef-0.2.0/src/proef/tools.py +441 -0
  420. proef-0.2.0/src/proef/tpp.py +185 -0
  421. proef-0.2.0/src/proef/views/__init__.py +14 -0
  422. proef-0.2.0/src/proef/views/counts.py +102 -0
  423. proef-0.2.0/src/proef/views/experiment.py +154 -0
  424. proef-0.2.0/src/proef/views/ids.py +49 -0
  425. proef-0.2.0/src/proef/views/narrative.py +294 -0
  426. proef-0.2.0/src/proef/views/pipeline.py +370 -0
  427. proef-0.2.0/src/proef/vision.py +165 -0
  428. proef-0.2.0/src/proef/watch.py +790 -0
  429. proef-0.2.0/src/proef/wizard_chain.py +25 -0
  430. proef-0.2.0/src/proef/wizard_store.py +373 -0
  431. proef-0.2.0/tests/__init__.py +0 -0
  432. proef-0.2.0/tests/conftest.py +65 -0
  433. proef-0.2.0/tests/data/instruments/README.md +19 -0
  434. proef-0.2.0/tests/data/instruments/biotek_1steptimer.csv +780 -0
  435. proef-0.2.0/tests/data/instruments/gen5_demo_input.txt +850 -0
  436. proef-0.2.0/tests/data/instruments/plate_layout_96.csv +29 -0
  437. proef-0.2.0/tests/data/instruments/tecan_ON1.csv +292 -0
  438. proef-0.2.0/tests/data/instruments/tecan_ON1.xlsx +0 -0
  439. proef-0.2.0/tests/fixtures/api/chembl_activities.json +1 -0
  440. proef-0.2.0/tests/fixtures/api/chembl_id_lookup_missing.status +1 -0
  441. proef-0.2.0/tests/fixtures/api/chembl_id_lookup_ok.json +1 -0
  442. proef-0.2.0/tests/fixtures/api/chembl_target_search.json +1 -0
  443. proef-0.2.0/tests/fixtures/api/opentargets_search.json +1 -0
  444. proef-0.2.0/tests/fixtures/api/opentargets_target.json +1 -0
  445. proef-0.2.0/tests/fixtures/api/pubmed_efetch.xml +4 -0
  446. proef-0.2.0/tests/fixtures/api/pubmed_esearch.json +1 -0
  447. proef-0.2.0/tests/fixtures/api/pubmed_esummary.json +1 -0
  448. proef-0.2.0/tests/golden/campaign.json +2222 -0
  449. proef-0.2.0/tests/live/test_live_apis.py +70 -0
  450. proef-0.2.0/tests/slow_tests.txt +86 -0
  451. proef-0.2.0/tests/test_acquisition.py +120 -0
  452. proef-0.2.0/tests/test_acquisition_campaign.py +160 -0
  453. proef-0.2.0/tests/test_ad.py +139 -0
  454. proef-0.2.0/tests/test_adapters_ext.py +1852 -0
  455. proef-0.2.0/tests/test_admet_frozen.py +40 -0
  456. proef-0.2.0/tests/test_alphagenome.py +60 -0
  457. proef-0.2.0/tests/test_analyses_v1.py +250 -0
  458. proef-0.2.0/tests/test_api.py +104 -0
  459. proef-0.2.0/tests/test_api_fixtures.py +98 -0
  460. proef-0.2.0/tests/test_api_v1.py +687 -0
  461. proef-0.2.0/tests/test_art_triad.py +118 -0
  462. proef-0.2.0/tests/test_assays.py +192 -0
  463. proef-0.2.0/tests/test_audit.py +163 -0
  464. proef-0.2.0/tests/test_blinding.py +90 -0
  465. proef-0.2.0/tests/test_censoring.py +71 -0
  466. proef-0.2.0/tests/test_chembl_gates.py +52 -0
  467. proef-0.2.0/tests/test_cli_select.py +60 -0
  468. proef-0.2.0/tests/test_core.py +412 -0
  469. proef-0.2.0/tests/test_degraded.py +122 -0
  470. proef-0.2.0/tests/test_demo_moment.py +98 -0
  471. proef-0.2.0/tests/test_device_card.py +39 -0
  472. proef-0.2.0/tests/test_domain_packs.py +159 -0
  473. proef-0.2.0/tests/test_entry_gates.py +89 -0
  474. proef-0.2.0/tests/test_evals_api.py +63 -0
  475. proef-0.2.0/tests/test_experiment_analysis.py +82 -0
  476. proef-0.2.0/tests/test_ezo_campaign_mcp.py +198 -0
  477. proef-0.2.0/tests/test_ezo_ph_poc.py +92 -0
  478. proef-0.2.0/tests/test_faults.py +138 -0
  479. proef-0.2.0/tests/test_flywheel.py +52 -0
  480. proef-0.2.0/tests/test_followups.py +373 -0
  481. proef-0.2.0/tests/test_golden_campaign.py +79 -0
  482. proef-0.2.0/tests/test_governance.py +243 -0
  483. proef-0.2.0/tests/test_gp_policy.py +54 -0
  484. proef-0.2.0/tests/test_ground_step.py +286 -0
  485. proef-0.2.0/tests/test_grounding.py +169 -0
  486. proef-0.2.0/tests/test_grounding_decide.py +222 -0
  487. proef-0.2.0/tests/test_grounding_experiment.py +530 -0
  488. proef-0.2.0/tests/test_hallucination.py +329 -0
  489. proef-0.2.0/tests/test_ingest_memory.py +126 -0
  490. proef-0.2.0/tests/test_instrument_pick.py +310 -0
  491. proef-0.2.0/tests/test_isolation.py +34 -0
  492. proef-0.2.0/tests/test_labread_pubchem.py +215 -0
  493. proef-0.2.0/tests/test_labselect.py +194 -0
  494. proef-0.2.0/tests/test_legacy_names.py +31 -0
  495. proef-0.2.0/tests/test_loop_compute.py +155 -0
  496. proef-0.2.0/tests/test_makeability_gate.py +178 -0
  497. proef-0.2.0/tests/test_model_from_env.py +89 -0
  498. proef-0.2.0/tests/test_model_guard.py +206 -0
  499. proef-0.2.0/tests/test_one_surface.py +95 -0
  500. proef-0.2.0/tests/test_orchestrator.py +333 -0
  501. proef-0.2.0/tests/test_p3.py +204 -0
  502. proef-0.2.0/tests/test_pause.py +203 -0
  503. proef-0.2.0/tests/test_plan_gate.py +453 -0
  504. proef-0.2.0/tests/test_plate_assay_analysis.py +235 -0
  505. proef-0.2.0/tests/test_predicted_by.py +47 -0
  506. proef-0.2.0/tests/test_prediction_tools.py +286 -0
  507. proef-0.2.0/tests/test_probes.py +35 -0
  508. proef-0.2.0/tests/test_problem_tree.py +347 -0
  509. proef-0.2.0/tests/test_program.py +37 -0
  510. proef-0.2.0/tests/test_program_ids.py +19 -0
  511. proef-0.2.0/tests/test_protein_design.py +77 -0
  512. proef-0.2.0/tests/test_provenance_security.py +173 -0
  513. proef-0.2.0/tests/test_proxy_attribution.py +106 -0
  514. proef-0.2.0/tests/test_pubmed_parse.py +20 -0
  515. proef-0.2.0/tests/test_replay_agent.py +245 -0
  516. proef-0.2.0/tests/test_replay_all_features.py +149 -0
  517. proef-0.2.0/tests/test_results_v1.py +187 -0
  518. proef-0.2.0/tests/test_review_fixes.py +288 -0
  519. proef-0.2.0/tests/test_sandbox_docker_live.py +181 -0
  520. proef-0.2.0/tests/test_sandbox_exec.py +109 -0
  521. proef-0.2.0/tests/test_sandbox_session.py +299 -0
  522. proef-0.2.0/tests/test_series_view.py +220 -0
  523. proef-0.2.0/tests/test_shared_measurement.py +111 -0
  524. proef-0.2.0/tests/test_tool_selection_eval.py +24 -0
  525. proef-0.2.0/tests/test_toolkit_guarantees.py +412 -0
  526. proef-0.2.0/tests/test_tools.py +372 -0
  527. proef-0.2.0/tests/test_vendor_ingest.py +226 -0
  528. proef-0.2.0/tests/test_views.py +262 -0
  529. proef-0.2.0/tests/test_wizard.py +68 -0
  530. proef-0.2.0/tests/test_wizard_fence.py +109 -0
  531. proef-0.2.0/web/index.html +14 -0
  532. proef-0.2.0/web/openapi.json +7719 -0
  533. proef-0.2.0/web/package-lock.json +5300 -0
  534. proef-0.2.0/web/package.json +57 -0
  535. proef-0.2.0/web/public/proef-mark-light.png +0 -0
  536. proef-0.2.0/web/public/proef-mark.png +0 -0
  537. proef-0.2.0/web/src/api/auth.ts +14 -0
  538. proef-0.2.0/web/src/api/hooks.ts +280 -0
  539. proef-0.2.0/web/src/api/schema.d.ts +4444 -0
  540. proef-0.2.0/web/src/api/v1.ts +18 -0
  541. proef-0.2.0/web/src/app/CommandPalette.tsx +74 -0
  542. proef-0.2.0/web/src/app/HaltDialog.tsx +46 -0
  543. proef-0.2.0/web/src/app/Shell.tsx +89 -0
  544. proef-0.2.0/web/src/app/nav.ts +10 -0
  545. proef-0.2.0/web/src/app/theme.ts +20 -0
  546. proef-0.2.0/web/src/app/toast.tsx +32 -0
  547. proef-0.2.0/web/src/features/analyze/AnalyzePage.tsx +405 -0
  548. proef-0.2.0/web/src/features/campaign/ActivityFeed.tsx +28 -0
  549. proef-0.2.0/web/src/features/campaign/AgentsCard.tsx +78 -0
  550. proef-0.2.0/web/src/features/campaign/CampaignPage.tsx +155 -0
  551. proef-0.2.0/web/src/features/campaign/CurvePlot.tsx +70 -0
  552. proef-0.2.0/web/src/features/campaign/ForestPlot.tsx +99 -0
  553. proef-0.2.0/web/src/features/campaign/HypothesisDrawer.tsx +95 -0
  554. proef-0.2.0/web/src/features/campaign/MiniOutcome.tsx +28 -0
  555. proef-0.2.0/web/src/features/campaign/OutcomeBar.tsx +44 -0
  556. proef-0.2.0/web/src/features/campaign/RecordTab.tsx +98 -0
  557. proef-0.2.0/web/src/features/campaign/ResultsTable.tsx +62 -0
  558. proef-0.2.0/web/src/features/campaign/RoundsTimeline.tsx +92 -0
  559. proef-0.2.0/web/src/features/campaign/SubmitResultsDialog.tsx +96 -0
  560. proef-0.2.0/web/src/features/campaign/format.ts +57 -0
  561. proef-0.2.0/web/src/features/evidence/EvidencePage.tsx +146 -0
  562. proef-0.2.0/web/src/features/inbox/ApprovalCard.tsx +42 -0
  563. proef-0.2.0/web/src/features/inbox/InboxPage.tsx +137 -0
  564. proef-0.2.0/web/src/features/inbox/PlanReview.tsx +216 -0
  565. proef-0.2.0/web/src/features/inbox/ReviewControls.tsx +82 -0
  566. proef-0.2.0/web/src/features/inbox/group.ts +19 -0
  567. proef-0.2.0/web/src/features/lab/LabPage.tsx +125 -0
  568. proef-0.2.0/web/src/features/launch/FollowUpDialog.tsx +25 -0
  569. proef-0.2.0/web/src/features/launch/LaunchCampaignDialog.tsx +143 -0
  570. proef-0.2.0/web/src/features/launch/NewProgramDialog.tsx +65 -0
  571. proef-0.2.0/web/src/features/launch/SplitDialog.tsx +109 -0
  572. proef-0.2.0/web/src/features/launch/limits.tsx +38 -0
  573. proef-0.2.0/web/src/features/pause/PauseControl.tsx +57 -0
  574. proef-0.2.0/web/src/features/program/ProgramPage.tsx +147 -0
  575. proef-0.2.0/web/src/features/program/TreesCard.tsx +131 -0
  576. proef-0.2.0/web/src/features/program/goal.ts +17 -0
  577. proef-0.2.0/web/src/features/today/TodayPage.tsx +111 -0
  578. proef-0.2.0/web/src/main.tsx +57 -0
  579. proef-0.2.0/web/src/routes/Campaigns.tsx +63 -0
  580. proef-0.2.0/web/src/styles/app.css +73 -0
  581. proef-0.2.0/web/src/test/group.test.ts +16 -0
  582. proef-0.2.0/web/src/test/launch-split.test.tsx +34 -0
  583. proef-0.2.0/web/src/test/pause.test.tsx +39 -0
  584. proef-0.2.0/web/src/test/plan.test.tsx +180 -0
  585. proef-0.2.0/web/src/test/primitives.test.tsx +79 -0
  586. proef-0.2.0/web/src/test/record.test.tsx +57 -0
  587. proef-0.2.0/web/src/test/setup.ts +8 -0
  588. proef-0.2.0/web/src/ui/Button.tsx +35 -0
  589. proef-0.2.0/web/src/ui/Card.tsx +36 -0
  590. proef-0.2.0/web/src/ui/Chip.tsx +54 -0
  591. proef-0.2.0/web/src/ui/ContextStrip.tsx +27 -0
  592. proef-0.2.0/web/src/ui/Dialog.tsx +27 -0
  593. proef-0.2.0/web/src/ui/Field.tsx +22 -0
  594. proef-0.2.0/web/src/ui/PageHeader.tsx +18 -0
  595. proef-0.2.0/web/src/ui/Tabs.tsx +19 -0
  596. proef-0.2.0/web/src/ui/Tooltip.tsx +17 -0
  597. proef-0.2.0/web/src/ui/cn.ts +4 -0
  598. proef-0.2.0/web/tsconfig.json +15 -0
  599. 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