fix: exclude official orgs from publisher abuse#2527
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex review: needs maintainer review before merge. Reviewed June 5, 2026, 6:52 PM ET / 22:52 UTC. Summary Reproducibility: yes. Source inspection of current main shows publisher-abuse collection scores every active publisher and direct ban handling lacks an official-row guard; I did not execute tests because this review is read-only. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Resolve the dirty merge state, have maintainers explicitly accept the official-org moderation exemption, then land the backend-enforced exclusion with the regression tests and spec notes intact. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection of current main shows publisher-abuse collection scores every active publisher and direct ban handling lacks an official-row guard; I did not execute tests because this review is read-only. Is this the best way to solve the issue? Yes, if maintainers accept the policy. The implementation is narrow and backend-enforced across collection, finalization, dashboard/detail, and action paths, but the PR still needs conflict resolution before merge. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 94ded18decd0. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
…rgs-publisher-abuse # Conflicts: # specs/security-moderation.md
Summary
Autoreview
codex review --uncommitted; accepted and fixed two P2 findings:codex review --uncommittedpass exited 0 with no accepted/actionable findings reported.Tests
bunx vitest run convex/publisherAbuse.test.ts convex/lib/officialPublishers.test.tsbun run format:check -- convex/lib/officialPublishers.ts convex/lib/officialPublishers.test.ts convex/schema.ts convex/publisherAbuse.ts convex/publisherAbuse.test.ts specs/official-publishers.md specs/security-moderation.md && git diff --checkbunx tsc --noEmit --pretty falsebun run ci:staticbun run ci:unitbunx tsc --noEmit --pretty false && bunx tsc -p convex/tsconfig.json --noEmit --pretty false