Repository navigation
feat: sync silo-server main upstream (~413 commits) - #174
Merged
Merged
Conversation
Connection config fields absent from a schema's declared sets are classified as secrets fail-closed, but the fault-redaction list collected only declared secret fields. A plugin echoing such a value in a fault returned it in the clear. Redact every flattened secret value instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
go mod tidy removes the v0.13.1 hash pair left behind by the v0.13.2 bump. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The audiobook enrichment sweep had been permanently idle. Eligibility required an empty poster_path, but the scanner extracts embedded cover art from audiobook files, so every item had a poster before enrichment ever looked at it. Cover presence says nothing about whether an item was identified, and using it as the "already enriched" proxy meant the predicate matched nothing. On production this selected 0 rows while 5,712 audiobooks held no provider ID at all -- 5,710 of them carrying a scanner-supplied poster. The metadata providers had enriched 42 items in total; the 235,780 ASINs in the library came from file scan, not from a provider. The 5-minute trigger kept firing and finding nothing, so the gap could never drain. Key both claimBatch and HasPendingItems on the absence of any row in media_item_provider_ids instead. Sized against production this makes 5,682 items eligible rather than the 240,857 that dropping the poster clause alone would have queued against Audible. last_refreshed IS NULL is retained as the retry bound, and it is load bearing: enrichItem stamps it on a clean no-match but deliberately withholds it on provider error, so unmatchable items are attempted once while transient failures still come back. Adds DB-backed tests for both predicates, including the exact row the regression hid (cover art present, no identity). Both fail against the old predicate and pass against the new one. Neither query had any test coverage before, which is how this survived. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
…ider result
Enrichment took results[0] from every search provider unconditionally.
Search backends rank by their own relevance and answer nearly every
query with something, so a provider's best guess became the item's
permanent identity -- and enrichment stamps last_refreshed on success
and never revisits, so a wrong acceptance is a permanent mislabel:
another book's cover, overview and narrator.
Measured rather than assumed. Twenty unidentified production audiobooks
were queried against the iTunes audiobook search: 19 returned a result
and roughly a quarter of those top hits were wrong -- either a different
volume of the right series ("The OP MC 8: God of Winning" answered by
"God of Winning: The OP MC, Book 1") or an unrelated title sharing one
common word ("Star Force Origins" answered by "The Achilles Trap").
Adds metadata.BestMatch, which scores candidates against the title we
hold on disk and returns nothing when none is credible -- callers treat
that as a no-match instead of falling back to the top row. Scoring is
word-set overlap (Dice) because the differences that matter are whole
words added or dropped: an author prefix, a series parenthetical, an
"(Unabridged)" suffix. A volume disagreement is fatal regardless of
overlap, since same-series wrong-volume pairs share nearly every word.
Wired into all three call sites that had the flaw: audiobooks, ebooks
and manga. Ebooks scores against item.Title rather than the outgoing
query, which is deliberately cleaned before it is sent.
Calibrated on the real probe pairs, kept as the test fixtures: correct
matches score >= 0.88, wrong ones <= 0.44, threshold 0.50. A test
asserts the two populations stay separated so a future tweak that
narrows the gap fails here rather than in production.
Three ebook fixtures needed a title on their SearchResult. They were
passing a result with no name at all, which the gate rejects; one of
them (SkipsProviderIDOwnedByAnotherItem) would otherwise have kept
passing for the wrong reason, never reaching the ownership check it
exists to cover.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Validating the gate against the full 20-title production probe caught a
false accept it should have blocked. "All the Lies 1-3 - All the Lies:
The Complete Trilogy" was matched to "The Sentinel: The Complete Jane
Harper Trilogy: The Jane Harper Trilogy, Books 1-3" at 0.56, over the
0.50 threshold.
Both are "Books 1-3" boxed sets of unrelated series, and the score came
almost entirely from words that carry no identity: "the" three times,
plus "complete", "trilogy" and the 1 and 3 of the volume range. Neither
title's actual subject contributed. Excluding a small stopword set takes
the pair to 0.42, where it belongs, and leaves every correct match in
the sample above threshold.
The exclusion is skipped when it would leave fewer than two words to
compare, so titles that are mostly stopwords ("A Man in Full") still
have something to match on rather than scoring 0 against everything.
Rescored against all 20 probe pairs: 12 accepted, 7 rejected, 1 had no
answer. Every rejection is a genuine mismatch -- two wrong-volume pairs
of the right series, two unrelated titles, this boxed set, a bare common
noun, and a same-series different-book pair. Blind results[0] acceptance
would have taken 19 of these, roughly 6 of them wrong.
Fixtures now carry the untruncated provider strings, since the truncated
ones scored differently from what production actually returns -- which
is why the first version of this test passed while the real pair failed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
… search cleanEbookSearchTitle unwrapped a trailing series marker -- brackets removed, words kept -- so "Icarus (Realm Book 3)" went out as "Icarus Realm Book 3". The reasoning was that the volume number is what tells sibling volumes apart, and dropping it would make every entry in a series search as the bare series name and collapse onto one work. That held only while enrichment accepted results[0] blindly. It is no longer true: metadata.BestMatch scores candidates against the raw item.Title, which still carries "(Realm Book 3)", and treats a volume disagreement as fatal. The disambiguator never needed to be in the query -- it needed to be in the check, and now it is. Meanwhile the unwrapped form was not disambiguating the search, it was breaking it. "Realm Book 3" is retail furniture that no provider catalogue indexes, so the query matched nothing at all. Measured on 40 parked no_match ebooks that carry a series parenthetical, with both query forms produced by this function and both result sets scored by the real gate: what the server sends today : Open Library answered 3, accepted 0 after this change : Open Library answered 29, accepted 14 14 recovered, 0 lost. The gap between 29 answered and 14 accepted is the scoring gate rejecting results that came back but are not the book -- 15 wrong identities that blind results[0] would have stamped permanently. Scope, so the number is not read as more than it is: 23,802 of the 110,556 parked no_match ebooks (21.5%) carry a trailing series parenthetical, so this reaches about a fifth of the backlog. The other 78.5% fail for reasons this does not touch. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Found reviewing this branch's own diff. normaliseTitle stripped via
[^a-z0-9] after lowercasing, which is ASCII-only. Every non-Latin title
reduced to the empty string, so TitleScore returned 0 and BestMatch
rejected it -- including against an identical title. "進撃の巨人" scored
0.00 against itself. Accented Latin fared little better:
"Blåbærsyltetøy" became "bl b rsyltet y".
That would have been a hard regression for non-English content, and a
quiet one: those items previously matched by accident, because
results[0] was accepted without any check at all. Manga is the obvious
exposure, but the library carries Danish and Norwegian ebooks too.
Strips [^\p{L}\p{N}]+ instead, so letters and digits in any script
survive. Tests cover Japanese, Russian and Danish titles matching
themselves and rejecting different titles in the same script.
For scripts that do not space their words, a whole title normalises to
one token, so Dice gives 1 on an exact match and 0 otherwise, with
containment carrying near-misses. Coarse, but correct, and strictly
better than what it replaces. minContainmentLen stays byte-measured,
now documented as deliberate: for ASCII it is the character count the
threshold was calibrated on, and for multi-byte scripts it is more
permissive, which is right because a four-character CJK title is
specific in a way that "Bitcoin" is not.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
…ider ID mixing
Follow-ups to the match gate, each closing a hole the first pass left.
Numeral folding. Providers and rippers disagree freely on form:
"Slaughterhouse 5" against "Slaughterhouse-Five" scored exactly at the
threshold and matched only by luck, and a "Part II" volume never agreed
with "Part 2" -- which the volume rule then read as a disagreement and
rejected outright. Spelled and Roman numerals now fold to digits before
scoring, capped at 30 so single letters like "X" and "I" stay letters
("Malcolm X" must not become "Malcolm 10").
Year as a tiebreak, never a gate. For books a year gap is weak evidence:
an audiobook edition of a 1994 novel is routinely dated by its recording
decades later, so rejecting on it would discard correct matches
wholesale. It only decides between candidates already tied on title.
Cross-provider agreement. Each provider was scored independently and
every accepted match was merged into one ID map, so two providers could
each clear the bar while naming different books and leave the item
holding IDs for two works -- worse than either answer alone, because
afterwards the wrong ID is indistinguishable from the right one. The
first accepted title is now the reference and later providers must agree
with it.
Ownership guard for audiobooks and manga. FindContentIDByProviderIDs
appeared three times in the ebook enricher and nowhere in the other two,
so sibling volumes resolving to one provider work all claimed the same
ID with nothing noticing -- the exact collapse the ebook code guards
against, and manga is the most exposed, with series running to dozens of
near-identical titles. Ported including the "don't claim an ID we
couldn't verify is free" path that retries rather than stamping
terminally.
Rejections now log at Info. During a backlog drain the rejection rate is
what separates "threshold too strict" from "providers answering badly",
and that cannot be read from a log level nobody enables.
The threshold is overridable via SILO_METADATA_MATCH_MIN_SCORE so it can
be retuned against a live library without a rebuild; out-of-range values
are ignored rather than obeyed, since a typo'd 0 would accept everything.
Acceptance is now strictly above the threshold rather than at it: a
two-word title sharing one word with a two-word candidate scores exactly
0.5, which is the weakest possible evidence, not a match. Nothing correct
is lost -- the worst true match in the calibration sample scores 0.86.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Title scoring cannot separate two different books that share a title,
and for books that is not a rare edge -- generic titles recur constantly
across authors, so the gate would accept the wrong one on nothing more
than a title agreement.
The obvious fix is unavailable: the plugin contract's SearchResult
carries title, year, overview, image and provider IDs, and no author at
all. Checking it at search time would mean changing the SDK proto and
every plugin implementing it.
It is available one step later. Enrichment already calls GetMetadata on
the accepted match, and MetadataResult.People carries the credits, so
the author is verified after the fetch: a positive contradiction is
recorded as a no-match rather than written. Wired into all three
enrichers.
Absence is never disagreement. An item with no author, or a provider
returning no credits, passes -- most of this library is missing one or
the other, and treating that as a conflict would reject far more good
matches than bad ones. Only a name that actively contradicts rejects.
Name comparison allows for how the same person gets credited: surname
plus first initial (which survives middle names and
initials-vs-full-first-name), the "King, Stephen" reversal, and one form
contained in another ("Iain Banks" within "Iain M. Banks"). Non-author
credits are ignored, so a narrator neither confirms nor contradicts
authorship.
Diacritics ARE folded for names and deliberately are NOT for titles.
Providers transliterate people inconsistently -- "Émile Zola" and "Emile
Zola" are one person, and without folding they disagreed on their first
initial and the match was rejected. Titles are different: "Blåbær" and
"Blabaer" are not reliably the same work, and folding there would erase
a real distinction.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Audiobook enrichment recorded its outcome in exactly one place: media_items.last_refreshed. That stamp had to mean "matched", "genuinely unmatchable" and "the provider was down that minute" all at once, so a bad afternoon on a provider burned the item exactly as terminally as a real no-match, with no attempt count, no error class and no backoff. Ebooks have ebook_enrichment_state and manga has manga_enrichment_state; audiobooks had nothing. The new table sits deliberately between those two. It is not the full ebook lease queue: audiobook sweeps run from a single task-manager goroutine and claimBatch takes no row locks, so claim_token/lease_until would be machinery with nothing to coordinate. It is more than the manga table, which counts failures and nothing else. last_refreshed stays authoritative for eligibility, so the migration changes no behaviour by itself. What changes is that the sweep now skips items parked for a later retry, and records why each item is where it is. Failures are classified, because the distinction is the one the ebook backlog lost: 90,721 rows there carry outcome='no_match' with attempts=0 and an empty error class, which is why a rate-limited sweep on 2026-07-20 is indistinguishable from 90,721 genuine misses. Here a failure records a class and parks a retry WITHOUT setting an outcome -- it has not reached a terminal state. Rate limiting backs off hardest (retrying into a closed window is what turns a throttle into a backlog) and permanent failures park far out rather than never, since "permanent" is a classification and classifications are sometimes wrong. attempts always increments, including on terminal rows, so "never tried" and "tried and gave up" stay distinguishable. Bookkeeping never fails the enrichment it describes: a state write error is logged and swallowed, since last_refreshed remains the authoritative signal and losing a state row costs reporting detail, not correctness. Seven DB-backed tests, run against a migrated throwaway Postgres rather than assumed: the two covering the parked-retry predicate fail with the predicate removed and pass with it, so they guard something real. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
All four verified by reproduction before fixing; none were false positives. NFC-normalise before tokenising. A decomposed accent (e + U+0301) is a combining mark to the punctuation strip and vanished, while the composed spelling kept its letter, so two byte-level spellings of "Café" scored 0 against each other and an identical title was rejected. A wrong-volume primary can no longer be rescued by its alias. Aliases are often the bare series name; "Dungeon In My Closet, Book 5" was accepted for a volume-2 item through its generic "Dungeon In My Closet" alias, persisting IDs for the wrong book. A volume stated on the primary title that contradicts the item's now disqualifies the whole result. The ebook series-noise test requires volume syntax, not a marker word. Bare "book" matched anywhere, so "(The Book Thief)" -- a title, not furniture -- was stripped from the query. The parenthetical is now only dropped for "Book 4" / "#3" / bare-number / bare-year shapes. The scheduler-mirror test asserts its own fixture was claimed rather than that the claimed set is non-empty, which unrelated rows in a shared test database could satisfy. Also consolidates the two identical providerIDOwnerLookup interfaces (ebooks, manga) onto metadata.ProviderIDOwnerLookup per the repo rule against duplicated contracts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Two review findings on the state store, both real. RecordFailure was two round trips: an upsert incrementing attempts, then an update parking next_attempt_at. Anything landing between them -- a cancelled context, a dropped connection, a concurrent RecordOutcome on the same row -- left the item with an incremented attempts count but no backoff at all, immediately re-claimable against the very provider that just failed; or let a terminal outcome be resurrected as a parked retry. Now a single upsert computes min(step * attempts, cap) on the post-increment attempts value inside the statement, so there is no partial-write window rather than a transaction hiding one. retryAfterFor remains as the Go mirror of the same math, built on shared backoffParams so the two cannot drift. The cause truncation cut at a byte index, which can split a multi-byte rune; Postgres rejects invalid UTF-8, which would have silently failed the entire failure/backoff write for that call -- the exact no-backoff state the atomicity fix removes. Truncation now passes through strings.ToValidUTF8, with a DB-backed regression test whose 500-byte boundary lands mid-rune. Also reverts four pre-existing files (abs/, podcastfeed/) that an overly broad gofmt -w swept into the branch; they are not part of this change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
Complete() zeroed attempts on every outcome, so a row bulk-stamped no_match without a lookup was indistinguishable from one that failed five real attempts, and every no_match returned on the same flat 30-day horizon forever — permanently unmatchable titles (cover-scan artifacts, bare file numbers) consumed the same daily recycler quota as books that were never actually tried. - failures now counts consecutive no_match completions (success resets) - the no_match horizon doubles per prior failure, capped at 8x: 30d, 60d, 120d, 240d - retail edition suffixes are stripped from search queries — anything ending in Edition(s)/Classics, Kindle Single, A Novel — the same reasoning as the series-marker rule: providers index the work, not the storefront packaging. (Illustrated)/(Annotated) still survive. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Upstream Silo-Server#501 added GetOnboardingState/UpsertOnboardingState to userstore.UserStore without extending this stub, so the access package no longer compiles under test on main. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Same upstream gap as the access resolver stub: Silo-Server#501 extended userstore.UserStore without updating these test doubles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
enrichClaimedItem returned EnrichmentOutcomeSuccess for items whose embedded metadata already satisfied every field enrichment would fetch, without ever running the status promotion. That was the only terminal outcome to skip it: no_match, author-mismatch, and provider success all reach stampLastRefreshed, the sole writer of status 'pending' -> 'matched'. Those items therefore kept media_items.status = 'pending' permanently and were counted by the library "unmatched" tile. On prod this is 43,653 of the 44,014 reported unmatched items (99.2%) — every one of them with outcome='success', last_refreshed IS NULL, matched_at IS NULL, and title, author, overview and cover all populated. Rescanning cannot clear them, because the short-circuit fires again and the queue re-parks the row. last_refreshed is deliberately left untouched: it gates the admin quick-refresh sweep, and no provider was consulted here, so these items must stay eligible for a later refresh that could attach a provider identity. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
.claude carries gitignored worktrees and caches that reached 2.8GB locally, and .superpowers is similar. Neither is needed to build the image, but .dockerignore did not exclude them, so both were shipped to the daemon as build context (and rsync'd to deploy hosts). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Scoped API keys: an sa_ key may now carry an allowlist of scopes
(admin:users, admin:access-groups:read). A scoped key is refused on every
route its scopes do not name — including the Jellyfin-compat surface and
plugin access — so an integration credential (e.g. a billing system doing
user provisioning) no longer needs a full-power admin key. Empty scopes
keep the existing behavior. Scopes narrow, never grant: role checks still
apply to the owning user.
Admin user API hygiene:
- POST /admin/users maps a duplicate username/email to 409 duplicate
instead of an opaque 500, so clients can distinguish a lost-response
retry from a genuine server error.
- DELETE /admin/users/{id} maps a missing user to 404, making terminate
retries idempotent from the client's point of view.
- POST /admin/users accepts access_group_id (the repository already
supported it), removing the create-then-update window where a new user
briefly sat under the default access group.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
User policy fields move from "strictest of user and group wins" to inherit/override: NULL on the user row means "inherit the access group's value"; a set value is an explicit per-user override that replaces the group value in either direction — grant or restrict. A group saying "no downloads" no longer forbids granting downloads to one of its members, and a member's cap above the group's now wins instead of being clamped. - users: max_streams, max_transcodes, max_playback_quality, transcode_allowed, audio_transcode_allowed, download_allowed, download_transcode_allowed, library_ids become nullable (NULL = inherit); new nullable requests_allowed. Numeric 0 becomes an explicit "unlimited" override instead of a delegation sentinel. - access_groups: gain transcode_allowed / audio_transcode_allowed so every user field has a group value to inherit. - resolution collapses to effective = user.field ?? group.field ?? permissive no-group default; permissions keep the allowed_permissions intersection mask. All enforcement reads go through the resolver, including the previously raw fallbacks (items/sections/libraries library scope, legacy permission middleware, /auth/me and login download_allowed, requests gate — which now honors a user override). - downloads package no longer launders effective policy back into models.User; checks take a resolved PolicyUser. - admin user API: PUT accepts explicit null per policy field to clear an override back to inherit (tri-state), GET reports stored overrides (null = inherited) plus a resolved effective_policy block; access-group API carries the two new gates. - migration maps old delegate values (0 / '' / true) to NULL and keeps restrictive values as overrides, so existing behavior is preserved except the deliberate cap-above-group change. - web admin: user forms get per-field Inherit/Override controls showing the inherited effective value, saves send explicit null for inherited fields (no more silent pinning on save), the user overview shows effective values with override provenance, and the access-group editor gains the video/audio transcoding toggles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Findings from the adversarial review of c025a6e6: - An explicit empty library_ids override ([] = no libraries) round-trips as [] in admin responses instead of collapsing to null (inherit), so an admin open+save no longer silently deletes a deny-all override. - effective_policy now fails closed: a failed access-group lookup returns 500 instead of silently rendering a group-restricted user against the permissive no-group default. - Migration maps a pre-existing NULL download gate (the columns were always nullable) to inherit instead of inventing an explicit deny override, and the down block documents its inherent lossiness for explicit permissive overrides. - web: updating an access group invalidates user queries so effective values and inherit hints refresh; changing the group inside the user edit dialog degrades inherit hints to generic labels instead of showing the old group's values; the invitation form labels null library scope as inherit-from-group rather than 'All libraries'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…tatus-promotion fix(metadata): gate book enrichment on a credible match, and drain the no_match backlog
…e-performance fix(metadata): make artwork recovery explicit
…connection feat(watchsync): add per-connection plugin config
…ck-stall fix(transcodenode): stop force reload blocking playback on the node
JonahMMay
marked this pull request as ready for review
August 28, 2026 01:23
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 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. Comment |
Resolve ~320 merge conflicts for the silo upstream sync PR: - Keep silo upstream playback/server features from the sync branch (HEAD) - Preserve Prairie branding (PrairieBrand, postgres/prairie env defaults) - Integrate main CI fixes (#173): merged .golangci.yml with anchored path exclusions plus errcheck/goconst/misspell tuning from main - Remove sync-branch-deleted hooks (useTranscodeQuality, settings manifest) - Merge go.mod: main dependency bumps + silo deps (bimg, sqlite3, jsonschema) + pinned prairie-plugin-sdk for watch-sync device auth - Bridge main Live TV additions (live_hls, encodable_codecs, livetv pkg) with silo transcode/gpudetect via EncoderPreset fields and AV1 NVENC probe Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Merge origin/main (deps #169) and fix compile/CI gaps left after the silo sync conflict resolution: - Re-merge go.mod/go.sum; add libvips-dev to Go CI jobs for bimg/cgo - Restore silo web eslint.config.js; bridge probe backfill to EnsureProbeOnly - Merge main artworkkey helpers with silo image-type constants - Drop main-only AVIF/WASM imageutil files; keep silo bimg path - Fix prairie branding constants (push relay, plugin catalog, cred validator) Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
- Remove duplicate progressCountingStore onboarding stubs in jellycompat tests - Add device-aware cachedImageVariantKeyFor and ctx-scoped cachedImageVariantPath - Raise logredact coverage to 95% with URL sanitizer edge-case tests - Fix web lint (Date.now in render), sidebar CSS contract tests, and Prettier drift Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
- Restore RedactSecretQuery and always redact query params in path logging - Export getProfileId; add ensureStorageSchema and missing player/branding types - Bridge Live TV capability probe to ClientCodecCapabilities for tune requests - Add trickplay/AVIF props and AdminLibraries trickplaySupported for tsc Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Tests expect the Prairie APNs topic constant; accept both prairie and legacy silo topics during device registration validation. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Remove ForceDiscovery and priority-queue tests that were merged from main but depend on features not present in the synced silo image cache queue. Update lease-duration assertions to match the 15-minute worker lease and FIFO ClaimDue ordering. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Silo imagecache writes WebP variants inline; AVIF siblings are produced by the durable backfill processor. Align the integration test with that model so Go lint typecheck passes. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Re-merge prairie's AVIF encode stack (ffmpeg/WASM backends, durable backfill processor, Cacher.EnsureAVIFSiblings) on top of silo's bimg WebP pipeline. WebP variants still use libvips; AVIF siblings are generated asynchronously via GenerateAVIFSiblings and the backfill task. Restores imagecache AVIF scheduling, config knobs, cmd/prairie wiring, and artworkstore integration coverage dropped during the silo sync. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
- imageutil: TestPublicVariantAPIs expects WebP inline, AVIF via siblings - square variants encode AVIF after libvips WebP pass - handlers: drop cardOverlays test, fix buildinfo test fields - restore similar-items card hydration for recommendations tests Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Fix errcheck, errorlint, staticcheck, unused, goconst, sloglint, and formatting issues introduced by the silo sync. Add British-English misspell allowlist entries for upstream comment strings. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
Re-merge Live TV, trickplay, artwork-local, API key hashing, quality ladder, and related startup wiring from main while keeping silo sync improvements (settings contract, stream telemetry, playback v3, scopes, ladder backfill, and split metadata image tasks). Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Aug 28, 2026
The #174 upstream merge replaced prairie's vitest coverage toolchain with silo's eslint-only setup while CI still runs sharded coverage tests. Re-add @vitest/coverage-v8, happy-dom, and the vite coverage gate config so Renovate PR #170 web test jobs can run. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
JonahMMay
added a commit
that referenced
this pull request
Aug 28, 2026
* chore(deps): update npm (non-major) * fix(web): restore vitest coverage deps dropped in silo sync The #174 upstream merge replaced prairie's vitest coverage toolchain with silo's eslint-only setup while CI still runs sharded coverage tests. Re-add @vitest/coverage-v8, happy-dom, and the vite coverage gate config so Renovate PR #170 web test jobs can run. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com> * fix(web): use jsdom for vitest after silo sync happy-dom does not support cqi container units or several DOM APIs that CardOverlays, Layout, and VideoPlayer tests rely on. Keep coverage deps from the prior fix but default to jsdom, matching silo's post-sync tests. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com> * test(web): restore ensureStorageSchema coverage after silo sync The upstream merge dropped schema-bump tests from storage.test.ts, leaving branch coverage below CI's 95% gate. Re-add focused coverage for schema versioning and localStorage failure paths. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com> * test(web): isolate storage localStorage mocks between tests The blocked-localStorage mock leaked into later tests in shard 3, breaking round-trips values. Reinstall a fresh in-memory localStorage in beforeEach so failure-path mocks cannot pollute siblings. Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Jonah May <JonahMMay@users.noreply.github.com>
2 tasks done
JonahMMay
added a commit
that referenced
this pull request
Sep 29, 2026
Syncs Silo-Server/silo-server main at f84d2de, which brings /api/v2 that prairie-apple and prairie-android main already call. Prairie branding is kept and everything new from upstream is rebranded: module paths, cmd/prairie, UI copy, Go string literals, data directories, Docker and compose files. Wire identifiers move to prairie.*: WebSocket subprotocols and ticket prefix, every X-Silo-* header, the plugin proto package prefix and the plugin source kind. Also restores Prairie code the squashed sync #174 dropped: the Tizen HLS tag strip, web branding assets, HEAD on transcode segments, the Redis save guard and non-fatal hub start, PRAIRIE_* env names, AVIF admin settings, the w200 collection poster rung, calibre metadata keys and the episode catalog placeholder numbering. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Sep 29, 2026
JonahMMay
added a commit
that referenced
this pull request
Sep 29, 2026
Prairie's About page (server version, update status, changelog; #40) was also unmounted by #174: its layout entry and search index item were dropped while the page stayed. Re-register it as the first Settings page and in the overview ids. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs prairie-server with Silo-Server/silo-server
main(~413 commits behind) using a reset-and-rebrand approach rather than a conflict-heavy merge.silo/mainat72cba1c6cmd/prairie, plugin proto imports (prairie/plugin/v1)PrairieBrandweb UIprairie-plugin-sdkto watch-sync device authorization proto (requires prairie-plugin-sdk PR oncursor/sync-watchsync-device-auth-d673)Dependency
Merge or tag prairie-plugin-sdk PR first on branch
cursor/sync-watchsync-device-auth-d673.Risks
Large surface-area sync; full CI run required before merge.
AI disclosure
AI-assisted sync and rebrand performed by Cursor Cloud Agent.