oloproof 0.1.0a1__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 (220) hide show
  1. oloproof-0.1.0a1/.gitignore +22 -0
  2. oloproof-0.1.0a1/LICENSE +202 -0
  3. oloproof-0.1.0a1/NOTICE +21 -0
  4. oloproof-0.1.0a1/PKG-INFO +270 -0
  5. oloproof-0.1.0a1/README.md +235 -0
  6. oloproof-0.1.0a1/pyproject.toml +93 -0
  7. oloproof-0.1.0a1/python/oloproof/__init__.py +192 -0
  8. oloproof-0.1.0a1/python/oloproof/evaluators.py +70 -0
  9. oloproof-0.1.0a1/python/oloproof_cli/__init__.py +1 -0
  10. oloproof-0.1.0a1/python/oloproof_cli/__main__.py +3 -0
  11. oloproof-0.1.0a1/python/oloproof_cli/commands/audit.py +62 -0
  12. oloproof-0.1.0a1/python/oloproof_cli/commands/collect.py +632 -0
  13. oloproof-0.1.0a1/python/oloproof_cli/commands/compare.py +96 -0
  14. oloproof-0.1.0a1/python/oloproof_cli/commands/credentials.py +61 -0
  15. oloproof-0.1.0a1/python/oloproof_cli/commands/diagnose.py +38 -0
  16. oloproof-0.1.0a1/python/oloproof_cli/commands/doctor.py +14 -0
  17. oloproof-0.1.0a1/python/oloproof_cli/commands/evaluators.py +440 -0
  18. oloproof-0.1.0a1/python/oloproof_cli/commands/export.py +123 -0
  19. oloproof-0.1.0a1/python/oloproof_cli/commands/gate.py +48 -0
  20. oloproof-0.1.0a1/python/oloproof_cli/commands/init.py +120 -0
  21. oloproof-0.1.0a1/python/oloproof_cli/commands/inspect.py +89 -0
  22. oloproof-0.1.0a1/python/oloproof_cli/commands/labels.py +128 -0
  23. oloproof-0.1.0a1/python/oloproof_cli/commands/login.py +153 -0
  24. oloproof-0.1.0a1/python/oloproof_cli/commands/outbox.py +81 -0
  25. oloproof-0.1.0a1/python/oloproof_cli/commands/plan.py +163 -0
  26. oloproof-0.1.0a1/python/oloproof_cli/commands/prefer.py +46 -0
  27. oloproof-0.1.0a1/python/oloproof_cli/commands/push.py +147 -0
  28. oloproof-0.1.0a1/python/oloproof_cli/commands/review.py +145 -0
  29. oloproof-0.1.0a1/python/oloproof_cli/commands/run.py +231 -0
  30. oloproof-0.1.0a1/python/oloproof_cli/commands/runner.py +36 -0
  31. oloproof-0.1.0a1/python/oloproof_cli/commands/signoff.py +112 -0
  32. oloproof-0.1.0a1/python/oloproof_cli/commands/traces.py +143 -0
  33. oloproof-0.1.0a1/python/oloproof_cli/commands/usage.py +79 -0
  34. oloproof-0.1.0a1/python/oloproof_cli/exit_codes.py +14 -0
  35. oloproof-0.1.0a1/python/oloproof_cli/main.py +779 -0
  36. oloproof-0.1.0a1/python/oloproof_core/__init__.py +4 -0
  37. oloproof-0.1.0a1/python/oloproof_core/adapters/base.py +12 -0
  38. oloproof-0.1.0a1/python/oloproof_core/adapters/callable.py +204 -0
  39. oloproof-0.1.0a1/python/oloproof_core/adapters/http.py +120 -0
  40. oloproof-0.1.0a1/python/oloproof_core/adapters/rag.py +477 -0
  41. oloproof-0.1.0a1/python/oloproof_core/analysis_plan/catalog.py +62 -0
  42. oloproof-0.1.0a1/python/oloproof_core/analysis_plan/compiler.py +216 -0
  43. oloproof-0.1.0a1/python/oloproof_core/billing/__init__.py +15 -0
  44. oloproof-0.1.0a1/python/oloproof_core/billing/admission.py +196 -0
  45. oloproof-0.1.0a1/python/oloproof_core/billing/control.py +126 -0
  46. oloproof-0.1.0a1/python/oloproof_core/billing/estimate.py +207 -0
  47. oloproof-0.1.0a1/python/oloproof_core/billing/meter.py +424 -0
  48. oloproof-0.1.0a1/python/oloproof_core/billing/pricing.py +140 -0
  49. oloproof-0.1.0a1/python/oloproof_core/billing/service.py +320 -0
  50. oloproof-0.1.0a1/python/oloproof_core/billing/workspace.py +107 -0
  51. oloproof-0.1.0a1/python/oloproof_core/comparisons/__init__.py +1 -0
  52. oloproof-0.1.0a1/python/oloproof_core/comparisons/compute.py +442 -0
  53. oloproof-0.1.0a1/python/oloproof_core/comparisons/integrity.py +33 -0
  54. oloproof-0.1.0a1/python/oloproof_core/comparisons/pairing.py +449 -0
  55. oloproof-0.1.0a1/python/oloproof_core/config.py +590 -0
  56. oloproof-0.1.0a1/python/oloproof_core/datasets/jsonl.py +102 -0
  57. oloproof-0.1.0a1/python/oloproof_core/decisions/policy.py +120 -0
  58. oloproof-0.1.0a1/python/oloproof_core/decisions/rules.py +470 -0
  59. oloproof-0.1.0a1/python/oloproof_core/decisions/signoff.py +202 -0
  60. oloproof-0.1.0a1/python/oloproof_core/diagnostics/__init__.py +1 -0
  61. oloproof-0.1.0a1/python/oloproof_core/diagnostics/agent_labels.py +165 -0
  62. oloproof-0.1.0a1/python/oloproof_core/diagnostics/labels.py +164 -0
  63. oloproof-0.1.0a1/python/oloproof_core/diagnostics/recommendations.py +103 -0
  64. oloproof-0.1.0a1/python/oloproof_core/diagnostics/report.py +235 -0
  65. oloproof-0.1.0a1/python/oloproof_core/errors.py +24 -0
  66. oloproof-0.1.0a1/python/oloproof_core/evaluators/agent.py +251 -0
  67. oloproof-0.1.0a1/python/oloproof_core/evaluators/base.py +210 -0
  68. oloproof-0.1.0a1/python/oloproof_core/evaluators/cascade.py +138 -0
  69. oloproof-0.1.0a1/python/oloproof_core/evaluators/conversation.py +167 -0
  70. oloproof-0.1.0a1/python/oloproof_core/evaluators/custom.py +165 -0
  71. oloproof-0.1.0a1/python/oloproof_core/evaluators/deterministic.py +205 -0
  72. oloproof-0.1.0a1/python/oloproof_core/evaluators/generation.py +212 -0
  73. oloproof-0.1.0a1/python/oloproof_core/evaluators/llm_judge.py +234 -0
  74. oloproof-0.1.0a1/python/oloproof_core/evaluators/model.py +238 -0
  75. oloproof-0.1.0a1/python/oloproof_core/evaluators/multi_agent.py +171 -0
  76. oloproof-0.1.0a1/python/oloproof_core/evaluators/pairwise.py +157 -0
  77. oloproof-0.1.0a1/python/oloproof_core/evaluators/predictive.py +485 -0
  78. oloproof-0.1.0a1/python/oloproof_core/evaluators/probability.py +309 -0
  79. oloproof-0.1.0a1/python/oloproof_core/evaluators/retrieval.py +263 -0
  80. oloproof-0.1.0a1/python/oloproof_core/evaluators/tools.py +149 -0
  81. oloproof-0.1.0a1/python/oloproof_core/evidence/code.py +190 -0
  82. oloproof-0.1.0a1/python/oloproof_core/evidence/content.py +178 -0
  83. oloproof-0.1.0a1/python/oloproof_core/evidence/hashing.py +62 -0
  84. oloproof-0.1.0a1/python/oloproof_core/evidence/ids.py +20 -0
  85. oloproof-0.1.0a1/python/oloproof_core/evidence/manifest.py +687 -0
  86. oloproof-0.1.0a1/python/oloproof_core/evidence/refs.py +5 -0
  87. oloproof-0.1.0a1/python/oloproof_core/evidence/rows.py +136 -0
  88. oloproof-0.1.0a1/python/oloproof_core/evidence/run_evidence.py +76 -0
  89. oloproof-0.1.0a1/python/oloproof_core/execution/events.py +108 -0
  90. oloproof-0.1.0a1/python/oloproof_core/execution/http.py +60 -0
  91. oloproof-0.1.0a1/python/oloproof_core/execution/job_events.py +58 -0
  92. oloproof-0.1.0a1/python/oloproof_core/execution/jobs.py +129 -0
  93. oloproof-0.1.0a1/python/oloproof_core/execution/keys.py +218 -0
  94. oloproof-0.1.0a1/python/oloproof_core/execution/limiter.py +31 -0
  95. oloproof-0.1.0a1/python/oloproof_core/execution/provisional.py +73 -0
  96. oloproof-0.1.0a1/python/oloproof_core/execution/recorder.py +177 -0
  97. oloproof-0.1.0a1/python/oloproof_core/execution/retry.py +38 -0
  98. oloproof-0.1.0a1/python/oloproof_core/execution/runner.py +472 -0
  99. oloproof-0.1.0a1/python/oloproof_core/execution/supervisor.py +520 -0
  100. oloproof-0.1.0a1/python/oloproof_core/execution/worker.py +199 -0
  101. oloproof-0.1.0a1/python/oloproof_core/experiments/compare.py +859 -0
  102. oloproof-0.1.0a1/python/oloproof_core/experiments/diagnose.py +391 -0
  103. oloproof-0.1.0a1/python/oloproof_core/experiments/prefer.py +221 -0
  104. oloproof-0.1.0a1/python/oloproof_core/experiments/push.py +366 -0
  105. oloproof-0.1.0a1/python/oloproof_core/experiments/result.py +108 -0
  106. oloproof-0.1.0a1/python/oloproof_core/experiments/run.py +1660 -0
  107. oloproof-0.1.0a1/python/oloproof_core/experiments/sync.py +54 -0
  108. oloproof-0.1.0a1/python/oloproof_core/interventions/__init__.py +1 -0
  109. oloproof-0.1.0a1/python/oloproof_core/interventions/agent_replay.py +513 -0
  110. oloproof-0.1.0a1/python/oloproof_core/interventions/runner.py +211 -0
  111. oloproof-0.1.0a1/python/oloproof_core/interventions/selection.py +111 -0
  112. oloproof-0.1.0a1/python/oloproof_core/metrics/compute.py +855 -0
  113. oloproof-0.1.0a1/python/oloproof_core/metrics/denominators.py +193 -0
  114. oloproof-0.1.0a1/python/oloproof_core/metrics/operational.py +147 -0
  115. oloproof-0.1.0a1/python/oloproof_core/metrics/ranking.py +95 -0
  116. oloproof-0.1.0a1/python/oloproof_core/metrics/replicates.py +216 -0
  117. oloproof-0.1.0a1/python/oloproof_core/models/_base.py +90 -0
  118. oloproof-0.1.0a1/python/oloproof_core/models/analysis.py +35 -0
  119. oloproof-0.1.0a1/python/oloproof_core/models/artifacts.py +353 -0
  120. oloproof-0.1.0a1/python/oloproof_core/models/bundle.py +132 -0
  121. oloproof-0.1.0a1/python/oloproof_core/models/comparison.py +139 -0
  122. oloproof-0.1.0a1/python/oloproof_core/models/config.py +957 -0
  123. oloproof-0.1.0a1/python/oloproof_core/models/decision.py +279 -0
  124. oloproof-0.1.0a1/python/oloproof_core/models/diagnosis.py +192 -0
  125. oloproof-0.1.0a1/python/oloproof_core/models/enums.py +142 -0
  126. oloproof-0.1.0a1/python/oloproof_core/models/evaluator.py +48 -0
  127. oloproof-0.1.0a1/python/oloproof_core/models/execution.py +56 -0
  128. oloproof-0.1.0a1/python/oloproof_core/models/intervention.py +64 -0
  129. oloproof-0.1.0a1/python/oloproof_core/models/judgment.py +86 -0
  130. oloproof-0.1.0a1/python/oloproof_core/models/metric.py +261 -0
  131. oloproof-0.1.0a1/python/oloproof_core/models/prediction.py +57 -0
  132. oloproof-0.1.0a1/python/oloproof_core/models/predictive_evidence.py +254 -0
  133. oloproof-0.1.0a1/python/oloproof_core/models/preference.py +43 -0
  134. oloproof-0.1.0a1/python/oloproof_core/models/pricing.py +40 -0
  135. oloproof-0.1.0a1/python/oloproof_core/models/registry.py +685 -0
  136. oloproof-0.1.0a1/python/oloproof_core/models/run.py +180 -0
  137. oloproof-0.1.0a1/python/oloproof_core/models/run_link.py +73 -0
  138. oloproof-0.1.0a1/python/oloproof_core/models/scenario.py +27 -0
  139. oloproof-0.1.0a1/python/oloproof_core/models/schema_export.py +47 -0
  140. oloproof-0.1.0a1/python/oloproof_core/models/signoff.py +154 -0
  141. oloproof-0.1.0a1/python/oloproof_core/models/system.py +12 -0
  142. oloproof-0.1.0a1/python/oloproof_core/models/trace.py +202 -0
  143. oloproof-0.1.0a1/python/oloproof_core/multiplicity/__init__.py +1 -0
  144. oloproof-0.1.0a1/python/oloproof_core/multiplicity/fdr.py +96 -0
  145. oloproof-0.1.0a1/python/oloproof_core/multiplicity/holm.py +120 -0
  146. oloproof-0.1.0a1/python/oloproof_core/multiplicity/inversion.py +88 -0
  147. oloproof-0.1.0a1/python/oloproof_core/multiplicity/marking.py +90 -0
  148. oloproof-0.1.0a1/python/oloproof_core/persistence/artifacts.py +105 -0
  149. oloproof-0.1.0a1/python/oloproof_core/persistence/credentials.py +39 -0
  150. oloproof-0.1.0a1/python/oloproof_core/persistence/egress.py +465 -0
  151. oloproof-0.1.0a1/python/oloproof_core/persistence/hosted.py +512 -0
  152. oloproof-0.1.0a1/python/oloproof_core/persistence/migrate.py +163 -0
  153. oloproof-0.1.0a1/python/oloproof_core/persistence/paths.py +34 -0
  154. oloproof-0.1.0a1/python/oloproof_core/persistence/postgres_store.py +1210 -0
  155. oloproof-0.1.0a1/python/oloproof_core/persistence/purge.py +86 -0
  156. oloproof-0.1.0a1/python/oloproof_core/persistence/scope.py +87 -0
  157. oloproof-0.1.0a1/python/oloproof_core/persistence/sqlite_store.py +1311 -0
  158. oloproof-0.1.0a1/python/oloproof_core/persistence/store.py +310 -0
  159. oloproof-0.1.0a1/python/oloproof_core/predictive/__init__.py +7 -0
  160. oloproof-0.1.0a1/python/oloproof_core/predictive/aggregate.py +134 -0
  161. oloproof-0.1.0a1/python/oloproof_core/predictive/calibration.py +94 -0
  162. oloproof-0.1.0a1/python/oloproof_core/predictive/confusion.py +77 -0
  163. oloproof-0.1.0a1/python/oloproof_core/predictive/evidence.py +161 -0
  164. oloproof-0.1.0a1/python/oloproof_core/predictive/thresholds.py +92 -0
  165. oloproof-0.1.0a1/python/oloproof_core/providers/anthropic.py +75 -0
  166. oloproof-0.1.0a1/python/oloproof_core/providers/base.py +96 -0
  167. oloproof-0.1.0a1/python/oloproof_core/providers/credentials.py +148 -0
  168. oloproof-0.1.0a1/python/oloproof_core/providers/fake.py +59 -0
  169. oloproof-0.1.0a1/python/oloproof_core/providers/openai_compatible.py +118 -0
  170. oloproof-0.1.0a1/python/oloproof_core/providers/resolve.py +37 -0
  171. oloproof-0.1.0a1/python/oloproof_core/py.typed +1 -0
  172. oloproof-0.1.0a1/python/oloproof_core/registry/__init__.py +1 -0
  173. oloproof-0.1.0a1/python/oloproof_core/registry/agreement.py +495 -0
  174. oloproof-0.1.0a1/python/oloproof_core/registry/calibration.py +253 -0
  175. oloproof-0.1.0a1/python/oloproof_core/registry/entries.py +275 -0
  176. oloproof-0.1.0a1/python/oloproof_core/registry/integrity.py +50 -0
  177. oloproof-0.1.0a1/python/oloproof_core/registry/labelling.py +789 -0
  178. oloproof-0.1.0a1/python/oloproof_core/registry/labels.py +169 -0
  179. oloproof-0.1.0a1/python/oloproof_core/registry/measure.py +151 -0
  180. oloproof-0.1.0a1/python/oloproof_core/registry/probes.py +288 -0
  181. oloproof-0.1.0a1/python/oloproof_core/registry/review.py +398 -0
  182. oloproof-0.1.0a1/python/oloproof_core/registry/rich_labels.py +116 -0
  183. oloproof-0.1.0a1/python/oloproof_core/registry/trial.py +176 -0
  184. oloproof-0.1.0a1/python/oloproof_core/registry/verification.py +512 -0
  185. oloproof-0.1.0a1/python/oloproof_core/registry/workspace_gate.py +856 -0
  186. oloproof-0.1.0a1/python/oloproof_core/registry/workspace_signoff.py +132 -0
  187. oloproof-0.1.0a1/python/oloproof_core/reports/audit.py +262 -0
  188. oloproof-0.1.0a1/python/oloproof_core/reports/bundle.py +197 -0
  189. oloproof-0.1.0a1/python/oloproof_core/reports/cases.py +131 -0
  190. oloproof-0.1.0a1/python/oloproof_core/reports/comparison.py +368 -0
  191. oloproof-0.1.0a1/python/oloproof_core/reports/diagnosis.py +214 -0
  192. oloproof-0.1.0a1/python/oloproof_core/reports/live.py +89 -0
  193. oloproof-0.1.0a1/python/oloproof_core/reports/plan.py +114 -0
  194. oloproof-0.1.0a1/python/oloproof_core/reports/run_advice.py +165 -0
  195. oloproof-0.1.0a1/python/oloproof_core/reports/terminal.py +383 -0
  196. oloproof-0.1.0a1/python/oloproof_core/reports/usage.py +147 -0
  197. oloproof-0.1.0a1/python/oloproof_core/reports/view_models.py +544 -0
  198. oloproof-0.1.0a1/python/oloproof_core/slices/__init__.py +1 -0
  199. oloproof-0.1.0a1/python/oloproof_core/slices/declared.py +365 -0
  200. oloproof-0.1.0a1/python/oloproof_core/stats/binary.py +127 -0
  201. oloproof-0.1.0a1/python/oloproof_core/stats/calibration.py +91 -0
  202. oloproof-0.1.0a1/python/oloproof_core/stats/cluster.py +474 -0
  203. oloproof-0.1.0a1/python/oloproof_core/stats/difference.py +163 -0
  204. oloproof-0.1.0a1/python/oloproof_core/stats/mean.py +126 -0
  205. oloproof-0.1.0a1/python/oloproof_core/stats/power.py +398 -0
  206. oloproof-0.1.0a1/python/oloproof_core/stats/ppi.py +67 -0
  207. oloproof-0.1.0a1/python/oloproof_core/stats/quantile.py +98 -0
  208. oloproof-0.1.0a1/python/oloproof_core/stats/ranking.py +815 -0
  209. oloproof-0.1.0a1/python/oloproof_core/traces/__init__.py +1 -0
  210. oloproof-0.1.0a1/python/oloproof_core/traces/assemble.py +360 -0
  211. oloproof-0.1.0a1/python/oloproof_core/traces/commitments.py +292 -0
  212. oloproof-0.1.0a1/python/oloproof_core/traces/inbox.py +104 -0
  213. oloproof-0.1.0a1/python/oloproof_core/traces/monitor.py +236 -0
  214. oloproof-0.1.0a1/python/oloproof_core/traces/otlp.py +135 -0
  215. oloproof-0.1.0a1/python/oloproof_core/traces/promote.py +131 -0
  216. oloproof-0.1.0a1/python/oloproof_core/traces/replay.py +134 -0
  217. oloproof-0.1.0a1/python/oloproof_core/traces/traffic.py +415 -0
  218. oloproof-0.1.0a1/python/oloproof_core/trajectories/__init__.py +1 -0
  219. oloproof-0.1.0a1/python/oloproof_core/trajectories/reference.py +103 -0
  220. oloproof-0.1.0a1/python/oloproof_core/trajectories/routes.py +92 -0
