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 feat/7032-isolated-agents

oxoxDev8b695754cc38
diff --cc crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 5a2c4ef82d,5afbd5828b..ced685c839
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@@ -92,10 -94,12 +94,13 @@@ struct OpenHumanTurnPrelude
Option<Arc<tinyagents_harness::run_queue::RunQueue<crate::agent::queued_turn::QueuedTurn>>>,
allowed_subagent_ids: std::collections::HashSet<String>,
sandbox_mode: crate::agent::harness::definition::SandboxMode,
+ definition: Option<Arc<crate::agent::harness::definition::AgentDefinition>>,
runtime_config: Option<Arc<crate::config::Config>>,
- /// The request-refreshable composition of executable tools, policy and
- /// provider schema the immutable `ToolSnapshot` is built from.
+ /// This session's tool-rule layers; see `tool_rules.rs`.
+ tool_rules: Arc<tinytools::ToolRuleSet>,
+ /// The one authoritative, request-refreshable composition of executable
+ /// tools, policy, and provider schema. Generic runtime owns the immutable
+ /// `ToolSnapshot`; this host surface is the source used to create it.
tool_surface: Arc<std::sync::Mutex<OpenHumanTurnToolSurface>>,
mutable: Arc<std::sync::Mutex<OpenHumanTurnPreludeMutable>>,
}
@@@ -1015,8 -1008,8 +1008,9 @@@ impl OpenHumanSessionHost
.resolved_definition()
.map(|definition| definition.sandbox_mode)
.unwrap_or(crate::agent::harness::definition::SandboxMode::None),
+ definition: self.resolved_definition(),
runtime_config: self.runtime_config.clone(),
+ tool_rules: self.session_tool_rules(),
tool_surface: Arc::new(std::sync::Mutex::new(OpenHumanTurnToolSurface {
tools: self.tools.clone(),
synthesized_tools: self.synthesized_tools.clone(),
diff --cc scripts/ci/check-openhuman-rust-layout.mjs
index 67bb09c700,e3fda88752..7d2bfeeba1
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@@ -38,14 -38,14 +38,14 @@@ const LEGACY_LIMIT_ENTRIES =
// under the general 750 limit, so it needs no exception at all.
// The session-todo integration added transcript metadata construction to
// this already-exempt composition seam. Keep its allowance exact.
- ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1470],
- ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1465],
++ ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1466],
// Session-host factory still assembles the product's deliberately coupled
// provider, security, memory, tool and prompt policy. Generic session
// state moved to tinyagents-runtime; this remaining composition is split in
// a follow-up without reintroducing an old harness/session exception.
- ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 984],
+ ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 977],
- ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1309],
- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1149],
+ ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1306],
- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1146],
++ ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1145],
["crates/openhuman-core/src/tools/ops.rs", 1209],
["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1304],
// These established external test modules grew with upstream coverage. Pin