The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: update stale code references after jsonrpc module refactor
Steven Enamakel104ff57411c8
diff --git a/crates/openhuman-cli/src/main.rs b/crates/openhuman-cli/src/main.rsindex f61c593c65..56702c414f 100644--- a/crates/openhuman-cli/src/main.rs+++ b/crates/openhuman-cli/src/main.rs@@ -171,7 +171,7 @@ fn main() {// lives at the call sites (`openhuman::inference::provider::ops::api_error`// publishes a SessionExpired event_bus signal and short-circuits;// the rpc dispatcher's `is_session_expired_error` skip-path in- // `crates/openhuman-core/src/core/jsonrpc.rs` redirects to a tracing::info). This+ // `crates/openhuman-core/src/core/jsonrpc/http/rpc_handler.rs` redirects to a tracing::info). This// filter catches any future call site that re-emits the same// shape — keeping OPENHUMAN-TAURI-25 / -1Q / -27 / -1G off// Sentry permanently (~185 events/day combined).diff --git a/crates/openhuman-core/src/agent/learning/startup.rs b/crates/openhuman-core/src/agent/learning/startup.rsindex c644c4f9bb..dd85c0f8a9 100644--- a/crates/openhuman-core/src/agent/learning/startup.rs+++ b/crates/openhuman-core/src/agent/learning/startup.rs@@ -20,7 +20,7 @@//! result, channel-less users silently got **no** learning at all.//!//! [`register_learning_subscribers`] is invoked from the always-on Platform-//! boot path (`core::jsonrpc::register_domain_subscribers`, the unconditional+//! boot path (`core::runtime::subscribers::register_domain_subscribers`, the unconditional//! `DomainGroup::Platform` block), where the memory client and workspace dir are//! already available. Registration is idempotent, so both boot paths (and repeat//! calls) install each subscriber exactly once.diff --git a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rsindex 167683eb88..1a9c424859 100644--- a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs@@ -111,7 +111,7 @@ async fn start_channels_inner(mut config: Config) -> Result<()> {crate::agent::bus::register_agent_handlers();// The Phase 2/3/4 self-improvement subscribers (email-signature producer,// rebuild trigger, ProfileMdRenderer) are registered in- // core::jsonrpc::register_domain_subscribers instead. start_channels is+ // core::runtime::subscribers::register_domain_subscribers instead. start_channels is// skipped when no channel is configured, so wiring them here silently// dropped user-profile inference for channel-less users (#5003).@@ -189,7 +189,7 @@ async fn start_channels_inner(mut config: Config) -> Result<()> {config.action_dir.clone(),);// NOTE: the live tool-execution timeout seed is done in- // `core::jsonrpc::register_domain_subscribers` (unconditional core boot), NOT+ // `core::runtime::subscribers::register_domain_subscribers` (unconditional core boot), NOT// here — `start_channels` is skipped when no channel is configured or// `OPENHUMAN_DISABLE_CHANNEL_LISTENERS` is set, which would otherwise leave// channel-less / web-chat-only cores running the default timeout instead of the@@ -449,7 +449,7 @@ async fn start_channels_inner(mut config: Config) -> Result<()> {crate::cron::bus::CronDeliverySubscriber::new(Arc::clone(&channels_by_name)),));// NOTE: the flows `FlowTriggerSubscriber` is registered in- // `jsonrpc.rs::register_domain_subscribers` (unconditional core boot), NOT+ // `runtime/subscribers.rs::register_domain_subscribers` (unconditional core boot), NOT// here — `start_channels` is skipped when no channel is configured or// `OPENHUMAN_DISABLE_CHANNEL_LISTENERS` is set, which would otherwise leave// schedule/app-event workflows undispatched (issue B2 review).diff --git a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rsindex acbb25c38c..2ae1211957 100644--- a/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs+++ b/crates/openhuman-core/src/core/observability_error_classification_core_tests.rs@@ -188,7 +188,7 @@ fn classifies_mcp_connect_401_as_needs_auth() {/// turn-killing failure in the same session emitted zero (#5804).////// The bare message was already demoted at the RPC boundary by-/// `jsonrpc::is_wallet_not_configured_error`, which is exact equality — so+/// `jsonrpc::classify::is_wallet_not_configured_error`, which is exact equality — so/// a single caller adding context defeated it. The observed wrap is/// `self_identity key_status: {e}`, but nothing about the fix is specific/// to that method: the classifier is substring-based, so it must hold fordiff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rsindex 3e52caf6a8..72007d0158 100644--- a/crates/openhuman-core/src/core/runtime/services.rs+++ b/crates/openhuman-core/src/core/runtime/services.rs@@ -1,7 +1,7 @@//! Background service spawns.//!//! Extracted (Phase 0 — pure motion) from the inline `tokio::spawn` blocks that-//! used to live in `run_server_inner` (`crates/openhuman-core/src/core/jsonrpc.rs`, ~lines 2050-2191).+//! used to live in `run_server_inner` (then in `crates/openhuman-core/src/core/jsonrpc.rs`).//! Each function spawns one long-lived background service as a detached task,//! preserving the exact gating and behavior of the original inline block.//!diff --git a/crates/openhuman-core/src/core/shutdown.rs b/crates/openhuman-core/src/core/shutdown.rsindex 1572fc6dca..be2ed2fc3d 100644--- a/crates/openhuman-core/src/core/shutdown.rs+++ b/crates/openhuman-core/src/core/shutdown.rs@@ -3,7 +3,7 @@//! Provides a shutdown signal that listens for SIGINT (Ctrl-C) **and** SIGTERM//! (on Unix), then runs registered cleanup hooks before the process exits.//! Domain-specific cleanup (autocomplete, voice, etc.) registers itself here-//! so `jsonrpc.rs` stays transport-only.+//! so `core/jsonrpc/` stays transport-only.use std::future::Future;use std::pin::Pin;diff --git a/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs b/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rsindex 23280e72f1..62964f4f43 100644--- a/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_gate/gate_tests.rs@@ -73,14 +73,14 @@ async fn second_waiter_blocks_until_first_drops() {}// `SignedOutTestGuard` lives at module scope (above) so cross-module-// tests (e.g. `core::jsonrpc::tests::shutdown_token_*`) can use it+// tests (e.g. `core::jsonrpc::server::tests::shutdown_token_*`) can use it// too. The local re-import keeps the existing tests below readable// without fully-qualified paths.use super::SignedOutTestGuard;/// Bail out if a cross-module test in the same lib-test binary has/// already promoted [`STATE`] to `Some` via `init_global` (notably-/// `core::jsonrpc::tests::shutdown_token_*`, which boots the embedded+/// `core::jsonrpc::server::tests::shutdown_token_*`, which boots the embedded/// server). `STATE` is an `OnceLock` with no reset, so these/// `*_when_gate_uninit` regression tests are inherently order-sensitive/// — they only have meaning when `STATE.is_none()`. Skipping whendiff --git a/crates/openhuman-core/src/integrations/client/errors.rs b/crates/openhuman-core/src/integrations/client/errors.rsindex 7a22186153..ace25116b4 100644--- a/crates/openhuman-core/src/integrations/client/errors.rs+++ b/crates/openhuman-core/src/integrations/client/errors.rs@@ -82,7 +82,7 @@ pub(crate) fn extract_error_detail(body: &str, max_bytes: usize) -> String {/// 1. Build a `SESSION_EXPIRED:`-prefixed message so it (a) classifies as/// [`crate::core::observability::ExpectedErrorKind::SessionExpired`] and/// stays demoted from Sentry, and (b) is recognised by-/// `core::jsonrpc::is_session_expired_error` *if* it ever propagates up to+/// `core::jsonrpc::classify::is_session_expired_error` *if* it ever propagates up to/// the RPC boundary./// 2. **Publish `DomainEvent::SessionExpired` directly.** The autonomous agent/// tool path converts tool errors into a `role:tool` result string fed backdiff --git a/crates/openhuman-core/src/platform/service/bus.rs b/crates/openhuman-core/src/platform/service/bus.rsindex df85cbaf53..83d097d92e 100644--- a/crates/openhuman-core/src/platform/service/bus.rs+++ b/crates/openhuman-core/src/platform/service/bus.rs@@ -20,7 +20,7 @@ static SHUTDOWN_HANDLE: OnceLock<SubscriptionHandle> = OnceLock::new();////// Idempotent: subsequent calls return immediately if the subscriber is already/// registered. Owned by the service domain — called from the shared subscriber-/// bootstrap so jsonrpc.rs stays transport-focused.+/// bootstrap so the JSON-RPC transport stays transport-focused.pub fn register_restart_subscriber() {if RESTART_HANDLE.get().is_some() {return;@@ -41,7 +41,7 @@ pub fn register_restart_subscriber() {/// Register the [`ShutdownSubscriber`] on the global event bus.////// Mirrors [`register_restart_subscriber`] — idempotent, owned by the service-/// domain, called from the shared subscriber bootstrap in `jsonrpc.rs`.+/// domain, called from the shared subscriber bootstrap in `core/runtime/subscribers.rs`.pub fn register_shutdown_subscriber() {if SHUTDOWN_HANDLE.get().is_some() {return;diff --git a/crates/openhuman-core/src/skills/bus.rs b/crates/openhuman-core/src/skills/bus.rsindex d3c15e704d..15bea5a2c8 100644--- a/crates/openhuman-core/src/skills/bus.rs+++ b/crates/openhuman-core/src/skills/bus.rs@@ -239,7 +239,7 @@ static TRIGGERED_WORKFLOW_HANDLE: OnceLock<Option<SubscriptionHandle>> = OnceLoc/// from every startup path.////// Both [`crate::channels::start_channels`] (messaging cores) and-/// [`crate::core::jsonrpc::bootstrap_core_runtime`] (always-run serve boot)+/// `crate::core::runtime::bootstrap::bootstrap_core_runtime` (always-run serve boot)/// invoke this. `start_channels` is skipped for web-chat-only desktop installs/// (no messaging integration connected) and when/// `OPENHUMAN_DISABLE_CHANNEL_LISTENERS=1`; registering fromdiff --git a/crates/openhuman-core/src/tools/timeout/README.md b/crates/openhuman-core/src/tools/timeout/README.mdindex 3a0b3e08fe..9a94352677 100644--- a/crates/openhuman-core/src/tools/timeout/README.md+++ b/crates/openhuman-core/src/tools/timeout/README.md@@ -7,7 +7,7 @@ Process-wide wall-clock timeout policy for tool execution (the node/tool runtimeHighest precedence first:1. `OPENHUMAN_TOOL_TIMEOUT_SECS` environment variable — operator override. When set to a valid value (`1..=3600`) it always wins; config pushes are ignored while it is present.-2. The persisted config value (`[agent].agent_timeout_secs`), pushed in via `set_tool_timeout_secs` at startup (from `core::jsonrpc::register_domain_subscribers`, the always-on core boot path) and on every `config.update_agent_settings` RPC.+2. The persisted config value (`[agent].agent_timeout_secs`), pushed in via `set_tool_timeout_secs` at startup (from `core::runtime::subscribers::register_domain_subscribers`, the always-on core boot path) and on every `config.update_agent_settings` RPC.3. The built-in `DEFAULT_TIMEOUT_SECS` (`120`) default.## Responsibilitiesdiff --git a/crates/openhuman-core/src/voice/stub.rs b/crates/openhuman-core/src/voice/stub.rsindex 5a234fa0e8..5f46ef1e29 100644--- a/crates/openhuman-core/src/voice/stub.rs+++ b/crates/openhuman-core/src/voice/stub.rs@@ -192,7 +192,7 @@ pub mod always_on {// streaming::handle_dictation_ws (provided by the real voice host adapter)// ----------------------------------------------------------------------------// axum-only, and its sole caller (`core::jsonrpc::dictation_ws_handler`) is+// axum-only, and its sole caller (`core::jsonrpc::http::dictation::dictation_ws_handler`) is// gated the same way, so the stub's dictation-WS surface is exclusive to the// `http-server` feature too (#5048): voice-OFF + http-server-OFF needs no// `voice::streaming` at all.diff --git a/crates/openhuman-tinyhumans/src/hosted/team/README.md b/crates/openhuman-tinyhumans/src/hosted/team/README.mdindex dae43943f5..bd3bcb6417 100644--- a/crates/openhuman-tinyhumans/src/hosted/team/README.md+++ b/crates/openhuman-tinyhumans/src/hosted/team/README.md@@ -78,7 +78,7 @@ None local. State lives in the hosted backend. The only stored value it reads is## Used by-- `crates/openhuman-core/src/core/all.rs` — registers `all_team_registered_controllers()` into the controller registry and `all_team_controller_schemas()` into the schema list (the standard controller-only exposure path). No domain branches in `cli.rs` / `jsonrpc.rs`.+- `crates/openhuman-core/src/core/all.rs` — registers `all_team_registered_controllers()` into the controller registry and `all_team_controller_schemas()` into the schema list (the standard controller-only exposure path). No domain branches in `cli.rs` / `jsonrpc/`.## Notes / gotchas