reactifact 0.21.0__tar.gz → 0.23.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 (492) hide show
  1. {reactifact-0.21.0/reactifact.egg-info → reactifact-0.23.0}/PKG-INFO +176 -56
  2. {reactifact-0.21.0 → reactifact-0.23.0}/README.md +174 -55
  3. {reactifact-0.21.0 → reactifact-0.23.0}/pyproject.toml +23 -3
  4. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/__init__.py +76 -8
  5. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/a2a/__init__.py +2 -2
  6. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/a2a/client.py +2 -2
  7. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/a2a/remote.py +9 -9
  8. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/a2a/server.py +6 -6
  9. reactifact-0.23.0/reactifact/agents.py +26 -0
  10. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/artifacts.py +20 -0
  11. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/audit.py +1 -10
  12. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/branching/__init__.py +2 -0
  13. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/branching/ops.py +38 -5
  14. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/budget.py +1 -1
  15. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/chat.py +325 -23
  16. reactifact-0.23.0/reactifact/cli/__init__.py +133 -0
  17. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/common.py +11 -11
  18. reactifact-0.23.0/reactifact/cli/contracts.py +39 -0
  19. reactifact-0.23.0/reactifact/cli/demo.py +20 -0
  20. reactifact-0.23.0/reactifact/cli/doctor.py +159 -0
  21. reactifact-0.23.0/reactifact/cli/graph.py +48 -0
  22. reactifact-0.23.0/reactifact/cli/new.py +97 -0
  23. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/replay.py +14 -2
  24. reactifact-0.23.0/reactifact/cli/run.py +101 -0
  25. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/skills.py +1 -1
  26. reactifact-0.23.0/reactifact/cli/trace.py +98 -0
  27. reactifact-0.23.0/reactifact/cli/traces.py +55 -0
  28. reactifact-0.23.0/reactifact/cli/validate.py +42 -0
  29. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/commit.py +31 -0
  30. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/consume.py +7 -7
  31. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context/__init__.py +2 -1
  32. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context/context.py +188 -21
  33. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context/pending.py +18 -5
  34. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context_builder.py +7 -7
  35. reactifact-0.23.0/reactifact/contracts/__init__.py +19 -0
  36. reactifact-0.23.0/reactifact/contracts/report.py +514 -0
  37. reactifact-0.23.0/reactifact/contracts/templates/contracts.html +237 -0
  38. reactifact-0.23.0/reactifact/contracts/templates/favicon.svg +7 -0
  39. reactifact-0.23.0/reactifact/contracts/web.py +86 -0
  40. reactifact-0.23.0/reactifact/demo.py +354 -0
  41. reactifact-0.23.0/reactifact/di.py +32 -0
  42. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/effects.py +53 -14
  43. reactifact-0.23.0/reactifact/experiments.py +242 -0
  44. reactifact-0.23.0/reactifact/interaction.py +79 -0
  45. reactifact-0.23.0/reactifact/interrupt.py +143 -0
  46. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/llm_agent.py +4 -5
  47. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/metrics.py +2 -2
  48. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/operations.py +8 -1
  49. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/patches.py +28 -5
  50. reactifact-0.23.0/reactifact/pipeline.py +292 -0
  51. reactifact-0.23.0/reactifact/policy.py +65 -0
  52. reactifact-0.23.0/reactifact/provenance.py +50 -0
  53. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/__init__.py +3 -3
  54. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/_shared.py +2 -2
  55. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/agent.py +4 -5
  56. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/chat.py +21 -9
  57. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/models.py +3 -3
  58. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/rag.py +5 -6
  59. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quick/tools_agent.py +2 -2
  60. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/__init__.py +37 -9
  61. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/conversation.py +6 -6
  62. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/identity.py +3 -3
  63. reactifact-0.23.0/reactifact/recipes/map_reduce.py +263 -0
  64. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/memory.py +1 -1
  65. reactifact-0.23.0/reactifact/recipes/memory_store.py +449 -0
  66. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/plan_execute.py +133 -4
  67. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/reflection.py +150 -4
  68. reactifact-0.23.0/reactifact/recipes/resolve.py +148 -0
  69. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/search.py +45 -10
  70. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/status.py +89 -10
  71. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/supervisor.py +7 -6
  72. reactifact-0.23.0/reactifact/recipes/swarm.py +192 -0
  73. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/tool_loop.py +3 -3
  74. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/replay.py +107 -1
  75. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/request.py +6 -5
  76. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/resources.py +51 -2
  77. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/__init__.py +2 -0
  78. reactifact-0.23.0/reactifact/runtime/events.py +196 -0
  79. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/patch.py +47 -4
  80. reactifact-0.23.0/reactifact/runtime/result.py +53 -0
  81. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/runtime.py +390 -61
  82. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/scheduler.py +7 -7
  83. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/session.py +60 -0
  84. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact/SKILL.md +35 -7
  85. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact/references/effects-and-state.md +2 -2
  86. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-agents/SKILL.md +5 -5
  87. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-agents/references/consume.md +1 -1
  88. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-agents/references/effects.md +5 -5
  89. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-eval/SKILL.md +3 -3
  90. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-from-langchain/SKILL.md +5 -5
  91. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-llm/SKILL.md +35 -1
  92. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-llm/references/tools.md +24 -4
  93. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-observability/SKILL.md +12 -5
  94. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-rag/SKILL.md +3 -3
  95. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-testing/SKILL.md +14 -2
  96. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/sources.py +1 -1
  97. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/step/__init__.py +8 -1
  98. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/step/call.py +24 -2
  99. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/step/core.py +200 -94
  100. reactifact-0.23.0/reactifact/step/decorator.py +143 -0
  101. reactifact-0.21.0/reactifact/agents.py → reactifact-0.23.0/reactifact/step/group.py +172 -46
  102. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/step/resolve.py +112 -8
  103. reactifact-0.23.0/reactifact/streaming.py +352 -0
  104. reactifact-0.23.0/reactifact/subflow.py +151 -0
  105. reactifact-0.23.0/reactifact/templates/__init__.py +0 -0
  106. reactifact-0.23.0/reactifact/templates/daemon/.env.example +32 -0
  107. reactifact-0.23.0/reactifact/templates/daemon/.gitignore +7 -0
  108. reactifact-0.23.0/reactifact/templates/daemon/Dockerfile +12 -0
  109. reactifact-0.23.0/reactifact/templates/daemon/README.md +47 -0
  110. reactifact-0.23.0/reactifact/templates/daemon/app/__init__.py +0 -0
  111. reactifact-0.23.0/reactifact/templates/daemon/app/config.py +96 -0
  112. reactifact-0.23.0/reactifact/templates/daemon/app/llm.py +64 -0
  113. reactifact-0.23.0/reactifact/templates/daemon/app/llm_presets.py +63 -0
  114. reactifact-0.23.0/reactifact/templates/daemon/app/main.py +55 -0
  115. reactifact-0.23.0/reactifact/templates/daemon/app/models.py +22 -0
  116. reactifact-0.23.0/reactifact/templates/daemon/app/monitor.py +53 -0
  117. reactifact-0.23.0/reactifact/templates/daemon/app/prompts.py +10 -0
  118. reactifact-0.23.0/reactifact/templates/daemon/app/resources.py +19 -0
  119. reactifact-0.23.0/reactifact/templates/daemon/app/runner.py +46 -0
  120. reactifact-0.23.0/reactifact/templates/daemon/pyproject.toml +40 -0
  121. reactifact-0.23.0/reactifact/templates/daemon/tests/__init__.py +0 -0
  122. reactifact-0.23.0/reactifact/templates/daemon/tests/test_daemon.py +41 -0
  123. reactifact-0.23.0/reactifact/templates/fastapi_chat/.env.example +61 -0
  124. reactifact-0.23.0/reactifact/templates/fastapi_chat/.gitignore +7 -0
  125. reactifact-0.23.0/reactifact/templates/fastapi_chat/Dockerfile +14 -0
  126. reactifact-0.23.0/reactifact/templates/fastapi_chat/README.md +121 -0
  127. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/__init__.py +0 -0
  128. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/__init__.py +0 -0
  129. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/pipeline.py +78 -0
  130. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/prompts.py +14 -0
  131. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/resources.py +29 -0
  132. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/steps/__init__.py +3 -0
  133. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/agent/steps/answer.py +35 -0
  134. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/api/__init__.py +0 -0
  135. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/api/deps.py +21 -0
  136. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/api/routes/__init__.py +0 -0
  137. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/api/routes/chat.py +86 -0
  138. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/authz.py +28 -0
  139. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/bootstrap.py +88 -0
  140. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/config.py +136 -0
  141. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/llm.py +60 -0
  142. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/llm_presets.py +63 -0
  143. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/main.py +81 -0
  144. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/models.py +33 -0
  145. reactifact-0.23.0/reactifact/templates/fastapi_chat/app/security.py +74 -0
  146. reactifact-0.23.0/reactifact/templates/fastapi_chat/pyproject.toml +48 -0
  147. reactifact-0.23.0/reactifact/templates/fastapi_chat/tests/__init__.py +0 -0
  148. reactifact-0.23.0/reactifact/templates/fastapi_chat/tests/conftest.py +32 -0
  149. reactifact-0.23.0/reactifact/templates/fastapi_chat/tests/test_auth_sessions.py +36 -0
  150. reactifact-0.23.0/reactifact/templates/fastapi_chat/tests/test_chat_sse.py +61 -0
  151. reactifact-0.23.0/reactifact/templates/fastapi_chat/tests/test_settings.py +75 -0
  152. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/__init__.py +3 -0
  153. reactifact-0.23.0/reactifact/testing/client.py +156 -0
  154. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/fault.py +3 -3
  155. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/lab.py +5 -5
  156. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/registry.py +1 -1
  157. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/agent.py +2 -2
  158. reactifact-0.23.0/reactifact/tools/base.py +655 -0
  159. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/use/base.py +9 -2
  160. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/use/hitl.py +11 -17
  161. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/__init__.py +10 -0
  162. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/_shared.py +5 -0
  163. reactifact-0.23.0/reactifact/tracing/diff.py +106 -0
  164. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/models.py +148 -0
  165. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/otlp.py +1 -1
  166. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/postgres.py +140 -34
  167. reactifact-0.23.0/reactifact/tracing/retention.py +40 -0
  168. reactifact-0.23.0/reactifact/tracing/sampling.py +63 -0
  169. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/store.py +155 -36
  170. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/templates/sessions.html +1 -0
  171. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/templates/ui.html +1 -0
  172. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/templates/ui_run.html +97 -10
  173. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/tracer.py +306 -14
  174. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/web.py +68 -7
  175. reactifact-0.23.0/reactifact/validate.py +301 -0
  176. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/verify.py +3 -2
  177. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/viz.py +95 -57
  178. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/web.py +53 -4
  179. {reactifact-0.21.0 → reactifact-0.23.0/reactifact.egg-info}/PKG-INFO +176 -56
  180. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact.egg-info/SOURCES.txt +112 -2
  181. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact.egg-info/requires.txt +1 -0
  182. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_a2a.py +22 -23
  183. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_a2a_interop.py +3 -3
  184. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_absent_consume.py +3 -3
  185. reactifact-0.23.0/tests/test_agent_policy.py +312 -0
  186. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_agent_tool.py +8 -8
  187. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_audit.py +3 -3
  188. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_authz.py +3 -3
  189. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_branching.py +25 -0
  190. reactifact-0.23.0/tests/test_change_instructions.py +59 -0
  191. reactifact-0.23.0/tests/test_chat_facade.py +177 -0
  192. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_chat_memory.py +8 -8
  193. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_chat_outbox.py +5 -7
  194. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_chat_web.py +45 -13
  195. reactifact-0.23.0/tests/test_checkpoints.py +163 -0
  196. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_cli.py +78 -2
  197. reactifact-0.23.0/tests/test_cli_doctor.py +72 -0
  198. reactifact-0.23.0/tests/test_cli_new.py +37 -0
  199. reactifact-0.23.0/tests/test_code_review.py +38 -0
  200. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_compaction.py +4 -4
  201. reactifact-0.23.0/tests/test_conflict.py +92 -0
  202. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_consumes_produces.py +15 -16
  203. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_context_builder.py +5 -5
  204. reactifact-0.23.0/tests/test_context_provenance.py +66 -0
  205. reactifact-0.23.0/tests/test_contracts.py +82 -0
  206. reactifact-0.23.0/tests/test_contracts_web.py +51 -0
  207. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_correlated_consume.py +3 -3
  208. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_debounce.py +4 -4
  209. reactifact-0.23.0/tests/test_demo.py +48 -0
  210. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_determinism.py +4 -4
  211. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_devops.py +73 -18
  212. reactifact-0.23.0/tests/test_devops_auth.py +194 -0
  213. reactifact-0.23.0/tests/test_devops_branches.py +45 -0
  214. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_devops_online.py +2 -2
  215. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_devops_web.py +122 -0
  216. reactifact-0.23.0/tests/test_di.py +79 -0
  217. reactifact-0.23.0/tests/test_dx_errors.py +54 -0
  218. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_effects.py +58 -7
  219. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_eval.py +8 -8
  220. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_eval_dataset.py +3 -3
  221. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_eval_online.py +6 -6
  222. reactifact-0.23.0/tests/test_experiments.py +143 -0
  223. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_friendly_api.py +2 -2
  224. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_golden.py +2 -2
  225. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_guardrails.py +5 -5
  226. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_hitl.py +73 -1
  227. reactifact-0.23.0/tests/test_interaction.py +49 -0
  228. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_join_consume.py +3 -3
  229. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_knowledge.py +14 -14
  230. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_knowledge_web.py +12 -0
  231. reactifact-0.23.0/tests/test_map_reduce.py +116 -0
  232. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_medic_lab.py +9 -9
  233. reactifact-0.23.0/tests/test_memory_store.py +262 -0
  234. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_metrics.py +3 -3
  235. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_pending_actions.py +5 -4
  236. reactifact-0.23.0/tests/test_pipeline_lifecycle.py +98 -0
  237. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_produce_trigger.py +12 -13
  238. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_public_api.py +54 -3
  239. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_quick.py +3 -3
  240. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_quota.py +6 -6
  241. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_reacts_to.py +15 -17
  242. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipe_plan_execute.py +26 -0
  243. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipe_reflection.py +29 -0
  244. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipe_supervisor.py +5 -5
  245. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipes.py +167 -18
  246. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_redaction.py +2 -2
  247. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_repair.py +1 -1
  248. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_repair_web.py +10 -0
  249. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_replay.py +4 -4
  250. reactifact-0.23.0/tests/test_replay_tools.py +226 -0
  251. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_request.py +29 -4
  252. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_routing.py +3 -3
  253. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_runtime.py +3 -3
  254. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_runtime_errors.py +7 -7
  255. reactifact-0.23.0/tests/test_step_group.py +175 -0
  256. reactifact-0.23.0/tests/test_step_provenance.py +94 -0
  257. reactifact-0.23.0/tests/test_step_return_inference.py +78 -0
  258. reactifact-0.23.0/tests/test_stream_events.py +200 -0
  259. reactifact-0.23.0/tests/test_subflow.py +213 -0
  260. reactifact-0.23.0/tests/test_swarm.py +170 -0
  261. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_golden.py +4 -4
  262. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_lab.py +7 -7
  263. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_mock.py +2 -2
  264. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_token_budget.py +6 -6
  265. reactifact-0.23.0/tests/test_tool_injection.py +289 -0
  266. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_tools.py +31 -31
  267. reactifact-0.23.0/tests/test_tour.py +195 -0
  268. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_trace_limits.py +3 -1
  269. reactifact-0.23.0/tests/test_trace_reports.py +101 -0
  270. reactifact-0.23.0/tests/test_trace_retention.py +97 -0
  271. reactifact-0.23.0/tests/test_trace_sampling.py +66 -0
  272. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_trace_ui.py +8 -0
  273. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_tracing.py +503 -15
  274. reactifact-0.23.0/tests/test_validate.py +163 -0
  275. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_verify.py +5 -5
  276. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_viz.py +29 -5
  277. reactifact-0.23.0/tests/test_web_errors.py +52 -0
  278. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_workspace_with_sources.py +1 -1
  279. reactifact-0.21.0/reactifact/cli/__init__.py +0 -78
  280. reactifact-0.21.0/reactifact/cli/graph.py +0 -21
  281. reactifact-0.21.0/reactifact/cli/trace.py +0 -45
  282. reactifact-0.21.0/reactifact/interrupt.py +0 -65
  283. reactifact-0.21.0/reactifact/produce.py +0 -56
  284. reactifact-0.21.0/reactifact/recipes/resolve.py +0 -51
  285. reactifact-0.21.0/reactifact/step/decorator.py +0 -78
  286. reactifact-0.21.0/reactifact/streaming.py +0 -69
  287. reactifact-0.21.0/reactifact/tools/base.py +0 -356
  288. reactifact-0.21.0/tests/test_produce_styles.py +0 -233
  289. reactifact-0.21.0/tests/test_tour.py +0 -55
  290. {reactifact-0.21.0 → reactifact-0.23.0}/LICENSE +0 -0
  291. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/__main__.py +0 -0
  292. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/_extras.py +0 -0
  293. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/_httpx.py +0 -0
  294. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/_persistence.py +0 -0
  295. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/a2a/models.py +0 -0
  296. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/agent_tool.py +0 -0
  297. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/authz.py +0 -0
  298. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/branching/store.py +0 -0
  299. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cache.py +0 -0
  300. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/checkpoints.py +0 -0
  301. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/branch.py +0 -0
  302. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/context.py +0 -0
  303. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/eval.py +0 -0
  304. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/cli/scenario.py +0 -0
  305. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/commit_log.py +0 -0
  306. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context/index.py +0 -0
  307. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/context/serialization.py +0 -0
  308. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/__init__.py +0 -0
  309. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/dataset.py +0 -0
  310. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/evaluators.py +0 -0
  311. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/judge.py +0 -0
  312. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/online.py +0 -0
  313. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/runner.py +0 -0
  314. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/eval/scoring.py +0 -0
  315. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/events.py +0 -0
  316. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/guardrails.py +0 -0
  317. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/__init__.py +0 -0
  318. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/_closers.py +0 -0
  319. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/bridge.py +0 -0
  320. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/chunk.py +0 -0
  321. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/connectors.py +0 -0
  322. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/docstore.py +0 -0
  323. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/embed.py +0 -0
  324. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/errors.py +0 -0
  325. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/extract.py +0 -0
  326. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/http.py +0 -0
  327. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/__init__.py +0 -0
  328. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/acl.py +0 -0
  329. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/base.py +0 -0
  330. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/chroma.py +0 -0
  331. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/fusion.py +0 -0
  332. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/keyword.py +0 -0
  333. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/math.py +0 -0
  334. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/memory.py +0 -0
  335. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/pgvector.py +0 -0
  336. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/qdrant.py +0 -0
  337. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/indexes/sqlite.py +0 -0
  338. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/models.py +0 -0
  339. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/pipeline.py +0 -0
  340. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/rerank.py +0 -0
  341. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/templates/knowledge.html +0 -0
  342. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/knowledge/web.py +0 -0
  343. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/logging.py +0 -0
  344. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/mcp/__init__.py +0 -0
  345. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/mcp/client.py +0 -0
  346. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/mcp/oauth.py +0 -0
  347. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/mcp/server.py +0 -0
  348. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/native_tool_use.py +0 -0
  349. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/pricing.py +0 -0
  350. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/prompts.py +0 -0
  351. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/__init__.py +0 -0
  352. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/_retry.py +0 -0
  353. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/anthropic.py +0 -0
  354. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/azure.py +0 -0
  355. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/cerebras.py +0 -0
  356. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/chat.py +0 -0
  357. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/contracts.py +0 -0
  358. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/deepseek.py +0 -0
  359. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/fake.py +0 -0
  360. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/fireworks.py +0 -0
  361. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/gemini.py +0 -0
  362. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/github_models.py +0 -0
  363. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/groq.py +0 -0
  364. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/image.py +0 -0
  365. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/mistral.py +0 -0
  366. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/nvidia.py +0 -0
  367. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/ollama.py +0 -0
  368. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/openai.py +0 -0
  369. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/openrouter.py +0 -0
  370. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/perplexity.py +0 -0
  371. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/qwen.py +0 -0
  372. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/speech.py +0 -0
  373. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/together.py +0 -0
  374. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/video.py +0 -0
  375. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/xai.py +0 -0
  376. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/providers/zai.py +0 -0
  377. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/py.typed +0 -0
  378. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/quota.py +0 -0
  379. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/cleanup.py +0 -0
  380. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/inputs.py +0 -0
  381. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/rollback.py +0 -0
  382. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/skills.py +0 -0
  383. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/recipes/text.py +0 -0
  384. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/redaction.py +0 -0
  385. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/relations.py +0 -0
  386. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/routing.py +0 -0
  387. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/budget.py +0 -0
  388. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/loop.py +0 -0
  389. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/runtime/outbox.py +0 -0
  390. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact/references/trust-and-safety.md +0 -0
  391. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-eval/references/online.md +0 -0
  392. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-llm/references/providers.md +0 -0
  393. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/skills/reactifact-rag/references/sources.md +0 -0
  394. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/step/annotations.py +0 -0
  395. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/structured.py +0 -0
  396. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/assertions.py +0 -0
  397. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/exceptions.py +0 -0
  398. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/golden.py +0 -0
  399. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/mock.py +0 -0
  400. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/pytest_plugin.py +0 -0
  401. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/testing/record.py +0 -0
  402. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tool_use.py +0 -0
  403. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/__init__.py +0 -0
  404. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/native.py +0 -0
  405. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/use/__init__.py +0 -0
  406. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tools/use/blocking.py +0 -0
  407. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/_otlp.py +0 -0
  408. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/columns.py +0 -0
  409. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/langfuse.py +0 -0
  410. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/tracing/templates/app.css +0 -0
  411. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/triggers.py +0 -0
  412. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact/types.py +0 -0
  413. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact.egg-info/dependency_links.txt +0 -0
  414. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact.egg-info/entry_points.txt +0 -0
  415. {reactifact-0.21.0 → reactifact-0.23.0}/reactifact.egg-info/top_level.txt +0 -0
  416. {reactifact-0.21.0 → reactifact-0.23.0}/setup.cfg +0 -0
  417. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_anthropic_provider.py +0 -0
  418. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_artifact_store.py +0 -0
  419. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_artifacts.py +0 -0
  420. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_backbone.py +0 -0
  421. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_budget.py +0 -0
  422. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_cache.py +0 -0
  423. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_chat_example.py +0 -0
  424. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_checkpoint.py +0 -0
  425. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_checkpoints_concurrency.py +0 -0
  426. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_cli_scenario.py +0 -0
  427. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_commit_dag.py +0 -0
  428. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_commit_log.py +0 -0
  429. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_concurrency.py +0 -0
  430. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_context_at.py +0 -0
  431. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_eval_judge.py +0 -0
  432. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_eval_trajectory.py +0 -0
  433. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_fintech_audit.py +0 -0
  434. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_forklab.py +0 -0
  435. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_forklab_web.py +0 -0
  436. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_gemini_provider.py +0 -0
  437. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_image_provider.py +0 -0
  438. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_invalidation.py +0 -0
  439. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_lazy_providers.py +0 -0
  440. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_logging.py +0 -0
  441. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_loop_bound_client.py +0 -0
  442. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_mcp.py +0 -0
  443. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_medic_lab_web.py +0 -0
  444. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_multisource.py +0 -0
  445. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_native_tool_use.py +0 -0
  446. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_openai_provider.py +0 -0
  447. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_outbox.py +0 -0
  448. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_patches.py +0 -0
  449. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_prompts.py +0 -0
  450. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_provider_auth.py +0 -0
  451. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_provider_retry.py +0 -0
  452. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_providers_integration.py +0 -0
  453. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipe_conversation.py +0 -0
  454. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipe_tool_loop.py +0 -0
  455. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipes_inputs.py +0 -0
  456. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipes_memory.py +0 -0
  457. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_recipes_skills.py +0 -0
  458. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_relation_graph.py +0 -0
  459. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_relations.py +0 -0
  460. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_repo_agent.py +0 -0
  461. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_resources.py +0 -0
  462. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_retry.py +0 -0
  463. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_scheduler_semantics.py +0 -0
  464. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_session_append.py +0 -0
  465. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_sessions.py +0 -0
  466. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_shutdown.py +0 -0
  467. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_skills.py +0 -0
  468. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_sources.py +0 -0
  469. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_sources_search.py +0 -0
  470. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_sources_vector.py +0 -0
  471. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_speech_provider.py +0 -0
  472. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_starter_app.py +0 -0
  473. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_step_annotated.py +0 -0
  474. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_step_scope.py +0 -0
  475. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_step_watermark.py +0 -0
  476. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_streaming.py +0 -0
  477. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_structured.py +0 -0
  478. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_assertions.py +0 -0
  479. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_provenance.py +0 -0
  480. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_pytest_plugin.py +0 -0
  481. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_testing_registry.py +0 -0
  482. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_trace_columns.py +0 -0
  483. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_trace_tags.py +0 -0
  484. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_type_registry.py +0 -0
  485. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_vendor_factories.py +0 -0
  486. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_vendor_multimodal_factories.py +0 -0
  487. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_version.py +0 -0
  488. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_video_provider.py +0 -0
  489. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_view.py +0 -0
  490. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_web_source.py +0 -0
  491. {reactifact-0.21.0 → reactifact-0.23.0}/tests/test_workspace.py +0 -0
  492. {reactifact-0.21.0 → reactifact-0.23.0}/tests/tests_checkpoints_sqlite.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reactifact
