Skip to content

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

fix(dispatch): handle missing staging state in parallel graph dispatch

Steven Enamakel8f5ee8de3dcf
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
index 2e0e84537c..e427e8d973 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel_graph/dispatch.rs
@@ -178,14 +178,6 @@ pub(crate) async fn stage_spawn_parallel_workers_from_defs(
"[spawn_parallel_agents] rejected_task_outside_subagent_allowlist"
);
}
- ParallelTaskRejectionKind::MissingToolkit => {
- tracing::debug!(
- parent_session = %parent_session,
- task_id = %rejection.task_id,
- agent_id = %rejection.agent_id,
- "[spawn_parallel_agents] invalid_task_missing_toolkit"
- );
- }
ParallelTaskRejectionKind::RequiresIsolation => {
tracing::warn!(
parent_session = %parent_session,
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.rs
index 808489a4be..2ad310bb98 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,6 @@
//! OpenHuman policy admission for a `spawn_parallel_agents` task batch:
-//! 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.
+//! 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
//! an OpenHuman decision — it reads sandbox mode, tool permissions and the
@@ -52,7 +52,6 @@ pub(crate) enum ParallelTaskRejectionKind {
MissingAgentOrPrompt,
UnknownAgent,
OutsideAllowlist,
- MissingToolkit,
RequiresIsolation,
}
@@ -251,8 +250,8 @@ pub(crate) fn prepare_spawn_parallel_tasks_from_defs(
parent: &ParentExecutionContext,
) -> Vec<SpawnParallelTaskPreflight> {
// 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
+ // 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 {
Admitted(Box<AdmittedParallelTask>),