From c88474ad6b2cbadabb695aecde455dc646db89ce Mon Sep 17 00:00:00 2001 From: jedarden Date: Mon, 4 May 2026 01:38:22 -0400 Subject: [PATCH] feat(index-builder): update community hints filter for insight/idea types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change filter from 'idea'/'mistake' to 'insight'/'idea' (mapping to 'hint'/'strategy' from plan §13.6) - Increase upvote threshold from 3 to 10 for higher quality signals - The evolver consumes community_hints.json for LLM prompt context --- cmd/acb-index-builder/generator.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/acb-index-builder/generator.go b/cmd/acb-index-builder/generator.go index 0ae0ab9..2083345 100644 --- a/cmd/acb-index-builder/generator.go +++ b/cmd/acb-index-builder/generator.go @@ -1977,16 +1977,18 @@ type CommunityHintsFile struct { Hints []CommunityHint `json:"hints"` } -const communityHintMinUpvotes = 3 +const communityHintMinUpvotes = 10 const communityHintMaxHints = 50 // generateCommunityHints builds data/evolution/community_hints.json from -// high-upvote 'idea' and 'mistake' feedback entries. The evolver reads this -// file to include tactical community insights in LLM prompts. +// high-upvote 'insight' and 'idea' feedback entries (mapping to 'hint' and +// 'strategy' from plan §13.6). The evolver reads this file to include +// tactical community insights in LLM prompts. func generateCommunityHints(data *IndexData, outputDir string) error { var hints []CommunityHint for _, f := range data.Feedback { - if f.Type != "idea" && f.Type != "mistake" { + // Filter for 'insight' (hint/tactical insight) and 'idea' (strategy idea) + if f.Type != "insight" && f.Type != "idea" { continue } if f.Upvotes < communityHintMinUpvotes {