reactifact 0.23.0__tar.gz → 0.25.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 (577) hide show
  1. reactifact-0.25.0/PKG-INFO +455 -0
  2. reactifact-0.25.0/README.md +398 -0
  3. {reactifact-0.23.0 → reactifact-0.25.0}/pyproject.toml +9 -3
  4. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/__init__.py +28 -13
  5. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/a2a/server.py +1 -1
  6. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/authz.py +45 -1
  7. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/chat.py +184 -16
  8. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/__init__.py +18 -3
  9. reactifact-0.25.0/reactifact/cli/check.py +376 -0
  10. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/common.py +32 -3
  11. reactifact-0.25.0/reactifact/cli/config.py +120 -0
  12. reactifact-0.25.0/reactifact/cli/daemon.py +117 -0
  13. reactifact-0.25.0/reactifact/cli/demo.py +40 -0
  14. reactifact-0.25.0/reactifact/cli/dev.py +153 -0
  15. reactifact-0.25.0/reactifact/cli/doctor.py +273 -0
  16. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/graph.py +18 -4
  17. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/new.py +22 -6
  18. reactifact-0.25.0/reactifact/cli/run.py +139 -0
  19. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/scenario.py +68 -25
  20. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/skills.py +22 -4
  21. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/trace.py +16 -1
  22. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/validate.py +17 -4
  23. reactifact-0.25.0/reactifact/consume/__init__.py +17 -0
  24. reactifact-0.25.0/reactifact/consume/base.py +205 -0
  25. reactifact-0.23.0/reactifact/consume.py → reactifact-0.25.0/reactifact/consume/correlated.py +60 -189
  26. reactifact-0.25.0/reactifact/consume/lifecycle.py +52 -0
  27. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/contracts/report.py +35 -4
  28. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/contracts/web.py +23 -10
  29. reactifact-0.25.0/reactifact/daemon.py +154 -0
  30. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/demo.py +7 -3
  31. reactifact-0.25.0/reactifact/demo_web.py +248 -0
  32. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/__init__.py +18 -0
  33. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/dataset.py +3 -0
  34. reactifact-0.25.0/reactifact/eval/retrieval.py +203 -0
  35. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/scoring.py +5 -0
  36. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/experiments.py +1 -1
  37. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/interaction.py +38 -3
  38. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/__init__.py +60 -4
  39. reactifact-0.25.0/reactifact/knowledge/bridge.py +283 -0
  40. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/chunk.py +44 -19
  41. reactifact-0.25.0/reactifact/knowledge/connectors/__init__.py +15 -0
  42. reactifact-0.25.0/reactifact/knowledge/connectors/base.py +52 -0
  43. reactifact-0.23.0/reactifact/knowledge/connectors.py → reactifact-0.25.0/reactifact/knowledge/connectors/filesystem.py +6 -50
  44. reactifact-0.25.0/reactifact/knowledge/connectors/http.py +181 -0
  45. reactifact-0.25.0/reactifact/knowledge/connectors/s3.py +138 -0
  46. reactifact-0.25.0/reactifact/knowledge/diversity.py +83 -0
  47. reactifact-0.25.0/reactifact/knowledge/docstore.py +530 -0
  48. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/embed.py +20 -2
  49. reactifact-0.25.0/reactifact/knowledge/eval.py +90 -0
  50. reactifact-0.25.0/reactifact/knowledge/extract/__init__.py +20 -0
  51. reactifact-0.25.0/reactifact/knowledge/extract/auto.py +55 -0
  52. reactifact-0.25.0/reactifact/knowledge/extract/base.py +29 -0
  53. reactifact-0.25.0/reactifact/knowledge/extract/docx.py +55 -0
  54. reactifact-0.25.0/reactifact/knowledge/extract/pdf.py +34 -0
  55. reactifact-0.25.0/reactifact/knowledge/extract/structured.py +96 -0
  56. reactifact-0.23.0/reactifact/knowledge/extract.py → reactifact-0.25.0/reactifact/knowledge/extract/text.py +6 -37
  57. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/__init__.py +10 -1
  58. reactifact-0.25.0/reactifact/knowledge/indexes/base.py +106 -0
  59. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/chroma.py +28 -6
  60. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/fusion.py +19 -2
  61. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/memory.py +18 -6
  62. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/pgvector.py +22 -3
  63. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/qdrant.py +61 -13
  64. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/sqlite.py +46 -8
  65. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/models.py +62 -3
  66. reactifact-0.25.0/reactifact/knowledge/pipeline.py +979 -0
  67. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/rerank.py +4 -1
  68. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/web.py +4 -13
  69. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/llm_agent.py +83 -72
  70. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/mcp/client.py +1 -1
  71. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/mcp/server.py +67 -43
  72. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/metrics.py +1 -1
  73. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/pipeline.py +157 -1
  74. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/pricing.py +1 -1
  75. reactifact-0.25.0/reactifact/prompts.py +575 -0
  76. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/__init__.py +2 -0
  77. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/contracts.py +113 -6
  78. reactifact-0.25.0/reactifact/providers/spec.py +328 -0
  79. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/_shared.py +1 -1
  80. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/agent.py +1 -1
  81. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/chat.py +4 -6
  82. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/rag.py +3 -3
  83. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/tools_agent.py +1 -1
  84. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/__init__.py +96 -41
  85. reactifact-0.25.0/reactifact/recipes/_effects.py +30 -0
  86. reactifact-0.25.0/reactifact/recipes/approval/__init__.py +43 -0
  87. reactifact-0.25.0/reactifact/recipes/approval/classify.py +158 -0
  88. reactifact-0.25.0/reactifact/recipes/approval/models.py +54 -0
  89. reactifact-0.25.0/reactifact/recipes/approval/policy.py +157 -0
  90. reactifact-0.25.0/reactifact/recipes/approval/steps.py +130 -0
  91. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/cleanup.py +58 -9
  92. reactifact-0.25.0/reactifact/recipes/conversation/__init__.py +74 -0
  93. reactifact-0.25.0/reactifact/recipes/conversation/_common.py +13 -0
  94. reactifact-0.25.0/reactifact/recipes/conversation/core.py +173 -0
  95. reactifact-0.25.0/reactifact/recipes/conversation/models.py +28 -0
  96. reactifact-0.25.0/reactifact/recipes/conversation/turn_context.py +252 -0
  97. reactifact-0.25.0/reactifact/recipes/conversation/views.py +153 -0
  98. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/identity.py +3 -5
  99. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/inputs.py +24 -3
  100. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/map_reduce.py +18 -13
  101. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/memory.py +164 -69
  102. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/plan_execute.py +44 -33
  103. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/reflection.py +89 -41
  104. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/resolve.py +11 -6
  105. reactifact-0.25.0/reactifact/recipes/route.py +156 -0
  106. reactifact-0.25.0/reactifact/recipes/search.py +139 -0
  107. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/status.py +87 -64
  108. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/supervisor.py +44 -33
  109. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/swarm.py +1 -4
  110. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/tool_loop.py +7 -2
  111. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/request.py +39 -2
  112. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/resources.py +80 -19
  113. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/patch.py +8 -5
  114. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/runtime.py +62 -17
  115. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/scheduler.py +2 -2
  116. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact/SKILL.md +62 -18
  117. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact/references/effects-and-state.md +32 -17
  118. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact/references/trust-and-safety.md +5 -2
  119. reactifact-0.25.0/reactifact/skills/reactifact-agents/SKILL.md +294 -0
  120. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-agents/references/consume.md +49 -6
  121. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-agents/references/effects.md +34 -14
  122. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-eval/SKILL.md +84 -8
  123. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-eval/references/online.md +3 -0
  124. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-from-langchain/SKILL.md +13 -12
  125. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/SKILL.md +89 -21
  126. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/references/providers.md +31 -8
  127. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-llm/references/tools.md +14 -9
  128. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-observability/SKILL.md +16 -11
  129. reactifact-0.25.0/reactifact/skills/reactifact-rag/SKILL.md +256 -0
  130. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-rag/references/sources.md +12 -11
  131. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/skills/reactifact-testing/SKILL.md +8 -6
  132. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/sources.py +21 -141
  133. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/__init__.py +4 -9
  134. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/annotations.py +22 -0
  135. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/call.py +14 -5
  136. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/core.py +141 -5
  137. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/decorator.py +20 -11
  138. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/step/group.py +88 -14
  139. reactifact-0.25.0/reactifact/step/resolve.py +444 -0
  140. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/structured.py +11 -15
  141. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/subflow.py +2 -6
  142. reactifact-0.25.0/reactifact/templates/agent/.gitignore +5 -0
  143. reactifact-0.25.0/reactifact/templates/agent/README.md +14 -0
  144. reactifact-0.25.0/reactifact/templates/agent/main.py +40 -0
  145. reactifact-0.25.0/reactifact/templates/agent/pyproject.toml +17 -0
  146. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/main.py +12 -21
  147. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/monitor.py +1 -1
  148. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/pyproject.toml +1 -1
  149. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/README.md +1 -1
  150. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +1 -1
  151. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/main.py +2 -2
  152. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/fault.py +4 -4
  153. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/lab.py +2 -2
  154. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/__init__.py +3 -7
  155. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/agent.py +5 -4
  156. reactifact-0.25.0/reactifact/tools/base.py +247 -0
  157. reactifact-0.25.0/reactifact/tools/contracts.py +75 -0
  158. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/native.py +35 -16
  159. reactifact-0.25.0/reactifact/tools/runlog.py +291 -0
  160. reactifact-0.25.0/reactifact/tools/schema.py +111 -0
  161. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/use/__init__.py +2 -1
  162. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/use/base.py +7 -4
  163. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/use/blocking.py +79 -12
  164. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tools/use/hitl.py +243 -216
  165. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/triggers.py +3 -0
  166. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/types.py +25 -7
  167. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/validate.py +31 -16
  168. reactifact-0.25.0/reactifact/verify.py +226 -0
  169. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/viz.py +1 -1
  170. reactifact-0.25.0/reactifact/web/__init__.py +40 -0
  171. reactifact-0.25.0/reactifact/web/chat.py +368 -0
  172. reactifact-0.25.0/reactifact/web/common.py +196 -0
  173. reactifact-0.25.0/reactifact/web/pipeline.py +299 -0
  174. reactifact-0.25.0/reactifact.egg-info/PKG-INFO +455 -0
  175. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact.egg-info/SOURCES.txt +76 -10
  176. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact.egg-info/requires.txt +9 -0
  177. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_a2a.py +7 -7
  178. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_a2a_interop.py +4 -2
  179. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_absent_consume.py +8 -8
  180. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_agent_policy.py +15 -15
  181. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_agent_tool.py +7 -7
  182. reactifact-0.25.0/tests/test_approval_recipe.py +184 -0
  183. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_audit.py +4 -4
  184. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_authz.py +47 -3
  185. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_backbone.py +6 -6
  186. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_budget.py +9 -9
  187. reactifact-0.25.0/tests/test_change_instructions.py +154 -0
  188. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_chat_facade.py +29 -0
  189. reactifact-0.25.0/tests/test_chat_hitl.py +81 -0
  190. reactifact-0.25.0/tests/test_chat_http.py +92 -0
  191. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_chat_memory.py +6 -7
  192. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_chat_outbox.py +5 -4
  193. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_chat_web.py +44 -28
  194. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_checkpoints.py +3 -3
  195. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_cli.py +39 -3
  196. reactifact-0.25.0/tests/test_cli_check.py +96 -0
  197. reactifact-0.25.0/tests/test_cli_config.py +51 -0
  198. reactifact-0.25.0/tests/test_cli_daemon.py +46 -0
  199. reactifact-0.25.0/tests/test_cli_dev.py +60 -0
  200. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_cli_doctor.py +47 -1
  201. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_cli_new.py +11 -0
  202. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_compaction.py +3 -3
  203. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_concurrency.py +19 -19
  204. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_conflict.py +3 -3
  205. reactifact-0.25.0/tests/test_consume_lifecycle.py +97 -0
  206. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_consumes_produces.py +17 -17
  207. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_context_at.py +4 -4
  208. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_context_builder.py +14 -14
  209. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_correlated_consume.py +5 -5
  210. reactifact-0.25.0/tests/test_daemon.py +133 -0
  211. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_debounce.py +8 -8
  212. reactifact-0.25.0/tests/test_demo_web.py +33 -0
  213. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_determinism.py +6 -4
  214. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_devops.py +5 -5
  215. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_devops_auth.py +1 -1
  216. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_devops_online.py +1 -1
  217. reactifact-0.25.0/tests/test_docs_imports.py +65 -0
  218. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_dx_errors.py +2 -1
  219. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_effects.py +9 -9
  220. reactifact-0.25.0/tests/test_ergonomics_025.py +364 -0
  221. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_eval.py +1 -1
  222. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_eval_dataset.py +2 -2
  223. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_eval_online.py +6 -4
  224. reactifact-0.25.0/tests/test_eval_retrieval.py +93 -0
  225. reactifact-0.25.0/tests/test_examples_hygiene.py +45 -0
  226. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_experiments.py +3 -3
  227. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_friendly_api.py +8 -7
  228. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_golden.py +4 -2
  229. reactifact-0.25.0/tests/test_group_fallback.py +131 -0
  230. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_guardrails.py +5 -3
  231. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_hitl.py +4 -4
  232. reactifact-0.25.0/tests/test_idempotent_consume.py +135 -0
  233. reactifact-0.25.0/tests/test_interaction.py +200 -0
  234. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_invalidation.py +6 -6
  235. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_join_consume.py +7 -7
  236. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_knowledge.py +1 -1
  237. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_logging.py +3 -3
  238. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_mcp.py +35 -2
  239. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_medic_lab.py +3 -3
  240. reactifact-0.25.0/tests/test_memory_helpers.py +88 -0
  241. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_metrics.py +13 -4
  242. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_multisource.py +6 -6
  243. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_native_tool_use.py +65 -2
  244. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_pending_actions.py +9 -9
  245. reactifact-0.25.0/tests/test_pipeline_http.py +130 -0
  246. reactifact-0.25.0/tests/test_pipeline_tool.py +65 -0
  247. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_produce_trigger.py +22 -13
  248. reactifact-0.25.0/tests/test_prompts.py +373 -0
  249. reactifact-0.25.0/tests/test_provider_spec.py +213 -0
  250. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_providers_integration.py +3 -3
  251. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_public_api.py +93 -5
  252. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_quick.py +12 -6
  253. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_quota.py +7 -5
  254. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_reacts_to.py +10 -10
  255. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipe_conversation.py +48 -3
  256. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipe_plan_execute.py +3 -3
  257. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipe_reflection.py +3 -3
  258. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipe_supervisor.py +3 -3
  259. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipe_tool_loop.py +6 -6
  260. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipes.py +74 -18
  261. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipes_inputs.py +12 -1
  262. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipes_memory.py +121 -28
  263. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_redaction.py +4 -4
  264. reactifact-0.25.0/tests/test_reference.py +18 -0
  265. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_relations.py +4 -4
  266. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_repair.py +77 -19
  267. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_replay.py +11 -9
  268. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_replay_tools.py +22 -10
  269. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_repo_agent.py +1 -1
  270. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_request.py +9 -9
  271. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_resources.py +81 -0
  272. reactifact-0.25.0/tests/test_route.py +100 -0
  273. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_routing.py +12 -5
  274. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_runtime.py +10 -10
  275. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_runtime_errors.py +10 -10
  276. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_scheduler_semantics.py +6 -6
  277. reactifact-0.25.0/tests/test_scoped_cleanup.py +57 -0
  278. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_sessions.py +9 -9
  279. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_shutdown.py +14 -14
  280. reactifact-0.25.0/tests/test_skills.py +224 -0
  281. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_sources.py +9 -0
  282. reactifact-0.25.0/tests/test_step_annotated.py +341 -0
  283. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_step_group.py +2 -20
  284. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_step_provenance.py +7 -7
  285. reactifact-0.25.0/tests/test_step_resolve.py +235 -0
  286. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_step_scope.py +11 -11
  287. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_step_watermark.py +2 -2
  288. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_stream_events.py +5 -5
  289. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_streaming.py +8 -8
  290. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_structured.py +106 -30
  291. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_subflow.py +9 -9
  292. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_swarm.py +7 -7
  293. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_golden.py +2 -2
  294. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_lab.py +4 -4
  295. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_mock.py +4 -4
  296. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_token_budget.py +9 -9
  297. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_tool_injection.py +3 -3
  298. reactifact-0.25.0/tests/test_tool_use_native.py +137 -0
  299. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_tools.py +136 -24
  300. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_tour.py +10 -0
  301. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_columns.py +5 -5
  302. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_limits.py +2 -2
  303. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_tracing.py +39 -35
  304. reactifact-0.25.0/tests/test_triggers.py +79 -0
  305. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_type_registry.py +26 -0
  306. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_validate.py +24 -26
  307. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_verify.py +89 -9
  308. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_viz.py +3 -3
  309. reactifact-0.25.0/tests/test_web_errors.py +71 -0
  310. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_web_source.py +12 -0
  311. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_workspace_with_sources.py +3 -3
  312. reactifact-0.23.0/PKG-INFO +0 -578
  313. reactifact-0.23.0/README.md +0 -527
  314. reactifact-0.23.0/reactifact/agent_tool.py +0 -5
  315. reactifact-0.23.0/reactifact/agents.py +0 -26
  316. reactifact-0.23.0/reactifact/cli/demo.py +0 -20
  317. reactifact-0.23.0/reactifact/cli/doctor.py +0 -159
  318. reactifact-0.23.0/reactifact/cli/run.py +0 -101
  319. reactifact-0.23.0/reactifact/knowledge/bridge.py +0 -169
  320. reactifact-0.23.0/reactifact/knowledge/docstore.py +0 -228
  321. reactifact-0.23.0/reactifact/knowledge/indexes/base.py +0 -69
  322. reactifact-0.23.0/reactifact/knowledge/pipeline.py +0 -523
  323. reactifact-0.23.0/reactifact/native_tool_use.py +0 -21
  324. reactifact-0.23.0/reactifact/prompts.py +0 -179
  325. reactifact-0.23.0/reactifact/recipes/conversation.py +0 -320
  326. reactifact-0.23.0/reactifact/recipes/search.py +0 -116
  327. reactifact-0.23.0/reactifact/skills/reactifact-agents/SKILL.md +0 -152
  328. reactifact-0.23.0/reactifact/skills/reactifact-rag/SKILL.md +0 -150
  329. reactifact-0.23.0/reactifact/step/resolve.py +0 -287
  330. reactifact-0.23.0/reactifact/tool_use.py +0 -17
  331. reactifact-0.23.0/reactifact/tools/base.py +0 -655
  332. reactifact-0.23.0/reactifact/verify.py +0 -161
  333. reactifact-0.23.0/reactifact/web.py +0 -241
  334. reactifact-0.23.0/reactifact.egg-info/PKG-INFO +0 -578
  335. reactifact-0.23.0/tests/test_change_instructions.py +0 -59
  336. reactifact-0.23.0/tests/test_interaction.py +0 -49
  337. reactifact-0.23.0/tests/test_prompts.py +0 -138
  338. reactifact-0.23.0/tests/test_skills.py +0 -106
  339. reactifact-0.23.0/tests/test_sources_vector.py +0 -87
  340. reactifact-0.23.0/tests/test_step_annotated.py +0 -111
  341. reactifact-0.23.0/tests/test_web_errors.py +0 -52
  342. {reactifact-0.23.0 → reactifact-0.25.0}/LICENSE +0 -0
  343. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/__main__.py +0 -0
  344. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/_extras.py +0 -0
  345. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/_httpx.py +0 -0
  346. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/_persistence.py +0 -0
  347. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/a2a/__init__.py +0 -0
  348. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/a2a/client.py +0 -0
  349. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/a2a/models.py +0 -0
  350. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/a2a/remote.py +0 -0
  351. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/artifacts.py +0 -0
  352. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/audit.py +0 -0
  353. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/branching/__init__.py +0 -0
  354. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/branching/ops.py +0 -0
  355. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/branching/store.py +0 -0
  356. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/budget.py +0 -0
  357. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cache.py +0 -0
  358. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/checkpoints.py +0 -0
  359. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/branch.py +0 -0
  360. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/context.py +0 -0
  361. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/contracts.py +0 -0
  362. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/eval.py +0 -0
  363. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/replay.py +0 -0
  364. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/cli/traces.py +0 -0
  365. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/commit.py +0 -0
  366. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/commit_log.py +0 -0
  367. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context/__init__.py +0 -0
  368. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context/context.py +0 -0
  369. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context/index.py +0 -0
  370. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context/pending.py +0 -0
  371. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context/serialization.py +0 -0
  372. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/context_builder.py +0 -0
  373. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/contracts/__init__.py +0 -0
  374. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/contracts/templates/contracts.html +0 -0
  375. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/contracts/templates/favicon.svg +0 -0
  376. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/di.py +0 -0
  377. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/effects.py +0 -0
  378. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/evaluators.py +0 -0
  379. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/judge.py +0 -0
  380. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/online.py +0 -0
  381. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/eval/runner.py +0 -0
  382. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/events.py +0 -0
  383. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/guardrails.py +0 -0
  384. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/interrupt.py +0 -0
  385. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/_closers.py +0 -0
  386. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/errors.py +0 -0
  387. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/http.py +0 -0
  388. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/acl.py +0 -0
  389. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/keyword.py +0 -0
  390. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/indexes/math.py +0 -0
  391. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/knowledge/templates/knowledge.html +0 -0
  392. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/logging.py +0 -0
  393. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/mcp/__init__.py +0 -0
  394. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/mcp/oauth.py +0 -0
  395. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/operations.py +0 -0
  396. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/patches.py +0 -0
  397. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/policy.py +0 -0
  398. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/provenance.py +0 -0
  399. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/_retry.py +0 -0
  400. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/anthropic.py +0 -0
  401. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/azure.py +0 -0
  402. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/cerebras.py +0 -0
  403. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/chat.py +0 -0
  404. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/deepseek.py +0 -0
  405. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/fake.py +0 -0
  406. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/fireworks.py +0 -0
  407. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/gemini.py +0 -0
  408. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/github_models.py +0 -0
  409. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/groq.py +0 -0
  410. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/image.py +0 -0
  411. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/mistral.py +0 -0
  412. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/nvidia.py +0 -0
  413. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/ollama.py +0 -0
  414. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/openai.py +0 -0
  415. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/openrouter.py +0 -0
  416. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/perplexity.py +0 -0
  417. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/qwen.py +0 -0
  418. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/speech.py +0 -0
  419. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/together.py +0 -0
  420. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/video.py +0 -0
  421. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/xai.py +0 -0
  422. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/providers/zai.py +0 -0
  423. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/py.typed +0 -0
  424. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/__init__.py +0 -0
  425. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quick/models.py +0 -0
  426. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/quota.py +0 -0
  427. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/memory_store.py +0 -0
  428. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/rollback.py +0 -0
  429. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/skills.py +0 -0
  430. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/recipes/text.py +0 -0
  431. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/redaction.py +0 -0
  432. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/relations.py +0 -0
  433. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/replay.py +0 -0
  434. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/routing.py +0 -0
  435. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/__init__.py +0 -0
  436. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/budget.py +0 -0
  437. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/events.py +0 -0
  438. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/loop.py +0 -0
  439. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/outbox.py +0 -0
  440. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/runtime/result.py +0 -0
  441. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/session.py +0 -0
  442. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/streaming.py +0 -0
  443. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/__init__.py +0 -0
  444. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/.env.example +0 -0
  445. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/.gitignore +0 -0
  446. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/Dockerfile +0 -0
  447. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/README.md +0 -0
  448. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/__init__.py +0 -0
  449. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/config.py +0 -0
  450. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/llm.py +0 -0
  451. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/llm_presets.py +0 -0
  452. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/models.py +0 -0
  453. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/prompts.py +0 -0
  454. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/resources.py +0 -0
  455. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/app/runner.py +0 -0
  456. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/tests/__init__.py +0 -0
  457. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/daemon/tests/test_daemon.py +0 -0
  458. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/.env.example +0 -0
  459. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/.gitignore +0 -0
  460. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/Dockerfile +0 -0
  461. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
  462. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
  463. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/pipeline.py +0 -0
  464. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/prompts.py +0 -0
  465. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/resources.py +0 -0
  466. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +0 -0
  467. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
  468. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/deps.py +0 -0
  469. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
  470. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/api/routes/chat.py +0 -0
  471. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/authz.py +0 -0
  472. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/bootstrap.py +0 -0
  473. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/config.py +0 -0
  474. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/llm.py +0 -0
  475. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/llm_presets.py +0 -0
  476. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/models.py +0 -0
  477. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/app/security.py +0 -0
  478. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/pyproject.toml +0 -0
  479. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
  480. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/conftest.py +0 -0
  481. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +0 -0
  482. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +0 -0
  483. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/templates/fastapi_chat/tests/test_settings.py +0 -0
  484. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/__init__.py +0 -0
  485. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/assertions.py +0 -0
  486. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/client.py +0 -0
  487. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/exceptions.py +0 -0
  488. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/golden.py +0 -0
  489. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/mock.py +0 -0
  490. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/pytest_plugin.py +0 -0
  491. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/record.py +0 -0
  492. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/testing/registry.py +0 -0
  493. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/__init__.py +0 -0
  494. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/_otlp.py +0 -0
  495. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/_shared.py +0 -0
  496. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/columns.py +0 -0
  497. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/diff.py +0 -0
  498. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/langfuse.py +0 -0
  499. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/models.py +0 -0
  500. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/otlp.py +0 -0
  501. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/postgres.py +0 -0
  502. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/retention.py +0 -0
  503. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/sampling.py +0 -0
  504. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/store.py +0 -0
  505. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/templates/app.css +0 -0
  506. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/templates/sessions.html +0 -0
  507. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/templates/ui.html +0 -0
  508. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/templates/ui_run.html +0 -0
  509. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/tracer.py +0 -0
  510. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact/tracing/web.py +0 -0
  511. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact.egg-info/dependency_links.txt +0 -0
  512. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact.egg-info/entry_points.txt +0 -0
  513. {reactifact-0.23.0 → reactifact-0.25.0}/reactifact.egg-info/top_level.txt +0 -0
  514. {reactifact-0.23.0 → reactifact-0.25.0}/setup.cfg +0 -0
  515. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_anthropic_provider.py +0 -0
  516. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_artifact_store.py +0 -0
  517. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_artifacts.py +0 -0
  518. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_branching.py +0 -0
  519. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_cache.py +0 -0
  520. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_chat_example.py +0 -0
  521. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_checkpoint.py +0 -0
  522. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_checkpoints_concurrency.py +0 -0
  523. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_cli_scenario.py +0 -0
  524. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_code_review.py +0 -0
  525. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_commit_dag.py +0 -0
  526. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_commit_log.py +0 -0
  527. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_context_provenance.py +0 -0
  528. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_contracts.py +0 -0
  529. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_contracts_web.py +0 -0
  530. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_demo.py +0 -0
  531. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_devops_branches.py +0 -0
  532. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_devops_web.py +0 -0
  533. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_di.py +0 -0
  534. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_eval_judge.py +0 -0
  535. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_eval_trajectory.py +0 -0
  536. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_fintech_audit.py +0 -0
  537. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_forklab.py +0 -0
  538. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_forklab_web.py +0 -0
  539. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_gemini_provider.py +0 -0
  540. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_image_provider.py +0 -0
  541. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_knowledge_web.py +0 -0
  542. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_lazy_providers.py +0 -0
  543. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_loop_bound_client.py +0 -0
  544. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_map_reduce.py +0 -0
  545. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_medic_lab_web.py +0 -0
  546. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_memory_store.py +0 -0
  547. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_openai_provider.py +0 -0
  548. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_outbox.py +0 -0
  549. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_patches.py +0 -0
  550. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_pipeline_lifecycle.py +0 -0
  551. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_provider_auth.py +0 -0
  552. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_provider_retry.py +0 -0
  553. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_recipes_skills.py +0 -0
  554. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_relation_graph.py +0 -0
  555. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_repair_web.py +0 -0
  556. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_retry.py +0 -0
  557. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_session_append.py +0 -0
  558. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_sources_search.py +0 -0
  559. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_speech_provider.py +0 -0
  560. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_starter_app.py +0 -0
  561. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_step_return_inference.py +0 -0
  562. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_assertions.py +0 -0
  563. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_provenance.py +0 -0
  564. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_pytest_plugin.py +0 -0
  565. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_testing_registry.py +0 -0
  566. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_reports.py +0 -0
  567. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_retention.py +0 -0
  568. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_sampling.py +0 -0
  569. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_tags.py +0 -0
  570. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_trace_ui.py +0 -0
  571. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_vendor_factories.py +0 -0
  572. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_vendor_multimodal_factories.py +0 -0
  573. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_version.py +0 -0
  574. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_video_provider.py +0 -0
  575. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_view.py +0 -0
  576. {reactifact-0.23.0 → reactifact-0.25.0}/tests/test_workspace.py +0 -0
  577. {reactifact-0.23.0 → reactifact-0.25.0}/tests/tests_checkpoints_sqlite.py +0 -0
