Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Merge remote-tracking branch 'upstream/main' into tinywallet-release-0192

Steven Enamakel9662ac2ff1e2
diff --cc crates/openhuman-core/src/agent/tinyagents/mod.rs
index 4eeef91ec0,c5fd8b1451..fd2a920701
--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs
@@@ -57,11 -57,9 +57,12 @@@ mod steering_forwarder
pub(crate) mod stop_hooks;
pub mod todos;
pub(crate) mod tool_registration;
+mod turn_exec;
+mod turn_middleware;
+ mod turn_model_resolver;
mod turn_models;
mod turn_outcome;
+mod turn_plan;
mod turn_policy;
mod turn_run_error;
mod turn_run_finalize;
diff --cc scripts/ci/saas-ambient-baseline.json
index d31b075586,e6bf1438b9..fd0b49cdef
--- a/scripts/ci/saas-ambient-baseline.json
+++ b/scripts/ci/saas-ambient-baseline.json
@@@ -30,14 -30,14 +30,14 @@@
{
"rule": "ambient-context",
"path": "crates/openhuman-core/src/agent/hooks.rs",
-- "line": 311,
++ "line": 328,
"text": "let core_ctx = crate::core::runtime::context::CoreContext::current();",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/agent/hooks.rs",
-- "line": 322,
++ "line": 339,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@@ -100,7 -100,7 +100,7 @@@
{
"rule": "ambient-context",
"path": "crates/openhuman-core/src/agent/session_store/mod.rs",
- "line": 216,
- "line": 286,
++ "line": 304,
"text": "crate::core::runtime::CoreContext::current()",
"occurrence": 1
},
@@@ -113,16 -113,9 +113,9 @@@
},
{
"rule": "ambient-context",
- "path": "crates/openhuman-core/src/agent/tinyagents/tools.rs",
- "line": 229,
- "text": "let execution = match (origin, crate::core::runtime::CoreContext::current()) {",
- "occurrence": 1
- },
- {
- "rule": "ambient-context",
- "path": "crates/openhuman-core/src/agent/turn_origin.rs",
- "line": 205,
- "text": "let context = crate::core::runtime::CoreContext::current()",
+ "path": "crates/openhuman-core/src/agent/tinyagents/tool_registration.rs",
- "line": 110,
++ "line": 115,
+ "text": "match (origin, CoreContext::current()) {",
"occurrence": 1
},
{
@@@ -142,7 -135,7 +135,7 @@@
{
"rule": "home-dir",
"path": "crates/openhuman-core/src/channels/host/adapters.rs",
- "line": 276,
- "line": 287,
++ "line": 289,
"text": ".map(|u| u.home_dir().to_path_buf())",
"occurrence": 1
},
@@@ -632,14 -604,14 +604,14 @@@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs",
- "line": 21,
- "line": 25,
++ "line": 24,
"text": "let status = tokio::task::spawn_blocking(",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/inference/schemas/claude_code_handlers.rs",
- "line": 34,
- "line": 39,
++ "line": 38,
"text": "let auth = tokio::task::spawn_blocking(",
"occurrence": 1
},
@@@ -1038,35 -968,35 +968,35 @@@
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/skills/runtime/run_machinery.rs",
-- "line": 63,
++ "line": 64,
"text": "let config_snapshot = match Config::load_or_init().await {",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/skills/runtime/run_machinery.rs",
-- "line": 159,
++ "line": 160,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/skills/runtime/run_machinery.rs",
-- "line": 165,
++ "line": 166,
"text": "let mut config = match Config::load_or_init().await {",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/skills/runtime/run_machinery.rs",
-- "line": 219,
++ "line": 220,
"text": "let bridge = tokio::spawn(run_log::drain_to_log(rx, log_path.clone()));",
"occurrence": 1
},
{
"rule": "ambient-config",
"path": "crates/openhuman-core/src/skills/runtime/schemas.rs",
- "line": 342,
- "line": 343,
++ "line": 344,
"text": "let config = crate::config::Config::load_or_init()",
"occurrence": 1
},
@@@ -1129,7 -1045,7 +1045,7 @@@
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/threads/ops/edit.rs",
- "line": 380,
- "line": 394,
++ "line": 398,
"text": "let result = tokio::task::spawn_blocking(move || {",
"occurrence": 1
},
@@@ -1143,14 -1059,14 +1059,14 @@@
{
"rule": "ambient-context",
"path": "crates/openhuman-core/src/threads/ops/support.rs",
- "line": 49,
- "line": 113,
++ "line": 132,
"text": "let ctx = CoreContext::current();",
"occurrence": 1
},
{
"rule": "bare-spawn",
"path": "crates/openhuman-core/src/threads/ops/support.rs",
- "line": 50,
- "line": 114,
++ "line": 133,
"text": "tokio::spawn(async move {",
"occurrence": 1
},
@@@ -1178,7 -1108,7 +1108,7 @@@
{
"rule": "ambient-context",
"path": "crates/openhuman-core/src/tools/ops.rs",
- "line": 544,
- "line": 547,
++ "line": 553,
"text": "let domains = crate::core::runtime::context::CoreContext::current().map(|c| c.domains());",
"occurrence": 1
},