Repository navigation
fix: 新仓库榜反刷星(克隆簇 / 假关注 / 零 fork / 黑名单) - #24
Conversation
…rk) from new-repo boards The 2026-11-14 AI and Web new-repo boards were 19/20 copies of <account>/ai--manus from throwaway accounts. Adds tools/antiabuse.py + data/anti_abuse.json: clone clusters, blocklist (every board), low-fork, fake watchers, fresh owners; dropped repos are logged in stats.json under anti_abuse and never rendered. Borderline signals are flagged and ranked last.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62c4b68fd1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for idx in list(by_name.values()) + list(by_desc.values()): | ||
| for j in idx[1:]: | ||
| union(idx[0], j) |
There was a problem hiding this comment.
Apply clone thresholds before unioning matching groups
When an unrelated repository shares a name with just one member of a description-based clone cluster, the unconditional union pulls it into that cluster even though the name match does not meet name_min_owners. For example, original/agent with a unique description, farm/agent with description X, and farm2/other with description X become one cluster, and all three are dropped if no owner passes the credibility check. The original has neither a qualifying shared name nor a shared description. Apply the owner thresholds to each matching group before creating union edges so a below-threshold match cannot remove unrelated projects.
Useful? React with 👍 / 👎.
| _, name = split_name(m["full_name"]) | ||
| self.cluster_keys.add("n:" + norm_name(name)) | ||
| d = norm_desc(m.get("description")) | ||
| if len(d) >= int(self.cfg["clone_clusters"]["min_desc_chars"]): | ||
| self.cluster_keys.add("d:" + d) |
There was a problem hiding this comment.
Preserve credible originals across category screening
When a credible original is retained from a clone cluster, its copies still add their shared name and description to cluster_keys. On the next category, _remembered() consequently drops the retained original too, without checking its exemption. This loses a legitimate project entirely when the first category did not display it—for example, when it was excluded there as an already tracked project or fell outside the refresh budget—even though it could qualify for a later category. Preserve retained originals explicitly across calls while continuing to reject their copies.
Useful? React with 👍 / 👎.
问题
2026-11-14 的「最热新仓库(7 天)」被刷:AI 榜 20 个里 19 个、Web 榜 20 个里 19 个都是
<不同账号>/ai--manus。这些仓库描述一字不差,2026-11-13 几分钟内批量建出来,每个约 270 星、0 fork;建仓的账号注册约 30 天、0 粉丝。GitHub 搜索一共能搜到 547 个。根因:新仓库榜只看「非 fork、≥100 星」再按星/天排序,没有任何规则识别「同一个仓库挂在许多不同账号下」。刷出来的克隆还把每个分类 30 个复查名额全占了,真项目连候选都进不去。
改了什么
tools/antiabuse.py(新)data/anti_abuse.json(新)ai--manus)tools/newcomers.pyanti_abusetools/update_stars.pyblocked;日志打印剔除摘要tools/risers_core.pyrank()不排blocked项目,周、月、年、总星榜都跟着生效tools/archive.py,tools/i18n.pytests/test_antiabuse.py(新)docs/ANTI_ABUSE.md(新),以及 CATEGORIES、NEW_ARRIVALS、治理文档过滤规则(默认值)
直接剔除(不进任何 README 或 latest,只记在
stats.json的newcomers.categories.<id>.anti_abuse):只标 ⚠ 排到最后,不当榜首(避免误杀):单独低 fork(比值 ≥100)、单独新号、fork 数 ≥ 星数的 90%。
查不到账号或没有 fork 数据时,相关规则一律不触发。原有的破解和盗版规则不变。
验证
历史回放:把
rankings/下所有历史新仓库榜里的 408 个仓库用 API 重新读了一遍。实跑:用新逻辑对当前数据重跑了一遍新仓库发现,结果没有提交,只在临时目录里看。
manus--ai克隆簇、11 个假关注 blender-ai-copilot-* 仓。榜单补位后第 1 到 10 名依次是 yogurt、agentes-chat、gpucanvas、legwork-osint、lot-map……共 19 个。可能误杀或误标
dhruvthakur11/youtube-ai-video-editing-system(387 星、1 fork、当天注册的号、0 粉丝),历史回放里命中「新号 + 低 fork」。Cattmonkey/ChaosIntelligence(428 星 0 fork)、bookleme/bookleme(221 星 1 fork)、AbhiKamane/ai-app-builder-open(384 星 0 fork)、zeemscript/block-roll(fork 数接近星数)、MuseumCassowaryCarve/twitch-drops-miner(新号)。这几个也可能是真项目,所以只是往后排,没有隐藏。data/anti_abuse.json里的阈值即可。说明
/users/{u}接口,零遥测。