From 490e9f695f98d32f1453d84c0ae0f6cc2fd05160 Mon Sep 17 00:00:00 2001 From: aleiby Date: Thu, 15 Jan 2026 19:20:58 -0800 Subject: [PATCH] fix: exclude role and rig types from bd ready (#1105) Role and rig beads are reference metadata that should never be closed or appear as actionable work. They are similar to agent beads which are already excluded. - Add 'role' and 'rig' to the issue type exclusion list in GetReadyWork - Update comments to document the excluded types Fixes confusion where role/rig beads appeared in bd ready output, leading agents to try to close them as regular work items. Co-authored-by: Claude Opus 4.5 --- internal/storage/sqlite/ready.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/storage/sqlite/ready.go b/internal/storage/sqlite/ready.go index 73cf38cd..a8bcc329 100644 --- a/internal/storage/sqlite/ready.go +++ b/internal/storage/sqlite/ready.go @@ -43,7 +43,9 @@ func (s *SQLiteStorage) GetReadyWork(ctx context.Context, filter types.WorkFilte // - molecule: workflow containers // - message: mail/communication items // - agent: identity/state tracking beads - whereClauses = append(whereClauses, "i.issue_type NOT IN ('merge-request', 'gate', 'molecule', 'message', 'agent')") + // - role: agent role definitions (reference metadata) + // - rig: rig identity beads (reference metadata) + whereClauses = append(whereClauses, "i.issue_type NOT IN ('merge-request', 'gate', 'molecule', 'message', 'agent', 'role', 'rig')") } if filter.Priority != nil {