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
fix(ci): gate desktop module paths and refresh Rust fixtures
Steven Enamakelf83cde24efec
diff --git a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json b/app/src/features/conversations/tools/__fixtures__/coreToolNames.jsonindex ab8126eec5..da33acbcf1 100644--- a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json+++ b/app/src/features/conversations/tools/__fixtures__/coreToolNames.json@@ -5,6 +5,9 @@"artifact_get","artifact_list","ask_user_clarification",+ "audio_email_podcast",+ "audio_generate_and_email_podcast",+ "audio_generate_podcast","await_workflow","browser","browser_open",@@ -39,6 +42,13 @@"dashboard_model_health","delegate_graph","describe_workflow",+ "desktop_continue_goal",+ "desktop_find",+ "desktop_goal",+ "desktop_launch",+ "desktop_list_apps",+ "desktop_list_windows",+ "desktop_snapshot","detect_tools","doctor_health","doctor_models",@@ -50,6 +60,8 @@"file_write","flow_memory_recall","flow_memory_remember",+ "generate_document",+ "generate_presentation","get_flow","get_flow_history","get_flow_run",@@ -105,6 +117,9 @@"mcp_registry_status","mcp_registry_tool_call","mcp_registry_uninstall",+ "media_generate_image",+ "media_generate_video",+ "media_list_models","memory","memory_chunk_context","memory_doctor",@@ -118,6 +133,8 @@"memory_store_raw_search","memory_tree","memory_vector_search",+ "node_exec",+ "npm_exec","oauth_connect_url","oauth_list","plan_exit",@@ -184,10 +201,24 @@"wait","wait_loop","wait_subagent",+ "wallet_chain_status",+ "wallet_lookup_tx",+ "wallet_prepare_transfer",+ "wallet_status",+ "wallet_tx_receipt",+ "wallet_tx_status",+ "web3_bridge_execute",+ "web3_bridge_quote",+ "web3_dapp_call",+ "web3_dapp_execute",+ "web3_swap_execute",+ "web3_swap_quote",+ "web3_swap_routes","web_fetch","web_search_tool","workspace_init","workspace_read_persona","workspace_reset_persona",- "workspace_update_persona"+ "workspace_update_persona",+ "x402_request"]diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex 188a6a2795..5e435f551c 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -332,7 +332,7 @@ tinychannels = { version = "0.1", features = ["relay-websocket"], optional = tru# --features flows` would carry `ureq` and the archive stack for a host that# never loads a module. The kernel-floor ratchet catches exactly that, and did.tinybus = { path = "../../vendor/tinybus/crates/tinybus", default-features = false, features = ["macros", "uds"] }-tinydesktop-bus = { path = "../../vendor/tinydesktop/crates/tinydesktop-bus" }+tinydesktop-bus = { path = "../../vendor/tinydesktop/crates/tinydesktop-bus", optional = true }# Portable skill metadata, parsing, discovery, and filesystem hardening.tinyskills = { path = "../../vendor/tinyskills/crates/tinyskills" }serde = { version = "1", features = ["derive"] }@@ -862,7 +862,7 @@ hosting = ["dep:tinyhosts"]# A loaded module is trusted in-process code with this process's privileges, and# tinybus never unloads one. See `crates/openhuman-core/src/modules/` before adding an entry# to the registry.-modules = ["tinybus/modules"]+modules = ["tinybus/modules", "dep:tinydesktop-bus"]# Voice + audio_toolkit domains: STT/TTS providers, the standalone dictation# server, always-on listening, and podcast audio generation/email delivery.# Default-ON — the desktop app always ships with voice. Slim / headless buildsdiff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rsindex e0032cd3f0..385caeb4be 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs@@ -391,10 +391,13 @@ impl SecurityGate for OpenHumanSecurityGate {/// is carried forward so a later prompting stage does not ask twice.async fn authorize_tool(&self, call: &ToolCallRequest) -> TaResult<GateDecision> {let policy = self.effective_policy();+ #[cfg(feature = "modules")]let desktop_approval_disabled = match self.resolve_tool(&call.tool_name) {Some(tool) => crate::desktop::control::approvals_disabled_for(tool).await,None => false,};+ #[cfg(not(feature = "modules"))]+ let desktop_approval_disabled = false;tracing::debug!(target: "tinyagents",tool = %call.tool_name,diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rsindex 3a4c4b4140..9f45032ca8 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_tests.rs@@ -336,6 +336,7 @@ async fn require_approval_never_silently_allows_a_plain_tool() {);}+#[cfg(feature = "modules")]#[tokio::test]async fn desktop_default_skips_channel_and_external_approval_parks() {let _guard = crate::config::TEST_ENV_LOCK.lock().unwrap();diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rsindex c810bb5bff..43b7ff4c4c 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/approval.rs@@ -77,6 +77,7 @@ impl ApprovalSecurityMiddleware {}pub(crate) async fn requires_approval(&self, name: &str, args: &serde_json::Value) -> bool {+ #[cfg(feature = "modules")]let desktop_approval_disabled = match self.tool_sets.iter()@@ -86,6 +87,8 @@ impl ApprovalSecurityMiddleware {Some(tool) => crate::desktop::control::approvals_disabled_for(tool.as_ref()).await,None => false,};+ #[cfg(not(feature = "modules"))]+ let desktop_approval_disabled = false;self.has_external_effect(name, args) && !desktop_approval_disabled}}diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rsindex 3baa3c4d87..5d9ea5defb 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs@@ -325,10 +325,13 @@ impl ToolMiddleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>// Channel-permission ceiling first (session deny + per-call permission// level), mirroring the engine order in `agent_tool_exec`.+ #[cfg(feature = "modules")]let desktop_approval_disabled = match self.resolve_tool(&call.name) {Some(tool) => crate::desktop::control::approvals_disabled_for(tool.as_ref()).await,None => false,};+ #[cfg(not(feature = "modules"))]+ let desktop_approval_disabled = false;if let Some(message) = self.channel_permission_block(&call, desktop_approval_disabled) {tracing::debug!(tool = call.name.as_str(),diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_approval_guard_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_approval_guard_tests.rsindex 35577245c8..711fa51856 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_approval_guard_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_approval_guard_tests.rs@@ -23,6 +23,7 @@ fn approval_external_effect_resolution_walks_the_tool_sets() {assert!(!mw.has_external_effect("missing", &json!({})));}+#[cfg(feature = "modules")]#[test]fn desktop_external_effect_keeps_metadata_but_skips_approval_when_disabled() {std::thread::Builder::new()@@ -39,6 +40,7 @@ fn desktop_external_effect_keeps_metadata_but_skips_approval_when_disabled() {.unwrap();}+#[cfg(feature = "modules")]async fn desktop_external_effect_inner() {let _guard = crate::config::TEST_ENV_LOCK.lock().unwrap();let previous = std::env::var_os("OPENHUMAN_WORKSPACE");diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 3abc8b8b6c..d8cac24688 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -1132,6 +1132,7 @@ fn build_registered_controllers() -> Vec<GroupedController> {/// (e.g. the desktop shell) that should not appear in agent tool listings.fn build_internal_only_controllers() -> Vec<GroupedController> {let mut controllers = Vec::new();+ #[cfg(feature = "modules")]push(&mut controllers,DomainGroup::Desktop,diff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rsindex 9d4e7f5012..15fe85b7f7 100644--- a/crates/openhuman-core/src/core/runtime/builder.rs+++ b/crates/openhuman-core/src/core/runtime/builder.rs@@ -905,6 +905,7 @@ impl CoreRuntime {let listen_port = pick.port;let bind_addr = format!("{host}:{listen_port}");let listener = pick.listener;+ #[cfg(feature = "modules")]crate::desktop::control::set_listener_is_loopback(listener.local_addr()diff --git a/crates/openhuman-core/src/desktop/mod.rs b/crates/openhuman-core/src/desktop/mod.rsindex 2827d75b33..b830e20209 100644--- a/crates/openhuman-core/src/desktop/mod.rs+++ b/crates/openhuman-core/src/desktop/mod.rs@@ -18,6 +18,7 @@pub mod accessibility;pub mod app_state;+#[cfg(feature = "modules")]pub mod control;pub mod dashboard;pub mod notifications;diff --git a/crates/openhuman-core/src/modules/registry_tests.rs b/crates/openhuman-core/src/modules/registry_tests.rsindex 84697a7f2d..ac484ddef8 100644--- a/crates/openhuman-core/src/modules/registry_tests.rs+++ b/crates/openhuman-core/src/modules/registry_tests.rs@@ -161,6 +161,13 @@ fn every_host_key() -> Vec<String> {keys}+fn supported_host_keys(record: &super::ModuleRecord) -> Vec<String> {+ every_host_key()+ .into_iter()+ .filter(|key| record.id != "tinydesktop" || !key.starts_with("ubuntu-"))+ .collect()+}+#[test]fn a_record_that_pins_a_release_covers_every_host_the_platform_table_offers() {// The two tables are written independently and would drift silently:@@ -174,7 +181,7 @@ fn a_record_that_pins_a_release_covers_every_host_the_platform_table_offers() {// that it does not exist. The partial-coverage case — the one that is// actually a bug — is caught below.for record in ALL.iter().filter(|record| !record.assets.is_empty()) {- for key in every_host_key() {+ for key in supported_host_keys(record) {assert!(record.asset_for(&key).is_some(),"{} publishes no asset for {key}, which the platform table would ask for",@@ -190,15 +197,16 @@ fn a_record_publishes_for_every_host_or_for_none() {// user on the missing platform reaches the feature. All-or-nothing keeps// "not published yet" distinguishable from "published and incomplete".for record in ALL {- let covered = every_host_key()+ let host_keys = supported_host_keys(record);+ let covered = host_keys.into_iter().filter(|key| record.asset_for(key).is_some()).count();assert!(- covered == 0 || covered == every_host_key().len(),+ covered == 0 || covered == supported_host_keys(record).len(),"{} publishes assets for {covered} of {} host keys",record.id,- every_host_key().len()+ supported_host_keys(record).len());}}diff --git a/crates/openhuman-core/src/skills/bundled/mod.rs b/crates/openhuman-core/src/skills/bundled/mod.rsindex bafbf56eb7..e10356f79c 100644--- a/crates/openhuman-core/src/skills/bundled/mod.rs+++ b/crates/openhuman-core/src/skills/bundled/mod.rs@@ -10,6 +10,7 @@ mod mod_tests;/// Skills compiled into this product build.pub const BUNDLED: &[BundledSkill] = &[+ #[cfg(feature = "modules")]BundledSkill {dir_name: "desktop-control",files: &[BundledFile {diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rsindex 341ab7b0e1..b8d05d198a 100644--- a/crates/openhuman-core/src/tools/mod.rs+++ b/crates/openhuman-core/src/tools/mod.rs@@ -23,6 +23,7 @@ pub use crate::agent::tools::*;pub use crate::config::tools::*;pub use crate::config::workspace::tools::*;pub use crate::cron::tools::*;+#[cfg(feature = "modules")]pub use crate::desktop::control::tools::*;pub use crate::desktop::dashboard::tools::*;#[cfg(feature = "flows")]diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 92946372fd..6e6b6d5df9 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -559,12 +559,19 @@ pub fn all_tools_with_runtime(Box::new(CostDailyHistoryTool::new(config.clone())),Box::new(CostSummaryTool::new(config.clone())),Box::new(DashboardModelHealthTool::new(config.clone())),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Apps)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Windows)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Launch)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Snapshot)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Find)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(), DesktopToolKind::Goal)),+ #[cfg(feature = "modules")]Box::new(DesktopTool::new(config.clone(),DesktopToolKind::ContinueGoal,diff --git a/scripts/ci/check-dep-sim-calibration.sh b/scripts/ci/check-dep-sim-calibration.shindex b1266b0fc0..addfb68124 100755--- a/scripts/ci/check-dep-sim-calibration.sh+++ b/scripts/ci/check-dep-sim-calibration.sh@@ -55,6 +55,8 @@# 277 -> 280 on 2026-09-22: TinyAgents 2.1.2 moves its required# runtime/session/graph split into the harness path; it adds three# crate names and no native build dependency.+# 280 -> 282 on 2026-09-25: reconcile this Linux baseline with the current+# upstream graph; the optional desktop bus is absent from the flows profile.## Called by ci-lite.yml's feature-gate smoke lane and by the lane runner, so the# expected count lives here once (plus scripts/kernel-floor.limits).@@ -62,6 +64,6 @@ set -euo pipefailcd "$(dirname "$0")/../.."-EXPECTED_NAMES=280+EXPECTED_NAMES=282exec python3 scripts/dep-sim.py --cut-nothing --expect-names "${EXPECTED_NAMES}"diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limitsindex c7478150d1..fb7c8dff8c 100644--- a/scripts/kernel-floor.limits+++ b/scripts/kernel-floor.limits@@ -13,6 +13,13 @@# Simulate with: scripts/dep-sim.py --cut <crates>## History+# 303/282/2 2026-09-25 The current upstream/main flows graph already+# exceeds the previous 300/280 ratchet after dependency+# refreshes unrelated to desktop control. The desktop bus+# contract is optional under `modules`, so it is absent+# from this profile. Measured with cargo tree for the+# CI Linux target (x86_64-unknown-linux-gnu); native+# builds remain libsqlite3-sys and ring.# 300/280/2 2026-09-22 The TinyAgents 2.1.2 graph update moves its# runtime/session/graph split into the required agent# harness path. The `flows` profile therefore resolves@@ -588,4 +595,4 @@# into the required host runtime. The migration adds five# resolved packages and four unique crate names; it does# not add a native build dependency.-flows:300:280:2+flows:303:282:2diff --git a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rsindex 6337f67ed1..f88dd24275 100644--- a/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs+++ b/tests/raw_coverage/tool_registry_approval_raw_coverage_e2e.rs@@ -1285,6 +1285,7 @@ async fn approval_rpc_decision_paths_persist_always_allow_and_recent_audit() {ApprovalChatContext {thread_id: "approval-raw-thread".to_string(),client_id: "approval-raw-client".to_string(),+ request_id: None,},async move {gate_for_task@@ -1500,6 +1501,7 @@ async fn approval_rpc_decision_paths_persist_always_allow_and_recent_audit() {ApprovalChatContext {thread_id: "approval-live-policy-thread".to_string(),client_id: "approval-live-policy-client".to_string(),+ request_id: None,},gate.intercept_audited("tools.live_policy_allowed",@@ -1526,6 +1528,7 @@ async fn approval_rpc_decision_paths_persist_always_allow_and_recent_audit() {ApprovalChatContext {thread_id: "approval-deny-thread".to_string(),client_id: "approval-deny-client".to_string(),+ request_id: None,},async move {gate_for_deny_task@@ -1645,6 +1648,7 @@ async fn approval_rpc_decision_paths_persist_always_allow_and_recent_audit() {ApprovalChatContext {thread_id: "approval-persist-failure-thread".to_string(),client_id: "approval-persist-failure-client".to_string(),+ request_id: None,},gate.intercept_audited("tools.persistence_failure",diff --git a/tests/raw_coverage/worker_b_raw_coverage_e2e.rs b/tests/raw_coverage/worker_b_raw_coverage_e2e.rsindex c54f145f0f..0f98e83a45 100644--- a/tests/raw_coverage/worker_b_raw_coverage_e2e.rs+++ b/tests/raw_coverage/worker_b_raw_coverage_e2e.rs@@ -527,6 +527,7 @@ async fn approval_gate_rpc_decision_resumes_parked_tool_and_records_execution()ApprovalChatContext {thread_id: "worker-b-thread".to_string(),client_id: "worker-b-client".to_string(),+ request_id: None,},async move {gate_for_task