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
docs(agent): clarify run context doc comments
Steven Enamakel73c7cd41f5cb
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 90db68b1d2..324c95bdd1 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -309,10 +309,8 @@ pub struct OpenHumanRunContext {pub prepared_context_sources: Arc<Vec<AgentContextPreparedSource>>,/// Who the run acts as on memory; `None` is the root identity.pub memory_identity: Option<crate::memory::scope::MemoryIdentity>,- /// The context the turn runs under. Tools, middleware and the provider- /// factory read it from here ([`dispatch_ctx_for_tool`]) instead of the- /// calling task's ambient scope. Inherited by children and detached- /// children: a sub-agent acts for the same tenant as its parent.+ /// The context the turn runs under, read by tools, middleware and the+ /// provider factory instead of the ambient scope. Children inherit it.pub core: Option<Arc<crate::core::runtime::CoreContext>>,/// File-state identity used to detect stale parent reads after child writes.pub file_state_agent_id: Option<String>,@@ -494,9 +492,8 @@ impl OpenHumanRunContext {self}- /// The dispatch context this run's readers (config, tenant stores) use:- /// the run's own context, else the calling task's (a run assembled by a- /// caller that did not bind one).+ /// The dispatch context this run's readers use: its own `core`, else the+ /// calling task's (a run assembled by a caller that did not bind one).pub fn dispatch_ctx(&self) -> crate::core::runtime::DispatchCtx {match &self.core {Some(core) => crate::core::runtime::DispatchCtx::new(Arc::clone(core)),diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.jsonindex 7b761a8e6c..700b248cb3 100644--- a/scripts/ci/agent-runtime-boundary-baseline.json+++ b/scripts/ci/agent-runtime-boundary-baseline.json@@ -51,14 +51,14 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs",- "line": 211,+ "line": 215,"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": 216,+ "line": 220,"text": "crate::agent::turn_origin::with_inherited_origin(","occurrence": 2},@@ -311,7 +311,7 @@"rule": "openhuman-task-local","path": "crates/openhuman-core/src/integrations/composio/bus/trigger_subscriber.rs","line": 195,- "text": "if let Err(e) = with_origin(origin, apply_decision(&crate::core::runtime::DispatchCtx::ambient(), run, &envelope)).await {",+ "text": "if let Err(e) = with_origin(","occurrence": 1},{@@ -394,7 +394,7 @@{"rule": "openhuman-task-local","path": "crates/openhuman-core/src/skills/webhooks/bus.rs",- "line": 317,+ "line": 318,"text": "crate::agent::turn_origin::with_origin(","occurrence": 1},