From 4ac7894cd621300f8663022aff764e48c8b71d3e Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 9 Jul 2026 03:26:52 +0000 Subject: style: gofmt internal/executor and internal/agentloop Task 2 of the task-acceptance-criteria plan copied the plan document's own misaligned struct-literal text verbatim without running gofmt afterward, newly breaking gofmt compliance on tools.go/agentmcp.go; also fixes pre-existing unrelated misalignment in channel.go/channel_test.go while touching the same files. --- internal/executor/channel.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'internal/executor/channel.go') diff --git a/internal/executor/channel.go b/internal/executor/channel.go index e815b00..6353a40 100644 --- a/internal/executor/channel.go +++ b/internal/executor/channel.go @@ -8,13 +8,13 @@ import ( "sync" "time" + "github.com/google/uuid" "github.com/thepeterstone/claudomator/internal/agentchannel" "github.com/thepeterstone/claudomator/internal/event" "github.com/thepeterstone/claudomator/internal/role" "github.com/thepeterstone/claudomator/internal/storage" "github.com/thepeterstone/claudomator/internal/story" "github.com/thepeterstone/claudomator/internal/task" - "github.com/google/uuid" ) // AgentChannel, SubtaskSpec, BlockedError, and ErrAgentBlocked used to be @@ -152,15 +152,15 @@ func (c *storeChannel) SpawnSubtask(_ context.Context, spec SubtaskSpec) (string } child := &task.Task{ 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, + 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 @@ -287,4 +287,4 @@ func (c *storeChannel) ReportVerdict(_ context.Context, approved bool, reasoning Actor: event.ActorAgent, Payload: payload, }) -} \ No newline at end of file +} -- cgit v1.2.3