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
docs: update references from `core::socketio` to `openhuman_rpc::server::socketio`
Steven Enamakel9aaefdd17e07
diff --git a/app/src/overlay/OverlayApp.tsx b/app/src/overlay/OverlayApp.tsxindex dab7e97c7e..428091d9fa 100644--- a/app/src/overlay/OverlayApp.tsx+++ b/app/src/overlay/OverlayApp.tsx@@ -18,7 +18,7 @@* 2. **Attention message** — when the core (subconscious loop, heartbeat,* …) publishes an `OverlayAttentionEvent` via* `openhuman::overlay::publish_attention(...)`. The bridge in- * `core::socketio` forwards this as an `overlay:attention` event.+ * `openhuman_rpc::server::socketio` forwards this as an `overlay:attention` event.* The bubble auto-dismisses after its ttl.** There is **no** demo loop — the overlay is entirely event-driven.diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.mdindex 4dc20afe68..7577bb3f98 100644--- a/crates/openhuman-core/src/agent/README.md+++ b/crates/openhuman-core/src/agent/README.md@@ -50,7 +50,7 @@ Flat files: `bus.rs` (`agent.run_turn` native request handler), `context_breakdo`agent`, `agent_registry`, `harness_init`, `session_import`, `plan_review`, `run_ledger` (session_db), `agent_experience` (experience), `ai` (artifacts), `learning`, `agent_team`, `agent_work` (orchestration/command_center), `workflow_run`, `worktree`, `subagent` (orchestration/subagent_control): all registered under `DomainGroup::Agent` in `core/all.rs`.-`crate::rpc` is `pub use openhuman_rpc as rpc` in `lib.rs`; shared RPC contracts, response decoding, and the HTTP client live in the separate `crates/openhuman-rpc` crate, not under `agent/`.+`crate::core::Outcome` is the controller result type; the JSON-RPC protocol, client and server that expose controllers live in the separate `crates/openhuman-rpc` crate, which depends on this one.## Calls intodiff --git a/crates/openhuman-core/src/agent/learning/README.md b/crates/openhuman-core/src/agent/learning/README.mdindex 1701354dec..2310f00a04 100644--- a/crates/openhuman-core/src/agent/learning/README.md+++ b/crates/openhuman-core/src/agent/learning/README.md@@ -107,7 +107,7 @@ These are subscriber registrations rather than a single `bus.rs`; subscriptions- `crate::integrations::composio`: `composio::client` (Gmail fetch for enrichment) and `composio::profile_md` (`replace_managed_block` for `PROFILE.md`).- `crate::integrations`: `build_client` / `IntegrationClient` for the Apify scrape call.- `crate::core::bus` / `crate::core::events` / `tinybus`: `BUS.publish` / `BUS.subscribe`, `DomainEvent::CacheRebuilt`, and `tinybus::{EventHandler, SubscriptionHandle}`.-- `crate::core::all` / `crate::rpc`: controller registry types (`RegisteredController`, `ControllerFuture`) and `Outcome` (the latter re-exported from the `openhuman-rpc` crate via `pub use openhuman_rpc as rpc` in `lib.rs`).+- `crate::core::all` / `crate::core`: controller registry types (`RegisteredController`, `ControllerFuture`) and `Outcome`.## Used bydiff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex 83bb93fda2..1dc2f67b32 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -697,7 +697,7 @@ pub enum DomainEvent {/// (`web_chat::event_bus::ApprovalSurfaceSubscriber`)/// silently drops it (that gap was the original silent-deadlock bug)./// Published by `ApprovalGate::intercept_audited` alongside the existing- /// `ApprovalRequested`, bridged by `core::socketio` directly to a+ /// `ApprovalRequested`, bridged by `openhuman_rpc::server::socketio` directly to a/// broadcast (not per-room) `flow_approval_request` Socket.IO event so/// the Workflows UI can surface and resolve the park without polling.FlowApprovalRequested {diff --git a/crates/openhuman-core/src/desktop/notifications/README.md b/crates/openhuman-core/src/desktop/notifications/README.mdindex 57db78edc6..0cdb9439a7 100644--- a/crates/openhuman-core/src/desktop/notifications/README.md+++ b/crates/openhuman-core/src/desktop/notifications/README.md@@ -73,7 +73,7 @@ None. This domain owns no `tools.rs`.**Publishes**: `DomainEvent::NotificationTriaged` from `rpc::handle_ingest`'s background triage task (carries `id`, `provider`, `action`, `importance_score`, `latency_ms`, `routed`).-The bridge bus is a separate `tokio::sync::broadcast` channel (not the global event bus); `core::socketio` subscribes to it and forwards each event as the `core_notification` / `core:notification` Socket.IO message.+The bridge bus is a separate `tokio::sync::broadcast` channel (not the global event bus); `openhuman_rpc::server::socketio` subscribes to it and forwards each event as the `core_notification` / `core:notification` Socket.IO message.## Persistencediff --git a/crates/openhuman-core/src/desktop/notifications/bus.rs b/crates/openhuman-core/src/desktop/notifications/bus.rsindex 4e165a0a06..242fbdb767 100644--- a/crates/openhuman-core/src/desktop/notifications/bus.rs+++ b/crates/openhuman-core/src/desktop/notifications/bus.rs@@ -111,7 +111,7 @@ impl NotificationBridgeSubscriber {/// Whether a notification should reach connected clients.////// Storing an event under its own workspace is only half the answer. The- /// live path has no per-client routing at all — `core::socketio`'s bridge+ /// live path has no per-client routing at all — `openhuman_rpc::server::socketio`'s bridge/// emits `core_notification` to *every* connected client, and the banner/// prints the server's qualified name and its error — so a supervisor/// event from a workspace the user has switched away from would show onediff --git a/crates/openhuman-core/src/desktop/notifications/bus_tests_2_tests.rs b/crates/openhuman-core/src/desktop/notifications/bus_tests_2_tests.rsindex 7d76358dcd..f31e764451 100644--- a/crates/openhuman-core/src/desktop/notifications/bus_tests_2_tests.rs+++ b/crates/openhuman-core/src/desktop/notifications/bus_tests_2_tests.rs@@ -459,7 +459,7 @@ async fn an_outage_is_filed_under_its_own_workspace_not_the_bridge_s() {// ── Live announcement gating (#5931) ────────────────────────────────────────//// Routing the *store* by the event's workspace is only half the answer: the-// live path has no per-client routing at all (`core::socketio` emits+// live path has no per-client routing at all (`openhuman_rpc::server::socketio` emits// `core_notification` to every connected client), so an outage from a// workspace the user has switched away from would raise a banner naming that// workspace's server and its error inside the account they are in.diff --git a/crates/openhuman-core/src/http_host/README.md b/crates/openhuman-core/src/http_host/README.mdindex 3314fbc2e0..5b7cdd1ffe 100644--- a/crates/openhuman-core/src/http_host/README.md+++ b/crates/openhuman-core/src/http_host/README.md@@ -57,7 +57,7 @@ None on disk. Running servers are held in a process-global `HostedDirRegistry` (- `crate::core::shutdown`: `register` a one-time hook so all hosted servers stop when the core shuts down (`ops.rs`).- `crate::core::all`: `ControllerFuture`, `RegisteredController` for controller registration (`schemas.rs`).- `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller schema types (`schemas.rs`).-- `crate::core::Outcome`: RPC response envelope (`rpc.rs`); `crate::rpc` is the `openhuman-rpc` crate re-exported from `crates/openhuman-core/src/lib.rs`.+- `crate::core::Outcome`: controller result type (`rpc.rs`).- External crates: `axum` (HTTP server/router), `tokio` (`TcpListener`, tasks), `tokio_util` (`CancellationToken`, `ReaderStream`), `uuid`, `base64`, `rand`, `urlencoding`, `serde`/`serde_json`.## Used bydiff --git a/crates/openhuman-core/src/integrations/composio/README.md b/crates/openhuman-core/src/integrations/composio/README.mdindex 6202cd3e29..aa0c5e2636 100644--- a/crates/openhuman-core/src/integrations/composio/README.md+++ b/crates/openhuman-core/src/integrations/composio/README.md@@ -179,7 +179,7 @@ Published from `ops/` via `crate::core::bus::BUS.publish` (`crate::core::events:- `crate::core::all`: `ControllerFuture` / `RegisteredController` registry types.- `crate::core::bus` (`BUS`) / `crate::core::events::DomainEvent`: event publish/subscribe.- `crate::core::observability`: Sentry error classification/reporting.-- `crate::rpc`: `Outcome<T>`.+- `crate::core`: `Outcome<T>`.## Used bydiff --git a/crates/openhuman-core/src/runtime/node/README.md b/crates/openhuman-core/src/runtime/node/README.mdindex 623af40468..2bf3fd22d4 100644--- a/crates/openhuman-core/src/runtime/node/README.md+++ b/crates/openhuman-core/src/runtime/node/README.md@@ -105,7 +105,7 @@ This module reads `config.node` (`enabled`, `prefer_system`, `version`,- `crate::tools`, `security`, `agent::host_runtime`, `memory`: theregistry the bridge enumerates and executes.- `crate::core::bus::BUS` / `crate::core::events::DomainEvent`,- `crate::core::all`, `crate::rpc`: events and RPC plumbing.+ `crate::core::all`, `crate::core::Outcome`: events and controller plumbing.External crates: `tinyruntime-bus`, `tokio`, `anyhow`, `serde`/`serde_json`,`tracing`, `async-trait`. No HTTP client, no archive crates, and no digestdiff --git a/crates/openhuman-core/src/security/approval/README.md b/crates/openhuman-core/src/security/approval/README.mdindex 5d2cc5be73..55030f825b 100644--- a/crates/openhuman-core/src/security/approval/README.md+++ b/crates/openhuman-core/src/security/approval/README.md@@ -63,7 +63,7 @@ Published via `crate::core::bus::BUS.publish` with variants from `crate::core::e- `DomainEvent::ApprovalRequested { request_id, tool_name, action_summary, args_redacted, session_id, thread_id, client_id }`: emitted (`gate_intercept.rs`) when a call is parked. Bridged to the `approval_request` web-channel socket event by `ApprovalSurfaceSubscriber` (defined in `crates/openhuman-core/src/web_chat/`).- `DomainEvent::ApprovalDecided { request_id, tool_name, decision }`: emitted (`gate_state.rs`) when a decision is applied.-- `DomainEvent::FlowApprovalRequested { request_id, flow_id, run_id, tool_name, summary }`: emitted (`gate_intercept.rs`) alongside `ApprovalRequested` when the parked call has a `Workflow` origin. It carries no thread/client id, so `ApprovalSurfaceSubscriber` drops it; `core::socketio` broadcasts it as `flow_approval_request` for the Workflows UI.+- `DomainEvent::FlowApprovalRequested { request_id, flow_id, run_id, tool_name, summary }`: emitted (`gate_intercept.rs`) alongside `ApprovalRequested` when the parked call has a `Workflow` origin. It carries no thread/client id, so `ApprovalSurfaceSubscriber` drops it; `openhuman_rpc::server::socketio` broadcasts it as `flow_approval_request` for the Workflows UI.No `bus.rs` in this module. It only publishes; the subscriber (`ApprovalSurfaceSubscriber`) lives in `crates/openhuman-core/src/web_chat/event_bus.rs`.diff --git a/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs b/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rsindex c996c170f4..0b449e317f 100644--- a/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_origin_intercept_tests.rs@@ -504,7 +504,7 @@ async fn flow_origin_park_publishes_flow_approval_request_and_notification() {// no chat thread/client, so the generic `ApprovalRequested` event's// web-channel bridge silently drops it. This test asserts the two new// surfaces fire instead — the `flow_approval_request` DomainEvent- // (bridged to a broadcast Socket.IO event by `core::socketio`) and+ // (bridged to a broadcast Socket.IO event by `openhuman_rpc::server::socketio`) and// the `flow-gate-approval` CoreNotification with its three actions.crate::core::bus::init().await.expect("bus init");let mut event_rx = crate::core::bus::BUSdiff --git a/crates/openhuman-core/src/test_support/README.md b/crates/openhuman-core/src/test_support/README.mdindex 1b9a155da6..d6a9ae75b3 100644--- a/crates/openhuman-core/src/test_support/README.md+++ b/crates/openhuman-core/src/test_support/README.md@@ -62,7 +62,7 @@ This module owns no state of its own. It mutates and reads state owned by other- `crate::web3::wallet`: `prepared_quotes_for_test` and `PreparedTransaction` to snapshot prepared quotes.- `crate::core::all`: `ControllerFuture`, `RegisteredController` for handler wiring.- `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller schema types.-- `crate::core::Outcome`: standard RPC result envelope; `crate::rpc` is the `openhuman-rpc` crate re-exported by `pub use openhuman_rpc as rpc;` in `crates/openhuman-core/src/lib.rs`.+- `crate::core::Outcome`: the controller result type.## Used bydiff --git a/crates/openhuman-core/src/web_chat/event_bus.rs b/crates/openhuman-core/src/web_chat/event_bus.rsindex c2274786c2..2560e4684f 100644--- a/crates/openhuman-core/src/web_chat/event_bus.rs+++ b/crates/openhuman-core/src/web_chat/event_bus.rs@@ -535,7 +535,7 @@ pub fn fresh_approval_surface_subscription() -> Option<SubscriptionHandle> {/// Build the `approval_request` web-channel event for a parked approval.////// Shared by the live surface below (on `ApprovalRequested`) and by the replay-/// path in `core::socketio` (a socket joining a thread room that already has an+/// path in `openhuman_rpc::server::socketio` (a socket joining a thread room that already has an/// approval parked on it). One constructor so a client that missed the live/// emit is handed a byte-identical payload rather than a second shape kept in/// step by hand.@@ -565,7 +565,7 @@ pub fn approval_request_event(/// Build the `plan_review_request` web-channel event for a parked plan/// review. Shared by the live surface below (on `PlanReviewRequested`) and by-/// the replay path in `core::socketio` (a socket joining a thread room that+/// the replay path in `openhuman_rpc::server::socketio` (a socket joining a thread room that/// already has a review parked on it) — one constructor so a client that/// missed the live emit is handed a byte-identical payload.pub fn plan_review_request_event(diff --git a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs b/crates/openhuman-core/src/web_chat/ops/channel_ops.rsindex dbc3b1d309..461fc79cca 100644--- a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs+++ b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs@@ -183,7 +183,7 @@ pub async fn channel_web_chat(metadata: ChatRequestMetadata,) -> Result<Outcome<Value>, String> {// Mirrors the socket `chat:start` payload's `run_mode` handling- // (`core::socketio`): apply it before starting the turn so+ // (`openhuman_rpc::server::socketio`): apply it before starting the turn so// `plan_mode_middleware` sees the requested mode from the first tool// check of this turn, rather than racing a separate// `agent.set_run_mode` RPC. Unrecognized values are logged and ignoreddiff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rsindex 0f3c50b136..34855050bd 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs@@ -146,7 +146,7 @@ fn interim_narration_text(buffer: &str) -> Option<String> {/// Current wall-clock time as Unix-epoch milliseconds, used to stamp tracing/// spans (issue #3886). Saturates to `0` if the clock is before the epoch.///-/// `pub(crate)` so `web_chat::event_bus` and `core::socketio` can stamp+/// `pub(crate)` so `web_chat::event_bus` and `openhuman_rpc::server::socketio` can stamp/// `WebChannelEvent.ts` with the same clock instead of keeping a second/// epoch-ms helper in step by hand.pub fn unix_epoch_ms() -> u64 {diff --git a/gitbooks/developing/architecture/agent-harness.md b/gitbooks/developing/architecture/agent-harness.mdindex e796b4407a..87971695f0 100644--- a/gitbooks/developing/architecture/agent-harness.md+++ b/gitbooks/developing/architecture/agent-harness.md@@ -534,7 +534,7 @@ When the backend doesn't surface a charged amount (older builds, providers thatThe assistant-ui-elements integration added a batch of additive `WebChannelEvent`s and RPCs so the frontend can render tool args/timing, plan/goal/queue state, and turn lifecycle without polling. `EVENTS_VERSION` (`core/bus.rs`) is `1.4.0`; every new field is optional/defaulted so an older subscriber keeps parsing what a newer publisher emits.-**New/extended socket events** (bridged from `DomainEvent` onto `WebChannelEvent` by `web_chat::event_bus` and `core::socketio`):+**New/extended socket events** (bridged from `DomainEvent` onto `WebChannelEvent` by `web_chat::event_bus` and `openhuman_rpc::server::socketio`):- `ts` (epoch ms) is now stamped on every event by `publish_web_channel_event` when the producer left it unset, so the frontend can order/measure latency without guessing at receive time.- `chat_done.timing` - `{ first_token_ms, first_tool_ms, total_ms, tokens_per_second }`, threaded from the progress bridge's per-turn `TurnTiming` through `ProgressBridgeHandle::timing_snapshot()`. `tokens_per_second` is derived from `output_tokens / (total_ms / 1000)` when both are known and `total_ms > 0`.