soothe 1.2.2__tar.gz → 1.2.4__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 (375) hide show
  1. {soothe-1.2.2 → soothe-1.2.4}/PKG-INFO +2 -2
  2. {soothe-1.2.2 → soothe-1.2.4}/pyproject.toml +1 -1
  3. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/models.py +48 -46
  4. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/builder.py +21 -9
  5. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/auto.py +22 -5
  6. soothe-1.2.4/src/soothe/sloop/clarification/dynamic_rules.py +194 -0
  7. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/tool_approval_pipeline.py +73 -80
  8. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/typesafe_client.py +2 -1
  9. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/auto_mode.py +222 -233
  10. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/relay.py +60 -2
  11. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/execute.py +1 -1
  12. soothe-1.2.2/src/soothe/sloop/clarification/risk_classifier.py → soothe-1.2.4/src/soothe/subagents/veritas/decision_model.py +84 -8
  13. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/implementation.py +165 -5
  14. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/schemas.py +5 -1
  15. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/workspace.py +1 -1
  16. {soothe-1.2.2 → soothe-1.2.4}/.gitignore +0 -0
  17. {soothe-1.2.2 → soothe-1.2.4}/README.md +0 -0
  18. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/__init__.py +0 -0
  19. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/__init__.py +0 -0
  20. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/composition.py +0 -0
  21. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/constants.py +0 -0
  22. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/env.py +0 -0
  23. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/models_catalog.py +0 -0
  24. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/ownership.py +0 -0
  25. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/reload.py +0 -0
  26. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/settings.py +0 -0
  27. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/__init__.py +0 -0
  28. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/dag_utils.py +0 -0
  29. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/decomposition.py +0 -0
  30. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/engine.py +0 -0
  31. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/goal_interrupt_persistence.py +0 -0
  32. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/ledger.py +0 -0
  33. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/models.py +0 -0
  34. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_completion.py +0 -0
  35. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_goal_planner.py +0 -0
  36. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_models.py +0 -0
  37. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_scheduling.py +0 -0
  38. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_step_planner.py +0 -0
  39. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_factory.py +0 -0
  40. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_pgsql.py +0 -0
  41. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_sqlite.py +0 -0
  42. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/__init__.py +0 -0
  43. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/core_agent.py +0 -0
  44. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/factory.py +0 -0
  45. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/lazy.py +0 -0
  46. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/__init__.py +0 -0
  47. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/ask_user.py +0 -0
  48. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/request_plan_mode.py +0 -0
  49. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/__init__.py +0 -0
  50. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/api.py +0 -0
  51. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/host.py +0 -0
  52. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/models.py +0 -0
  53. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/__init__.py +0 -0
  54. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/_text_utils.py +0 -0
  55. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_binder.py +0 -0
  56. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_ledger.py +0 -0
  57. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_wire.py +0 -0
  58. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/message_processing.py +0 -0
  59. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/snapshot_collapser.py +0 -0
  60. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/snapshot_types.py +0 -0
  61. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/text_extract.py +0 -0
  62. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/tool_message_format.py +0 -0
  63. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/tool_result.py +0 -0
  64. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/transcript_types.py +0 -0
  65. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/__init__.py +0 -0
  66. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/catalog.py +0 -0
  67. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/visibility.py +0 -0
  68. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/goal_contracts.py +0 -0
  69. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/__init__.py +0 -0
  70. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/credentials.py +0 -0
  71. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/db.py +0 -0
  72. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/errors.py +0 -0
  73. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/identity_service.py +0 -0
  74. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/middleware.py +0 -0
  75. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/persona.py +0 -0
  76. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/runtime.py +0 -0
  77. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/tokens.py +0 -0
  78. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/__init__.py +0 -0
  79. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/global_history.py +0 -0
  80. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/thread_logger.py +0 -0
  81. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/checkpoint_split.py +0 -0
  82. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/db_init.py +0 -0
  83. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/loop_writer.py +0 -0
  84. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/persist_metrics.py +0 -0
  85. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/persist_reconciler.py +0 -0
  86. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_pool_lifecycle.py +0 -0
  87. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_pool_registry.py +0 -0
  88. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_schema.py +0 -0
  89. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/shared_metadata_pool.py +0 -0
  90. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sql/soothe_checkpoints/001_add_checkpoint_index_column.sql +0 -0
  91. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sql/soothe_checkpoints/init.sql +0 -0
  92. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sqlite_loop_flush.py +0 -0
  93. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/unified.py +0 -0
  94. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/__init__.py +0 -0
  95. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/__init__.py +0 -0
  96. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/approved_plan_execute_hint.xml +0 -0
  97. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/ask_mode_addendum.xml +0 -0
  98. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/decompose_task_tool.xml +0 -0
  99. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/parallel_nudge_addendum.xml +0 -0
  100. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/plan_mode_addendum.xml +0 -0
  101. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/thread_policy_system.xml +0 -0
  102. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/user_hint_child.xml +0 -0
  103. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/user_hint_root.xml +0 -0
  104. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/westworld_fanout_addendum.xml +0 -0
  105. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/write_todos_tool.xml +0 -0
  106. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/coverage_verdict_tool.xml +0 -0
  107. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/eval_decision_system.xml +0 -0
  108. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/eval_policy_system.xml +0 -0
  109. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/instructions/plan_synthesis_system.xml +0 -0
  110. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/instructions/synthesis_report_system.xml +0 -0
  111. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/intake/intake_classify_system.xml +0 -0
  112. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/intake/social_reply.xml +0 -0
  113. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/system/prompt_timestamp.xml +0 -0
  114. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/graph_wrapper.py +0 -0
  115. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/loader.py +0 -0
  116. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/plan_ledger_projection.py +0 -0
  117. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/user_message.py +0 -0
  118. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/__init__.py +0 -0
  119. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/loop_working_memory.py +0 -0
  120. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/runner.py +0 -0
  121. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/__init__.py +0 -0
  122. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/autoresearch_exec.py +0 -0
  123. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/autoresearch_loop.xml +0 -0
  124. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/README.md +0 -0
  125. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/autoresearch.yml +0 -0
  126. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/feature-dev.yml +0 -0
  127. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/greenfield-system.yml +0 -0
  128. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/hotfix.yml +0 -0
  129. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/maker-checker.yml +0 -0
  130. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/pr-review.yml +0 -0
  131. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/spike.yml +0 -0
  132. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtins.py +0 -0
  133. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtins_exec.py +0 -0
  134. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/catalog.py +0 -0
  135. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/debug.xml +0 -0
  136. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/evals.xml +0 -0
  137. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/fix.xml +0 -0
  138. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/guard_system.xml +0 -0
  139. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/guards.py +0 -0
  140. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/improve.xml +0 -0
  141. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/interpreter.py +0 -0
  142. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/l0_schema.py +0 -0
  143. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/learn.xml +0 -0
  144. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/orchestrator_routing.xml +0 -0
  145. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/pause_clarify.py +0 -0
  146. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/plan.xml +0 -0
  147. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/predict.xml +0 -0
  148. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/probe.xml +0 -0
  149. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/rail_typesafe.py +0 -0
  150. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/reason.xml +0 -0
  151. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/recipe_exec.py +0 -0
  152. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/regression.xml +0 -0
  153. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/scenario.xml +0 -0
  154. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/security.xml +0 -0
  155. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/selector.py +0 -0
  156. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/ship.xml +0 -0
  157. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/trace_store.py +0 -0
  158. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/verb_defaults.py +0 -0
  159. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/wave_plan.py +0 -0
  160. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/worktree_ops.py +0 -0
  161. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/__init__.py +0 -0
  162. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_phases.py +0 -0
  163. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_shared.py +0 -0
  164. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_strange_loop.py +0 -0
  165. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_thread_manager.py +0 -0
  166. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_types.py +0 -0
  167. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_worker_utils.py +0 -0
  168. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/__init__.py +0 -0
  169. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/_resolver_infra.py +0 -0
  170. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/shared_checkpointer_pool.py +0 -0
  171. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/shell_drain.py +0 -0
  172. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/worker_logging.py +0 -0
  173. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/security/__init__.py +0 -0
  174. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/security/daemon_kill_guards.py +0 -0
  175. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/skillify/__init__.py +0 -0
  176. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/skillify/models.py +0 -0
  177. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/__init__.py +0 -0
  178. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/__init__.py +0 -0
  179. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/archive_backend.py +0 -0
  180. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/base_backend.py +0 -0
  181. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/daemon_loop_metadata.py +0 -0
  182. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/directory_manager.py +0 -0
  183. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/manager.py +0 -0
  184. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/postgres_backend.py +0 -0
  185. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/postgres_schema.py +0 -0
  186. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/retry_utils.py +0 -0
  187. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/runtime_paths.py +0 -0
  188. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/shared_pool.py +0 -0
  189. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/sqlite_backend.py +0 -0
  190. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/__init__.py +0 -0
  191. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/detector.py +0 -0
  192. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/events.py +0 -0
  193. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/interactive.py +0 -0
  194. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/interrupt_kinds.py +0 -0
  195. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/origins.py +0 -0
  196. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/protocol.py +0 -0
  197. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/runtime_factory.py +0 -0
  198. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/selector.py +0 -0
  199. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/tool_rule_matcher.py +0 -0
  200. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/context_projection.py +0 -0
  201. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/__init__.py +0 -0
  202. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/decompose_typesafe.py +0 -0
  203. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/middleware.py +0 -0
  204. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/reconcile.py +0 -0
  205. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/runtime.py +0 -0
  206. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/tool.py +0 -0
  207. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/__init__.py +0 -0
  208. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/__init__.py +0 -0
  209. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/continuation_context.py +0 -0
  210. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/goal_completion_output.py +0 -0
  211. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/goal_interrupt_record.py +0 -0
  212. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/scenario_classifier.py +0 -0
  213. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/scenario_typesafe.py +0 -0
  214. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/synthesis.py +0 -0
  215. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/synthesis_projection.py +0 -0
  216. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/__init__.py +0 -0
  217. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/act_wave_finalize.py +0 -0
  218. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/context_window_manager.py +0 -0
  219. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/executor.py +0 -0
  220. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/graph_interrupt.py +0 -0
  221. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/metadata_generator.py +0 -0
  222. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/predecessor_branch_context.py +0 -0
  223. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_brief_hydrator.py +0 -0
  224. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_completion_report.py +0 -0
  225. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_deliverable.py +0 -0
  226. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_predecessor_context.py +0 -0
  227. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_wave_types.py +0 -0
  228. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/thread_selection.py +0 -0
  229. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_args.py +0 -0
  230. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_enrichment.py +0 -0
  231. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_id.py +0 -0
  232. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/__init__.py +0 -0
  233. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/eval_decision.py +0 -0
  234. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/middleware.py +0 -0
  235. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/step_close_report.py +0 -0
  236. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/text_recovery.py +0 -0
  237. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/typesafe_eval_decision.py +0 -0
  238. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/verdict_tool.py +0 -0
  239. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/__init__.py +0 -0
  240. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/chitchat_fallbacks.py +0 -0
  241. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/classifier.py +0 -0
  242. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/coordinator.py +0 -0
  243. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/intake_classifier.py +0 -0
  244. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/invoke_config.py +0 -0
  245. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/models.py +0 -0
  246. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/prompts.py +0 -0
  247. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/social_reply.py +0 -0
  248. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/structured_methods.py +0 -0
  249. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/typesafe_intent.py +0 -0
  250. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/__init__.py +0 -0
  251. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/ask_user_gate.py +0 -0
  252. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/ask_user_prompt.py +0 -0
  253. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/auto_mode_context.py +0 -0
  254. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/goal_step_guard.py +0 -0
  255. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/gp_variant_guard.py +0 -0
  256. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/intake_task_guard.py +0 -0
  257. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/westworld.py +0 -0
  258. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/__init__.py +0 -0
  259. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/builder.py +0 -0
  260. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/checkpoint.py +0 -0
  261. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/continuation.py +0 -0
  262. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/node_base.py +0 -0
  263. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/phase_status.py +0 -0
  264. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/routing.py +0 -0
  265. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/runner.py +0 -0
  266. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/runtime_context.py +0 -0
  267. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/stations.py +0 -0
  268. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/__init__.py +0 -0
  269. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/artifact.py +0 -0
  270. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/grounding.py +0 -0
  271. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/plan_mode_review.py +0 -0
  272. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/plan_synthesizer.py +0 -0
  273. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/wired_subagent_plan.py +0 -0
  274. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/__init__.py +0 -0
  275. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/_adapter.py +0 -0
  276. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/channel.py +0 -0
  277. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/errors.py +0 -0
  278. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/events.py +0 -0
  279. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/inbox.py +0 -0
  280. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/outbox.py +0 -0
  281. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/reconcile.py +0 -0
  282. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/router.py +0 -0
  283. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/snapshot.py +0 -0
  284. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/ticket.py +0 -0
  285. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/__init__.py +0 -0
  286. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/checkpoint.py +0 -0
  287. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/execution_checkpoint.py +0 -0
  288. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/resume_topic.py +0 -0
  289. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/schemas.py +0 -0
  290. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/sloop_manager.py +0 -0
  291. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/status_vocabulary.py +0 -0
  292. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/working_memory.py +0 -0
  293. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/__init__.py +0 -0
  294. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/completion/__init__.py +0 -0
  295. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/completion/finalize.py +0 -0
  296. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/__init__.py +0 -0
  297. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/dispatch.py +0 -0
  298. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/reconcile_node.py +0 -0
  299. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/root_eval.py +0 -0
  300. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/root_eval_typesafe.py +0 -0
  301. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/__init__.py +0 -0
  302. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/loop_budget.py +0 -0
  303. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/max_iterations_terminal.py +0 -0
  304. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/record_progress.py +0 -0
  305. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/__init__.py +0 -0
  306. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/enter_loop.py +0 -0
  307. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/intake.py +0 -0
  308. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/__init__.py +0 -0
  309. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/await_user.py +0 -0
  310. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/delegate.py +0 -0
  311. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/strange_loop.py +0 -0
  312. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/__init__.py +0 -0
  313. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/config_keys.py +0 -0
  314. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/continue_keyword.py +0 -0
  315. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/events.py +0 -0
  316. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/goal_text.py +0 -0
  317. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/graph_config.py +0 -0
  318. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/ledger_compaction.py +0 -0
  319. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/ledger_message_dedup.py +0 -0
  320. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/messages.py +0 -0
  321. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/network_errors.py +0 -0
  322. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/plan_action_text.py +0 -0
  323. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/reflection.py +0 -0
  324. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/stream_normalize.py +0 -0
  325. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/structural_continuation.py +0 -0
  326. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/subagent_catalog.py +0 -0
  327. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/token_usage.py +0 -0
  328. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/vision_context.py +0 -0
  329. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/__init__.py +0 -0
  330. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/__init__.py +0 -0
  331. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/prompts.py +0 -0
  332. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/__init__.py +0 -0
  333. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/goal_completion_stream.py +0 -0
  334. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/messages.py +0 -0
  335. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/__init__.py +0 -0
  336. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/__init__.py +0 -0
  337. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_client.py +0 -0
  338. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_goal_loop.py +0 -0
  339. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_names.py +0 -0
  340. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/prompt_clock.py +0 -0
  341. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/text.py +0 -0
  342. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/text_preview.py +0 -0
  343. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/__init__.py +0 -0
  344. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/classification.py +0 -0
  345. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/execute_namespace.py +0 -0
  346. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/loop_stream.py +0 -0
  347. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/types.py +0 -0
  348. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/__init__.py +0 -0
  349. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/codec.py +0 -0
  350. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/protocol.py +0 -0
  351. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/__init__.py +0 -0
  352. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/core_resolution.py +0 -0
  353. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/loop_workspace.py +0 -0
  354. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/resolution.py +0 -0
  355. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/scoped.py +0 -0
  356. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/__init__.py +0 -0
  357. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/factory.py +0 -0
  358. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/postgres.py +0 -0
  359. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/protocol.py +0 -0
  360. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/sqlite.py +0 -0
  361. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/__init__.py +0 -0
  362. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/backends/__init__.py +0 -0
  363. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/backends/fsspec.py +0 -0
  364. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/cas.py +0 -0
  365. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/checkpoint.py +0 -0
  366. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/debouncer.py +0 -0
  367. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/dirty_tracker.py +0 -0
  368. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/errors.py +0 -0
  369. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/factory.py +0 -0
  370. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/manager.py +0 -0
  371. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/materializer.py +0 -0
  372. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/paths.py +0 -0
  373. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/uploader.py +0 -0
  374. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/workspace_sync.py +0 -0
  375. {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/workspace_dirs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: soothe
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: Soothe - Goal-driven multi-agent orchestration framework
5
5
  Project-URL: Homepage, https://github.com/mirasoth/soothe
6
6
  Project-URL: Repository, https://github.com/mirasoth/soothe
@@ -31,7 +31,7 @@ Requires-Dist: pydantic-settings<3.0.0,>=2.0.0
31
31
  Requires-Dist: pydantic<3.0.0,>=2.0.0
32
32
  Requires-Dist: pyjwt<3.0.0,>=2.8.0
33
33
  Requires-Dist: pyyaml<7.0.0,>=6.0.0
34
- Requires-Dist: soothe-nano<3.0.0,>=2.0.2
34
+ Requires-Dist: soothe-nano<3.0.0,>=2.0.4
35
35
  Requires-Dist: watchdog<5.0.0,>=3.0.0
36
36
  Provides-Extra: all-backends
37
37
  Requires-Dist: adlfs>=2025.0.0; extra == 'all-backends'
@@ -22,7 +22,7 @@ classifiers = [
22
22
  "Topic :: Software Development :: Libraries :: Python Modules",
23
23
  ]
24
24
  dependencies = [
25
- "soothe-nano>=2.0.2,<3.0.0",
25
+ "soothe-nano>=2.0.4,<3.0.0",
26
26
  # Host-owned runtime (StrangeLoop / config / identity / checkpointers)
27
27
  "aiosqlite>=0.22.1,<1.0.0",
28
28
  "pydantic>=2.0.0,<3.0.0",
@@ -476,8 +476,8 @@ class WorkspaceReservationConfig(BaseModel):
476
476
  class WorkspaceSyncConfig(BaseModel):
477
477
  """Durable object-store backend for agent workspace materialization.
478
478
 
479
- **Disabled by default.** Both `enabled` must be `True` *and*
480
- `source_uri` must be set for sync to activate. This ensures local
479
+ **Disabled by default.** Both `enabled` must be `True` *and*
480
+ `source_uri` must be set for sync to activate. This ensures local
481
481
  workspace sync is opt-in and never silently active from defaults alone.
482
482
 
483
483
  When enabled, the daemon constructs an
@@ -488,7 +488,7 @@ class WorkspaceSyncConfig(BaseModel):
488
488
 
489
489
  Args:
490
490
  enabled: Master switch for workspace sync. Defaults to `False`
491
- (disabled). Set to `True` and provide a `source_uri` to enable
491
+ (disabled). Set to `True` and provide a `source_uri` to enable
492
492
  remote object-store sync.
493
493
  source_uri: Object-store URI (e.g. `s3://bucket/prefix`).
494
494
  Only `s3`, `gs`, and `az` schemes are permitted.
@@ -1259,9 +1259,9 @@ class ToolApprovalRule(BaseModel):
1259
1259
 
1260
1260
  Pattern syntax (adapted from Claude Code's `shellRuleMatching`):
1261
1261
 
1262
- - `"exact"` — exact string match (e.g. `"git status"`)
1263
- - `"prefix:*"` — prefix match (e.g. `"grep:*"` matches `"grep -r foo"`)
1264
- - `"wildcard*"` — wildcard match, `*` = any sequence (e.g. `"pytest*"`)
1262
+ `"exact"` — exact string match (e.g. `"git status"`)
1263
+ `"prefix:*"` — prefix match (e.g. `"grep:*"` matches `"grep -r foo"`)
1264
+ `"wildcard*"` — wildcard match, `*` = any sequence (e.g. `"pytest*"`)
1265
1265
 
1266
1266
  Path patterns support `**` recursive matching via `pathspec`
1267
1267
  (gitignore-style). The `<workspace>` token expands to the per-request
@@ -1273,49 +1273,27 @@ class ToolApprovalRule(BaseModel):
1273
1273
 
1274
1274
 
1275
1275
  def _default_deny_rules() -> list[ToolApprovalRule]:
1276
- """Default deny rules — absolute rejects enforced by `AutoModeMiddleware`.
1276
+ """Default deny rules — user-defined overrides only.
1277
+
1278
+ RFC-LOOP-030: the built-in rules migrated into nano's severity-tiered
1279
+ registry (`command.restricted.*` at `high`, sensitive system paths at
1280
+ `critical` on write). Only user-configured rules belong here; they are
1281
+ absolute rejects across all modes.
1282
+ """
1283
+ return []
1277
1284
 
1278
- RFC-634: the inline gate rejects these patterns outright (error
1279
- `ToolMessage`, no interrupt, no human input) across all modes. Stage 2
1280
- safety checks (nano's `WorkspaceToolOperationSecurity`) escalate to the
1281
- human relay.
1282
1285
 
1283
- Only operations that are high-risk AND not already caught by the safety
1284
- checks belong here.
1286
+ class DynamicRulesConfig(BaseModel):
1287
+ """Loop-scoped dynamic-rule layer for the tool-approval gate.
1288
+
1289
+ When enabled, veritas approves of L1-unresolved calls mint loop-scoped
1290
+ grants (command-prefix for `run_command`, exact signature for path
1291
+ tools) so repeated shapes clear the gate with zero model calls.
1285
1292
  """
1286
- return [
1287
- # --- Privilege escalation (sudo is caught by safety; su/doas are not) ---
1288
- ToolApprovalRule(tool="run_command", pattern="su *"),
1289
- ToolApprovalRule(tool="run_command", pattern="doas *"),
1290
- # --- Recursive permission changes (chmod -R 777 / is safety-caught) ---
1291
- ToolApprovalRule(tool="run_command", pattern="chmod -R *"),
1292
- ToolApprovalRule(tool="run_command", pattern="chown -R *"),
1293
- ToolApprovalRule(tool="run_command", pattern="chgrp -R *"),
1294
- # --- Disk / partition / device operations (mkfs/dd are safety-caught) ---
1295
- ToolApprovalRule(tool="run_command", pattern="fdisk*"),
1296
- ToolApprovalRule(tool="run_command", pattern="diskutil*"),
1297
- # --- System shutdown / halt ---
1298
- ToolApprovalRule(tool="run_command", pattern="shutdown *"),
1299
- ToolApprovalRule(tool="run_command", pattern="reboot *"),
1300
- ToolApprovalRule(tool="run_command", pattern="halt *"),
1301
- # --- System-level package installs ---
1302
- ToolApprovalRule(tool="run_command", pattern="apt *"),
1303
- ToolApprovalRule(tool="run_command", pattern="apt-get *"),
1304
- ToolApprovalRule(tool="run_command", pattern="brew *"),
1305
- ToolApprovalRule(tool="run_command", pattern="npm install -g*"),
1306
- # --- System file modification (safety only catches these when
1307
- # security_config is wired; deny rule is a belt-and-suspenders) ---
1308
- ToolApprovalRule(tool="edit_file", pattern="/etc/**"),
1309
- ToolApprovalRule(tool="write_file", pattern="/etc/**"),
1310
- ToolApprovalRule(tool="edit_file", pattern="/System/**"),
1311
- ToolApprovalRule(tool="write_file", pattern="/System/**"),
1312
- ToolApprovalRule(tool="edit_file", pattern="/usr/**"),
1313
- ToolApprovalRule(tool="write_file", pattern="/usr/**"),
1314
- ToolApprovalRule(tool="edit_file", pattern="/bin/**"),
1315
- ToolApprovalRule(tool="write_file", pattern="/bin/**"),
1316
- ToolApprovalRule(tool="edit_file", pattern="/sbin/**"),
1317
- ToolApprovalRule(tool="write_file", pattern="/sbin/**"),
1318
- ]
1293
+
1294
+ enabled: bool = True
1295
+ grant_cap: int = Field(default=256, ge=1, le=4096)
1296
+ """Upper bound on gate grant records per loop (oldest evicted)."""
1319
1297
 
1320
1298
 
1321
1299
  class InlineGateConfig(BaseModel):
@@ -1373,7 +1351,11 @@ class ToolApprovalConfig(BaseModel):
1373
1351
  the human.
1374
1352
  """
1375
1353
  deny_rules: list[ToolApprovalRule] = Field(default_factory=_default_deny_rules)
1354
+ """User-defined absolute reject rules. Built-ins live in nano's
1355
+ severity-tiered registry; only explicitly configured
1356
+ rules are evaluated here."""
1376
1357
  inline_gate: InlineGateConfig = Field(default_factory=InlineGateConfig)
1358
+ dynamic_rules: DynamicRulesConfig = Field(default_factory=DynamicRulesConfig)
1377
1359
 
1378
1360
 
1379
1361
  DEFAULT_FORCE_MANUAL_ORIGINS: tuple[str, ...] = ("plan_mode_review",)
@@ -1473,6 +1455,26 @@ class VeritasConfig(BaseModel):
1473
1455
  """Confidence value assigned when the model returns answers but omits
1474
1456
  `confidence`."""
1475
1457
 
1458
+ decision_fast_path: DecisionFastPathConfig = Field(
1459
+ default_factory=lambda: DecisionFastPathConfig()
1460
+ )
1461
+ """RFC-LOOP-030 calibrated decision-model fast path inside the answerer:
1462
+ Jev first, LLM second."""
1463
+
1464
+
1465
+ class DecisionFastPathConfig(BaseModel):
1466
+ """Calibrated decision-model fast path for the veritas answerer.
1467
+
1468
+ When enabled, approval-shaped requests (those carrying an
1469
+ `action_requests` subject) are first classified by the calibrated
1470
+ model. Trusted allow/reject verdicts resolve inline with zero LLM
1471
+ calls; trusted escalates and everything unusable (untrusted /
1472
+ unavailable / no subject) fall through to the LLM leg. Provider and
1473
+ trust parameters come from the shared `classifier` block (nano).
1474
+ """
1475
+
1476
+ enabled: bool = True
1477
+
1476
1478
 
1477
1479
  class SkillifyConfig(BaseModel):
1478
1480
  """Configuration for the daemon-shared Skillify semantic skill search service."""
@@ -79,10 +79,12 @@ class AgentBuilder(nano_builder.AgentBuilder):
79
79
  def _build_auto_mode_gate(self) -> Any | None:
80
80
  """Build the RFC-634 inline tool-approval gate from config.
81
81
 
82
- The gate replaces the old ``interrupt_on`` HITL wiring: deny-rule and
82
+ The gate replaces the old `interrupt_on` HITL wiring: deny-rule and
83
83
  autopilot-safety rejects resolve inline; human-decision cases emit
84
- the standard ``action_requests`` interrupt. Returns ``None`` when the
85
- tool-approval block is disabled.
84
+ the standard `action_requests` interrupt. L1-unresolved calls
85
+ carrying risk hints route to the shared veritas answerer
86
+ (decision-model fast path first, LLM second) with loop-scoped grant
87
+ write-back. Returns `None` when the tool-approval block is disabled.
86
88
  """
87
89
  from soothe.sloop.clarification.tool_approval_pipeline import ToolApprovalPipeline
88
90
  from soothe.sloop.middleware import AutoModeMiddleware
@@ -95,11 +97,18 @@ class AgentBuilder(nano_builder.AgentBuilder):
95
97
  if not (ta_cfg.enabled and ta_cfg.inline_gate.enabled):
96
98
  return None
97
99
  pipeline = ToolApprovalPipeline(ta_cfg, security_config=self._config.security)
98
- # Optional calibrated-probability classifier for rule-unresolved calls
99
- # (nano-configured backend; null when disabled or misconfigured).
100
- from soothe.sloop.clarification.risk_classifier import build_risk_classifier
101
100
 
102
- classifier_cfg = getattr(self._config, "classifier", None)
101
+ # Shared veritas answerer for the RFC-LOOP-030 leg; built only when
102
+ # the fast path is reachable (veritas is enabled), otherwise the gate
103
+ # stays deterministic.
104
+ veritas_answer = None
105
+ veritas_cfg = getattr(self._config.agent, "veritas", None)
106
+ if veritas_cfg is not None:
107
+ from soothe.subagents.veritas.implementation import build_veritas_answerer
108
+
109
+ veritas_answer = build_veritas_answerer(self._config)
110
+
111
+ dynamic_cfg = getattr(ta_cfg, "dynamic_rules", None)
103
112
  return AutoModeMiddleware(
104
113
  pipeline,
105
114
  tools=ta_cfg.inline_gate.tools,
@@ -107,8 +116,11 @@ class AgentBuilder(nano_builder.AgentBuilder):
107
116
  default_clarification_mode=clar_cfg.default_mode,
108
117
  manual_scope=ta_cfg.manual_scope,
109
118
  force_manual_tool_approval="tool_approval" in (clar_cfg.force_manual_origins or ()),
110
- classifier=build_risk_classifier(self._config),
111
- classifier_config=classifier_cfg,
119
+ veritas_answer=veritas_answer,
120
+ dynamic_rules_enabled=bool(
121
+ dynamic_cfg is None or getattr(dynamic_cfg, "enabled", True)
122
+ ),
123
+ grant_cap=int(getattr(dynamic_cfg, "grant_cap", 256) or 256),
112
124
  )
113
125
 
114
126
  def _host_middleware_suffix(self) -> tuple:
@@ -119,9 +119,14 @@ class AutoClarificationPolicy:
119
119
  """
120
120
  if self._interactive_fallback is not None:
121
121
  announce = not request.metadata.get("resume_turn")
122
- logger.info(
123
- "[clarification] tool_approval interrupt from auto gate; routing to human relay"
124
- )
122
+ if announce:
123
+ logger.info(
124
+ "[clarification] tool_approval interrupt from auto gate; routing to human relay"
125
+ )
126
+ else:
127
+ logger.info(
128
+ "[clarification] tool_approval resume replay; consuming human answer (no re-announce)"
129
+ )
125
130
  return await self._delegate_to_fallback(request, announce=announce)
126
131
  if self._autopilot_retry_on_fail:
127
132
  logger.info("[clarification] tool_approval without human; autopilot retry")
@@ -228,11 +233,23 @@ class AutoClarificationPolicy:
228
233
  gate defers only for genuine "I don't know" verdicts, so the station
229
234
  goes straight to the human relay when one is attached, the autopilot
230
235
  retry sentinel when enabled, or a hard defer (park) otherwise.
236
+
237
+ Resume replays pass ``announce=False`` so the already-mounted TUI
238
+ card is not re-announced (the human answer is consumed in flight).
231
239
  """
232
240
  kind = str(request.metadata.get("gate_deferred_kind") or "explicit")
233
241
  if self._interactive_fallback is not None:
234
- logger.info("[clarification] ask_user gate deferred (kind=%s); routing to human", kind)
235
- return await self._delegate_to_fallback(request)
242
+ announce = not request.metadata.get("resume_turn")
243
+ if announce:
244
+ logger.info(
245
+ "[clarification] ask_user gate deferred (kind=%s); routing to human", kind
246
+ )
247
+ else:
248
+ logger.info(
249
+ "[clarification] ask_user gate deferred (kind=%s); resume replay (no re-announce)",
250
+ kind,
251
+ )
252
+ return await self._delegate_to_fallback(request, announce=announce)
236
253
  if self._autopilot_retry_on_fail:
237
254
  logger.info("[clarification] ask_user gate deferred (kind=%s); autopilot retry", kind)
238
255
  return self._build_retry_answer(request)
@@ -0,0 +1,194 @@
1
+ """Loop-scoped dynamic rules: the grant store and record matching.
2
+
3
+ One record vocabulary covers every approval provenance in the loop:
4
+
5
+ - `{"tool", "signature"}` — exact-action record (human approvals today,
6
+ veritas approvals for path tools).
7
+ - `{"tool", "prefix"}` — command-prefix grant (`run_command` only): one
8
+ approve of `pytest -x …` clears every subsequent `pytest …` call at L1
9
+ with zero model calls.
10
+ - `{"rule", ...}` — rule-family override (nano `rule_family()`), honored by
11
+ the safety stage exactly as before.
12
+
13
+ Records live in two places with the same lifecycle (the loop): the
14
+ graph-state allowlist (human approvals, written by the executor relay) and
15
+ the middleware-instance grant store (decision-model / LLM approvals, written
16
+ by the auto-mode gate). `grant_hit()` treats both identically.
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+ import logging
22
+ from collections.abc import Mapping
23
+ from typing import Any
24
+
25
+ logger = logging.getLogger(__name__)
26
+
27
+ # Tool args fields that identify the action operand for allowlist signatures.
28
+ _COMMAND_TOOLS = frozenset({"run_command"})
29
+ _PATH_TOOLS = frozenset({"edit_file", "write_file", "delete"})
30
+
31
+ DEFAULT_GRANT_CAP = 256
32
+ """Upper bound on middleware-instance grant records per loop (oldest evicted)."""
33
+
34
+
35
+ def signature_for(tool_name: str, args: Mapping[str, Any]) -> str | None:
36
+ """Stable per-action signature (`command` or `file_path`), or `None`."""
37
+ if tool_name in _COMMAND_TOOLS:
38
+ return str(args.get("command") or "").strip() or None
39
+ if tool_name in _PATH_TOOLS:
40
+ return str(args.get("file_path") or args.get("path") or "").strip() or None
41
+ return None
42
+
43
+
44
+ def approval_record(tool_name: str, args: Mapping[str, Any]) -> dict[str, str] | None:
45
+ """Allowlist record `{"tool", "signature"}`, or `None` if not signable."""
46
+ sig = signature_for(tool_name, args)
47
+ if sig is None:
48
+ return None
49
+ return {"tool": tool_name, "signature": sig}
50
+
51
+
52
+ def command_prefix(command: str) -> str | None:
53
+ """First whitespace token of a command, or `None` when empty."""
54
+ token = command.strip().split(maxsplit=1)[0] if command.strip() else ""
55
+ return token or None
56
+
57
+
58
+ def grant_hit(
59
+ tool_name: str,
60
+ args: Mapping[str, Any],
61
+ records: list[Mapping[str, Any]] | None,
62
+ *,
63
+ rule_id: str | None = None,
64
+ ) -> bool:
65
+ """True when any record approves this action (signature / prefix / family)."""
66
+ if not records:
67
+ return False
68
+
69
+ sig = signature_for(tool_name, args)
70
+ prefix: str | None = None
71
+ if tool_name in _COMMAND_TOOLS:
72
+ prefix = command_prefix(str(args.get("command") or ""))
73
+
74
+ approved_rules = _rule_family(rule_id) if rule_id else frozenset()
75
+
76
+ for rec in records:
77
+ if not isinstance(rec, Mapping):
78
+ continue
79
+ if approved_rules and str(rec.get("rule") or "") in approved_rules:
80
+ return True
81
+ if sig is not None and str(rec.get("tool") or "") == tool_name:
82
+ if str(rec.get("signature") or "") == sig:
83
+ return True
84
+ if prefix is not None and str(rec.get("prefix") or "") == prefix and prefix:
85
+ return True
86
+ return False
87
+
88
+
89
+ def _rule_family(rule_id: str | None) -> frozenset[str]:
90
+ """All nano rule ids in the same family as ``rule_id`` (inclusive)."""
91
+ if not rule_id:
92
+ return frozenset()
93
+ from soothe_nano.security.operation_guard import rule_family
94
+
95
+ return rule_family(rule_id)
96
+
97
+
98
+ def rule_approved(
99
+ rule_id: str | None,
100
+ records: list[Mapping[str, Any]] | None,
101
+ ) -> bool:
102
+ """True when the human already approved this rule's family this loop."""
103
+ if not rule_id or not records:
104
+ return False
105
+ approved = _rule_family(rule_id)
106
+ for rec in records:
107
+ if isinstance(rec, Mapping) and str(rec.get("rule") or "") in approved:
108
+ return True
109
+ return False
110
+
111
+
112
+ class LoopGrantStore:
113
+ """Middleware-instance grant store — loop-scoped write-back for the
114
+ veritas leg.
115
+
116
+ Holds the records the auto-mode gate mints when the decision model or
117
+ the LLM approves an L1-unresolved call. The graph-state allowlist (human
118
+ approvals) is read separately and merged at match time; only this store
119
+ is mutated here.
120
+ """
121
+
122
+ def __init__(self, *, cap: int = DEFAULT_GRANT_CAP) -> None:
123
+ self._cap = max(1, int(cap))
124
+ self._records: list[dict[str, Any]] = []
125
+
126
+ @property
127
+ def records(self) -> list[Mapping[str, Any]]:
128
+ """Current grant records (do not mutate)."""
129
+ return list(self._records)
130
+
131
+ def matches(
132
+ self,
133
+ tool_name: str,
134
+ args: Mapping[str, Any],
135
+ allowlist: list[Mapping[str, Any]] | None,
136
+ *,
137
+ rule_id: str | None = None,
138
+ ) -> bool:
139
+ """Grant or human-approval hit across the instance store and the loop allowlist."""
140
+ if grant_hit(tool_name, args, self._records, rule_id=rule_id):
141
+ return True
142
+ return grant_hit(tool_name, args, allowlist, rule_id=rule_id)
143
+
144
+ def record(
145
+ self,
146
+ tool_name: str,
147
+ args: Mapping[str, Any],
148
+ *,
149
+ source: str,
150
+ rule_id: str | None = None,
151
+ ) -> dict[str, Any] | None:
152
+ """Mint a grant for an approved action; evicts oldest beyond the cap.
153
+
154
+ Only allow-verdicts are recorded — denies stay per-call (an
155
+ instructive reject already teaches the model not to retry).
156
+ """
157
+ rec: dict[str, Any] | None = None
158
+ if rule_id:
159
+ rec = {"rule": rule_id, "source": source}
160
+ elif tool_name in _COMMAND_TOOLS:
161
+ prefix = command_prefix(str(args.get("command") or ""))
162
+ if prefix:
163
+ rec = {"tool": tool_name, "prefix": prefix, "source": source}
164
+ else:
165
+ sig = signature_for(tool_name, args)
166
+ if sig is not None:
167
+ rec = {"tool": tool_name, "signature": sig, "source": source}
168
+
169
+ if rec is None:
170
+ return None
171
+ if rec in self._records:
172
+ return rec
173
+ self._records.append(rec)
174
+ while len(self._records) > self._cap:
175
+ self._records.pop(0)
176
+ logger.info(
177
+ "[dynamic_rules] grant tool=%s match=%s source=%s (records=%d)",
178
+ rec.get("tool") or "<rule>",
179
+ rec.get("prefix") or rec.get("signature") or rec.get("rule"),
180
+ source,
181
+ len(self._records),
182
+ )
183
+ return rec
184
+
185
+
186
+ __all__ = [
187
+ "DEFAULT_GRANT_CAP",
188
+ "LoopGrantStore",
189
+ "approval_record",
190
+ "command_prefix",
191
+ "grant_hit",
192
+ "rule_approved",
193
+ "signature_for",
194
+ ]