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): reconcile runtime task and test layout gates
Steven Enamakel7f8b3dd1c1a1
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rsindex fb2054dcd7..28622697ef 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs@@ -18,15 +18,8 @@ fn workspace() -> TestWorkspace {}async fn record(ws: &Path, session: &str, task: &str, summary: &str, thread: &str) {- record_completion(- ws,- session,- task,- "researcher",- summary,- Some(thread.to_owned()),- )- .await;+ let thread = Some(thread.to_owned());+ record_completion(ws, session, task, "researcher", summary, thread).await;}fn pending_ids(ws: &Path, thread: &str) -> Vec<String> {diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rsindex 3968430678..3570c94284 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs@@ -230,9 +230,13 @@ fn a_missing_shell_command_gets_one_correction() {recovery_policy("shell", "bash: jq: command not found", false),Some(("missing_app", 1)));- // Other tools keep the zero-retry `unsupported` verdict.assert_eq!(recovery_policy("shell", "executable not found", false),+ Some(("missing_app", 1))+ );+ // Other tools keep the zero-retry `unsupported` verdict.+ assert_eq!(+ recovery_policy("desktop_launch_app", "executable not found", false),Some(("unsupported", 0)));}diff --git a/crates/openhuman-core/src/tools/timeout/group_exit.rs b/crates/openhuman-core/src/tools/timeout/group_exit.rsindex 983a7dfd61..fe1c4e57d4 100644--- a/crates/openhuman-core/src/tools/timeout/group_exit.rs+++ b/crates/openhuman-core/src/tools/timeout/group_exit.rs@@ -7,7 +7,7 @@#[cfg(target_os = "linux")]pub(super) async fn wait(pid: u32) -> std::io::Result<()> {loop {- let active = tokio::task::spawn_blocking(move || active_members(pid))+ let active = crate::core::runtime::spawn_blocking_scoped(move || active_members(pid)).await.map_err(std::io::Error::other)??;if !active {diff --git a/crates/openhuman-core/src/voice/live/ws_tests.rs b/crates/openhuman-core/src/voice/live/ws_tests.rsindex 06b9ac9e93..6b0be8939c 100644--- a/crates/openhuman-core/src/voice/live/ws_tests.rs+++ b/crates/openhuman-core/src/voice/live/ws_tests.rs@@ -175,7 +175,6 @@ fn parses_only_a_start_frame_first() {mod socket {use super::super::*;- use futures::{SinkExt as _, StreamExt as _};use tokio_tungstenite::tungstenite::Message as WsMessage;/// Serves `handle_live_voice_ws` on a loopback port with `config`.diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex 322ef42a26..ca436b4f39 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -54,8 +54,8 @@ const LEGACY_LIMIT_ENTRIES = [// their current sizes while follow-up work separates their test concerns.// `core/` was pruned from the line limit by name until these pins; its// oversized files are pinned at the size they had when enforcement began.- ["crates/openhuman-core/src/core/all.rs", 1349],- ["crates/openhuman-core/src/core/all_tests.rs", 1522],+ ["crates/openhuman-core/src/core/all.rs", 1340],+ ["crates/openhuman-core/src/core/all_tests.rs", 1492],["crates/openhuman-core/src/core/events.rs", 1789],["crates/openhuman-core/src/core/events_tests.rs", 997],["crates/openhuman-core/src/core/observability.rs", 3493],diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.jsonindex 08289ea74d..cabd83d85b 100644--- a/scripts/ci/saas-ambient-baseline.json+++ b/scripts/ci/saas-ambient-baseline.json@@ -461,13 +461,6 @@"text": "tokio::spawn(async move {","occurrence": 3},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 476,- "text": "tokio::spawn(async move {",- "occurrence": 4- },{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",