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 scripts/ci/agent-runtime-boundary-baseline.json,scripts/ci/saas-ambient-baselin
Steven Enamakelea78ff7616b2
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.jsonindex 772e1c2cb6..1f67672c03 100644--- a/scripts/ci/agent-runtime-boundary-baseline.json+++ b/scripts/ci/agent-runtime-boundary-baseline.json@@ -128,14 +128,14 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rs",- "line": 183,+ "line": 188,"text": "let inherited_origin = crate::agent::turn_origin::capture();","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/agent_teams/runtime.rs",- "line": 185,+ "line": 190,"text": "crate::agent::turn_origin::with_inherited_origin(","occurrence": 1},@@ -198,42 +198,42 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs",- "line": 424,+ "line": 397,"text": "let join = crate::core::runtime::spawn_scoped(crate::agent::turn_origin::propagate(","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs",- "line": 425,+ "line": 398,"text": "crate::agent::turn_workspace::propagate(async move {","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs",- "line": 70,+ "line": 67,"text": "let inherited_origin = crate::agent::turn_origin::capture();","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs",- "line": 74,+ "line": 71,"text": "crate::agent::turn_origin::with_inherited_origin(","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs",- "line": 210,+ "line": 206,"text": "let inherited_origin = crate::agent::turn_origin::capture();","occurrence": 2},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs",- "line": 214,+ "line": 210,"text": "crate::agent::turn_origin::with_inherited_origin(","occurrence": 2},@@ -296,7 +296,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 548,+ "line": 543,"text": "workspace_descriptor: crate::agent::harness::current_parent()","occurrence": 1},@@ -317,7 +317,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs",- "line": 526,+ "line": 495,"text": "crate::agent::turn_origin::current(),","occurrence": 1},@@ -359,28 +359,28 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/turn_origin.rs",- "line": 223,+ "line": 229,"text": "AGENT_TURN_ORIGIN.try_with(|o| o.clone()).ok()","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/turn_origin.rs",- "line": 278,+ "line": 284,"text": "Some(origin) => with_origin(origin, fut).await,","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/turn_origin.rs",- "line": 316,+ "line": 322,"text": "Some(origin) => with_origin(origin, fut).await,","occurrence": 2},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/turn_origin.rs",- "line": 384,+ "line": 390,"text": "pub fn current_request_id() -> Option<String> {","occurrence": 1},@@ -443,14 +443,14 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/cron/scheduler/agent_run.rs",- "line": 177,+ "line": 175,"text": "let turn = crate::agent::turn_origin::with_origin(","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/cron/scheduler/agent_run.rs",- "line": 202,+ "line": 200,"text": "crate::integrations::composio::task_recency_context::with_task_recency_window(","occurrence": 1},@@ -478,7 +478,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/flows/ops.rs",- "line": 52,+ "line": 54,"text": "use crate::agent::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};","occurrence": 1},@@ -541,21 +541,21 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/flows/tinyflows/caps/tier.rs",- "line": 104,+ "line": 105,"text": "match escalated_origin_for_prompt(tier_decision, turn_origin::current()) {","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/flows/tinyflows/caps/tier.rs",- "line": 112,+ "line": 113,"text": "turn_origin::with_origin(","occurrence": 1},{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/flows/tinyflows/memory_adapter.rs",- "line": 82,+ "line": 83,"text": "match turn_origin::current() {","occurrence": 1},@@ -709,8 +709,8 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/mcp/server/tools/dispatch.rs",- "line": 374,- "text": "crate::agent::turn_origin::with_origin(origin, agent.run_single(&prompt)),",+ "line": 373,+ "text": "crate::agent::turn_origin::with_origin(origin, agent.run_single(prompt)),","occurrence": 1},{@@ -906,7 +906,7 @@"rule": "tinyagents-tool-calling-facade","path": "vendor/tinyagents/crates/tinyagents-harness/src/agent_loop/dialect.rs","line": 23,- "text": "use tinytools_agent::dialect::{CodeDialect, CodeStyle, PFormatDialect};",+ "text": "use tinytools_agent::dialect::{CodeDialect, CodeStyle, PFormatDialect, ToolCallFormat};","occurrence": 1},{@@ -940,14 +940,21 @@{"rule": "tinyagents-tool-calling-facade","path": "vendor/tinyagents/crates/tinyagents-harness/src/agent_loop/tools.rs",- "line": 2656,+ "line": 2731,"text": "use tinytools_agent::repair::args;","occurrence": 1},+ {+ "rule": "tinyagents-tool-calling-facade",+ "path": "vendor/tinyagents/crates/tinyagents-harness/src/dialect.rs",+ "line": 8,+ "text": "use tinytools_agent::dialect::ToolCallFormat;",+ "occurrence": 1+ },{"rule": "tinyagents-tool-calling-facade","path": "vendor/tinyagents/crates/tinyagents-harness/src/lib.rs",- "line": 118,+ "line": 121,"text": "pub use tinytools_agent;","occurrence": 1},@@ -1003,7 +1010,7 @@{"rule": "tinyagents-upstream-reexport","path": "vendor/tinyagents/crates/tinyagents-harness/src/tool/discover/mod.rs",- "line": 30,+ "line": 35,"text": "pub use tinytools::rank::{Bm25Index, tokenize};","occurrence": 1},@@ -1024,28 +1031,28 @@{"rule": "tinyagents-upstream-reexport","path": "vendor/tinyagents/crates/tinyagents-registry/src/lib.rs",- "line": 34,+ "line": 35,"text": "pub use tinyagents_harness::error::{Result, TinyAgentsError};","occurrence": 1},{"rule": "tinyagents-upstream-reexport","path": "vendor/tinyagents/crates/tinyagents-runtime/src/lib.rs",- "line": 24,+ "line": 25,"text": "pub use tinyagents_session::transcript::TranscriptPartial;","occurrence": 1},{"rule": "tinyagents-upstream-reexport","path": "vendor/tinyagents/crates/tinyagents-session/src/lib.rs",- "line": 99,+ "line": 128,"text": "pub use tinyagents_harness::error::{Result, TinyAgentsError};","occurrence": 1},{"rule": "tinyagents-upstream-reexport","path": "vendor/tinyagents/crates/tinyagents-session/src/port/mod.rs",- "line": 58,+ "line": 62,"text": "pub use tinyagents_harness::store::{AppendStore, Store};","occurrence": 1}diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.jsonindex 707ef2ac00..7674862b21 100644--- a/scripts/ci/saas-ambient-baseline.json+++ b/scripts/ci/saas-ambient-baseline.json@@ -23,7 +23,7 @@{"rule": "ambient-context","path": "crates/openhuman-core/src/agent/harness/graph.rs",- "line": 185,+ "line": 187,"text": "let outcome = match (turn_origin, crate::core::runtime::CoreContext::current()) {","occurrence": 1},@@ -48,13 +48,6 @@"text": "let handle = tokio::spawn(crate::agent::turn_origin::propagate(","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/agent/orchestration/run_ledger_finalize.rs",- "line": 77,- "text": "let result = tokio::task::spawn_blocking(move || {",- "occurrence": 1- },{"rule": "ambient-config","path": "crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/run.rs",@@ -62,20 +55,6 @@"text": "match crate::config::Config::load_or_init().await {","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 613,- "text": "tokio::spawn(async move {",- "occurrence": 1- },- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/agent/session_host/runtime_session.rs",- "line": 615,- "text": "let transcript = tokio::task::spawn_blocking(move || {",- "occurrence": 1- },{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/session_host/runtime_session_progress.rs",@@ -100,14 +79,28 @@{"rule": "ambient-config","path": "crates/openhuman-core/src/agent/session_import/schemas.rs",- "line": 98,+ "line": 82,"text": "let config = crate::config::Config::load_or_init()","occurrence": 1},+ {+ "rule": "ambient-config",+ "path": "crates/openhuman-core/src/agent/session_import/schemas.rs",+ "line": 102,+ "text": "let configured = crate::config::Config::load_or_init()",+ "occurrence": 1+ },+ {+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/agent/session_import/schemas.rs",+ "line": 123,+ "text": "let reports = tokio::task::spawn_blocking(move || {",+ "occurrence": 1+ },{"rule": "ambient-context","path": "crates/openhuman-core/src/agent/session_store/mod.rs",- "line": 226,+ "line": 236,"text": "crate::core::runtime::CoreContext::current()","occurrence": 1},@@ -121,7 +114,7 @@{"rule": "ambient-context","path": "crates/openhuman-core/src/agent/tinyagents/tools.rs",- "line": 210,+ "line": 220,"text": "let execution = match (origin, crate::core::runtime::CoreContext::current()) {","occurrence": 1},@@ -135,7 +128,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/agent/turn_origin.rs",- "line": 376,+ "line": 382,"text": "tokio::spawn(propagate(fut))","occurrence": 1},@@ -149,21 +142,42 @@{"rule": "home-dir","path": "crates/openhuman-core/src/channels/host/adapters.rs",- "line": 245,+ "line": 276,"text": ".map(|u| u.home_dir().to_path_buf())","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/channels/routes.rs",+ "line": 93,+ "text": "core_context: crate::core::runtime::CoreContext::current(),",+ "occurrence": 1+ },+ {+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",+ "line": 27,+ "text": "tokio::spawn(async move {",+ "occurrence": 1+ },+ {+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/channels/runtime/dispatch/helpers.rs",+ "line": 46,+ "text": "tokio::spawn(async move {",+ "occurrence": 2+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs",- "line": 131,+ "line": 196,"text": "_acknowledgment_task = Some(AbortOnDropHandle::new(tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs",- "line": 251,+ "line": 326,"text": "Some(AbortOnDropHandle::new(tokio::spawn(async move {","occurrence": 1},@@ -176,15 +190,22 @@},{"rule": "bare-spawn",- "path": "crates/openhuman-core/src/channels/runtime/startup/start_channels.rs",- "line": 226,- "text": "let provider_bridge = AbortOnDropHandle::new(tokio::spawn(async move {",+ "path": "crates/openhuman-core/src/channels/runtime/session.rs",+ "line": 112,+ "text": "tokio::spawn(async move {",+ "occurrence": 1+ },+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/channels/runtime/startup/callback.rs",+ "line": 38,+ "text": "core_context: crate::core::runtime::CoreContext::current(),","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/config/migrations/mod.rs",- "line": 107,+ "line": 108,"text": "tokio::task::spawn_blocking(move || phase_out_profile_md::run(&workspace_dir)).await;","occurrence": 1},@@ -345,101 +366,101 @@{"rule": "ambient-context","path": "crates/openhuman-core/src/core/all.rs",- "line": 78,+ "line": 84,"text": "crate::core::runtime::context::CoreContext::current().map(|c| c.domains())","occurrence": 1},{"rule": "ambient-context","path": "crates/openhuman-core/src/core/all.rs",- "line": 1191,+ "line": 1190,"text": "let scoped: ControllerFuture = match CoreContext::current() {","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/core/all/components_gate.rs",+ "line": 22,+ "text": "let ctx = crate::core::runtime::context::CoreContext::current()?;",+ "occurrence": 1+ },{"rule": "env-mutation","path": "crates/openhuman-core/src/core/logging.rs",- "line": 608,+ "line": 609,"text": "std::env::set_var(\"RUST_LOG\", default);","occurrence": 1},{"rule": "home-dir","path": "crates/openhuman-core/src/core/runtime/context.rs",- "line": 213,+ "line": 220,"text": "dirs::home_dir()","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/context.rs",- "line": 238,+ "line": 245,"text": "None => crate::config::Config::load_or_init().await,","occurrence": 1},{"rule": "home-dir","path": "crates/openhuman-core/src/core/runtime/saas.rs",- "line": 331,+ "line": 444,"text": "home: dirs::home_dir(),","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 145,+ "line": 143,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 146,+ "line": 144,"text": "match crate::config::Config::load_or_init().await {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 179,+ "line": 178,"text": "tokio::spawn(async {","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 180,+ "line": 179,"text": "match crate::config::Config::load_or_init().await {","occurrence": 2},{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 210,+ "line": 209,"text": "tokio::spawn(async {","occurrence": 2},{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 212,+ "line": 211,"text": "match crate::config::Config::load_or_init().await {","occurrence": 3},{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 246,+ "line": 245,"text": "tokio::spawn(crate::core::runtime::CoreContext::scope(ctx, async {","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 297,- "text": "return Some(tokio::spawn(async move {",- "occurrence": 1- },{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",@@ -450,21 +471,21 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 412,+ "line": 409,"text": "tokio::spawn(async move {","occurrence": 2},{"rule": "bare-spawn","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 469,+ "line": 466,"text": "tokio::spawn(async move {","occurrence": 3},{"rule": "ambient-config","path": "crates/openhuman-core/src/core/runtime/services.rs",- "line": 471,+ "line": 468,"text": "let config = match Config::load_or_init().await {","occurrence": 1},@@ -478,10 +499,17 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/cron/ops.rs",- "line": 264,+ "line": 222,"text": "tokio::spawn(async move {","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/cron/scheduler/run_delivery.rs",+ "line": 151,+ "text": "crate::core::runtime::CoreContext::current().is_none_or(|ctx| ctx.components().flows)",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/cron/scheduler_gate/throttle.rs",@@ -510,6 +538,13 @@"text": "tokio::task::spawn_blocking(move || load_app_session_profile(&config_for_profile))","occurrence": 1},+ {+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/flows/ops/builder_gates.rs",+ "line": 110,+ "text": "let loaded = tokio::task::spawn_blocking(move || load_flow_graph(&config, &id))",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/flows/ops/run.rs",@@ -548,7 +583,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rs",- "line": 29,+ "line": 32,"text": "tokio::spawn(async move {","occurrence": 1},@@ -569,14 +604,14 @@{"rule": "home-dir","path": "crates/openhuman-core/src/inference/provider/factory/access_gates.rs",- "line": 179,+ "line": 188,"text": ".map(|d| d.home_dir().join(\".openhuman\"))","occurrence": 1},{"rule": "ambient-context","path": "crates/openhuman-core/src/inference/provider/factory/access_gates.rs",- "line": 212,+ "line": 221,"text": "crate::core::runtime::context::CoreContext::current()","occurrence": 1},@@ -611,52 +646,73 @@{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/mod.rs",- "line": 262,+ "line": 279,"text": "None => match crate::config::Config::load_or_init().await {","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/mod.rs",- "line": 330,+ "line": 360,"text": "let config = crate::config::Config::load_or_init()","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/mod.rs",- "line": 343,+ "line": 373,"text": "let config = crate::config::Config::load_or_init()","occurrence": 2},{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/mod.rs",- "line": 364,+ "line": 395,"text": "let config = crate::config::Config::load_or_init()","occurrence": 3},{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/mod.rs",- "line": 375,+ "line": 406,"text": "let config = crate::config::Config::load_or_init()","occurrence": 4},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/inference/tokenjuice/schemas.rs",+ "line": 270,+ "text": "let on = crate::core::runtime::context::CoreContext::current()",+ "occurrence": 1+ },{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/schemas.rs",- "line": 355,+ "line": 374,"text": "let config = crate::config::Config::load_or_init()","occurrence": 1},{"rule": "ambient-config","path": "crates/openhuman-core/src/inference/tokenjuice/schemas.rs",- "line": 374,+ "line": 394,"text": "let mut config = crate::config::Config::load_or_init()","occurrence": 1},+ {+ "rule": "ambient-config",+ "path": "crates/openhuman-core/src/inference/tokenjuice/schemas.rs",+ "line": 416,+ "text": "let config = crate::config::Config::load_or_init()",+ "occurrence": 2+ },+ {+ "rule": "ambient-config",+ "path": "crates/openhuman-core/src/inference/tokenjuice/schemas.rs",+ "line": 434,+ "text": "let config = crate::config::Config::load_or_init()",+ "occurrence": 3+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/integrations/composio/bus/config_changed_subscriber.rs",@@ -667,7 +723,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/integrations/composio/bus/connection_created_subscriber.rs",- "line": 91,+ "line": 92,"text": "tokio::spawn(async move { on_connection_created(toolkit, connection_id).await });","occurrence": 1},@@ -678,13 +734,6 @@"text": "tokio::spawn(async move {","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/integrations/composio/ops/connections.rs",- "line": 99,- "text": "tokio::spawn(async move {",- "occurrence": 1- },{"rule": "bare-spawn","path": "crates/openhuman-core/src/integrations/test_support_backend.rs",@@ -695,31 +744,52 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/mcp/mod.rs",- "line": 93,+ "line": 84,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/mcp/mod.rs",- "line": 102,+ "line": 93,"text": "tokio::spawn(async move {","occurrence": 2},{"rule": "bare-spawn","path": "crates/openhuman-core/src/mcp/mod.rs",- "line": 166,- "text": "tokio::spawn(async move {",- "occurrence": 3+ "line": 164,+ "text": "let task = tokio::spawn(async move {",+ "occurrence": 1+ },+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/mcp/module_client.rs",+ "line": 497,+ "text": "let Some(context) = crate::core::runtime::CoreContext::current() else {",+ "occurrence": 1+ },+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/mcp/module_client.rs",+ "line": 500,+ "text": "context.session_agent().is_some()",+ "occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/mcp/registry/config_ops.rs",- "line": 73,+ "line": 76,"text": "tokio::spawn(async move {","occurrence": 1},+ {+ "rule": "ambient-config",+ "path": "crates/openhuman-core/src/mcp/server/http.rs",+ "line": 48,+ "text": "let host_config = Config::load_or_init().await?;",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/mcp/server/local.rs",@@ -728,17 +798,24 @@"occurrence": 1},{- "rule": "env-mutation",+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/mcp/server/module.rs",+ "line": 405,+ "text": "task: tokio::spawn((self.callback_dispatch)(call)),",+ "occurrence": 1+ },+ {+ "rule": "ambient-config","path": "crates/openhuman-core/src/mcp/server/stdio.rs",- "line": 136,- "text": "std::env::set_var(\"RUST_LOG\", level);",+ "line": 121,+ "text": "let config = Config::load_or_init().await?;","occurrence": 1},{- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/mcp/server/test_support.rs",- "line": 29,- "text": "tokio::spawn(async move {",+ "rule": "env-mutation",+ "path": "crates/openhuman-core/src/mcp/server/stdio.rs",+ "line": 163,+ "text": "std::env::set_var(\"RUST_LOG\", level);","occurrence": 1},{@@ -751,38 +828,45 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/memory/backfill.rs",- "line": 389,+ "line": 244,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/memory/import.rs",- "line": 313,+ "line": 146,"text": "let counts = tokio::task::spawn_blocking(move || count_legacy(&workspace_dir))","occurrence": 1},{- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/memory/import.rs",- "line": 552,- "text": "tokio::spawn(async move {",+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/modules/host.rs",+ "line": 190,+ "text": "let juice_on = crate::core::runtime::context::CoreContext::current()","occurrence": 1},{- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/memory/import.rs",- "line": 585,- "text": "let reader = tokio::task::spawn_blocking(move || {",+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/modules/host.rs",+ "line": 201,+ "text": "let memes_on = crate::core::runtime::context::CoreContext::current()","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/modules/ops.rs",- "line": 292,+ "line": 360,"text": "let found_on_search_path = tokio::task::spawn_blocking(move || {","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/platform/about_app/ops.rs",+ "line": 42,+ "text": "CoreContext::current().map_or_else(ComponentSet::all, |ctx| ctx.components())",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/platform/doctor/ops.rs",@@ -825,18 +909,32 @@"text": "let handle = tokio::spawn(async move {","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/profiles/tools.rs",+ "line": 204,+ "text": "crate::core::runtime::context::CoreContext::current()?",+ "occurrence": 1+ },{"rule": "bare-spawn",- "path": "crates/openhuman-core/src/sandbox/ops.rs",- "line": 594,- "text": "let wait_result = tokio::task::spawn_blocking(move || {",+ "path": "crates/openhuman-core/src/sandbox/native_jail.rs",+ "line": 64,+ "text": "tokio::spawn(async move {","occurrence": 1},{- "rule": "home-dir",+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/sandbox/native_jail.rs",+ "line": 108,+ "text": "tokio::spawn(async move {",+ "occurrence": 2+ },+ {+ "rule": "ambient-context","path": "crates/openhuman-core/src/sandbox/ops.rs",- "line": 649,- "text": "dirs::home_dir()",+ "line": 116,+ "text": "let off = crate::core::runtime::context::CoreContext::current()","occurrence": 1},{@@ -884,14 +982,14 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/skills/catalog/ops.rs",- "line": 48,+ "line": 49,"text": "tokio::spawn(async {","occurrence": 1},{"rule": "home-dir","path": "crates/openhuman-core/src/skills/catalog/ops.rs",- "line": 363,+ "line": 364,"text": "dirs::home_dir().as_deref(),","occurrence": 1},@@ -909,10 +1007,17 @@"text": "tokio::spawn(async move {","occurrence": 1},+ {+ "rule": "ambient-context",+ "path": "crates/openhuman-core/src/skills/mod.rs",+ "line": 35,+ "text": "crate::core::runtime::CoreContext::current().is_none_or(|ctx| ctx.components().skills)",+ "occurrence": 1+ },{"rule": "home-dir","path": "crates/openhuman-core/src/skills/ops_create.rs",- "line": 125,+ "line": 98,"text": "let home = dirs::home_dir();","occurrence": 1},@@ -1000,6 +1105,13 @@"text": "tokio::task::spawn_blocking(do_write);","occurrence": 1},+ {+ "rule": "bare-spawn",+ "path": "crates/openhuman-core/src/storage/import/mod.rs",+ "line": 190,+ "text": "let joined = tokio::task::spawn_blocking(move || run_all(&backend, &config)).await;",+ "occurrence": 1+ },{"rule": "bare-spawn","path": "crates/openhuman-core/src/threads/ops/edit.rs",@@ -1056,6 +1168,13 @@"text": "match tokio::task::spawn_blocking(f).await {","occurrence": 1},+ {+ "rule": "env-mutation",+ "path": "crates/openhuman-core/src/tinymemes/service.rs",+ "line": 77,+ "text": "std::env::set_var(COOLDOWN_ENV, config.memes.meme_cooldown.to_string());",+ "occurrence": 1+ },{"rule": "ambient-config","path": "crates/openhuman-core/src/tools/impl/document/engine.rs",@@ -1073,7 +1192,7 @@{"rule": "ambient-context","path": "crates/openhuman-core/src/tools/ops.rs",- "line": 834,+ "line": 544,"text": "let domains = crate::core::runtime::context::CoreContext::current().map(|c| c.domains());","occurrence": 1},@@ -1108,7 +1227,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/voice/dictation_listener.rs",- "line": 178,+ "line": 183,"text": "let task = tokio::spawn(async move {","occurrence": 1},@@ -1136,14 +1255,14 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/voice/server/singleton.rs",- "line": 73,+ "line": 77,"text": "tokio::spawn(async move {","occurrence": 1},{"rule": "bare-spawn","path": "crates/openhuman-core/src/voice/server/singleton.rs",- "line": 101,+ "line": 105,"text": "tokio::spawn(async move {","occurrence": 2},@@ -1220,7 +1339,7 @@{"rule": "bare-spawn","path": "crates/openhuman-core/src/web_chat/presentation.rs",- "line": 237,+ "line": 106,"text": "let persisted = tokio::task::spawn_blocking(move || {","occurrence": 1},