MAP-Elites style filter that retains the best idea per gap×method-type niche to maximize coverage
quality_diversity_filterideas (Idea[] JSON) and gaps (Gap[] JSON) from calling tacticquality_diversity_filter({ ideas, gaps }) via dare-agentsfilteredIdeas[] — surviving ideas after niche-best selection, one per occupied nicheremovedCount — number of ideas eliminated as niche duplicatesnicheMap — mapping of niche key (gapId + methodType) to the winning idea ID in that nichereasoning — explanation of key selection decisions, especially contested niches