Repository navigation
spots: the spot's kind as a hint for its release's category - #277
Conversation
When the category step's pick isn't under the spot's root (movies 2000, TV 5000), the spot wins: its kind gives the root, the name's resolution or the spot's format the leaf, and a series of the Sport genre is 5060. Tagging a release with a spot queues it for the category step again, and once per shard every release saved from a spot is queued. 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. |
|
Codex Review: Didn't find any major issues. Hooray! 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
Spot releases now use the spot's kind as a category hint. The spotter says whether a post is a movie or a series, but the release name often doesn't.
Hard labeur (1985)names no episode, and a Moto3 qualifying session reads like a movie.New
spotnet::category::hint(kind, subcats, name, picked). When the category step's pick isn't under the spot's root (Movies 2000, TV 5000), the spot wins:a): UHD, 3D, Blu-ray, the HD formats, DVD, or the SD ones.d18) is 5060.A pick already under the right root is kept, so
Toy.Story.5.2026.DUTCH...stays Movies/Foreign.The
categorystep reads the release'sspotsrow in its shard (spot_of) and applies the hint with rulespot_kind.The spot row is written after the release's save, so the step usually ran before the row existed. Two changes cover that:
store::putnow queues the release for the category step again (postprocess::rerun_on) whenever it writes a spot row.store::recategorize_allqueues every existing spot release once per shard, guarded by the shard meta keyspot_category_hint.Why: prod today (read-only)
Of about 410 spot releases:
The tests use these real titles and subcategories.
Limits
main.spot_disposals, so a spot removed by a moderator (spots: apply moderators' and spotters' removals #271) still gives its hint. Such a release keeps the root its spotter chose.Tests
spotnet::categorycovers keeping a pick under the right root, root overrides with the prod examples, sport, and each leaf.category::step::tests::reads_a_releases_spotcovers reading the spot row.storetests cover the rerun on tagging and the one-time queueing.cargo test --libpasses (1470), andcargo clippy --all-targets -D warningsis clean.No UI change. Releases just get a category.
🤖 Generated with Claude Code