chore: add read-only duplicate-issue auditor - #595
Open
essentialbit wants to merge 5 commits into
Open
Conversation
Pairwise Jaccard-scores every open GitHub issue's title+body against every other open issue, independent of local feature_backlog state, to catch duplicates that slip past insert_feature_proposal()'s narrower proposal-time dedup. Strips the issue-body template's own boilerplate and the near-universal "badge (FRED ...)" title convention, which otherwise inflate unrelated pairs to 0.3-0.4. Live run confirms it works: correctly flags the already-known #282/#194 Reddit-sentiment duplicate at 0.98, plus a previously-undocumented real duplicate at 0.312 -- #519 and #568 both propose a US money-market-fund total-assets badge (FRED MMMFFAQ027S vs OFR MMF-MMF_AG_TOT-M), just from different data sources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/audit_duplicate_issues.py: pairwise Jaccard-scores every open GitHub issue's title+body against every other open issue, using the same tokenizer asmemory_store._find_similar_proposal()plus a local stopword list stripping the issue-body template boilerplate and the near-universal "badge (FRED ...)" title convention (both confirmed inflating unrelated pairs to 0.3-0.4 before filtering)._find_similar_proposal()only guards duplicate insertion at proposal-creation time, scoped to localfeature_backlogrows withstatus IN ('proposed','in_progress')in the same category — it never re-audits the full live issue backlog (issues filed by hand, issues whose local row status moved on, or duplicates that slipped through before PR fix: proposal dedup misses cross-category and boilerplate-diluted duplicates #544's dedup fix).Live run against the real open-issue backlog (71 open issues) found:
MMMFFAQ027S(quarterly), Money market fund flow monitor (OFR STFM API) as flight-to-quality signal #568 via OFR's Short-Term Funding MonitorMMF-MMF_AG_TOT-M(monthly). Same underlying concept, different data source. Flagged for user consolidation.Test plan
venv/bin/python3 -c "from main import *"— import OK, no regressiontests/dir exists in this repo (per CLAUDE.md fallback)🤖 Generated with Claude Code