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/mcp/audit/schemas_tests.rs,crates/openhuman-core/src/
Steven Enamakel3d3d48f2f61d
diff --git a/crates/openhuman-core/src/mcp/audit/schemas_tests.rs b/crates/openhuman-core/src/mcp/audit/schemas_tests.rsindex 78b32e81e4..75b15a0dc8 100644--- a/crates/openhuman-core/src/mcp/audit/schemas_tests.rs+++ b/crates/openhuman-core/src/mcp/audit/schemas_tests.rs@@ -44,6 +44,7 @@ async fn handle_list_returns_persisted_audit_records() {error_message: None,},)+ .await.expect("record write");let value = handle_list(Map::new()).await.expect("handle list");diff --git a/crates/openhuman-core/src/mcp/audit/stub.rs b/crates/openhuman-core/src/mcp/audit/stub.rsindex 03125d1567..f3f4d1f81a 100644--- a/crates/openhuman-core/src/mcp/audit/stub.rs+++ b/crates/openhuman-core/src/mcp/audit/stub.rs@@ -45,14 +45,17 @@ pub fn all_mcp_audit_internal_controllers() -> Vec<crate::core::all::RegisteredC/// `Err` because the real callers treat a failure here as a logged anomaly —/// an "audit write failed" warning would be actively misleading when the/// audited subsystem does not exist.-pub fn record_write(_config: &Config, _record: NewMcpWriteRecord) -> Result<i64> {+pub async fn record_write(_config: &Config, _record: NewMcpWriteRecord) -> Result<i64> {log::debug!("[mcp_audit] {DISABLED_MSG} — record_write is a no-op (no MCP writer exists)");Ok(0)}/// Empty history: no MCP writes can have occurred in this build. `Ok(vec![])`/// (not `Err`) keeps the shape honest — the query succeeded, the log is empty.-pub fn list_writes(_config: &Config, _query: &McpWriteListQuery) -> Result<Vec<McpWriteRecord>> {+pub async fn list_writes(+ _config: &Config,+ _query: &McpWriteListQuery,+) -> Result<Vec<McpWriteRecord>> {log::debug!("[mcp_audit] {DISABLED_MSG} — list_writes returning empty history");Ok(Vec::new())}diff --git a/crates/openhuman-core/src/mcp/registry/tools.rs b/crates/openhuman-core/src/mcp/registry/tools.rsindex 57ac2934c3..08360459d2 100644--- a/crates/openhuman-core/src/mcp/registry/tools.rs+++ b/crates/openhuman-core/src/mcp/registry/tools.rs@@ -270,13 +270,8 @@ impl Tool for McpRegistryToolCallTool {.await.map_err(|_| anyhow::anyhow!("mcp_registry_tool_call: invalid tool arguments"))?;emit!(- ops::mcp_clients_tool_call(- &self.config,- sid,- tool_name,- Value::Object(normalized),- )- .await,+ ops::mcp_clients_tool_call(&self.config, sid, tool_name, Value::Object(normalized),)+ .await,"mcp_registry_tool_call")}diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex f6792798a5..5b4db4fe42 100644--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@ -26,6 +26,7 @@ async fn call_tool_records_write_argument_rejection() {&config,&crate::mcp::audit::McpWriteListQuery::default(),)+ .await.expect("list writes");if rows.len() == 1 {break;diff --git a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rsindex 726fa2a14d..9001293aef 100644--- a/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/write_dispatch_tests.rs@@ -76,6 +76,7 @@ async fn audit_write_rejection_records_failure_row() {&config,&crate::mcp::audit::McpWriteListQuery::default(),)+ .await.expect("list writes");if rows.len() == 1 {break;@@ -186,6 +187,7 @@ async fn test_dispatch_write_tool_rpc_error_records_audit_and_returns_tool_error&config,&crate::mcp::audit::McpWriteListQuery::default(),)+ .await.expect("list writes");if rows.len() == 1 {break;@@ -224,6 +226,7 @@ async fn test_audit_write_success_path() {&config,&crate::mcp::audit::McpWriteListQuery::default(),)+ .await.expect("list writes");if rows.len() == 1 {break;diff --git a/crates/openhuman-core/src/tools/registry/ops_tests.rs b/crates/openhuman-core/src/tools/registry/ops_tests.rsindex 32141c398c..5e90ef9d3a 100644--- a/crates/openhuman-core/src/tools/registry/ops_tests.rs+++ b/crates/openhuman-core/src/tools/registry/ops_tests.rs@@ -58,9 +58,9 @@ fn registry_entries_are_unique_and_sorted_by_tool_id() {assert_eq!(ids, sorted);}-#[test]-fn diagnostics_reports_inventory_and_policy_surfaces() {- let outcome = diagnostics_for_config(&Config::default());+#[tokio::test]+async fn diagnostics_reports_inventory_and_policy_surfaces() {+ let outcome = diagnostics_for_config(&Config::default()).await;assert!(outcome.value.total_tools > 0);assert_eq!(outcome.value.total_tools, outcome.value.enabled_tools);@@ -119,8 +119,8 @@ enabled = true.is_empty());}-#[test]-fn diagnostics_for_config_reports_capability_provider_summary() {+#[tokio::test]+async fn diagnostics_for_config_reports_capability_provider_summary() {let config = Config {capability_providers: vec![capability_provider(@@ -142,7 +142,7 @@ fn diagnostics_for_config_reports_capability_provider_summary() {..Config::default()};- let outcome = diagnostics_for_config(&config);+ let outcome = diagnostics_for_config(&config).await;assert_eq!(outcome.value.capability_providers.total_providers, 3);assert_eq!(outcome.value.capability_providers.enabled_providers, 2);@@ -158,8 +158,8 @@ fn diagnostics_for_config_reports_capability_provider_summary() {.is_empty());}-#[test]-fn diagnostics_for_config_reports_capability_provider_errors() {+#[tokio::test]+async fn diagnostics_for_config_reports_capability_provider_errors() {let config = Config {capability_providers: vec![capability_provider("Acme Tools", CapabilityProviderTrustState::Trusted, true),@@ -168,7 +168,7 @@ fn diagnostics_for_config_reports_capability_provider_errors() {..Config::default()};- let outcome = diagnostics_for_config(&config);+ let outcome = diagnostics_for_config(&config).await;assert_eq!(outcome.value.capability_providers.total_providers, 2);assert_eq!(outcome.value.capability_providers.enabled_providers, 0);@@ -352,8 +352,8 @@ fn capability_provider(/// alone would not have caught that (zero is what a quiet install reports/// too), so this writes a row first and requires the probe to see it.#[cfg(feature = "mcp")]-#[test]-fn the_write_audit_probe_reads_the_store_the_writer_wrote_to() {+#[tokio::test]+async fn the_write_audit_probe_reads_the_store_the_writer_wrote_to() {let workspace = tempfile::tempdir().expect("tempdir");let config = Config {workspace_dir: workspace.path().to_path_buf(),@@ -361,6 +361,7 @@ fn the_write_audit_probe_reads_the_store_the_writer_wrote_to() {};let before = diagnostics_for_config(&config)+ .await.value.mcp_write_audit.recent_rows;@@ -378,9 +379,10 @@ fn the_write_audit_probe_reads_the_store_the_writer_wrote_to() {error_message: None,},)+ .await.expect("record a write");- let after = diagnostics_for_config(&config).value.mcp_write_audit;+ let after = diagnostics_for_config(&config).await.value.mcp_write_audit;assert_eq!(after.recent_rows,Some(1),