From 02489d25b98d67f332fe0c93156bb767c2e860a1 Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Wed, 8 Jul 2026 08:35:14 +0000 Subject: feat(agentchannel): add DependsOn to SubtaskSpec so a decomposing task can order its own subtasks --- internal/agentchannel/agentchannel.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/agentchannel/agentchannel.go') diff --git a/internal/agentchannel/agentchannel.go b/internal/agentchannel/agentchannel.go index 202283e..98104df 100644 --- a/internal/agentchannel/agentchannel.go +++ b/internal/agentchannel/agentchannel.go @@ -44,6 +44,14 @@ type SubtaskSpec struct { // any other role-typed task. Empty (the default) preserves the prior // hardcoded "claude" behavior for backward compatibility. Role string + // DependsOn, when non-empty, names sibling task IDs (returned by a prior + // SpawnSubtask call in the same decomposition) this new subtask must wait + // for — set directly on the created child's task.DependsOn, so the + // existing dispatch-gating and cascade-fail-on-dependency-failure + // machinery (already built for top-level tasks) applies unchanged. Empty + // (the default) preserves today's behavior: every spawned subtask is + // structurally independent/parallel. + DependsOn []string } // EpicProposal describes an epic a discovery/planner-role agent wants to -- cgit v1.2.3