Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(core): import DispatchCtx in controller schema modules

Steven Enamakel55bd43de34fa
diff --git a/crates/openhuman-core/src/agent/artifacts/schemas.rs b/crates/openhuman-core/src/agent/artifacts/schemas.rs
index ed28991e42..4b38c11c0c 100644
--- a/crates/openhuman-core/src/agent/artifacts/schemas.rs
+++ b/crates/openhuman-core/src/agent/artifacts/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/schemas.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/schemas.rs
index 1da2270b33..6c71004f42 100644
--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/schemas.rs
+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/schemas.rs
@@ -7,6 +7,7 @@
//! close a team, and — via `start_member` — spawn a live worker that claims and
//! runs a task to completion (see [`super::runtime`]).
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/agent/orchestration/command_center/schemas.rs b/crates/openhuman-core/src/agent/orchestration/command_center/schemas.rs
index d6351a0830..c30db20372 100644
--- a/crates/openhuman-core/src/agent/orchestration/command_center/schemas.rs
+++ b/crates/openhuman-core/src/agent/orchestration/command_center/schemas.rs
@@ -2,6 +2,7 @@
//! center. Exposes `openhuman.agent_work_list` (read-only) over the durable
//! run ledger. Handlers delegate to [`super::ops`]; no business logic here.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use tinyagents_session::run_ledger::command_center::ControlVerb;
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_control.rs b/crates/openhuman-core/src/agent/orchestration/subagent_control.rs
index b84a7aa63f..345af253d0 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_control.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_control.rs
@@ -14,6 +14,7 @@
//! the thread stays alive and the user expects to see that their sub-agent was
//! cancelled.
+use crate::core::runtime::DispatchCtx;
use serde_json::{json, Map, Value};
use crate::agent::orchestration::running_subagents::{CancelledSubagent, SteerError};
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/schemas.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/schemas.rs
index f5182c447f..e858c937d5 100644
--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/schemas.rs
+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/schemas.rs
@@ -5,6 +5,7 @@
//! [`super::engine`] phase scheduler. Namespace `workflow_run` — distinct from
//! the existing `workflows` domain (SKILL.md/WORKFLOW.md discovery).
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/agent/orchestration/worktree_schemas.rs b/crates/openhuman-core/src/agent/orchestration/worktree_schemas.rs
index a54e71e146..d4b386a719 100644
--- a/crates/openhuman-core/src/agent/orchestration/worktree_schemas.rs
+++ b/crates/openhuman-core/src/agent/orchestration/worktree_schemas.rs
@@ -15,6 +15,7 @@
//!
//! [`Config`]: crate::config::schema::types::Config
+use crate::core::runtime::DispatchCtx;
use std::path::{Path, PathBuf};
use serde_json::{json, Map, Value};
diff --git a/crates/openhuman-core/src/agent/plan_review/schemas.rs b/crates/openhuman-core/src/agent/plan_review/schemas.rs
index 6970c86fb6..f871a03b9f 100644
--- a/crates/openhuman-core/src/agent/plan_review/schemas.rs
+++ b/crates/openhuman-core/src/agent/plan_review/schemas.rs
@@ -1,6 +1,7 @@
//! JSON-RPC surface for the plan-review gate: `openhuman.plan_review_decide`
//! resolves a parked interactive turn (approve / reject / revise-with-feedback).
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/agent/registry/schemas.rs b/crates/openhuman-core/src/agent/registry/schemas.rs
index fb03d59f14..548f8bcd0a 100644
--- a/crates/openhuman-core/src/agent/registry/schemas.rs
+++ b/crates/openhuman-core/src/agent/registry/schemas.rs
@@ -1,5 +1,6 @@
//! Controller-registry schemas for `openhuman.agent_registry_*`.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/agent/schemas.rs b/crates/openhuman-core/src/agent/schemas.rs
index 955346d786..caac889ec8 100644
--- a/crates/openhuman-core/src/agent/schemas.rs
+++ b/crates/openhuman-core/src/agent/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/agent/session_db/schemas.rs b/crates/openhuman-core/src/agent/session_db/schemas.rs
index b57cd80474..5531444bbc 100644
--- a/crates/openhuman-core/src/agent/session_db/schemas.rs
+++ b/crates/openhuman-core/src/agent/session_db/schemas.rs
@@ -1,5 +1,6 @@
//! Controller schemas and JSON-RPC dispatchers for the durable run ledger.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/agent/session_import/schemas.rs b/crates/openhuman-core/src/agent/session_import/schemas.rs
index 1b944d98d4..f6b22cb66e 100644
--- a/crates/openhuman-core/src/agent/session_import/schemas.rs
+++ b/crates/openhuman-core/src/agent/session_import/schemas.rs
@@ -1,6 +1,7 @@
//! Controller schema + handler for `openhuman.session_import_run`: a manual
//! retry of the boot-time import of legacy session files into the backend.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{json, Map, Value};
diff --git a/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs b/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
index 2f6e979d5f..f491562c23 100644
--- a/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/replay/schemas.rs
@@ -29,6 +29,7 @@
//! call counters, usage/cost totals, and timestamps — never prompt text, tool
//! arguments, or provider payloads.
+use crate::core::runtime::DispatchCtx;
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/agent/tinyagents/run_mode.rs b/crates/openhuman-core/src/agent/tinyagents/run_mode.rs
index 1676602382..22cae38fc8 100644
--- a/crates/openhuman-core/src/agent/tinyagents/run_mode.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/run_mode.rs
@@ -15,6 +15,7 @@
//! harness and pushes `plan_mode_middleware(handle, ..)` when a handle exists
//! for the thread.
+use crate::core::runtime::DispatchCtx;
use std::collections::HashMap;
use std::sync::Arc;
diff --git a/crates/openhuman-core/src/channels/controllers/schemas.rs b/crates/openhuman-core/src/channels/controllers/schemas.rs
index cfc192611d..24362618fa 100644
--- a/crates/openhuman-core/src/channels/controllers/schemas.rs
+++ b/crates/openhuman-core/src/channels/controllers/schemas.rs
@@ -1,5 +1,6 @@
//! RPC controller schemas and handlers for the channels domain.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/channels/providers/relay/schemas.rs b/crates/openhuman-core/src/channels/providers/relay/schemas.rs
index 1470f24c22..ed5c812853 100644
--- a/crates/openhuman-core/src/channels/providers/relay/schemas.rs
+++ b/crates/openhuman-core/src/channels/providers/relay/schemas.rs
@@ -3,6 +3,7 @@
//! It shares the `channel` namespace with `channel.web_chat`: both start a
//! turn on one of the caller's conversation threads.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use super::ops::channel_relay_inbound;
diff --git a/crates/openhuman-core/src/commands/schemas.rs b/crates/openhuman-core/src/commands/schemas.rs
index ef1bc28b02..cb41f6c06d 100644
--- a/crates/openhuman-core/src/commands/schemas.rs
+++ b/crates/openhuman-core/src/commands/schemas.rs
@@ -1,6 +1,7 @@
//! RPC/CLI controller surface for the `commands` domain: one read-only
//! method, `commands.list`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/config/schemas/controllers/agent.rs b/crates/openhuman-core/src/config/schemas/controllers/agent.rs
index 560eae382d..d51857a46a 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/agent.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/agent.rs
@@ -1,5 +1,6 @@
//! Handlers for agent behaviour settings: autonomy, privacy, browser, sandbox, and memory sync.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/config/schemas/controllers/inference.rs b/crates/openhuman-core/src/config/schemas/controllers/inference.rs
index 4683c5bafa..2df27e41ac 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/inference.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/inference.rs
@@ -1,5 +1,6 @@
//! Handlers for config snapshot reads and model, memory, runtime, and local-AI inference settings.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs b/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
index a4f83942b6..ac760f1d49 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
@@ -1,5 +1,6 @@
//! Handlers for third-party integration settings: web search and Composio triggers.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/config/schemas/controllers/voice.rs b/crates/openhuman-core/src/config/schemas/controllers/voice.rs
index fdac991704..7434887a49 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/voice.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/voice.rs
@@ -1,5 +1,6 @@
//! Handlers for voice dictation and voice-server settings.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/config/schemas/controllers/workspace.rs b/crates/openhuman-core/src/config/schemas/controllers/workspace.rs
index 5ce6d933b9..26d470d4f9 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/workspace.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/workspace.rs
@@ -1,5 +1,6 @@
//! Handlers for workspace state: onboarding flags, analytics, dashboard, data and agent paths, and local-data reset.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/config/workspace/schemas.rs b/crates/openhuman-core/src/config/workspace/schemas.rs
index 66105bde9e..2a3da492e2 100644
--- a/crates/openhuman-core/src/config/workspace/schemas.rs
+++ b/crates/openhuman-core/src/config/workspace/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
index 7867c234b3..cff2514c14 100644
--- a/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
+++ b/crates/openhuman-core/src/core/runtime/dispatch_ctx.rs
@@ -12,6 +12,7 @@
//! [`CoreContext`], or the helpers built on it) rather than reaching for an
//! ambient one.
+use crate::core::runtime::DispatchCtx;
use std::sync::Arc;
use super::CoreContext;
diff --git a/crates/openhuman-core/src/core/runtime/mod.rs b/crates/openhuman-core/src/core/runtime/mod.rs
index 5196260f5b..c8ceee2d7c 100644
--- a/crates/openhuman-core/src/core/runtime/mod.rs
+++ b/crates/openhuman-core/src/core/runtime/mod.rs
@@ -23,6 +23,7 @@
//! `cli.rs`, …) shares the same exposure. Centralising the value keeps them
//! in sync; downstream call sites should set `.thread_stack_size(AGENT_WORKER_STACK_BYTES)`
//! on every multi-thread runtime that may host an agent turn.
+use crate::core::runtime::DispatchCtx;
pub const AGENT_WORKER_STACK_BYTES: usize = 20 * 1024 * 1024;
/// Upper bound on tokio's blocking-thread pool for the long-lived multi-thread
diff --git a/crates/openhuman-core/src/core/subsystem/schemas.rs b/crates/openhuman-core/src/core/subsystem/schemas.rs
index 72267773f0..ae5b1d1b20 100644
--- a/crates/openhuman-core/src/core/subsystem/schemas.rs
+++ b/crates/openhuman-core/src/core/subsystem/schemas.rs
@@ -19,6 +19,7 @@
//! ([`SubsystemStatus`]), so adding one is a one-line change with no wire
//! change for existing rows.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/cron/schemas.rs b/crates/openhuman-core/src/cron/schemas.rs
index 19a2d0d1ed..5eb382e1df 100644
--- a/crates/openhuman-core/src/cron/schemas.rs
+++ b/crates/openhuman-core/src/cron/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/desktop/app_state/schemas.rs b/crates/openhuman-core/src/desktop/app_state/schemas.rs
index 6eb5232c2e..1e4e941aaf 100644
--- a/crates/openhuman-core/src/desktop/app_state/schemas.rs
+++ b/crates/openhuman-core/src/desktop/app_state/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::{self, DeserializeOwned};
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/desktop/dashboard/schemas.rs b/crates/openhuman-core/src/desktop/dashboard/schemas.rs
index cc069d9bbf..39827ed226 100644
--- a/crates/openhuman-core/src/desktop/dashboard/schemas.rs
+++ b/crates/openhuman-core/src/desktop/dashboard/schemas.rs
@@ -1,5 +1,6 @@
//! Controller schemas + handlers for the dashboard domain.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/desktop/provider_surfaces/schemas.rs b/crates/openhuman-core/src/desktop/provider_surfaces/schemas.rs
index 08d6bb15b3..644902bfe2 100644
--- a/crates/openhuman-core/src/desktop/provider_surfaces/schemas.rs
+++ b/crates/openhuman-core/src/desktop/provider_surfaces/schemas.rs
@@ -3,6 +3,7 @@
//! The first cut exposes normalized provider event ingestion plus a queue
//! listing endpoint suitable for local-first assistive UI surfaces.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/flows/schemas_handlers.rs b/crates/openhuman-core/src/flows/schemas_handlers.rs
index df892c19d9..c10faae4ff 100644
--- a/crates/openhuman-core/src/flows/schemas_handlers.rs
+++ b/crates/openhuman-core/src/flows/schemas_handlers.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
fn handle_create(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {
Box::pin(async move {
let config = config_rpc::load_config_with_timeout().await?;
diff --git a/crates/openhuman-core/src/hooks/schemas.rs b/crates/openhuman-core/src/hooks/schemas.rs
index 2b6f8d1bb3..5ee5f25712 100644
--- a/crates/openhuman-core/src/hooks/schemas.rs
+++ b/crates/openhuman-core/src/hooks/schemas.rs
@@ -7,6 +7,7 @@
//! trying to trigger it — asking the agent to run `rm -rf` to see whether the
//! deny rule fires — is the failure mode this surface exists to prevent.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{json, Map, Value};
diff --git a/crates/openhuman-core/src/inference/embedding_host/schemas.rs b/crates/openhuman-core/src/inference/embedding_host/schemas.rs
index bbcd8d6e7e..bdb17dd4b7 100644
--- a/crates/openhuman-core/src/inference/embedding_host/schemas.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/schemas.rs
@@ -1,5 +1,6 @@
//! Controller schemas and handler registrations for the embeddings domain.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas.rs b/crates/openhuman-core/src/inference/host_runtime/schemas.rs
index c74d14b355..f60b7714e0 100644
--- a/crates/openhuman-core/src/inference/host_runtime/schemas.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs b/crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs
index fd6cdca34a..c47bf63a9d 100644
--- a/crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs
+++ b/crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs
@@ -1,6 +1,7 @@
//! Handlers for the Claude Code provider: version and auth probes, and its
//! full-access setting.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/schemas/oauth_handlers.rs b/crates/openhuman-core/src/inference/schemas/oauth_handlers.rs
index cb587315ce..8bbf40644c 100644
--- a/crates/openhuman-core/src/inference/schemas/oauth_handlers.rs
+++ b/crates/openhuman-core/src/inference/schemas/oauth_handlers.rs
@@ -1,6 +1,7 @@
//! Handlers for the OpenAI OAuth flow: start, complete, Codex CLI import,
//! status, and disconnect.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/schemas/prompt_handlers.rs b/crates/openhuman-core/src/inference/schemas/prompt_handlers.rs
index da89371efa..2b09ad8d06 100644
--- a/crates/openhuman-core/src/inference/schemas/prompt_handlers.rs
+++ b/crates/openhuman-core/src/inference/schemas/prompt_handlers.rs
@@ -1,6 +1,7 @@
//! Handlers that run a model: summarize, prompt, vision prompt, provider
//! model test, should-react, and sentiment analysis.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs b/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
index 609b0f0ffd..ccd75d0f13 100644
--- a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
+++ b/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
@@ -2,6 +2,7 @@
//! config, model and local-runtime settings updates, model listing, device
//! auth errors, and diagnostics.
+use crate::core::runtime::DispatchCtx;
use serde::de::Deserializer;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
index 0919058f72..041a25d60f 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
@@ -6,6 +6,7 @@
//! fetch an offloaded original. Mirrors the controller pattern in
//! `threads/schemas.rs`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs
index 7073e73b1f..191cddffe4 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs
@@ -3,6 +3,7 @@
//! `list_connections`, `authorize`, `delete_connection`, `get_mode`,
//! `set_api_key`, `clear_api_key`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
index e002a55005..082b170638 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_identity.rs
@@ -2,6 +2,7 @@
//! `get_user_profile`, `refresh_all_identities`, `sync`, `get_user_scopes`,
//! `set_user_scopes`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
index 2067b511c1..5f2e2d3eb7 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_tools.rs
@@ -1,5 +1,6 @@
//! Tool-discovery and execution handlers: `list_tools`, `execute`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs
index 65c3190909..30f8615c56 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_triggers.rs
@@ -2,6 +2,7 @@
//! `create_trigger`, `list_trigger_history`, `list_available_triggers`,
//! `list_triggers`, `enable_trigger`, `disable_trigger`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/integrations/task_sources/schemas.rs b/crates/openhuman-core/src/integrations/task_sources/schemas.rs
index 7126d08b2f..a8f439707d 100644
--- a/crates/openhuman-core/src/integrations/task_sources/schemas.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/schemas.rs
@@ -5,6 +5,7 @@
//! `all_*` registry pair, and thin handlers that parse params and
//! delegate to [`super::ops`].
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/mcp/audit/schemas.rs b/crates/openhuman-core/src/mcp/audit/schemas.rs
index 038fc8c267..fa74e982eb 100644
--- a/crates/openhuman-core/src/mcp/audit/schemas.rs
+++ b/crates/openhuman-core/src/mcp/audit/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs b/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs
index 0ce1cd6db1..bb6afb242b 100644
--- a/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs
+++ b/crates/openhuman-core/src/mcp/registry/schemas/handlers.rs
@@ -1,6 +1,7 @@
//! `mcp_clients` handler implementations — deserialise params and delegate
//! to `ops.rs`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/mcp/ui/schemas.rs b/crates/openhuman-core/src/mcp/ui/schemas.rs
index 5a7b4290bc..e1c896a051 100644
--- a/crates/openhuman-core/src/mcp/ui/schemas.rs
+++ b/crates/openhuman-core/src/mcp/ui/schemas.rs
@@ -1,5 +1,6 @@
//! `mcp_ui` controller schemas and handlers.
+use crate::core::runtime::DispatchCtx;
use std::sync::Arc;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/memory/schemas/handlers.rs b/crates/openhuman-core/src/memory/schemas/handlers.rs
index 1a8932f007..e6d11ec314 100644
--- a/crates/openhuman-core/src/memory/schemas/handlers.rs
+++ b/crates/openhuman-core/src/memory/schemas/handlers.rs
@@ -1,6 +1,7 @@
//! Thin JSON-RPC handlers: parse params, load config, delegate to the ops,
//! and persist config for the setters.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Serialize;
use serde_json::{json, Map, Value};
diff --git a/crates/openhuman-core/src/modules/schemas.rs b/crates/openhuman-core/src/modules/schemas.rs
index fda9dd0599..14ea84cab4 100644
--- a/crates/openhuman-core/src/modules/schemas.rs
+++ b/crates/openhuman-core/src/modules/schemas.rs
@@ -9,6 +9,7 @@
//! compiled into [`super::registry`], and a method that could point the loader at
//! an arbitrary path would turn this namespace into remote code execution.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use std::sync::Arc;
use tinycomputer_bus::browser::SessionOptions;
diff --git a/crates/openhuman-core/src/platform/about_app/schemas.rs b/crates/openhuman-core/src/platform/about_app/schemas.rs
index e5219400f8..60b4443f67 100644
--- a/crates/openhuman-core/src/platform/about_app/schemas.rs
+++ b/crates/openhuman-core/src/platform/about_app/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use std::str::FromStr;
use serde::de::DeserializeOwned;
diff --git a/crates/openhuman-core/src/platform/connectivity/schemas.rs b/crates/openhuman-core/src/platform/connectivity/schemas.rs
index 2732a3e30f..e0a9b0f022 100644
--- a/crates/openhuman-core/src/platform/connectivity/schemas.rs
+++ b/crates/openhuman-core/src/platform/connectivity/schemas.rs
@@ -6,6 +6,7 @@
//! the host process tree and can't be answered from inside the sidecar
//! itself.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/platform/cost/schemas.rs b/crates/openhuman-core/src/platform/cost/schemas.rs
index 5c7391be13..187d2d941c 100644
--- a/crates/openhuman-core/src/platform/cost/schemas.rs
+++ b/crates/openhuman-core/src/platform/cost/schemas.rs
@@ -1,5 +1,6 @@
//! Controller schemas and JSON-RPC dispatchers for the cost dashboard.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/platform/health/schemas.rs b/crates/openhuman-core/src/platform/health/schemas.rs
index f69f33f91e..60662b3a48 100644
--- a/crates/openhuman-core/src/platform/health/schemas.rs
+++ b/crates/openhuman-core/src/platform/health/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/platform/service/schemas.rs b/crates/openhuman-core/src/platform/service/schemas.rs
index 188690ba19..b3aa35bf01 100644
--- a/crates/openhuman-core/src/platform/service/schemas.rs
+++ b/crates/openhuman-core/src/platform/service/schemas.rs
@@ -4,6 +4,7 @@
//! management (install, start, stop, etc.) and provides the mapping between
//! RPC methods and their underlying implementation handlers.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/platform/socket/schemas.rs b/crates/openhuman-core/src/platform/socket/schemas.rs
index ea7fa7c7d5..46a629c01d 100644
--- a/crates/openhuman-core/src/platform/socket/schemas.rs
+++ b/crates/openhuman-core/src/platform/socket/schemas.rs
@@ -1,5 +1,6 @@
//! Controller schemas and RPC handlers for the `socket` namespace.
+use crate::core::runtime::DispatchCtx;
use serde_json::{json, Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/platform/update/schemas.rs b/crates/openhuman-core/src/platform/update/schemas.rs
index abbdb9c8f8..103301a1bc 100644
--- a/crates/openhuman-core/src/platform/update/schemas.rs
+++ b/crates/openhuman-core/src/platform/update/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/profiles/schemas.rs b/crates/openhuman-core/src/profiles/schemas.rs
index 24fe25deb8..a508d29188 100644
--- a/crates/openhuman-core/src/profiles/schemas.rs
+++ b/crates/openhuman-core/src/profiles/schemas.rs
@@ -4,6 +4,7 @@
//! which only `DomainSet::saas()` enables, so a single-user core never serves
//! them.
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/sandbox/schemas.rs b/crates/openhuman-core/src/sandbox/schemas.rs
index c3299cf9a0..9bc50c3f4b 100644
--- a/crates/openhuman-core/src/sandbox/schemas.rs
+++ b/crates/openhuman-core/src/sandbox/schemas.rs
@@ -1,5 +1,6 @@
//! Sandbox domain controller schemas and RPC handlers.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/security/approval/schemas.rs b/crates/openhuman-core/src/security/approval/schemas.rs
index 537295d05c..07d362067c 100644
--- a/crates/openhuman-core/src/security/approval/schemas.rs
+++ b/crates/openhuman-core/src/security/approval/schemas.rs
@@ -3,6 +3,7 @@
//! Wires `approval_list_pending` and `approval_decide` into the
//! global registry consumed by `crates/openhuman-core/src/core/all.rs`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/security/credentials/schemas.rs b/crates/openhuman-core/src/security/credentials/schemas.rs
index 9185b79124..d950942d8c 100644
--- a/crates/openhuman-core/src/security/credentials/schemas.rs
+++ b/crates/openhuman-core/src/security/credentials/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/security/encryption/schemas.rs b/crates/openhuman-core/src/security/encryption/schemas.rs
index 5e5c9e3cc6..29f528a5af 100644
--- a/crates/openhuman-core/src/security/encryption/schemas.rs
+++ b/crates/openhuman-core/src/security/encryption/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/security/schemas.rs b/crates/openhuman-core/src/security/schemas.rs
index 26cca69a2b..c889f34fd7 100644
--- a/crates/openhuman-core/src/security/schemas.rs
+++ b/crates/openhuman-core/src/security/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/skills/catalog/schemas/handlers.rs b/crates/openhuman-core/src/skills/catalog/schemas/handlers.rs
index 7d194cb758..d62e0f2f02 100644
--- a/crates/openhuman-core/src/skills/catalog/schemas/handlers.rs
+++ b/crates/openhuman-core/src/skills/catalog/schemas/handlers.rs
@@ -1,5 +1,6 @@
//! RPC handler functions for `openhuman.skill_registry_*` controllers.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::ControllerFuture;
diff --git a/crates/openhuman-core/src/skills/runtime/schemas.rs b/crates/openhuman-core/src/skills/runtime/schemas.rs
index 9c138a4549..6ccc1fd3fd 100644
--- a/crates/openhuman-core/src/skills/runtime/schemas.rs
+++ b/crates/openhuman-core/src/skills/runtime/schemas.rs
@@ -5,6 +5,7 @@
//! `skills_read_run_log` controllers in `skills/schemas/` wrap the same run
//! machinery; new scripts should call `skill_runtime_*` directly.
+use crate::core::runtime::DispatchCtx;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/skills/schemas/handlers.rs b/crates/openhuman-core/src/skills/schemas/handlers.rs
index e1b80ee8ba..4798a05946 100644
--- a/crates/openhuman-core/src/skills/schemas/handlers.rs
+++ b/crates/openhuman-core/src/skills/schemas/handlers.rs
@@ -5,6 +5,7 @@
//! `ops.rs` and skill execution lives in `skill_runtime`; this layer is
//! intentionally thin.
+use crate::core::runtime::DispatchCtx;
use std::path::Path;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/skills/webhooks/schemas.rs b/crates/openhuman-core/src/skills/webhooks/schemas.rs
index ad736f659d..5089cb60ca 100644
--- a/crates/openhuman-core/src/skills/webhooks/schemas.rs
+++ b/crates/openhuman-core/src/skills/webhooks/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde::Deserialize;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/threads/schemas/handlers.rs b/crates/openhuman-core/src/threads/schemas/handlers.rs
index 5dcfb231ca..8b9bdc4014 100644
--- a/crates/openhuman-core/src/threads/schemas/handlers.rs
+++ b/crates/openhuman-core/src/threads/schemas/handlers.rs
@@ -1,5 +1,6 @@
//! Thin JSON-RPC handlers that parse params and delegate to [`super::super::ops`].
+use crate::core::runtime::DispatchCtx;
use serde::de::DeserializeOwned;
use serde_json::{Map, Value};
diff --git a/crates/openhuman-core/src/tools/registry/schemas.rs b/crates/openhuman-core/src/tools/registry/schemas.rs
index fa03960f73..44dff7a54a 100644
--- a/crates/openhuman-core/src/tools/registry/schemas.rs
+++ b/crates/openhuman-core/src/tools/registry/schemas.rs
@@ -1,3 +1,4 @@
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};
diff --git a/crates/openhuman-core/src/tools/schemas/composio.rs b/crates/openhuman-core/src/tools/schemas/composio.rs
index ec0481730c..f56a14abd6 100644
--- a/crates/openhuman-core/src/tools/schemas/composio.rs
+++ b/crates/openhuman-core/src/tools/schemas/composio.rs
@@ -1,5 +1,6 @@
//! Handler for the `tools_composio_execute` controller schema.
+use crate::core::runtime::DispatchCtx;
use serde_json::{json, Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/tools/schemas/web_search.rs b/crates/openhuman-core/src/tools/schemas/web_search.rs
index 9ca4c89297..0cf28259b5 100644
--- a/crates/openhuman-core/src/tools/schemas/web_search.rs
+++ b/crates/openhuman-core/src/tools/schemas/web_search.rs
@@ -3,6 +3,7 @@
//! MCP clients use. All of them call the TinySearch module's role tools, so an
//! RPC caller gets the same provider choice and fallback as the agent.
+use crate::core::runtime::DispatchCtx;
use serde_json::{json, Map, Value};
use crate::config::rpc as config_rpc;
diff --git a/crates/openhuman-core/src/web_chat/schemas.rs b/crates/openhuman-core/src/web_chat/schemas.rs
index 41b338a1b3..c183bf9e15 100644
--- a/crates/openhuman-core/src/web_chat/schemas.rs
+++ b/crates/openhuman-core/src/web_chat/schemas.rs
@@ -2,6 +2,7 @@
//! RPC namespace: `web_chat`, `web_cancel`, `web_queue_status`,
//! `web_queue_clear`.
+use crate::core::runtime::DispatchCtx;
use serde_json::{Map, Value};
use crate::core::all::{ControllerFuture, RegisteredController};