@@ -0,0 +1,455 @@
1
+ Metadata-Version: 2.4
2
+ Name: reactifact
3
+ Version: 0.25.0
4
+ Summary: Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/bzdvdn/reactifact
7
+ Project-URL: Repository, https://github.com/bzdvdn/reactifact
8
+ Project-URL: Documentation, https://bzdvdn.github.io/reactifact/
9
+ Project-URL: Changelog, https://github.com/bzdvdn/reactifact/blob/master/CHANGELOG.md
10
+ Keywords: agents,llm,ai-agents,reactive,provenance,orchestration,agentic
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
14
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: pydantic>=2.13.4
25
+ Requires-Dist: httpx>=0.27
26
+ Requires-Dist: python-dotenv>=1.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: ruff>=0.8; extra == "dev"
29
+ Requires-Dist: mypy>=1.11; extra == "dev"
30
+ Requires-Dist: pytest>=9.1.1; extra == "dev"
31
+ Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
32
+ Requires-Dist: import-linter>=2.0; extra == "dev"
33
+ Requires-Dist: httpx2; extra == "dev"
34
+ Provides-Extra: knowledge
35
+ Provides-Extra: knowledge-chroma
36
+ Requires-Dist: chromadb>=0.5; extra == "knowledge-chroma"
37
+ Provides-Extra: knowledge-pdf
38
+ Requires-Dist: pypdf>=4; extra == "knowledge-pdf"
39
+ Provides-Extra: knowledge-office
40
+ Requires-Dist: python-docx>=1.1; extra == "knowledge-office"
41
+ Provides-Extra: knowledge-s3
42
+ Requires-Dist: boto3>=1.34; extra == "knowledge-s3"
43
+ Provides-Extra: web
44
+ Requires-Dist: fastapi>=0.115; extra == "web"
45
+ Requires-Dist: uvicorn[standard]>=0.30; extra == "web"
46
+ Provides-Extra: pg
47
+ Requires-Dist: psycopg[binary]>=3.2; extra == "pg"
48
+ Provides-Extra: mcp
49
+ Requires-Dist: mcp>=2.2; extra == "mcp"
50
+ Provides-Extra: a2a
51
+ Requires-Dist: a2a-sdk>=1.0; extra == "a2a"
52
+ Provides-Extra: docs
53
+ Requires-Dist: mkdocs>=1.6; extra == "docs"
54
+ Requires-Dist: mkdocs-material>=9.5; extra == "docs"
55
+ Requires-Dist: mkdocstrings[python]>=0.27; extra == "docs"
56
+ Dynamic: license-file
57
+
58
+ <p align="center">
59
+ <img src="docs/img/reactifact-hero.png" alt="reactifact — typed artifacts, reactive steps, auditable state" width="800">
60
+ </p>
61
+
62
+ **Agents that can prove their answers.** reactifact is a Python runtime for
63
+ typed, reactive agents: you declare artifacts and steps, the runtime derives the
64
+ path — no graph to wire. Contracts, scenarios, evals, traces and replay are
65
+ built in, local-first, with three core dependencies and no API key.
66
+
67
+ > **Your types are the graph. Your runs are the receipt.**
68
+
69
+ [![CI](https://github.com/bzdvdn/reactifact/actions/workflows/ci.yml/badge.svg)](https://github.com/bzdvdn/reactifact/actions/workflows/ci.yml)
70
+ [![codecov](https://codecov.io/gh/bzdvdn/reactifact/graph/badge.svg)](https://codecov.io/gh/bzdvdn/reactifact)
71
+ [![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue)](https://github.com/bzdvdn/reactifact)
72
+ [![PyPI version](https://img.shields.io/badge/pypi-reactifact-blue)](https://pypi.org/project/reactifact/)
73
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
74
+ [![Ask DeepWiki](docs/img/deepwiki.svg)](https://deepwiki.com/bzdvdn/reactifact)
75
+ [![Docs](https://img.shields.io/badge/docs-bzdvdn.github.io%2Freactifact-blue)](https://bzdvdn.github.io/reactifact/)
76
+
77
+ > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · scenarios + evals + traces in the box · optional code-first knowledge base · runs offline, no API key
78
+ > **Isn't:** a managed platform · a distributed task queue · a pre-built agent/tool marketplace
79
+
80
+ ## The three things that matter
81
+
82
+ - **No graph to draw.** `@step(consumes=Question) -> Answer` is the route. The
83
+ runtime derives execution from which artifacts exist — fan-out, joins,
84
+ retries and loops are state changes, not edges you maintain.
85
+ - **Proof, not logs.** Every derived artifact links to its inputs, every answer
86
+ carries the context hash, and a finished run replays deterministically.
87
+ “Why did it say that?” is a query, not a guess.
88
+ - **The whole loop is built in.** Contracts, scenarios, dataset evals, traces,
89
+ replay and branching live in the same runtime — no second stack for testing or
90
+ observability.
91
+
92
+ ## Sixty seconds, no API key
93
+
94
+ ```bash
95
+ uvx reactifact demo # or: uv add reactifact && uv run reactifact demo
96
+ uvx reactifact demo --web # browser: answer, provenance, contracts, traces
97
+ ```
98
+
99
+ ```text
100
+ reactifact demo — computed, cited, reproducible
101
+
102
+ question What is the Q2 cloud spend variance, and does policy require approval?
103
+ sources transactions.csv (6 rows) · budget.csv (2 rows) · policy.md
104
+
105
+ answer Q2 cloud spend was $45,000 against a $40,000 budget (+12.5%) — exceeds
106
+ the 10% policy threshold. CFO approval is required before the quarter
107
+ is closed.
108
+
109
+ computed cloud spend $45,000 (2026-04 $12,000, 2026-05 $15,000, 2026-06 $18,000)
110
+ policy threshold 10% → approval required
111
+ citations budget.csv, transactions.csv, policy.md
112
+
113
+ provenance (context.related(answer.id, "supported_by"))
114
+ Answer → supported_by → Variance, policy.md
115
+ Variance → calculated_from → Spend, budget.csv
116
+ Spend → calculated_from → transactions.csv
117
+
118
+ context sha256 ffeca1bb18cbc34749d3b5bdb40d85677b1ac33d47fb1160f6c89053694b2783
119
+ re-run identical ✓
120
+ ```
121
+
122
+ Three `@step` functions, none of which imports another by name: they declare
123
+ what they consume and produce, and the runtime derives the order from state.
124
+ The figures come from plain Python, and both the answer and the numbers carry
125
+ the hash of the exact state that produced them. The whole demo lives in
126
+ [`reactifact/demo.py`](reactifact/demo.py).
127
+
128
+ `demo --web` serves the same run at `/` with the provenance graph, plus
129
+ `/contracts`, `/traces`, `/api/demo` and `/docs`. No API key, in-memory traces.
130
+
131
+ ## One pipeline, four surfaces
132
+
133
+ The same typed pipeline runs as a library, CLI, HTTP service, daemon or MCP
134
+ tool. Web and MCP are adapters, not the core.
135
+
136
+ ```python
137
+ pipeline = Pipeline(steps=[...], seed_type=Question, answer_type=Answer, traces=True)
138
+
139
+ pipeline.run(seed) # library
140
+ app = pipeline.http() # /run, /stream, /docs, /contracts, /traces
141
+ ```
142
+
143
+ | Surface | One line |
144
+ | --- | --- |
145
+ | **CLI** | `reactifact run app:pipeline "hello"` |
146
+ | **HTTP** | `app = pipeline.http()` — typed `/run`, SSE `/stream`, OpenAPI `/docs` |
147
+ | **Daemon** | `Daemon(pipeline, seed_source=next_tick, interval=60).serve()` |
148
+ | **MCP** | `create_mcp_server([pipeline.as_tool()])` |
149
+
150
+ Need sessions and history? `Chat(..., store="sessions.db").http()` adds
151
+ `/chat/stream` plus `/runs/{id}`; pass `ChatRoutes(invoke="/chat",
152
+ history="/chat/history", clear="/chat/clear")` for the DEVOPS-style paths.
153
+
154
+ ## HITL is just the next chat turn
155
+
156
+ Approval is a `PendingQuestion`, not a separate service. Ask from a step, let
157
+ `Chat` report `waiting`, and the next user message resumes the same pipeline:
158
+
159
+ ```python
160
+ from reactifact import Chat, Human, PendingQuestion, step
161
+
162
+ @step(consumes=Question, produces=PendingQuestion)
163
+ def approve(question: Question, human: Human) -> None:
164
+ human.ask("Deploy to production?", kind="approval")
165
+
166
+ chat = Chat(
167
+ steps=[approve, ...], # the rest of the pipeline continues after the answer
168
+ store="sessions.db",
169
+ seed_type=Question,
170
+ answer_type=Answer,
171
+ resume_pending=True, # "yes" answers the pending question
172
+ )
173
+
174
+ await chat.invoke("ship it") # {"waiting": True, "question": {...}}
175
+ await chat.invoke("yes") # same PendingQuestion resumed; pipeline continues
176
+ ```
177
+
178
+ The `message` payload carries the structured question (`id`, `kind`, `schema`,
179
+ `notes`), and `Chat.history` shows a `waiting: true` message across reloads.
180
+ There is no `/hitl` endpoint: `Chat.http()` keeps the normal
181
+ `/chat`, `/chat/stream` and history contract, so the answer is just another turn.
182
+ `Pipeline` stays stateless; when it needs a person, wrap it in `Chat`.
183
+
184
+ For free-text answers, spread the ready approval flow instead of naming its
185
+ internal steps:
186
+
187
+ ```python
188
+ from reactifact.recipes import ApprovalFlow
189
+
190
+ chat = Chat(
191
+ steps=[approve, *ApprovalFlow(steps=[deploy])],
192
+ ...
193
+ )
194
+ ```
195
+
196
+ `ApprovalFlow` includes a deterministic yes/no parser plus an optional LLM
197
+ fallback; `ApprovalPolicy` is the single place for custom prompts, few-shot
198
+ examples, domain vocabulary and the confidence threshold. `ApprovalDecision`
199
+ records `policy_hash`, and downstream code still checks
200
+ `decision.allows(min_confidence=0.8)` — ambiguity never auto-approves.
201
+
202
+ LLM calls are provider methods now: a step takes `llm: LLMProvider` and calls
203
+ `await llm.structured(Schema, user=...)` (or `llm.reply`, `llm.structured_json`,
204
+ `llm.chat`); `context.resources.llm` is still accepted by the old helpers.
205
+
206
+ ## Define a step, run it
207
+
208
+ ```python
209
+ from pydantic import BaseModel
210
+ from reactifact import Pipeline, step
211
+
212
+ class Question(BaseModel):
213
+ text: str
214
+
215
+ class Answer(BaseModel):
216
+ text: str
217
+
218
+ @step(consumes=Question) # produces=Answer inferred from ->
219
+ def answer(question: Question) -> Answer:
220
+ return Answer(text=f"you asked: {question.text}")
221
+
222
+ pipeline = Pipeline(steps=[answer], seed_type=Question, answer_type=Answer)
223
+ result = pipeline.run(Question(text="why did cloud spend jump in Q2?"))
224
+
225
+ print(result.latest(Answer).data.text)
226
+ print(result.sources(result.latest(Answer))) # citations, as a query
227
+ print(result.hash) # reproducible fingerprint
228
+ ```
229
+
230
+ `Pipeline` owns steps, resources and defaults and builds a fresh `Context` +
231
+ `Runtime` per run. The CLI is the same pipeline:
232
+
233
+ ```bash
234
+ reactifact run app:pipeline "why did cloud spend jump in Q2?"
235
+ ```
236
+
237
+ `run` writes `.reactifact/traces.db` by default; `reactifact trace` renders the
238
+ latest run. Use `--no-trace` to skip it.
239
+
240
+ ## The loop is built in
241
+
242
+ Start with a contract, test the agent, gate a dataset, then inspect the run that
243
+ actually happened:
244
+
245
+ | Stage | Built in |
246
+ | --- | --- |
247
+ | **Design** | `pipeline.validate()` / `.describe()`, contracts page, `reactifact validate` |
248
+ | **Test** | `ScenarioLab`, `@scenario`, tool faults, record/replay, `check --scenarios` |
249
+ | **Evaluate** | `Dataset` + deterministic metrics + LLM judge, `check --evals`, online eval |
250
+ | **Observe** | typed `TraceStore`, spans, reads/writes, provenance, `/traces` dashboard |
251
+ | **Debug** | `reactifact trace`, `replay`, `branch`, `diff`, context hashes |
252
+
253
+ One CI command:
254
+
255
+ ```bash
256
+ reactifact check app.pipeline:pipeline \
257
+ --scenarios app.scenarios \
258
+ --evals evals/qa.json \
259
+ --overall 0.8
260
+ ```
261
+
262
+ It runs contracts, scenarios and dataset evals in one gate and exits non-zero
263
+ when any stage fails. The same loop is available as code (`pipeline.validate()`,
264
+ `ScenarioLab`, `evaluate`) — the CLI is not a separate implementation.
265
+
266
+ ## What makes it different
267
+
268
+ | Traditional agent (LangGraph / CrewAI / LangChain) | reactifact |
269
+ | --- | --- |
270
+ | A program follows a graph / plan | Agents **react** to state changes |
271
+ | Messages and dicts | **Typed, versioned artifacts** (`Claim`, `Evidence`, `Answer`) |
272
+ | Orchestration is explicit wiring | Orchestration **falls out of the state** |
273
+ | A unit of work returns a change object | A step **returns typed artifacts**; the runtime compiles them |
274
+ | Retries/rollback are manual | Context is **git-like versioned** (diff, rollback, branch, merge) |
275
+ | “Who produced this?” is lost | **Provenance** links every derived artifact to its inputs |
276
+ | The model guesses the numbers | **Calculations are calculated** — the LLM reasons, Python computes |
277
+ | Tracing needs a SaaS add-on | **Native trace store** (SQLite + dashboard), exportable |
278
+ | Testing and evals need another stack | **Scenarios + evals + traces + replay** in one runtime |
279
+ | A web framework is the app | **One pipeline**, then CLI / HTTP / daemon / MCP adapters |
280
+ | Pulls in a framework's dependency tree | **3 core deps**: `pydantic`, `httpx`, `python-dotenv` |
281
+
282
+ Full breakdown, including where reactifact is *not* the right choice:
283
+ [docs/en/comparison.md](docs/en/comparison.md).
284
+
285
+ ## Who this is for
286
+
287
+ - **Knowledge assistants over mixed sources.** One question spans Confluence, a
288
+ spreadsheet and a web page; the next spans a different subset. You declare
289
+ what artifacts exist and what agents can do with them, and the runtime derives
290
+ the path. Figures are computed, answers cite their sources, and a run replays
291
+ to the same hash.
292
+ - **Multi-step agents that don’t fit one graph.** Search, verification,
293
+ calculation, human approval and outbound actions compose by type; the next
294
+ question can take a different subset without rewiring.
295
+ - **Teams that need audit and regression gates.** Typed contracts, scenarios,
296
+ dataset evals, provenance and deterministic replay are first-class, not a
297
+ bolt-on.
298
+
299
+ **Not for a fixed A → B → C pipeline.** There a plain function or LangGraph is
300
+ shorter and just as correct.
301
+
302
+ **Not a connector library or a managed platform.** If you need dozens of
303
+ managed SaaS sources, LlamaIndex is the better tool. reactifact’s `Source` layer
304
+ is deliberately small and code-first: filesystem, CSV, embeddings, web, MCP.
305
+
306
+ ## Proof in the repo
307
+
308
+ [`examples/fintech_audit`](examples/fintech_audit) — a transactions CSV, a budget
309
+ CSV and a policy doc, **no API key**. The model never produces the number; plain
310
+ Python does, and the answer links to its evidence:
311
+
312
+ ```text
313
+ cloud spend: $45,000 (2026-04 $12k, 2026-05 $15k, 2026-06 $18k)
314
+ variance vs budget: +12.5% budget $40,000, policy threshold 10% → over
315
+ answer: Q2 cloud spend was $45,000 against a $40,000 budget (+12.5%) — ...
316
+ citations: budget.csv, transactions.csv, policy.md
317
+ audit: Answer —supported_by→ {Variance, Spend, Table, Policy}
318
+ context sha256: 24449f6f…
319
+ ```
320
+
321
+ ![fintech_audit demo: the variance, the answer, and the reproducible context hash — a second run prints the same hash.](docs/img/fintech-audit-short.gif)
322
+
323
+ A harder, multi-source version — docs plus a CSV, computed sum, verified answer,
324
+ no key required — is [`examples/knowledge`](examples/knowledge):
325
+
326
+ ![CLI demo: asking "how much does gpu cost in total?" — search, compute, verify, answer with sources.](docs/img/knowledge-cli-demo.gif)
327
+
328
+ Two strategies explore on separate forks and merge cleanly; if they edit the
329
+ same artifact differently, reactifact raises `MergeConflict` instead of guessing:
330
+
331
+ ![forklab demo: two strategies investigate on separate forks and merge; a conflicting edit raises MergeConflict, then re-merges under an explicit policy.](docs/img/forklab-demo.gif)
332
+
333
+ ## Optional knowledge layer
334
+
335
+ If the agent needs a corpus, `reactifact.knowledge` is a code-first ingestion
336
+ layer — `Connector → RawDocument → Document → Chunk → Index` — with incremental
337
+ `DocStore` state, BM25 + RRF hybrid retrieval, ACL-aware reconcile, and
338
+ `MemoryIndex` / `SqliteIndex` / `QdrantIndex` / `PgVectorIndex` (plus optional
339
+ `ChromaIndex`). It reuses the core `EmbeddingProvider`; `IndexSource` /
340
+ `IngestStep` are the only bridges into `Source` / `Step`.
341
+
342
+ ```python
343
+ from reactifact.knowledge import KnowledgePipeline, SectionsChunker, SqliteIndex
344
+
345
+ pipeline = KnowledgePipeline(connector, chunker=SectionsChunker(), index=SqliteIndex(".reactifact/kb.db"))
346
+ await pipeline.run(incremental=True)
347
+ hits = await pipeline.query("how do I install it?", top_k=5, hybrid=True)
348
+ ```
349
+
350
+ No YAML pipeline, CLI or plugin registry. See
351
+ [Knowledge base](docs/en/knowledge.md) (or [по-русски](docs/ru/knowledge.md)).
352
+
353
+ ## In the box
354
+
355
+ - **Typed contracts** — `@step`, `Consume`, `When`, `Wakes`, `Scope`, joins and
356
+ correlation; `validate_contracts` catches missing producers before a run.
357
+ - **Atomic state** — `Context` with git-like commits, `diff`, `rollback`,
358
+ `branch`, three-way `merge`; artifacts are versioned by content hash.
359
+ - **Provenance** — `Answer —supported_by→ Claim —derived_from→ Evidence —
360
+ extracted_from→ Doc`; walk it with `context.related(...)`.
361
+ - **HITL and outbox** — `human.ask(...)` → `PendingQuestion`; `outbox.act(...)`
362
+ → `PendingAction`, delivered once after commit by `Runtime(dispatcher=...)`.
363
+ - **Traces and replay** — SQLite trace store + dashboard, portable
364
+ Markdown/HTML/JSON reports, `ReplayLLM`, deterministic `context_hash`.
365
+ - **Scenarios and evals** — seeded scenarios, tool/resource faults, record/replay,
366
+ assertions, golden runs, dataset metrics, judges and CI gates.
367
+ - **Budgets and lifecycle** — hard `max_seconds` deadlines, stop at a generation
368
+ boundary, readiness via `active_runs()` / `in_flight`.
369
+ - **Sessions and chat** — `Chat` + `ChatAssistant` with `SessionStore`, SSE,
370
+ history, memory policies, per-turn resources and `Chat.http()`.
371
+ - **Transports** — CLI, FastAPI (`/docs`, `/contracts`, `/traces`), daemon,
372
+ MCP both ways (`create_mcp_server`, `mcp_stdio_tools`, `mcp_http_tools`).
373
+ - **Agent Skills** — bundled instructions for Claude Code, Cursor, Codex,
374
+ Copilot: `reactifact`, `reactifact-agents`, `reactifact-llm`,
375
+ `reactifact-rag`, `reactifact-testing`, `reactifact-eval`,
376
+ `reactifact-observability`, `reactifact-from-langchain`.
377
+
378
+ ## Start here
379
+
380
+ **Minimal agent, no web**
381
+
382
+ ```bash
383
+ uvx reactifact new agent my-agent
384
+ cd my-agent && uv sync
385
+ uv run reactifact run main:pipeline "hello"
386
+ uv run reactifact trace
387
+ ```
388
+
389
+ **Production HTTP shell**
390
+
391
+ ```bash
392
+ uvx reactifact new app my-app
393
+ cd my-app && uv sync --extra dev
394
+ cp .env.example .env
395
+ uv run reactifact dev
396
+ ```
397
+
398
+ **Existing project**
399
+
400
+ ```bash
401
+ uv add reactifact
402
+ uv run reactifact skills install # teach your coding agent the model
403
+ ```
404
+
405
+ Then read [Quickstart](docs/en/quickstart.md) or [Concepts](docs/en/concepts.md).
406
+
407
+ ## Examples (in-repo, not shipped)
408
+
409
+ - `starter_app` — copy-pasteable FastAPI app: structured call, RAG, tools, session chat.
410
+ - `knowledge` — multi-source chat: search → evidence → claim verification → answer, with CSV calculation.
411
+ - `knowledge_base` — real ingestion: connector → chunks → SQLite/Qdrant, incremental state, hybrid query.
412
+ - `medic_lab` — hypothesis laboratory: competing hypotheses scored, HITL steering, honest report.
413
+ - `devops` — HITL tool agents + LLM tool router + trace dashboard.
414
+ - `code_review` — deterministic-first diff review: rules + optional LLM findings → linked report.
415
+ - `repair` — budget-aware replanning (chat/data in Russian by design).
416
+ - `chat` — minimal offline single-model multi-turn conversation.
417
+ - `forklab` — deterministic branch & merge.
418
+ - `fintech_audit` — auditable, reproducible CSV answer with content hashes and provenance.
419
+ - `approval_gate` — HITL approval in one chat: ask, interpret free text, deploy only on `ApprovalDecision.allows()`.
420
+
421
+ ## Documentation
422
+
423
+ - [English](docs/en/index.md) · [Русский](docs/ru/index.md) — concepts, sources,
424
+ providers, recipes, patterns, observability, eval, branching, replay, viz/CLI, API.
425
+ - [Quickstart](docs/en/quickstart.md) — demo, CLI, HTTP, daemon and MCP in a few lines.
426
+ - [Migrating](docs/en/migrating.md) — from LangGraph / CrewAI / LlamaIndex /
427
+ plain Python: concept map, port-one-node, interop, checklist.
428
+ - [Why reactifact](docs/en/why-reactifact.md) — why the graph is derived rather
429
+ than drawn, why determinism, why provenance.
430
+ - [Comparison](docs/en/comparison.md) — reactifact vs LangGraph/CrewAI, feature
431
+ by feature, and when *not* to use reactifact.
432
+ - [docs/constitution.md](docs/constitution.md) — the design rationale and invariants.
433
+ - [Roadmap](docs/roadmap.md) — what’s next, and what’s deliberately out of scope.
434
+
435
+ ## Development
436
+
437
+ ```bash
438
+ uv sync --extra dev --extra web
439
+ .venv/bin/python -m pytest
440
+ .venv/bin/mypy
441
+ .venv/bin/ruff check
442
+ npx --yes pyright
443
+ ```
444
+
445
+ ## Status & contributing
446
+
447
+ Active, pre-1.0 — the API is stabilizing and `1.0` will freeze it (see the
448
+ [roadmap](docs/roadmap.md)); releases follow [Keep a Changelog](CHANGELOG.md).
449
+ Questions and design discussion live in
450
+ [GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,
451
+ or a `good first issue`, helps more than you’d think.
452
+
453
+ ## License
454
+
455
+ MIT — see [LICENSE](LICENSE).