Skip to content

Agent queue: renovate issue filter logic duplicates upstream filtering #530

Description

@itsmiso-ai

Parent umbrella issue: #495
Source audit: Weekly tech debt audit: dispatch - 2026-07-01
Source audit date: 2026-07-01

Original recommendation

Agent queue: renovate issue filter logic duplicates upstream filtering

Evidence: src/lib/agent-queue.ts — both the filter() in buildAgentQueue() and isRenovateIssue() in issue-filters.ts apply independent Renovate exclusion logic. The buildAgentQueue checks includeRenovate while the Dispatch API route /api/agents/[agentName]/queue also filters via DISPATCH_EXCLUDED_LABELS. These overlapping filters could produce confusing results (issues excluded by one filter but not the other).


Matched top finding

Evidence: src/lib/agent-queue.ts — both the filter() in buildAgentQueue() and isRenovateIssue() in issue-filters.ts apply independent Renovate exclusion logic. The buildAgentQueue checks includeRenovate while the Dispatch API route /api/agents/[agentName]/queue also filters via DISPATCH_EXCLUDED_LABELS. These overlapping filters could produce confusing results (issues excluded by one filter but not the other).


Metadata

Metadata

Assignees

No one assigned

    Labels

    auditAudit, review, or investigation work.priority/p1High priority.status/backlogNot ready for worker pickup yet.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions