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
fix(agent): handle empty staging in parallel graph spawn
Steven Enamakel08819a15fd00
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/staging.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/staging.rsindex 0b6a5144cc..808489a4be 100644--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/staging.rs+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/staging.rs@@ -1,6 +1,5 @@//! OpenHuman policy admission for a `spawn_parallel_agents` task batch:-//! identity, the parent's subagent allowlist, the integrations toolkit-//! requirement, and whether a worker can write the shared workspace at all —+//! identity, the parent's subagent allowlist, and whether a worker can write the shared workspace at all —//! plus the crate-side arbitration over the resulting workspace claims.//!//! **Write safety.** Whether a worker *needs* a claim on the shared workspace is@@ -251,9 +250,8 @@ pub(crate) fn prepare_spawn_parallel_tasks_from_defs(definitions: &HashMap<String, AgentDefinition>,parent: &ParentExecutionContext,) -> Vec<SpawnParallelTaskPreflight> {- // Pass 1 — OpenHuman policy. Identity, the parent's subagent allowlist, the- // integrations toolkit requirement, and whether a worker can write the- // shared workspace at all are all product decisions, so they are settled+ // Pass 1 — OpenHuman policy. Identity, the parent's subagent allowlist, and+ // whether a worker can write the shared workspace at all are all product decisions, so they are settled// here and rejected in their own vocabulary. What survives carries a// `WorkspaceClaim` describing only what the arbiter needs to know.enum Admission {@@ -301,22 +299,6 @@ pub(crate) fn prepare_spawn_parallel_tasks_from_defs(});}- if definition.id == "integrations_agent"- && task- .toolkit- .as_ref()- .map(|s| s.trim().is_empty())- .unwrap_or(true)- {- return Admission::Rejected(ParallelTaskRejection {- task_id,- agent_id,- error: "integrations_agent requires toolkit".to_string(),- ownership: task.ownership,- kind: ParallelTaskRejectionKind::MissingToolkit,- });- }-let claim = match shared_workspace_write_claim(&task, &definition, parent) {// Needs the shared workspace and declares what it owns.Ok(Some(paths)) => WorkspaceClaim::writing(task_id.clone(), paths),