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: files changed crates/openhuman-core/src/core/rpc_log.rs,crates/openhuman-core/src/desktop/not
Steven Enamakelad623d5eb360
diff --git a/crates/openhuman-core/src/core/rpc_log.rs b/crates/openhuman-core/src/core/rpc_log.rsindex 674c382ad5..d83660dd59 100644--- a/crates/openhuman-core/src/core/rpc_log.rs+++ b/crates/openhuman-core/src/core/rpc_log.rs@@ -1,3 +1,18 @@+//! Request-id formatting and parameter redaction for RPC log lines.+//!+//! Used by `core::dispatch`'s `[rpc:dispatch]` trace logs and by+//! `core::jsonrpc` when logging request/response summaries, so that neither+//! call site has to re-implement redaction. [`redact_params_for_log`] and+//! [`redact_result_for_trace`] strip the same set of sensitive keys —+//! `api_key`, `apikey`, `token`, `access_token`, `refresh_token`,+//! `authorization`, `password`, `secret`, `client_secret` — from JSON objects+//! (recursing into nested objects/arrays) before a log line is emitted, since+//! `serde_json::Value` params/results routinely embed provider credentials.+//!+//! This is the log-side counterpart of `core::log_redaction::scrub_secrets`,+//! which pattern-matches secrets embedded in free-text error strings; this+//! module instead redacts by JSON *key name* in structured params/results.+use serde_json::Value;/// Formats a JSON-RPC request ID into a human-readable string.diff --git a/crates/openhuman-core/src/desktop/notifications/README.md b/crates/openhuman-core/src/desktop/notifications/README.mdindex 7c19a89d71..80ed6d7c20 100644--- a/crates/openhuman-core/src/desktop/notifications/README.md+++ b/crates/openhuman-core/src/desktop/notifications/README.md@@ -85,7 +85,7 @@ SQLite DB at `{workspace_dir}/notifications/notifications.db`, opened per-call v## Dependencies-- `crate::core::event_bus` — `DomainEvent`, `EventHandler`, `publish_global`, `subscribe_global` for bridge subscription and triage-result publishing.+- `crate::core::bus::BUS` and `crate::core::events::DomainEvent` — `EventHandler`, `BUS.publish`, `BUS.subscribe` for bridge subscription and triage-result publishing.- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core` (`ControllerSchema`, `FieldSchema`, `TypeSchema`) — controller registry contract.- `crate::config` — `Config` (workspace dir for the DB path) and `config::rpc::load_config_with_timeout` in handlers.- `crate::agent::triage` — `run_triage`, `apply_decision`, `TriageOutcome`, `TriggerEnvelope`, `TriggerSource`, `TriageAction` for the background scoring/routing pipeline.@@ -97,7 +97,7 @@ SQLite DB at `{workspace_dir}/notifications/notifications.db`, opened per-call v- `crates/openhuman-core/src/core/all.rs` — registers the controllers/schemas into the RPC registry.- `crates/openhuman-core/src/core/jsonrpc.rs` — calls `register_notification_bridge_subscriber()` at startup.- `crates/openhuman-core/src/core/socketio.rs` — calls `subscribe_core_notifications()` to forward events to web clients.-- `crates/openhuman-core/src/cron/scheduler.rs` and `crates/openhuman-core/src/heartbeat/planner/*` reference the notification surface (e.g. triggering/observing notifications).+- `crates/openhuman-core/src/cron/scheduler_part_03.rs` and its test siblings — read `notifications::store` directly to list cron-triggered notifications.## Notes / gotchasdiff --git a/crates/openhuman-core/src/platform/connectivity/README.md b/crates/openhuman-core/src/platform/connectivity/README.mdindex 31e29b974c..9d0380351b 100644--- a/crates/openhuman-core/src/platform/connectivity/README.md+++ b/crates/openhuman-core/src/platform/connectivity/README.md@@ -51,7 +51,7 @@ None — the module holds no state. The diag snapshot reads only the environment- `crates/openhuman-core/src/core/all.rs` — registers the controller (`all_connectivity_registered_controllers`) and schema (`all_connectivity_controller_schemas`), and routes the `"connectivity"` namespace.- `crates/openhuman-core/src/core/jsonrpc.rs` — calls `connectivity::rpc::pick_listen_port_for_host(...)` during core bind to select the embedded HTTP listener port; afterward syncs `OPENHUMAN_CORE_RPC_URL` to the actual bound port so `resolve_listen_port()` (and thus `connectivity_diag`) reports the live listener after a fallback.-- `crates/openhuman-core/src/mod.rs` — declares the module.+- `crates/openhuman-core/src/platform/mod.rs` — declares the module.## Notes / gotchasdiff --git a/crates/openhuman-core/src/test_support/README.md b/crates/openhuman-core/src/test_support/README.mdindex 330ec31715..117d7190b7 100644--- a/crates/openhuman-core/src/test_support/README.md+++ b/crates/openhuman-core/src/test_support/README.md@@ -15,8 +15,10 @@ Test-support domain: wipe-and-reset plus read-only introspection RPCs that let E| File | Role || --- | --- || `crates/openhuman-core/src/test_support/mod.rs` | Export-only module: declares `introspect`, `rpc`, `schemas`; re-exports `all_test_support_controller_schemas` / `all_test_support_registered_controllers`. |-| `crates/openhuman-core/src/test_support/rpc.rs` | `openhuman.test_reset` implementation — `reset()` wipes cron, memory tree, config fields, and active user; returns a `ResetSummary`. Includes the `OPENHUMAN_E2E_MODE` guard and inline tests. |+| `crates/openhuman-core/src/test_support/rpc.rs` | `openhuman.test_reset` implementation — `reset()` wipes cron, memory tree, config fields, and active user; returns a `ResetSummary`. Includes the `OPENHUMAN_E2E_MODE` guard. |+| `crates/openhuman-core/src/test_support/rpc_tests.rs` | Behavior tests for `rpc::reset` (the `OPENHUMAN_E2E_MODE` guard, wipe coverage). || `crates/openhuman-core/src/test_support/introspect.rs` | Read-only introspection RPCs: `workspace_root`, `list_workspace_files`, `read_workspace_file`, `in_flight_chats`, `wallet_prepared_quotes`, plus the `resolve_workspace_relative` path guard and BFS `walk_dir`. |+| `crates/openhuman-core/src/test_support/introspect_tests.rs` | Behavior tests for the introspection RPCs and the path-jail guard. || `crates/openhuman-core/src/test_support/schemas.rs` | `ControllerSchema` definitions, the registered-controller list, and `handle_*` dispatchers that delegate to `rpc`/`introspect` and serialize via `RpcOutcome::into_cli_compatible_json`. |## Public surface@@ -65,7 +67,7 @@ This module owns no state of its own — it mutates/reads state owned by other d## Used by- `crates/openhuman-core/src/core/all.rs` — registers this module's controllers and schemas into the global RPC registry (`all_test_support_registered_controllers` / `all_test_support_controller_schemas`).-- `crates/openhuman-core/src/mod.rs` — declares `pub mod test_support`.+- `crates/openhuman-core/src/lib.rs` — declares `pub mod test_support;` behind `#[cfg(feature = "e2e-test-support")]`. The feature is off in the contributor default set (`default = [...]` in `crates/openhuman-core/Cargo.toml`) and absent from `scripts/ci/product-features.txt`; only the E2E build (`app/scripts/e2e-build.sh`) turns it on, so shipped and default-cargo builds don't compile this module at all.- Consumed at runtime by E2E specs (WDIO) calling `openhuman.test_reset` and `openhuman.test_support_*` over JSON-RPC.## Notes / gotchasdiff --git a/crates/openhuman-core/src/util/mod.rs b/crates/openhuman-core/src/util/mod.rsindex 6ca55ff660..3531d98c79 100644--- a/crates/openhuman-core/src/util/mod.rs+++ b/crates/openhuman-core/src/util/mod.rs@@ -11,9 +11,11 @@//! - [`tls`] — TLS client/connector construction//! - [`types`] — shared utility types//!-//! Everything is re-exported at the module root, so the pre-reorg-//! `openhuman::util::<fn>` paths (including the `truncate_with_ellipsis`-//! doctest) still resolve.+//! Everything is re-exported at the module root, so+//! `crate::util::<fn>` paths (including the `truncate_with_ellipsis`+//! doctest) resolve without naming the submodule.+//!+//! See [`README.md`](README.md) for a per-file breakdown./// BM25 ranking over short documents, shared by `tool_search` and/// `skill_search`. Deliberately names nothing from `crate::` — see its docs.diff --git a/crates/openhuman-core/src/util/tls/README.md b/crates/openhuman-core/src/util/tls/README.mdindex 55fc7478e3..01a2ea470c 100644--- a/crates/openhuman-core/src/util/tls/README.md+++ b/crates/openhuman-core/src/util/tls/README.md@@ -45,11 +45,11 @@ Every HTTP-client construction site that talks to external HTTPS endpoints, incl- `crates/openhuman-core/src/config/schema/proxy.rs` — proxy-aware client builders (primary + fallback).- `crates/openhuman-core/src/integrations/client.rs` and integration tools (`tools/searxng.rs`, `tools/brave.rs`, `tools/querit.rs`, `tools/seltz.rs`).-- `crates/openhuman-core/src/inference/provider/compatible.rs` — OpenAI-compatible inference provider clients.-- `crates/openhuman-core/src/integrations/composio/client.rs`, `crates/openhuman-core/src/desktop/app_state/ops.rs`.+- `crates/openhuman-core/src/search/tools/*.rs` (`tavily`, `exa`, `brave`, `searxng`, `querit`, `seltz`) — search-tool HTTP clients.+- `crates/openhuman-core/src/integrations/composio/client_part_01.rs`, `crates/openhuman-core/src/desktop/app_state/ops_part_01.rs`.- `crates/openhuman-core/src/api/rest.rs` (REST API client).-Registered in the domain tree via `pub mod tls;` in `crates/openhuman-core/src/mod.rs`.+Registered in the domain tree via `pub mod tls;` in `crates/openhuman-core/src/util/mod.rs`.## Notes / gotchasdiff --git a/docs/library-benchmarking.md b/docs/library-benchmarking.mdindex 44d94c991e..4e5cc2a23e 100644--- a/docs/library-benchmarking.md+++ b/docs/library-benchmarking.md@@ -140,12 +140,12 @@ visible directly.~42 MiB slim-build snapshot broken down as roughly 15.2 MiB private physicalfootprint, 3.18 MiB live heap, 18.7 MiB resident executable text, and ~9.4 MiBof resident-but-mostly-inactive malloc pages (allocator high-water-retention). See-`docs/resource-profiling-session-2026-07-21.md`-for the full breakdown, the executable-paging finding (a cold turn faults in-~15 MiB of previously nonresident OpenHuman code), and the warmed-process-control showing steady-state turns cost ~0.5-1.9 MiB once warm rather than-the ~26-31 MiB a cold turn costs. Use `library-bench.sh` for the RSS/duration+retention). See the original profiling session write-up (removed from the+tree; git history at `0017c58d86~1`) for the full breakdown, the+executable-paging finding (a cold turn faults in ~15 MiB of previously+nonresident OpenHuman code), and the warmed-process control showing+steady-state turns cost ~0.5-1.9 MiB once warm rather than the ~26-31 MiB a+cold turn costs. Use `library-bench.sh` for the RSS/durationheadline numbers, `library-cpu.sh` when CPU attribution is the question, and`library-heap.sh` only when RSS numbers need live-allocation attribution(accepting the dhat perturbation).@@ -369,6 +369,6 @@ attribution + cap before real 1000-agent runs), and p95 latency at N=500 on## See also-- `docs/resource-profiling-session-2026-07-21.md` — the full manual investigation (deep attribution, cold-path CPU, library-design implications, recommended optimization order).+- The original profiling session write-up (deep attribution, cold-path CPU, library-design implications, recommended optimization order) was removed from the tree; see git history at `0017c58d86~1`.- [`scripts/profile/README.md`](../scripts/profile/README.md) — script quick reference.- `crates/openhuman-core/src/bin/library_profile/main.rs` — the scenario implementations.diff --git a/docs/library-minimal-recipe.md b/docs/library-minimal-recipe.mdindex b9fe6fb49d..1e640a5ba3 100644--- a/docs/library-minimal-recipe.md+++ b/docs/library-minimal-recipe.md@@ -163,7 +163,7 @@ cargo test -p openhuman --lib --no-default-features --features "skills,flows" co# result: ok. 660 passed; 0 failed; 1 ignored; 10513 filtered out```-The both-ways gate tests in `src/core/all_tests.rs` (which assert dropped domains+The both-ways gate tests in `crates/openhuman-core/src/core/all_tests.rs` (which assert dropped domainsbecome unknown-method) pass under this recipe. No pre-existing failures.## CI note@@ -235,6 +235,7 @@ prioritization.- [`docs/library-benchmarking.md`](library-benchmarking.md) — the benchmarkenvironment, scenario definitions, and default/slim baselines.-- `docs/resource-profiling-session-2026-07-21.md`- — deep memory/CPU attribution (why RSS is mostly not live heap).+- The original profiling session write-up covering deep memory/CPU attribution+ (why RSS is mostly not live heap) was removed from the tree; see git history+ at `0017c58d86~1`.- AGENTS.md "Compile-time domain gates" — the per-gate behavior and dependency notes.