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 detached child budget and dispatch inheritance
Steven Enamakel9bf986270b20
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 2b01cfbac9..edb2b955db 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -633,9 +633,10 @@ impl OpenHumanRunContext {////// A detached task keeps the authority, thread and workspace descriptor it/// needs to execute and deliver its own result, but it is no longer part of- /// the originating turn. In particular it cannot consume that turn's- /// dispatch budget, append to its usage ledger, or observe a cancellation- /// request that only stopped the interactive turn.+ /// the originating turn's dispatch timer or subagent usage roll-up. It+ /// still inherits the shared monetary budget and physical-dispatch policy,+ /// and it does not observe cancellation that only stopped the interactive+ /// turn.pub fn detached_child(&self) -> Self {let mut child = self.child();// The chat surface belongs to the turn that started it. A detacheddiff --git a/crates/openhuman-core/src/agent/turn_env.rs b/crates/openhuman-core/src/agent/turn_env.rsindex 5205e033ed..49b08cea9a 100644--- a/crates/openhuman-core/src/agent/turn_env.rs+++ b/crates/openhuman-core/src/agent/turn_env.rs@@ -35,7 +35,8 @@ pub struct HostTurnEnv {/// Shared model-spend ledger and per-call bounds every model call of the/// turn tree is charged against.pub model_budget: Option<ModelBudget>,- /// Shared physical-dispatch policy for this turn and its synchronous children.+ /// Shared physical-dispatch policy for this turn and its synchronous or+ /// detached children.pub dispatch_admission: Option<Arc<dyn super::tinyagents::budget::PhysicalDispatchAdmission>>,/// A narrower model-directed delegation depth than the product ceiling.pub spawn_depth_limit: Option<usize>,diff --git a/crates/openhuman-core/src/memory/engine_tests.rs b/crates/openhuman-core/src/memory/engine_tests.rsindex c2f8712622..0ef13a1a7f 100644--- a/crates/openhuman-core/src/memory/engine_tests.rs+++ b/crates/openhuman-core/src/memory/engine_tests.rs@@ -1,7 +1,5 @@use super::*;use crate::memory::test_fixtures::config_in;-use crate::security::credentials::api_key::store_api_key;-use crate::security::credentials::{AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME};fn off_reason(binding: Binding) -> String {