Repository navigation
spots: apply moderators' and spotters' removals - #271
Conversation
A key-2 DISPOSE, DELETE or REMOVE in free.pt whose signatures hold is kept in spot_disposals: a moderator's removes any spot or comment, a spotter's own (their key must sign its message-id) only theirs, within five days of the spot as in Spotweb. A removed spot isn't fetched, its release loses the spot tag in listings and the API, and its page shows a SPOT REMOVED tag and says who removed it and when. The release stays. Removed comments are hidden. Removals are kept as long as what they remove may be. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ❌ FailedThis 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. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d93415eab9
ℹ️ 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".
A spotter's own removal needs their key to have signed its title (which names the target) as well as its message-id; a spot's created of 0 counts as unknown in the listing filter as on its page; and a removal of a spot still waiting is kept until the spot ages out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
What
Atlas now applies Spotnet removals. A key-2
DISPOSE,DELETEorREMOVE <message-id>line in free.pt counts only when its signatures hold (spotnet::sign, #264). Spotweb applies the same moderation (Services_Retriever_Spots,removeInvalidDisposes).Fromwith their own key. The spotter's key must have signed both the command's title, which names the target (Verdict::title_signed), and its message-id (Verdict::message_id_signed). Either signature alone could be replayed. It removes only that spotter's posts, and only within five days of the spot, as in Spotweb.The design stores first and filters later. Removals go into a new main-DB table,
spot_disposals (message_id, spotter, at), wherespotteris empty for a moderator. Every read filters through one SQL helper,store::disposed_sql. The order doesn't matter: a spot noted, saved or commented on after its removal is still treated as removed.todoandwaitingskip removed spots, so they are never fetched. They age out like any other waiting spot.spots_ofdrops removed spots, so the release loses the SPOT badge in listings and thetag=spot/spotterattributes in the Newznab API.Measured on live free.pt
In the last 30,000 overview lines:
Matched against prod's
spots_seen(read-only):None of the spotters' own removals named another spotter's spot. The 608 waiting spots their own spotters removed (mostly reposts) will no longer be fetched.
Tests
store::removed_spots_are_not_fetched_tagged_or_shown_as_spotscovers:headertests cover command parsing.cargo test --libpasses.Screenshots
These come from a local test home (made-up spot row, moderator removal), not prod:
The tag row shows SPOT REMOVED instead of SPOT, and the Spot section opens with the caution box. Everything else on the page is unchanged.
🤖 Generated with Claude Code