diff options
| author | Claudomator Agent <agent@claudomator> | 2026-07-09 03:16:37 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-07-09 03:16:37 +0000 |
| commit | 8068dca4641393c03aec12253e7c1195943727f1 (patch) | |
| tree | 227ff5cc6d57b624fb2d8efee0e8ac21fd3bc662 /internal/executor/channel.go | |
| parent | 5ea8f50b0c43a23af6e65bce1fe057a355cb1929 (diff) | |
feat(agentchannel,executor,agentloop): expose acceptance_criteria on spawn_subtask
Diffstat (limited to 'internal/executor/channel.go')
| -rw-r--r-- | internal/executor/channel.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/internal/executor/channel.go b/internal/executor/channel.go index 55da7b1..e815b00 100644 --- a/internal/executor/channel.go +++ b/internal/executor/channel.go @@ -151,15 +151,16 @@ func (c *storeChannel) SpawnSubtask(_ context.Context, spec SubtaskSpec) (string agent.Model = spec.Model } child := &task.Task{ - ID: uuid.NewString(), - Name: spec.Name, - ParentTaskID: c.taskID, - Agent: agent, - Priority: task.PriorityNormal, - DependsOn: spec.DependsOn, - State: task.StatePending, - CreatedAt: now, - UpdatedAt: now, + ID: uuid.NewString(), + Name: spec.Name, + ParentTaskID: c.taskID, + Agent: agent, + Priority: task.PriorityNormal, + DependsOn: spec.DependsOn, + AcceptanceCriteria: spec.AcceptanceCriteria, + State: task.StatePending, + CreatedAt: now, + UpdatedAt: now, } if err := c.store.CreateTask(child); err != nil { return "", err |
