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.
- {soothe-1.2.2 → soothe-1.2.4}/PKG-INFO +2 -2
- {soothe-1.2.2 → soothe-1.2.4}/pyproject.toml +1 -1
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/models.py +48 -46
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/builder.py +21 -9
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/auto.py +22 -5
- soothe-1.2.4/src/soothe/sloop/clarification/dynamic_rules.py +194 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/tool_approval_pipeline.py +73 -80
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/typesafe_client.py +2 -1
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/auto_mode.py +222 -233
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/relay.py +60 -2
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/execute.py +1 -1
- soothe-1.2.2/src/soothe/sloop/clarification/risk_classifier.py → soothe-1.2.4/src/soothe/subagents/veritas/decision_model.py +84 -8
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/implementation.py +165 -5
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/schemas.py +5 -1
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/workspace.py +1 -1
- {soothe-1.2.2 → soothe-1.2.4}/.gitignore +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/README.md +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/composition.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/constants.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/env.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/models_catalog.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/ownership.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/reload.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/config/settings.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/dag_utils.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/decomposition.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/engine.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/goal_interrupt_persistence.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/ledger.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/models.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_completion.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_goal_planner.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_models.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_scheduling.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/planning_step_planner.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_factory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_pgsql.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/context/store_sqlite.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/core_agent.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/factory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/lazy.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/ask_user.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/coreagent/tools/request_plan_mode.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/api.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/host.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/diagnose/models.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/_text_utils.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_binder.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_ledger.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/card_wire.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/message_processing.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/snapshot_collapser.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/snapshot_types.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/text_extract.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/tool_message_format.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/tool_result.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/display/transcript_types.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/catalog.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/events/visibility.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/goal_contracts.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/credentials.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/db.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/errors.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/identity_service.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/middleware.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/persona.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/runtime.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/identity/tokens.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/global_history.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/logging/thread_logger.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/checkpoint_split.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/db_init.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/loop_writer.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/persist_metrics.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/persist_reconciler.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_pool_lifecycle.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_pool_registry.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/postgres_schema.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/shared_metadata_pool.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sql/soothe_checkpoints/001_add_checkpoint_index_column.sql +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sql/soothe_checkpoints/init.sql +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/sqlite_loop_flush.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/persistence/unified.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/approved_plan_execute_hint.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/ask_mode_addendum.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/decompose_task_tool.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/parallel_nudge_addendum.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/plan_mode_addendum.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/thread_policy_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/user_hint_child.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/user_hint_root.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/westworld_fanout_addendum.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/decompose/write_todos_tool.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/coverage_verdict_tool.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/eval_decision_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/eval/eval_policy_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/instructions/plan_synthesis_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/instructions/synthesis_report_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/intake/intake_classify_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/intake/social_reply.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/fragments/system/prompt_timestamp.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/graph_wrapper.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/loader.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/plan_ledger_projection.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/prompts/user_message.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/loop_working_memory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/protocols/runner.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/autoresearch_exec.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/autoresearch_loop.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/README.md +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/autoresearch.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/feature-dev.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/greenfield-system.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/hotfix.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/maker-checker.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/pr-review.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtin_rails/spike.yml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtins.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/builtins_exec.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/catalog.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/debug.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/evals.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/fix.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/guard_system.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/guards.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/improve.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/interpreter.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/l0_schema.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/learn.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/orchestrator_routing.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/pause_clarify.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/plan.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/predict.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/probe.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/rail_typesafe.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/reason.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/recipe_exec.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/regression.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/scenario.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/security.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/selector.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/ship.xml +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/trace_store.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/verb_defaults.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/wave_plan.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/rails/worktree_ops.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_phases.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_shared.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_runner_strange_loop.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_thread_manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_types.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/_worker_utils.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/_resolver_infra.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/resolver/shared_checkpointer_pool.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/shell_drain.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/runner/worker_logging.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/security/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/security/daemon_kill_guards.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/skillify/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/skillify/models.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/archive_backend.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/base_backend.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/daemon_loop_metadata.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/directory_manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/postgres_backend.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/postgres_schema.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/retry_utils.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/runtime_paths.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/shared_pool.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/checkpoints/sqlite_backend.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/detector.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/events.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/interactive.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/interrupt_kinds.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/origins.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/protocol.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/runtime_factory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/selector.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/clarification/tool_rule_matcher.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/context_projection.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/decompose_typesafe.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/middleware.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/reconcile.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/runtime.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/decompose/tool.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/continuation_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/goal_completion_output.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/goal_interrupt_record.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/scenario_classifier.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/scenario_typesafe.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/synthesis.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/completion/synthesis_projection.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/act_wave_finalize.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/context_window_manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/executor.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/graph_interrupt.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/metadata_generator.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/predecessor_branch_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_brief_hydrator.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_completion_report.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_deliverable.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_predecessor_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/step_wave_types.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/thread_selection.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_args.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_enrichment.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/engine/execute/tool_call_id.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/eval_decision.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/middleware.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/step_close_report.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/text_recovery.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/typesafe_eval_decision.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/eval/verdict_tool.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/chitchat_fallbacks.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/classifier.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/coordinator.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/intake_classifier.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/invoke_config.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/models.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/prompts.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/social_reply.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/structured_methods.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/intention/typesafe_intent.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/ask_user_gate.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/ask_user_prompt.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/auto_mode_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/goal_step_guard.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/gp_variant_guard.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/intake_task_guard.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/middleware/westworld.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/builder.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/checkpoint.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/continuation.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/node_base.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/phase_status.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/routing.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/runner.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/runtime_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/orchestrator/stations.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/artifact.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/grounding.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/plan_mode_review.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/plan_synthesizer.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/plans/wired_subagent_plan.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/_adapter.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/channel.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/errors.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/events.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/inbox.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/outbox.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/reconcile.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/router.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/snapshot.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/relay/ticket.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/checkpoint.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/execution_checkpoint.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/resume_topic.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/schemas.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/sloop_manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/status_vocabulary.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/state/working_memory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/completion/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/completion/finalize.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/dispatch.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/reconcile_node.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/root_eval.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/decompose/root_eval_typesafe.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/loop_budget.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/max_iterations_terminal.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/execute/record_progress.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/enter_loop.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/preprocess/intake.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/await_user.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/stations/sidecars/delegate.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/strange_loop.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/config_keys.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/continue_keyword.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/events.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/goal_text.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/graph_config.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/ledger_compaction.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/ledger_message_dedup.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/messages.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/network_errors.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/plan_action_text.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/reflection.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/stream_normalize.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/structural_continuation.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/subagent_catalog.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/token_usage.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/sloop/utils/vision_context.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/subagents/veritas/prompts.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/goal_completion_stream.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/messages.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_client.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_goal_loop.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/observability/langfuse/_names.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/prompt_clock.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/text.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/utils/text_preview.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/classification.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/execute_namespace.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/loop_stream.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/ux/types.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/codec.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/wire/protocol.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/core_resolution.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/loop_workspace.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/resolution.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/scoped.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/factory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/postgres.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/protocol.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/state/sqlite.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/backends/__init__.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/backends/fsspec.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/cas.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/checkpoint.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/debouncer.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/dirty_tracker.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/errors.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/factory.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/manager.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/materializer.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/paths.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/uploader.py +0 -0
- {soothe-1.2.2 → soothe-1.2.4}/src/soothe/workspace/sync/workspace_sync.py +0 -0
- {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.
|
|
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.
|
|
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.
|
|
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.**
|
|
480
|
-
`source_uri` must be set for sync to activate.
|
|
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).
|
|
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
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
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 —
|
|
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
|
-
|
|
1284
|
-
|
|
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
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
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
|
|
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
|
|
85
|
-
|
|
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
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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
|
-
|
|
123
|
-
|
|
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
|
-
|
|
235
|
-
|
|
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
|
+
]
|