Skip to content

feat(libraries): let admins mark unmatched items as intentionally unmatched - #2438

Merged
Quick104 merged 10 commits into
Silo-Server:mainfrom
blurbery:feat/ignore-unmatched-items
Oct 15, 2026
Merged

Quick104 merged 10 commits into
Silo-Server:mainfrom
blurbery:feat/ignore-unmatched-items

Conversation

@blurbery

@blurbery blurbery commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #2392
Related issue: N/A
Validation tasks: none (the unmatched-items criteria in #198 and #1251 C1 have no recorded results yet; the Unmatched Items section gains Ignore, Restore and an Ignored view, and Match is unchanged)

Some media will never match a provider: a disc special a provider has since dropped, a home video, a local recording. Today it stays on the admin Unmatched Items list for good. The matcher keeps retrying it, and every scan counts it as still unmatched. Admins who alert on the unmatched count can never get it to zero, and taking the provider ID out of the file name doesn't help, because the next scan lists the item again. This PR lets an admin mark a movie or series as intentionally unmatched, from the list or the API, and undo that later.

The only suppression that exists today, media_files.match_suppressed_at, is the matcher backlog's Cancel action, and every scan clears it. A title-only .nfo next to the file does work now (the item becomes matched under its local- ID), but it needs write access to the media folder and a file for each item.

Approach

The mark is a nullable media_items.match_ignored_at timestamp. The item keeps its unmatched, pending or ambiguous status, so there's no new status value for the apps to decode.

While the mark is set:

  • GET /api/v2/libraries/unmatched-items and its total leave the item out. ?ignored=true lists only ignored items, each with ignored_at. The frozen v1 route shares the query, so it hides them too; its response shape doesn't change.
  • Automatic matching leaves the item alone. MetadataService.Process pins it the same way it already pins an unmatched split target, in every mode except Identify. The movie and series matcher queues skip and drain its files, so it also leaves the Metadata Matcher backlog, parked rows included. The scan retry and library refreshes skip it, so scans stop reporting it as still unmatched. An item refresh completes without doing anything, and a season or episode refresh stops before it searches a provider.
  • The item stays in its library and stays playable with its local metadata.

Match Item still works on an ignored item, and a successful match clears the mark (in the item upsert, and when an admin edit sets the status to matched). Clearing the mark puts the item back on the list and queues its files for matching again.

PUT and DELETE /api/v2/libraries/unmatched-items/{content_id}/ignore (ignoreUnmatchedItem, unignoreUnmatchedItem) set and clear the mark. They are admin only, answer 204, and repeating either changes nothing. Ignoring a matched item or a book answers 409. Books are left out on purpose: they are beta, and their enrichment paths set matched directly. getLibraryCapabilities reports ignore_unmatched: true, and docs/libraries-api.md describes the operations.

In the web admin, each movie or series row in Unmatched Items gets an Ignore button next to Match, and its toast has Undo. A picker beside the search switches between "Awaiting a match" and "Ignored", and the Ignored view has a Restore button. The header always counts the items awaiting a match. The section stays visible while anything is ignored, so an admin who ignores every item can still get to them.

An item refresh used to count a pinned result as a failure. It now treats it as done, which also applies to split targets; ProcessResult.Pinned was already documented as "a completed outcome, not a failure".

This is admin only. The Apple and Android apps have no unmatched list, so they need no follow-up, and jellycompat has nothing equivalent. The user manual update is tracked in Silo-Server/siloserver.org#204. Hiding a file completely, suggested in the issue, is already covered by .ignore files (#1314), so it isn't part of this.

Validation

Tested commit: ab291a52f. Four follow-ups came after it. df16f9076 only adds the two routes to the route manifest test data and fixes a lint finding in the cursor filter. 11b420e08 and c53c1c156 requeue only the queue a file can join, chosen by library type the way the queues choose, so a series no longer runs a movie-queue transaction per episode; the handler DB test passes on both and now covers a series too. 9ae8daa0f swaps two string literals for existing constants to satisfy lint.

  • Go: the full internal/apiv2 package and name-filtered runs in internal/api/handlers, internal/metadata, internal/catalog and internal/adminjob pass, with two exceptions unrelated to this change. TestAdminResourceCapabilitiesAndScope fails on macOS only, because resource sampling is Linux only. Three adminjob library-deletion tests (TestLibraryDeletionAcceptanceAtomic, TestLibraryDeletionCompetingAcceptanceAndInsertRollback, TestOnlyARecoveredLibraryRefreshWaitsForTheLibraryLock) fail on my fresh local database at the admin_jobs.created_by_user_id foreign key, because no user row is seeded there.
  • Database: the five new DB tests, listed in scripts/ci/db-contracts.txt, pass through the dbpins runner against a migrated PostgreSQL 18 database with pgvector. The existing queue, split-pin and refresh DB tests in internal/metadata (206) also pass. Removing the scan-retry guard or the clear-on-match each makes the handler DB test fail.
  • Web: vitest for the Libraries page, the library hooks, MatchItemDialog and the match hooks passes. tsc is clean, ESLint on the changed files shows only an existing warning, and Prettier is clean.
  • Contract: verify-apiv2-openapi, verify-apiv2-web-types, verify-apiv2-fixtures, verify-route-inventory, verify-migration-ledger and migrate-validate pass. verify-apiv2-contract against main reports 5 additive changes and none breaking.
  • Not run locally, left to CI: the full make test-go, the full make test-db-pins (I ran only the new entries), make lint-changed, pnpm run build and the bundle budget, verify-settings-bindings-all and verify-playback-fixtures. verify-local-paths crashes under the macOS system bash; a search of the diff for local paths found none.
  • By hand, on a local build with test media: I ignored an item, rescanned the library, opened both views and restored the item.
  • Review fixes: 0d2b6a9c0 settles a pinned item's refresh-debt row when its refresh is skipped, f6e10092e writes the mark only when it changes and wakes a shared series root's parked queue row on restore, and bd802a43b corrects the refresh wording in docs/libraries-api.md. ff4e93503 merges main and resolves the scripts/ci/db-contracts.txt conflict. On the merged head, the five DB contracts pass through dbpins against PostgreSQL 18 with pgvector, and the extended refresh and handler DB tests fail on c53c1c156 and pass with the fixes. The full internal/metadata and internal/catalog packages also pass against that database. verify-apiv2-openapi, verify-apiv2-fixtures, verify-apiv2-web-types, verify-route-inventory, verify-migration-ledger, tsc and the Libraries vitest files pass.
  • Benchmarks: not measured, because this isn't a performance change. Outside Identify, each Process call adds one primary-key lookup, and the existing list, queue and refresh queries each gain one predicate.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-2438/

Surface and build: web admin, Libraries tab, Unmatched Items, at desktop and phone width. Before is upstream main 6144c45cd; after is this branch at ab291a52f. Both ran locally against the same database and test media.

API totals for the same library at each step
Step unmatched-items total ?ignored=true total Movies matcher queue rows Library scan: retried / still unmatched
main, before 4 not supported
branch, before ignoring 4 0 3
after ignoring Bonus Disc Featurette 3 1 2
after a rescan 3 1 2 2 / 2
after restoring it 4 0 3 3 / 3 on the next scan

Risks

  • Migration: adds one nullable column with no default or backfill.
  • The frozen v1 listing now leaves ignored items out. Only its contents change, and an item can only be ignored through v2.
  • The mark lives on the item. An unmatched item's local- ID comes from its file path, so renaming or moving the file brings it back as a new unmatched item, and so does a new file version added beside an ignored movie.
  • If an admin ignores an item while an automatic match of it is already running and that match succeeds, the match wins and clears the mark.
  • A refresh of a split target now completes instead of failing. A season or episode refresh of a split-target series can still search providers, as it could before this change.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (Claude desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted. AI-assisted with Claude Opus. I directed the task and designed the work.
  • Adversarial review: Two independent Claude Code review agents (claude-opus-5-5) each read the full diff, one the backend and one the web code. They found that the matcher queues, season and episode refreshes and library refreshes still reached ignored items, that books have their own enrichment paths, and that the web section could briefly unmount and leave stale rows after a failed ignore. All of these are fixed and covered by tests. One suggestion, updating the operation count in docs/architecture/api-contract.md, wasn't taken, because that count covers only the operations ported from v1.

Note

Add admin ignore mark for unmatched library items

  • Adds a nullable match_ignored_at column on media_items so admins can mark an unmatched movie or series as intentionally unmatched.
  • Exposes v2 API endpoints (PUT/DELETE) for ignoring and unignoring unmatched items, plus an ignored filter on the unmatched-items listing and an ignore_unmatched capability flag.
  • Ignored items are excluded from match queues, queue synchronization, library scans and refreshes, and item refreshes. Unignoring re-enqueues movie files and series roots so matching resumes.
  • The admin libraries UI gets an Ignored view with Ignore/Restore actions for eligible movies and series.
  • Behavioral Changes: the mark is cleared automatically when an item becomes matched (via upsert or UpdateMetadataTx); pinnedUnmatched now covers both the ignore mark and unmatched splits; ignored series-child refresh returns ErrMetadataNotFound; v1 GET /libraries/unmatched-items now explicitly excludes ignored items.

Macroscope summarized ff4e935.

…atched

Some media has no provider match and never will, such as a disc special a
provider no longer lists. It stays on the admin Unmatched list for good,
and the only suppression that existed, media_files.match_suppressed_at,
is cleared by every scan.

A new media_items.match_ignored_at marks a provisional movie or series as
intentionally unmatched. Ignored items leave the unmatched list and its
total (v1 shares the query), and listUnmatchedItems lists only them with
ignored=true, carrying ignored_at. Automatic matching leaves them alone:
MetadataService.Process pins them like an unmatched split target in every
mode but Identify, the movie and series matcher queues skip and drain their
files, the scan retry and library refreshes leave them out, an item refresh
is a completed no-op and a season or episode refresh stops before a
provider search. The item upsert, and an admin edit that sets the status,
clear the mark once the item is matched.

PUT and DELETE /api/v2/libraries/unmatched-items/{content_id}/ignore set
and clear the mark, re-evaluating the item's matcher queue rows, and the
library capabilities document advertises ignore_unmatched. Books keep
their own enrichment and cannot be ignored. The merged Silo-Server#2413
breaking-change approvals are dropped now that they match no change.
Each movie or series row in Unmatched Items gets an Ignore button next to
Match, and its toast offers Undo. A view picker beside the search switches
to the ignored items, where Restore puts one back. The header counts the
items awaiting a match, and the section stays visible while anything is
ignored, so an admin who ignores every item can still find them.
@silo-kody

silo-kody Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4b7671f9-9491-425b-93b4-f90fa6b25d6c
📥 Commits

Reviewing files that changed from the base of the PR and between b0b65de and ff4e935.

📒 Files selected for processing: 38
  • contracts/api/v2/fixtures/get_library_capabilities_ok.json
  • contracts/api/v2/fixtures/ignore_unmatched_item_not_found.json
  • contracts/api/v2/fixtures/index.json
  • contracts/api/v2/fixtures/list_ignored_unmatched_items_ok.json
  • contracts/api/v2/openapi.json
  • docs/libraries-api.md
  • internal/adminjob/library_refresh.go
  • internal/adminjob/library_refresh_ignore_db_test.go
  • internal/api/handlers/libraries.go
  • internal/api/handlers/libraries_match_test.go
  • internal/api/handlers/libraries_service.go
  • internal/api/handlers/libraries_unmatched_ignore_db_test.go
  • internal/api/testdata/media_routes.txt
  • internal/apiv2/fixtures_test.go
  • internal/apiv2/libraries.go
  • internal/apiv2/libraries_test.go
  • internal/apiv2/library_monitoring.go
  • internal/apiv2/library_monitoring_test.go
  • internal/apiv2/router.go
  • internal/catalog/item_repo.go
  • internal/contractledger/ledger_test.go
  • internal/metadata/match_ignore.go
  • internal/metadata/match_ignore_test.go
  • internal/metadata/movie_match_queue_repo.go
  • internal/metadata/series_root_match_queue_repo.go
  • internal/metadata/service.go
  • internal/metadata/types.go
  • internal/metadata/worker.go
  • migrations/sql/20261014033206_media_items_match_ignored_at.sql
  • scripts/ci/db-contracts.txt
  • web/src/api/types.ts
  • web/src/api/v2/operations.ts
  • web/src/api/v2/schema.ts
  • web/src/hooks/queries/admin/libraries.ts
  • web/src/hooks/queries/admin/libraries.v2.test.ts
  • web/src/hooks/queries/keys.ts
  • web/src/pages/AdminLibraries.test.tsx
  • web/src/pages/AdminLibraries.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Walkthrough

This change adds support for marking eligible movies and series as intentionally unmatched. It adds an ignored-items listing, excludes ignored items from matching and refresh work, and adds admin UI actions to ignore or restore items.

Changes: Intentionally Unmatched Media

Layer / File(s) Summary
Persist and apply ignored state
migrations/sql/*, internal/catalog/item_repo.go, internal/metadata/*, internal/adminjob/*, scripts/ci/db-contracts.txt
Adds the match_ignored_at timestamp. Catalog updates clear it when an item becomes matched. Matching queues, metadata processing, and library refresh exclude or pin ignored items. Database tests cover these behaviors.
Expose ignore and listing operations
internal/api/handlers/libraries*.go, internal/apiv2/libraries.go, internal/apiv2/router.go, internal/apiv2/library_monitoring.go, contracts/api/v2/*, docs/libraries-api.md
Adds API operations to ignore or restore eligible media and a filter to list ignored items. Responses include ignored_at, and the capability response includes ignore_unmatched. Service and API tests, fixtures, and documentation cover the operations.
Add admin ignore and restore controls
web/src/api/*, web/src/hooks/queries/admin/libraries*, web/src/hooks/queries/keys.ts, web/src/pages/AdminLibraries*
Adds separate awaiting-match and ignored views, with Ignore and Restore actions. Query hooks send the filter, perform mutations, provide Undo, and invalidate listing queries. UI and hook tests cover the new behavior.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant Admin as AdminLibraries
  participant API as V2Libraries
  participant Handler as LibraryHandler
  participant Database as media_items
  participant Queue as MatchQueue
  Admin->>API: PUT ignore or DELETE restore
  API->>Handler: SetUnmatchedItemIgnored
  Handler->>Database: Set or clear match_ignored_at
  Handler->>Queue: Enqueue eligible files or roots
  API-->>Admin: Return operation result
Loading

Suggested reviewers: quick104, rangodj

Merge Risk: 🔵 Low · up to ff4e9

This change adds a way for admins to ignore unmatched movies and series and restore them later. It looks generally ready to merge. In one narrow timing case, an automatic match that is already running could clear an ignore an admin has just set. The admin can recover by ignoring the item again. Database tests were not run in this review, so confirm they pass in CI before merging.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 28 files. (10 skipped… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Issue [#2392] requires reversible intentional-ignore behavior for unmatched media in movie and series libraries. The PR adds the nullable media_items.match_ignored_at mark, admin-only ignore and res…
Out of Scope Changes check Passed The changes stay within issue [#2392]. The migration, API contract updates, queue and scan filtering, refresh handling, matching-state clearing, admin UI, documentation, fixtures, and automated tests …
Title check Passed The title clearly and concisely describes the main change: allowing administrators to mark unmatched items as intentionally unmatched.
Description check Passed The description is directly related to the changeset and explains the API, database, backend, documentation, and web admin updates.
Full details: Docstring Coverage

Explanation

Docstring coverage is 45.45% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 28 files. (10 skipped: 9 unsupported, 1 too large.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request go Pull requests that update go code javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Oct 14, 2026
The media route manifest lists every v2 route, so it gains the PUT and
DELETE ignore routes. The ignored cursor filter formats its value with
strconv instead of repeating a "true" literal, which goconst flagged.
Comment thread internal/metadata/service.go Resolved
Comment thread internal/metadata/service.go Resolved
Ignoring or restoring an item re-evaluated every one of its files against
the movie queue and every root against the series queue, so a series with
many episodes ran a transaction per episode that could never change
anything. The item's type now picks the queue: a movie's files go through
the movie queue and a series' roots through the series queue.
@silo-kody

silo-kody Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

…itch

goconst flagged the movie and series literals; itemTypeMovie and itemTypeSeries already name them.
…ibility

The requeue chose the queue by the item's type, but the movie and series
queues decide by library type, and in a mixed library by the file's base
type. An item whose type disagreed with its library reached only the queue
that rejects its files. Each file now goes to the queue whose predicate it
can meet, still once per movie file or series root.
@silo-kody

silo-kody Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 1 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of c53c1c1: four findings. I'm fixing three of them in commits on this branch. The Root Override one needs your call. Once the fixes are pushed I'll post a summary comment with the scores.

Reviewed with Claude Code (claude-opus-5-5), cross-checked by Codex (gpt-6.1-sol).

Comment thread internal/metadata/service.go Resolved
Comment thread docs/libraries-api.md Resolved
return false, nil
}
if pinned, err := w.service.pinnedUnmatchedBySplit(ctx, skeleton.ContentID); err != nil || pinned {
if pinned, err := w.service.pinnedUnmatched(ctx, skeleton.ContentID); err != nil || pinned {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs your call. A Root Override set on an ignored item is saved but never applied. applyQueuedGroupOverride now returns early for any pinned item. The queue predicates also drop the ignored item's files, even for a requested rerun, so no queue row forms. SetRootOverride answers 204 without clearing the mark or requeuing anything. Take an admin who learns the TMDB ID later and sets forced_tmdb_id instead of using Match Item: nothing happens, and the item stays in the Ignored view.

Options:

  • (a) SetRootOverride clears the mark on provisional items under that root, so a forced ID works like Match Item.
  • (b) Reject the override with 409 while the item is ignored.
  • (c) Keep this behavior, and document that a forced identity on an ignored item needs Restore first.

Unmatched split targets already skip group overrides, so (c) matches what Silo does today. I'm not changing this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going with (c): an override on an ignored item applies once the item is restored, the same way a split target already treats overrides, and Match Item stays the direct route. #2500 documents it in the libraries API doc and the media-naming override rules.

Quick104 and others added 4 commits October 14, 2026 19:59
…s skipped

An item refresh of an ignored or split-pinned item now returns without
searching providers, but it also left the item's refresh-debt row untouched.
A scheduled refresh had claimed that row, and nothing cleared the lease or
moved next_refresh_at, so the row was claimed again every lease period.
The pinned path now syncs the row the way a successful refresh does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tored

Partial splits let two provisional items share one observed root. Ignoring
one keeps the root's queue row for the other, and a restore's
EnqueueSeriesRoot left a parked row parked, because the root's input
fingerprint does not change with the mark. A restore now returns the row to
pending, without a rerun of files that are already matched.

The ignore and restore updates also write only when the mark changes, so a
repeated request, or a restore of an item that was never ignored, leaves
the matcher queues alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A season or episode refresh of an ignored series stops before any provider
search and counts as a failed attempt; only an item refresh completes
without changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-items

# Conflicts:
#	scripts/ci/db-contracts.txt
@silo-kody

silo-kody Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Oct 15, 2026

Copy link
Copy Markdown

Evidence is incomplete for the changed unmatched-items workflow: the description identifies desktop/phone captures and manual testing, but not a recording of Ignore → Ignored view → Restore/Undo. Please include a short recording of that flow; the evidence page should also show the before-and-after desktop and mobile admin screens with the same data.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@Quick104

Quick104 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: ff4e935 (findings were raised on c53c1c1; the fixes and a merge of main are on top).

Fit: 8/10 · Readiness: 8/10 — conditional

All 21 checks pass on ff4e935, and the CodeRabbit and Kody reruns on it raised nothing new.

Addressed

  • Refresh debt of a pinned item (medium), fixed in 0d2b6a9. An item refresh of an ignored or split-pinned item returned early and left its claimed refresh-debt row in place, so a scheduled refresh claimed it again every lease period. The pinned path now settles the row as a successful refresh does.
  • Restore left a shared series root parked (low), fixed in f6e1009. Ignore and Restore now write only when the mark changes, so repeated requests skip the requeue. A real restore also wakes the item's series roots back to pending, without forcing a rerun of files that are already matched.
  • Refresh wording in docs/libraries-api.md (low), fixed in bd802a4.
  • Merge conflict with main in scripts/ci/db-contracts.txt, resolved in ff4e935. Main had already emptied contracts/api/v2/breaking-approvals.json, so that hunk no longer changes anything. I took the paragraph about it out of the description.

Each fix has a DB test. Against PostgreSQL 18 with pgvector, the new assertions fail on c53c1c1 and pass on the new head, and the five DB contracts this PR adds pass through dbpins. The contract checks, tsc, and the Libraries vitest files pass on the merged tree.

Remaining

  • Needs your call: Root Override on an ignored item. The override is saved, but nothing applies it while the item is ignored. The options are in the open thread on internal/metadata/worker.go. This is the condition holding Readiness at 8.
  • The earlier bot threads (the match-in-flight race and the season/episode refresh error) were answered with reasons I agree with. The race is disclosed under Risks.

Validated features

No recorded-passed case is affected. The unmatched-items criteria in #198 and #1251 C1 have no results yet, so the Validation tasks: line now reads none.

Docs, apps and jellycompat

  • User manual: docs: explain ignoring unmatched items siloserver.org#204 already covers the Unmatched Items section and the Ignore flow. These fixes don't change anything it describes.
  • Apple and Android: neither app calls the unmatched-items routes, so neither needs a follow-up. jellycompat has no equivalent surface.
  • The frozen v1 list now leaves ignored items out. Its response shape is unchanged, and the description discloses this.

Scores

  • Fit 8: It closes a real gap in core library management: an item no provider lists sits on the unmatched list forever. It uses one nullable column and leaves the item's status alone. It does add new v2 surface (two operations, a filter and a capability), which keeps it below 9.
  • Readiness 8: The approach is sound and the verified defects are fixed with regression tests. The Root Override decision is still open.

Reviewed with Claude Code (claude-opus-5-5), plus a cross-check by Codex (gpt-6.1-sol) that found the shared-root issue.

@Quick104
Quick104 merged commit d34a7af into Silo-Server:main Oct 15, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request go Pull requests that update go code javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Allow marking media as intentionally unmatched

2 participants