3
- Version: 0.21.0
3
+ Version: 0.23.0
4
4
  Summary: Reactive, artifact-driven agent runtime: agents transform versioned, typed, provenance-aware artifacts inside an evolving context
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/bzdvdn/reactifact
@@ -30,6 +30,7 @@ Requires-Dist: mypy>=1.11; extra == "dev"
30
30
  Requires-Dist: pytest>=9.1.1; extra == "dev"
31
31
  Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
32
32
  Requires-Dist: import-linter>=2.0; extra == "dev"
33
+ Requires-Dist: httpx2; extra == "dev"
33
34
  Provides-Extra: knowledge
34
35
  Provides-Extra: knowledge-chroma
35
36
  Requires-Dist: chromadb>=0.5; extra == "knowledge-chroma"
@@ -52,7 +53,11 @@ Dynamic: license-file
52
53
  <img src="docs/img/reactifact-hero.png" alt="reactifact — typed artifacts, reactive steps, auditable state" width="800">
53
54
  </p>
54
55
 
55
- **Auditable agents for Python.** Build **knowledge assistants** over docs, spreadsheets and the web — where the path per question isn't a graph you can draw. Every answer is computed, versioned and reproducible — not a string you have to trust.
56
+ **Agents that can prove their answers.** reactifact is a Python framework for
57
+ knowledge agents over docs, spreadsheets and the web — where the path per
58
+ question isn't a graph you can draw. The model reasons, plain Python computes
59
+ the numbers, and every answer links to the evidence behind it — then replays to
60
+ the same hash.
56
61
 
