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