- comic/manga sync(): a note's first-ever observed issue/chapter number
(no prior latest_issue/latest_chapter) now seeds the baseline without
flipping read_status or notifying. Previously `prev === null` counted
as "newer", so a Read note with no stored baseline flipped to Unread
on its very first real sync. Flips now require a prior value AND a
strictly greater candidate AND read_status Read, mirroring the
watchlist build.ts `prevLast &&` guard.
- manga rss/last_chapter_date: quotedOrNull renders an unset value as
the literal `null` token; on the next parse that string came back
truthy, so an unset rss field was fetched as the URL "null" and
isActive treated it as "has rss -> active" forever. Sentinel is now
stripped back to '' everywhere it's read from frontmatter.
- manga resolve(): best-effort MangaDex id lookup by title (unique-exact
match against attributes.title + altTitles) runs alongside the
existing MAL lookup when the note has no mangadex_id yet. Any failure
(no match, ambiguous, network error) is logged and skipped, leaving
the mal_id patch intact.
isActive() for book/game/comic only checked for a resolved id, so a
note that had run resolve() but never a real sync() (no read_status/
play_status/status field yet) was treated as static and never
enriched on subsequent runs. Now also requires the status-analog
field canonical render always writes; missing it means sync() hasn't
actually produced output yet.
- render **Rating:** line in manga/book/game/comic body (after read/play
status, gated on rating != '0' + stars non-empty), matching watchlist's
render.ts convention
- manga finish-flip now notifies user (final chapters out), matching
chapter-flip's existing notify path
- game renderGame emits ## Links (Steam by appid, RAWG by url) — fixes
latent owned-heading strip where user-added Links sections silently
vanished since games never re-rendered the heading
- move duplicated deriveReadStatus/deriveRating/parseNumOrNull into
library/convert.ts, import across specs; zero behavior change