From 09066e1e4e928487bea0658492fd8573607c77c3 Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Wed, 8 Jul 2026 09:11:14 +0000 Subject: feat(agentchannel,executor): add ReportVerdict for structured approve/reject signals --- internal/executor/channel.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'internal/executor/channel.go') diff --git a/internal/executor/channel.go b/internal/executor/channel.go index 9392c77..55da7b1 100644 --- a/internal/executor/channel.go +++ b/internal/executor/channel.go @@ -273,4 +273,17 @@ func (c *storeChannel) ProposeRoleConfig(_ context.Context, config role.RoleConf return row.Version, err } return row.Version, nil +} + +func (c *storeChannel) ReportVerdict(_ context.Context, approved bool, reasoning string) error { + payload, _ := json.Marshal(struct { + Approved bool `json:"approved"` + Reasoning string `json:"reasoning"` + }{Approved: approved, Reasoning: reasoning}) + return c.store.CreateEvent(&event.Event{ + TaskID: c.taskID, + Kind: event.KindVerdictReported, + Actor: event.ActorAgent, + Payload: payload, + }) } \ No newline at end of file -- cgit v1.2.3