57
62
  [![CI](https://github.com/bzdvdn/reactifact/actions/workflows/ci.yml/badge.svg)](https://github.com/bzdvdn/reactifact/actions/workflows/ci.yml)
58
63
  [![codecov](https://codecov.io/gh/bzdvdn/reactifact/graph/badge.svg)](https://codecov.io/gh/bzdvdn/reactifact)
@@ -65,6 +70,126 @@ Dynamic: license-file
65
70
  > **Is:** a Python library (3 core deps) · single-process · typed, versioned artifacts with provenance · deterministic replay · optional code-first knowledge base (SQLite/Qdrant) · runs offline, no API key
66
71
  > **Isn't:** a managed platform · a distributed task queue · a pre-built agent/tool marketplace
67
72
 
73
+ ## Sixty seconds, no API key
74
+
75
+ ```bash
76
+ uvx reactifact demo # or: uv add reactifact && uv run reactifact demo
77
+ ```
78
+
79
+ ```text
80
+ reactifact demo — computed, cited, reproducible
81
+
82
+ question What is the Q2 cloud spend variance, and does policy require approval?
83
+ sources transactions.csv (6 rows) · budget.csv (2 rows) · policy.md
84
+
85
+ answer Q2 cloud spend was $45,000 against a $40,000 budget (+12.5%) — exceeds
86
+ the 10% policy threshold. CFO approval is required before the quarter
87
+ is closed.
88
+
89
+ computed cloud spend $45,000 (2026-04 $12,000, 2026-05 $15,000, 2026-06 $18,000)
90
+ policy threshold 10% → approval required
91
+ citations budget.csv, transactions.csv, policy.md
92
+
93
+ provenance (context.related(answer.id, "supported_by"))
94
+ Answer → supported_by → Variance, policy.md
95
+ Variance → calculated_from → Spend, budget.csv
96
+ Spend → calculated_from → transactions.csv
97
+
98
+ context sha256 ffeca1bb18cbc34749d3b5bdb40d85677b1ac33d47fb1160f6c89053694b2783
99
+ re-run identical ✓
100
+ ```
101
+
102
+ Three `@step` functions, none of which imports another by name: they declare
103
+ what they consume and produce, and the runtime derives the order from state.
104
+ The figures come from plain Python, and both the answer and the numbers carry
105
+ the hash of the exact state that produced them. Models, steps and the printer
106
+ all live in [`reactifact/demo.py`](reactifact/demo.py) — copy the pipeline,
107
+ then change the data.
108
+
109
+ ## Define a step, run it
110
+
111
+ ```python
112
+ from pydantic import BaseModel
113
+ from reactifact import Pipeline, step
114
+
115
+ class Question(BaseModel):
116
+ text: str
117
+
118
+ class Answer(BaseModel):
119
+ text: str
120
+
121
+ @step(consumes=Question) # produces=Answer inferred from ->
122
+ def answer(question: Question) -> Answer:
123
+ return Answer(text=f"you asked: {question.text}")
124
+
125
+ pipeline = Pipeline(steps=[answer], seed_type=Question, answer_type=Answer)
126
+ result = pipeline.run(Question(text="why did cloud spend jump in Q2?"))
127
+
128
+ print(result.latest(Answer).data.text)
129
+ print(result.sources(result.latest(Answer))) # citations, as a query
130
+ print(result.hash) # reproducible fingerprint
131
+ ```
132
+
133
+ `Pipeline` owns steps, resources and defaults, and builds a fresh `Context` +
134
+ `Runtime` per run. Use `reactifact run` for the same thing from the CLI:
135
+
136
+ ```bash
137
+ reactifact run app:pipeline "why did cloud spend jump in Q2?"
138
+ ```
139
+
140
+ ## Who this is for
141
+
142
+ - **Knowledge assistants over mixed sources.** One question spans Confluence, a
143
+ spreadsheet and a web page; the next spans a different subset. You declare
144
+ what artifacts exist and what agents can do with them, and the runtime derives
145
+ the path. Figures are computed, answers cite their sources, and a run replays
146
+ to the same hash.
147
+ - **Experiment harnesses for agent strategies.** Fork a context, run two
148
+ strategies on their own branches, merge them back, and replay a finished run
149
+ by hash — see [`forklab`](examples/forklab) and
150
+ [Branching](docs/en/branching.md).
151
+
152
+ **RAG is included, not required.** `reactifact.quick.rag` gets retrieval with
153
+ provenance in a few lines; `reactifact.knowledge` is the code-first ingestion
154
+ layer behind it — connectors, chunking, incremental indexing, and real indexes
155
+ (SQLite, Chroma, Qdrant, pgvector). The core never imports either.
156
+
157
+ **Not for a fixed A → B → C pipeline.** There a plain function or LangGraph is
158
+ shorter and just as correct.
159
+
160
+ **Not a connector library.** If you need dozens of managed SaaS sources with
161
+ built-in ingestion, LlamaIndex is the better tool. reactifact's `Source` layer is
162
+ deliberately small and code-first: filesystem, CSV, embeddings, web, MCP.
163
+
164
+ ## Start here
165
+
166
+ **Build an app**
167
+ ```bash
168
+ uv init my-agent && cd my-agent
169
+ uv add reactifact # core + CLI; FastAPI stays optional
170
+ uv run reactifact new app my-app # FastAPI: auth, sessions, SSE, traces
171
+ # or: uv run reactifact new daemon my-worker
172
+ ```
173
+
174
+ The generated FastAPI project declares `reactifact[web]` itself; installing
175
+ `reactifact` alone never pulls FastAPI. The template and the code review
176
+ example are the best starting points; see [Examples](docs/en/examples.md).
177
+
178
+ **Use it in existing code**
179
+ ```bash
180
+ uv add reactifact
181
+ uv run reactifact skills install # teach your coding agent the mental model
182
+ ```
183
+ Then start with `reactifact.quick` in [Quickstart](docs/en/quickstart.md), or
184
+ read [Concepts](docs/en/concepts.md) before designing artifacts.
185
+
186
+ **Inspect what a run actually did**
187
+ ```bash
188
+ reactifact graph my_app.agents
189
+ reactifact trace traces.db
190
+ reactifact replay sessions.sqlite3
191
+ ```
192
+
68
193
  A question like *"why did infra costs jump in Q2?"* needs a spreadsheet, a policy doc and a page off the web — and the *next* question needs a different subset. That is not one graph you can draw up front. You declare what artifacts exist and what agents can do with them; the runtime derives the order — and the dependency graph — from state. You don't draw the graph.
69
194
 
70
195
  Every derived artifact then links to what produced it
@@ -72,7 +197,7 @@ Every derived artifact then links to what produced it
72
197
  that?"* is a query, not a guess — and the run is reproducible (`context_hash`)
73
198
  and verifiable (`reactifact replay --verify`).
74
199
 
75
- ## On top: a provable answer
200
+ ## The same idea, a real pipeline
76
201
 
77
202
  [`examples/fintech_audit`](examples/fintech_audit) — a transactions CSV, a budget
78
203
  CSV and a policy doc, **no API key**. The model never produces the number; plain
@@ -104,22 +229,21 @@ is never the source of truth (trimmed from
104
229
  [`examples/fintech_audit/steps.py`](examples/fintech_audit/steps.py)):
105
230
 
106
231
  ```python
107
- @step(produces=Variance, consumes=Spend) # wakes when a Spend artifact exists
108
- async def compute_variance(call: StepCall) -> None:
109
- spend = call.trigger # the artifact that triggered this run
110
- budget = cloud_budget(call.context) # read from budget.csv
111
- pct = (spend.data.total - budget) / budget # deterministic — never the model
112
- variance = call.effects.create_once_from(
113
- spend, # stable id → idempotent re-runs (§42)
114
- Variance(actual=spend.data.total, budget=budget, pct=pct,
115
- threshold=0.10, within_policy=abs(pct) <= 0.10),
116
- )
117
- variance.link("calculated_from", spend) # provenance edge, queryable
118
-
119
-
120
- answer = ctx.latest(AuditAnswer)
121
- print(report_to_markdown(build_report(ctx, answer))) # hash per artifact + edges
122
- print(context_hash(ctx)) # reproducible fingerprint
232
+ from reactifact import CALCULATED_FROM, Context, step
233
+
234
+ @step(consumes=Spend, provenance=CALCULATED_FROM) # wakes when Spend exists
235
+ def compute_variance(spend: Spend, context: Context) -> Variance:
236
+ budget = cloud_budget(context) # read from budget.csv
237
+ pct = (spend.total - budget) / budget # deterministic — never the model
238
+ return Variance(actual=spend.total, budget=budget, pct=pct,
239
+ threshold=0.10, within_policy=abs(pct) <= 0.10)
240
+ # creates the artifact and links it calculated_from→ Spend
241
+
242
+
243
+ result = Pipeline(steps=[compute_spend, compute_variance, answer]) \
244
+ .run(Question(text="what is the Q2 cloud spend variance?"))
245
+ print(report_to_markdown(build_report(result.context, result.latest(AuditAnswer))))
246
+ print(result.hash) # reproducible fingerprint
123
247
  ```
124
248
 
125
249
  ## Knowledge assistants, live
@@ -212,7 +336,7 @@ derives what runs next from state.
212
336
 
213
337
  | Celery | reactifact |
214
338
  | --- | --- |
215
- | a task | `Step` / `@step(produces=Model, consumes=Input)` — a unit of work that writes an artifact |
339
+ | a task | `@step(consumes=Input) -> Model` — a unit of work that returns a typed artifact |
216
340
  | `delay()` / `apply_async()` | you don't call it: creating the input artifact **is** the trigger |
217
341
  | routing key / queue | `Consume(Type)` — which artifact type wakes the task |
218
342
  | chain / group / chord | several step `Consume`s / `produces`; the runtime derives the order |
@@ -231,14 +355,14 @@ pip install reactifact
231
355
  ```
232
356
 
233
357
  Runs offline, no API key needed — paste this straight into a `.py` file. Two
234
- agents, no graph edge declared between them — the second reacts because the
358
+ steps, no graph edge declared between them — the second reacts because the
235
359
  first one's output exists, and the answer carries *proof* of where it came
236
360
  from:
237
361
 
238
362
  ```python
239
363
  from pydantic import BaseModel
240
364
 
241
- from reactifact import Budget, Context, Runtime, RuntimeResources, create_agent, step
365
+ from reactifact import Pipeline, SUPPORTED_BY, step
242
366
 
243
367
 
244
368
  class Question(BaseModel):
@@ -259,31 +383,25 @@ DOCS = {
259
383
  }
260
384
 
261
385
 
262
- @step(produces=Evidence, consumes=Question)
263
- async def find_evidence(call):
264
- question = call.trigger
265
- hit = next((v for k, v in DOCS.items() if k in question.data.text.lower()), None)
266
- if hit is not None:
267
- call.effects.create(Evidence(text=hit))
268
-
269
-
270
- @step(produces=Answer, consumes=Evidence)
271
- async def answer_from_evidence(call):
272
- evidence = call.trigger
273
- call.effects.create(Answer(text=evidence.data.text)).link("supported_by", evidence)
386
+ @step(consumes=Question)
387
+ def find_evidence(question: Question) -> list[Evidence]:
388
+ hit = next((v for k, v in DOCS.items() if k in question.text.lower()), None)
389
+ return [Evidence(text=hit)] if hit is not None else []
274
390
 
275
391
 
276
- search_agent = create_agent("search", steps=[find_evidence])
277
- answer_agent = create_agent("answer", steps=[answer_from_evidence])
392
+ @step(consumes=Evidence, provenance=SUPPORTED_BY)
393
+ def answer_from_evidence(evidence: Evidence) -> Answer:
394
+ return Answer(text=evidence.text)
278
395
 
279
- ctx = Context(resources=RuntimeResources())
280
- runtime = Runtime(ctx, agents=[search_agent, answer_agent], budget=Budget(max_runs=10))
281
396
 
282
- ctx.create(Question(text="what's your refund policy?"))
283
- runtime.run() # search_agent and answer_agent both react — nobody wired them together
397
+ result = Pipeline(
398
+ steps=[find_evidence, answer_from_evidence],
399
+ seed_type=Question,
400
+ answer_type=Answer,
401
+ ).run(Question(text="what's your refund policy?"))
284
402
 
285
- answer = ctx.latest(Answer)
286
- evidence = ctx.related(answer.id, "supported_by")[0]
403
+ answer = result.latest(Answer)
404
+ evidence = result.context.related(answer.id, SUPPORTED_BY)[0]
287
405
  print(answer.data.text) # "Refunds are available within 14 days of purchase."
288
406
  print("supported_by:", evidence.data.text) # provenance you can trace, not just a string in a log
289
407
  ```
@@ -294,17 +412,18 @@ print("supported_by:", evidence.data.text) # provenance you can trace, not just
294
412
  ARTIFACT CREATED / UPDATED
295
413
  │
296
414
  ▼
297
- AGENTS REACT ──effects──► Effects ──compile──► Patch
415
+ STEPS REACT ──effects──► Effects ──compile──► Patch
298
416
  ▲ │
299
417
  └──────────────────────────────────────────────────────┘
300
418
  Context v+1
301
419
  ```
302
420
 
303
- A step writes what should change (`effects.create/update/link/ask`) and
304
- returns `None`; the runtime compiles the effect set into one **atomic** `Patch`
305
- and moves the context to the next version. The `event` that wakes an agent is
306
- *derived* from that same change — the causal chain can never drift from the
307
- actual state.
421
+ A step returns typed outputs (`-> Answer`, `tuple[...]`, `list[...]`) or a
422
+ change instruction (`Emit`, `Edit`, `Drop`, `Relate`); the runtime compiles
423
+ them into one **atomic** `Patch` and moves the context to the next version.
424
+ `effects` remains available for advanced/batch writes. The event that wakes a
425
+ step is *derived* from that same change — the causal chain can never drift from
426
+ the actual state.
308
427
 
309
428
  ## What makes it different
310
429
 
@@ -313,7 +432,7 @@ actual state.
313
432
  | A program follows a graph / plan | Agents **react** to state changes |
314
433
  | Messages are strings | **Typed, versioned artifacts** (`Claim`, `Evidence`, `Answer`) |
315
434
  | Orchestration is explicit wiring | Orchestration **falls out of the state** |
316
- | A unit of work *returns* a change | An agent **writes effects**; the runtime compiles them |
435
+ | A unit of work returns a change object | A step **returns typed artifacts**; the runtime compiles them |
317
436
  | Retries/rollback are manual | Context is **git-like versioned** (diff, rollback, branch, merge) |
318
437
  | "Who produced this?" is lost | **Provenance** links every derived artifact to its inputs |
319
438
  | The model guesses the numbers | **Calculations are calculated** — the LLM is a reasoning component, not the source of truth |
@@ -330,15 +449,15 @@ Full breakdown, including where reactifact is *not* the right choice:
330
449
 
331
450
  - **Context** — versioned working state, git-like commits, `diff`/`rollback`/`merge`.
332
451
  - **Artifact** — a first-class typed object (`Claim`, `Evidence`, `Answer`), not a string blob.
333
- - **Effects** — an agent states its change via `effects.create/update/link/ask`; the runtime compiles it.
452
+ - **Effects** — the low-level write surface (`create/update/delete/link`); most steps return artifacts or `Edit`/`Drop`/`Relate` instead.
334
453
  - **Patch** — the compiled, validated change-set applied as one atomic commit.
335
- - **Step** — the unit of work: declares `consumes`/`produces`, returns its output or writes effects.
336
- - **Agent** — a thin container of `steps`; the runtime derives triggers from their `consume` contracts.
454
+ - **Step** — the unit of work: `@step(consumes=Question) -> Answer`; `produces` is inferred from the return type.
455
+ - **StepGroup** — an optional container when several steps share a trigger, retry, timeout or commit.
337
456
  - **Source** — retrieval is a capability: vector search is *one* strategy, not the only one; filesystem, CSV, and the web are equally first-class today (direct API, keyword, and SQL sources are on the [roadmap](docs/roadmap.md#next), not yet shipped). For corpus ingestion, the optional `knowledge` layer adds connectors, chunking, embeddings and SQLite/Qdrant indexes.
338
457
  - **Provenance** — every derived artifact links to what produced it
339
458
  (`Answer —supported_by→ Claim —derived_from→ Evidence —extracted_from→ Doc`).
340
- - **HITL** — humans as `effects.ask(...)` → `PendingQuestion`, answered via `effects.resume(...)` like any agent.
341
- - **Outbox** — outbound side effects as `effects.act(...)` → `PendingAction`, performed once *after* the commit by `Runtime(dispatcher=...)`; safe across replay, retries and merged branches.
459
+ - **HITL** — `human.ask(...)` → `PendingQuestion`, answered via `human.resume(...)`.
460
+ - **Outbox** — `outbox.act(...)` → `PendingAction`, performed once *after* the commit by `Runtime(dispatcher=...)`; safe across replay, retries and merged branches.
342
461
 
343
462
  ## In the box
344
463
 
@@ -360,7 +479,7 @@ Full breakdown, including where reactifact is *not* the right choice:
360
479
  `ReplayLLM`, all for audit and safe alternative states.
361
480
  - **Sessions** — `SessionStore` over `FileKVBackend`/`SQLiteKVBackend`
362
481
  (and `PostgreSQLKVBackend`) for durable chat memory.
363
- - **Web layer** — `ChatAssistant` + `create_chat_router` mount a canonical SSE
482
+ - **Web layer** — `Chat` + `create_chat_router` mount a canonical SSE
364
483
  chat on *your* FastAPI app; errors degrade to a logged fallback, never a 500.
365
484
  - **Recipes** — `find`/`find_all` (typed lookup in `inputs`), `fan_out_sources`,
366
485
  `materialize_doc`, `StatusMachine`, `WindowSummarizer`/`WindowPruner`
@@ -415,6 +534,7 @@ Prefer a notebook? [![Open in Colab](https://colab.research.google.com/assets/co
415
534
  - `knowledge_base` — real ingestion: connector → chunks → SQLite/Qdrant, incremental state, hybrid query.
416
535
  - `medic_lab` — hypothesis laboratory: competing hypotheses scored, HITL steering, honest report.
417
536
  - `devops` — HITL tool agents + LLM tool router + trace dashboard.
537
+ - `code_review` — deterministic-first diff review: rules + optional LLM findings → linked report.
418
538
  - `repair` — budget-aware replanning (chat/data in Russian by design).
419
539
  - `chat` — minimal offline single-model multi-turn conversation (`Conversation` + bounded `ChatMemory`).
420
540
  - `forklab` — deterministic branch & merge: two strategies on their own forks, three-way merge.
@@ -447,7 +567,7 @@ npx --yes pyright # static check with the repo's pyproject config
447
567
 
448
568
  ## Status & contributing
449
569
 
450
- Active, `0.21.0`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
570
+ Active, `0.23.0`, pre-1.0 — the API is stabilizing and `1.0` will freeze it
451
571
  (see the [roadmap](docs/roadmap.md)); releases follow
452
572
  [Keep a Changelog](CHANGELOG.md). Questions and design discussion live in
453
573
  [GitHub Discussions](https://github.com/bzdvdn/reactifact/discussions); a star,