@@ -0,0 +1,22 @@
1
+ .DS_Store
2
+ .idea/
3
+ .venv/
4
+ __pycache__/
5
+ .pytest_cache/
6
+ .ruff_cache/
7
+ .pyright/
8
+ *.py[cod]
9
+ node_modules/
10
+ .next/
11
+ next-env.d.ts
12
+ *.tsbuildinfo
13
+ .oloproof/
14
+ dist/
15
+ build/
16
+ *.egg-info/
17
+
18
+ # Secrets. Nothing here was ignored before slice G step 04, which is the step that starts telling
19
+ # people to write a client secret into a file (deploy/README.md).
20
+ .env
21
+ .env.*
22
+ deploy/.env
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ https://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
+ https://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.
@@ -0,0 +1,21 @@
1
+ Oloproof
2
+ Copyright 2026 the Oloproof authors
3
+
4
+ This repository is licensed in two parts.
5
+
6
+ Apache License, Version 2.0 (LICENSE at the repository root) covers
7
+ everything a developer installs or runs to evaluate their own systems:
8
+
9
+ python/ the engine, the CLI and the SDK, including the runner
10
+ packages/ the design tokens and UI primitives
11
+ schemas/, examples/, tests/, benchmarks/, scripts/, deploy/, docs/
12
+ and every other file not listed below.
13
+
14
+ Elastic License 2.0 (apps/web/LICENSE) covers the hosted control plane
15
+ and workbench:
16
+
17
+ apps/web/
18
+
19
+ You may use, modify and self-host apps/web, including inside your
20
+ organisation. You may not provide it to third parties as a hosted or
21
+ managed service. The full terms are in apps/web/LICENSE.
@@ -0,0 +1,270 @@
1
+ Metadata-Version: 2.5
2
+ Name: oloproof
3
+ Version: 0.1.0a1
4
+ Summary: Developer-first AI systems evaluation, diagnostics, and decision evidence.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Requires-Python: >=3.11
9
+ Requires-Dist: cryptography>=43
10
+ Requires-Dist: httpx>=0.27
11
+ Requires-Dist: jsonschema>=4.22
12
+ Requires-Dist: numpy>=2.0
13
+ Requires-Dist: pydantic>=2.11
14
+ Requires-Dist: pyyaml>=6.0.1
15
+ Requires-Dist: rich>=13.7
16
+ Requires-Dist: scipy>=1.14
17
+ Requires-Dist: typer>=0.15.4
18
+ Provides-Extra: collect
19
+ Requires-Dist: opentelemetry-proto>=1.34; extra == 'collect'
20
+ Provides-Extra: dev
21
+ Requires-Dist: cryptography>=43; extra == 'dev'
22
+ Requires-Dist: hypothesis>=6.100; extra == 'dev'
23
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.34; extra == 'dev'
24
+ Requires-Dist: opentelemetry-proto>=1.34; extra == 'dev'
25
+ Requires-Dist: opentelemetry-sdk>=1.34; extra == 'dev'
26
+ Requires-Dist: psycopg[binary]>=3.2; extra == 'dev'
27
+ Requires-Dist: pytest>=8.2; extra == 'dev'
28
+ Requires-Dist: ruff>=0.6; extra == 'dev'
29
+ Requires-Dist: scikit-learn>=1.6.1; extra == 'dev'
30
+ Provides-Extra: postgres
31
+ Requires-Dist: psycopg[binary]>=3.2; extra == 'postgres'
32
+ Provides-Extra: worker
33
+ Requires-Dist: cryptography>=43; extra == 'worker'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Oloproof
37
+
38
+ Oloproof is a developer-first AI systems evaluation, diagnostics and decision
39
+ platform. It runs an AI system on a versioned suite of cases, measures it with
40
+ deterministic, custom, judge, retrieval, agent and predictive evaluators, puts an
41
+ interval with the right denominator on every number, compares a candidate with a
42
+ baseline, diagnoses failures by intervening on them, and decides a release as
43
+ `PASS`, `FAIL`, `INSUFFICIENT_EVIDENCE` or `MANUAL_REVIEW` from declared rules. The
44
+ same canonical objects are read in the terminal and in the Next.js workbench.
45
+
46
+ Oloproof is not a toy eval harness. The intended product direction is credible
47
+ beside DeepEval/Confident AI, Braintrust, LangSmith, Arize/Phoenix, Galileo,
48
+ Langfuse and Opik, while differentiating through statistical rigor, evaluator
49
+ reliability, intervention-driven diagnosis and decision-grade evidence.
50
+
51
+ ## Install For Development
52
+
53
+ From the repository root:
54
+
55
+ ```bash
56
+ python3 -m venv .venv
57
+ .venv/bin/python -m pip install -e '.[dev]'
58
+ pnpm install --frozen-lockfile
59
+ make check
60
+ pnpm --filter @oloproof/web check
61
+ ```
62
+
63
+ The public Python surface is:
64
+
65
+ ```python
66
+ from oloproof import evaluate, system, current_case
67
+ from oloproof.evaluators import ExactMatch, Contains, JsonSchema, Regex, RubricJudge, evaluator
68
+ ```
69
+
70
+ Everything under `oloproof_core` is engine internals.
71
+
72
+ ## Quick Start
73
+
74
+ Generate a small project:
75
+
76
+ ```bash
77
+ . .venv/bin/activate
78
+ oloproof init /tmp/oloproof-demo
79
+ cd /tmp/oloproof-demo
80
+ oloproof run
81
+ ```
82
+
83
+ ### Evaluators
84
+
85
+ The `type:` values `oloproof.yaml` accepts:
86
+
87
+ | | |
88
+ |---|---|
89
+ | deterministic | `exact_match`, `contains`, `regex`, `json_schema` |
90
+ | LLM judge | `rubric_judge`, `groundedness_judge`, `citation_support_judge`; `probability_judge`: a yes/no, choice or score question answered by one token's probabilities; `cascade`: a probability judge first, a second judge only where it is unsure |
91
+ | model | `model_classifier`: a trained classifier or NLI model on a TEI server, scored against a threshold |
92
+ | retrieval | `hit_rate`, `recall`, `mrr`, `ndcg`, `citation_validity` |
93
+ | agent | `agent_max_steps`, `agent_tool_called`, `agent_no_tool_loop`, `agent_tool_sequence`, `agent_no_undeclared_tool`, `agent_constraints_satisfied` |
94
+ | multi-agent | `agent_route`, `agent_tool_permissions`, `agent_max_handoffs` |
95
+ | predictive | `predictive_correct`, `predictive_precision`, `predictive_recall`, `predictive_ranking`, `predictive_brier`, `predictive_log_loss`, `predictive_absolute_error` |
96
+
97
+ A judge names its `provider` (`anthropic`, `openai` or `openai_compatible`), its `model`, and its
98
+ rubric as `rubric_text` or `rubric_file`. One on a provider that speaks the OpenAI API but is not
99
+ OpenAI (Groq, Together, a local server) also needs `base_url` and `api_key_env`:
100
+
101
+ ```yaml
102
+ evaluators:
103
+ - type: rubric_judge
104
+ criterion: answer_correct
105
+ provider: openai_compatible
106
+ model: openai/gpt-oss-20b
107
+ base_url: https://api.groq.com/openai/v1
108
+ api_key_env: GROQ_API_KEY
109
+ rubric_text: "PASS if the answer conveys the same fact as the reference."
110
+ ```
111
+
112
+ Naming a field an evaluator does not take is answered with the ones it does.
113
+
114
+ Re-decide an existing run without rerunning the system or evaluators:
115
+
116
+ ```bash
117
+ oloproof gate RUN_ID --policy release.yaml
118
+ ```
119
+
120
+ Inspect failures and one case:
121
+
122
+ ```bash
123
+ oloproof inspect RUN_ID --failures
124
+ oloproof inspect RUN_ID --case refund_00
125
+ ```
126
+
127
+ Export a bundle and open it in the web workbench:
128
+
129
+ ```bash
130
+ oloproof export RUN_ID
131
+ OLOPROOF_BUNDLE_DIR="$PWD/.oloproof/bundles" pnpm --dir /path/to/Oloproof --filter @oloproof/web dev
132
+ ```
133
+
134
+ The bundle path must be absolute, because pnpm starts the app from `apps/web`. The workbench opens
135
+ on its workspace index; a lone `OLOPROOF_BUNDLE_DIR` appears there as the `local/bundles` project.
136
+ To hold several projects on one machine, point `OLOPROOF_WORKBENCH_DIR` at a directory containing a
137
+ `workbench.json` instead (`docs/API_CONTRACTS.md`).
138
+
139
+ ## Examples
140
+
141
+ Five runnable projects, none of which needs provider credentials. Each README explains what the
142
+ run shows and why it decides what it decides.
143
+
144
+ | Example | Shows |
145
+ |---|---|
146
+ | `examples/support_bot/` | the first run: a label accuracy that is too thin to decide, inspecting failures, re-deciding with `gate`, adding an LLM judge |
147
+ | `examples/support_rag/` | RAG evaluation: retrieval and generation evaluators, declared slices, `expected.gold_context`, and `oloproof diagnose` intervening on failed cases |
148
+ | `examples/support_agent/` | agent and tool evaluation: an agent that runs its own loop and records a trajectory with `current_case().agent_trajectory(...)`, a tool reference in each case's `expected.tools` |
149
+ | `examples/triage_agents/` | several agents in one trajectory: each step names its agent, hand-offs, a declared route in each case's `expected.route`, a closed tool-permission map and a hand-off bound |
150
+ | `examples/churn_model/` | predictive classification: the `predictive:` block, three denominators, calibration and ranking |
151
+
152
+ ```bash
153
+ cd examples/support_bot
154
+ ../../.venv/bin/python -m oloproof_cli run
155
+ ```
156
+
157
+ The run exits 3. Its keyword-rule bot labels 13 of 18 questions correctly,
158
+ which is too few cases to show label accuracy of at least 0.70, so the release
159
+ is blocked with `INSUFFICIENT_EVIDENCE`.
160
+
161
+ ## Benchmark
162
+
163
+ The Slice A analysis benchmark stores runs of synthetic precomputed evidence and
164
+ times what `oloproof gate` does with them: loading, denominators, cold and
165
+ cached analysis, the clustered bootstrap and decisions. It excludes system and
166
+ model latency.
167
+
168
+ ```bash
169
+ .venv/bin/python benchmarks/analysis_bench.py --sizes 1000,10000,100000
170
+ ```
171
+
172
+ Recorded results are in `benchmarks/README.md`.
173
+
174
+ ## Engine Rules
175
+
176
+ The evidence chain is:
177
+
178
+ ```text
179
+ scenarios -> execution -> artifacts -> evaluators -> judgments
180
+ -> statistical inference -> diagnostics/interventions
181
+ -> decisions -> evidence/provenance
182
+ -> LLM explanation/hypothesis/next experiment
183
+ ```
184
+
185
+ Decision states are exactly `PASS`, `FAIL`, `INSUFFICIENT_EVIDENCE` and
186
+ `MANUAL_REVIEW`. Execution states such as `RUN_ERROR` and `CANCELLED` are not
187
+ decision states. Release actions are separate: `ALLOW`, `WARN` or `BLOCK`.
188
+
189
+ For minimum-threshold interval rules, `PASS` requires the lower bound to meet the
190
+ threshold and `FAIL` requires the upper bound to be below it. Otherwise the result
191
+ is `INSUFFICIENT_EVIDENCE`. Unsupported declared structures fail closed.
192
+
193
+ ## Current Scope
194
+
195
+ Built:
196
+
197
+ - Python SDK and CLI for local evaluation; suites, systems and evaluators are versioned and
198
+ every record is content-addressed.
199
+ - Deterministic, custom (`@evaluator`), LLM-judge, retrieval, agent-trajectory and predictive
200
+ evaluators, and an evaluator registry that measures a judge against human labels on the answers
201
+ people judged: agreement, bias and hit rates, each with an interval, and a bar on each before a
202
+ judge may gate. People label from a file (`oloproof labels export` and `import`), the terminal
203
+ (`oloproof review`) or, in a hosted workspace, a review queue in the browser; `oloproof evaluators
204
+ try` measures a draft judge before it is adopted. Probability judges can be calibrated against
205
+ labels, and a cascade sends only uncertain cases to a stronger judge.
206
+ - Judges measured without labels: `oloproof evaluators probe` reports how often a judge's verdict
207
+ moves when it is asked again or shown padding, and `oloproof prefer` asks a pairwise judge which
208
+ of two runs answered better, in both orders, with the judge's position bias beside the result.
209
+ - Systems of several agents: each trajectory step names the agent that took it, a hand-off is a
210
+ step, and deterministic criteria judge the route against a declared one, tool calls against a
211
+ closed permission map, and the number of hand-offs against a bound. No failure is attributed to
212
+ an agent.
213
+ - Binary-rate, bounded-mean and quantile metrics with missingness bounds; paired and
214
+ cluster-aware analysis where declared.
215
+ - Candidate-versus-baseline comparison with superiority, non-inferiority and equivalence rules.
216
+ - Declared slices with multiplicity control; a slice rule gates only inside a declared family with
217
+ a correction and a minimum support.
218
+ - Intervention-driven diagnosis of RAG failures (`oloproof diagnose`) and sample-size planning
219
+ for undecided rules (`oloproof plan`).
220
+ - Streaming progress with live provisional estimates, bounded concurrency for systems and
221
+ judges (`concurrency:`), and cache reuse across execution, judgment, analysis and gate
222
+ recomputation.
223
+ - CI gating through exit codes, sign-off, usage and cost reporting.
224
+ - Early stopping (`early_stopping: true` in a policy): a run, or a comparison, stops after a
225
+ seeded batch once every rule has decided PASS or FAIL. Cases that never ran count at their worst
226
+ value, so a stop is valid whenever it happens, and the run reports the work it avoided.
227
+ - Prediction-powered inference (`ppi_judge_rate@1`): a judge's pass rate corrected by a random,
228
+ blind sample of human labels. A sample drawn on the labeller's machine is good-faith; a hosted
229
+ workspace draws the sample itself and verifies the interval with its own engine.
230
+ - Verified evidence in a hosted workspace: runners an Owner registers sign the runs they execute,
231
+ an Owner pins the evaluation and the release policy, and the workspace gate decides each system
232
+ version on its first run of that evaluation, counting independent labellers by account.
233
+ - The Next.js workbench, locally over exported bundles or as a hosted workspace that
234
+ `oloproof push` sends runs to. The hosted workspace is invitation-only.
235
+ - Hosted review queues: an Owner or Admin assigns reviewers, who give pass/fail verdicts, scores
236
+ or A/B preferences that do not name the runs, in the browser. Content a project keeps on its own machines reaches the
237
+ reviewer's browser from `oloproof collect`, never through Oloproof. Scores and preferences are
238
+ stored and enter no statistic yet.
239
+ - Production traces received locally: `oloproof collect` accepts OpenTelemetry (GenAI and
240
+ OpenInference conventions) and pushes them through the project's egress policy.
241
+
242
+ Not built yet: production evaluation (hosted trace ingestion, workspace-drawn traffic samples,
243
+ online scoring and monitoring, turning a trace into a test case; `docs/plans/SLICE_S.md` S06 to
244
+ S10), and the rest of the statistical roadmap in Engine §24: conformal risk control,
245
+ hierarchical dependence, causal intervention analysis, IRT and a method for score and preference
246
+ labels. Distribution is not built either: there is no PyPI release, and the hosted stack has not
247
+ yet run on a real host (`docs/roadmap/INITIAL_COMPETITIVE_RELEASE.md`).
248
+
249
+ ## Project Instructions
250
+
251
+ Coding agents should start with:
252
+
253
+ - `AGENTS.md` - shared instructions and source-of-truth map.
254
+ - `AGENT_WORKFLOWS.md` - Claude/Codex division of labor and task prompts.
255
+ - `DOCUMENTATION_STATUS.md` - canonical synchronized doc versions and status.
256
+ - `docs/engine/ENGINE_SPECIFICATION.md` - statistical and decision contract.
257
+ - `docs/plans/` - the implementation plans, one per slice, and their accepted decisions.
258
+
259
+ The top-level local repository folder is `Oloproof/` with a capital O. Python
260
+ packages, npm package names, CLI commands and environment variables remain
261
+ lowercase or uppercase as documented: `oloproof`, `oloproof_core`,
262
+ `@oloproof/...`, `OLOPROOF_*`.
263
+
264
+ ## License
265
+
266
+ Oloproof is licensed in two parts. The engine, CLI, SDK and runner (`python/`), the UI packages
267
+ (`packages/`) and everything else a developer installs are under the
268
+ [Apache License 2.0](LICENSE). The hosted control plane and workbench (`apps/web/`) are under the
269
+ [Elastic License 2.0](apps/web/LICENSE): you may use, modify and self-host it, and you may not offer
270
+ it to others as a managed service. [NOTICE](NOTICE) says which covers what.