Yokan / rebuild
Course 1 8624561

NEXT_FEATURES.md

NEXT_FEATURES.md

documentation / design asset304 lines
1# Next features23Implementation sketches based on the working tree inspected on 2026-10-03. Implementation started on 2026-10-04. Checked tasks indicate delivered code with verification noted below; unchecked tasks remain open, including any explicitly described partial work.45## Implementation progress67- **Completed groundwork:** profile ownership and compatibility assessment recorded in [docs/architecture/PROFILE_OWNERSHIP.md](docs/architecture/PROFILE_OWNERSHIP.md). Existing Default storage remains the adoption target.8- **Delivered:** Manga Notes for the current Default database: multiline editor, compact previews, save/cancel/clear, refresh and unfavorite retention, Room v11/browser persistence, migration conflict preservation, native backups, and sync exclusion. Profile isolation remains dependent on feature 8.9- **Delivered:** saved source presets for Default: typed selections and defaults, Save/Apply/Rename/Update/Delete, explicit overwrite, source/schema validation and recoverable review, pagination reset, browser/Room persistence, and native settings backup remapping. Profile isolation remains dependent on feature 8.10- **Delivered core for Default:** shared chapter identity/selection policy and scanlator ranking. Default/per-title controls, alternate-release access, detail/reader/player/count/bulk-download integration, live reader preload updates, conservative ingestion/read-state keys, and native-backup remapping passed final verification. Automatic-download runner integration and profile isolation remain open.11- **Delivered core for Default:** smarter bulk migration: ordered destination selection, bounded source discovery, conservative title/alias matching, distinct chapter coverage, explicit review/override/skip/retry, cached detail transfer, and accurate unmatched/failed totals. Existing category/progress/note transfer is retained. Additional-profile sessions remain dependent on feature 8.12- **Delivered core for Default:** Automatic Layout: opt-in global/per-title controls, bounded chapter sampling, conservative fallback, adaptive page pairing, stable logical progress, manual overrides, and native-backup compatibility. Final desktop/Android/browser verification passed. Additional-profile and device acceptance remain open.13- **Delivered core for Default:** opt-in hold-to-scroll for the continuous manga reader, transient speed, one scrolling controller, interruption handling, accessible play/pause/speed alternatives, and explicit page image actions. Focused and final desktop/Android/browser checks passed. Profile-switch and device acceptance remain open.14- **Delivered core:** app icons: Appearance previews/apply/reset, Original/Torii designs, separate appearance choices, installation-owned Android/iOS selection, iOS system artwork, Android monochrome layers, and desktop/browser static branding. Final desktop/Android/browser/iOS simulator compilation and asset checks passed; device/upgrade acceptance remains open.15- **Delivered groundwork:** Profiles registry and storage factories: permanent Default adoption, stable IDs, staged provisioning/deletion, native/browser registry persistence, and separate storage namespaces. Additional-profile UI remains gated on session/credential/job isolation.16- **Delivered session groundwork:** Default runtime moved behind an explicit `ProfileSession`, with owned lazy resources, a shared service/Hub-sync scope, cancellation/join, retryable retirement failures, Room flush/close, and browser persistence-job/listener cleanup. Final desktop and Android/browser/iOS simulator checks passed. Additional-profile construction remains gated.17- **Delivered periodic-work groundwork:** Android schedule/cancel names and inputs use stable profile IDs; cold workers validate fresh registry metadata before storage access. Callback work belongs to the recorded session and joins on expiry/retirement. iOS's existing permitted task identifiers remain explicitly bound to Default, report completion after cleanup even on pre-dispatch expiry, and preserve a retry request when cold admission cannot read metadata. Download/notification ownership is extended by the following milestone; remote sync namespaces and deletion leases remain open.18- **Delivered download/notification groundwork (2026-10-05):** Android download resume jobs carry a stable owner ID and run through fresh-registry/session admission. Foreground progress mirrors and Cancel all actions use an expiring session capability, so replacement-session actions cannot be replayed. Notification endpoints capture the owner; extra-profile Android/iOS identifiers are independent, and desktop/browser events carry an owner for UI filtering. Already-canceled callers cannot dispatch into a live owner. Final desktop and Android/browser/iOS simulator checks passed. Additional-profile production activation remains gated.19- **Delivered sync-call ownership (2026-10-05):** hybrid and direct cloud entry points capture the session, join on caller expiry/retirement, and reject stale callbacks/account reads. Hub/Mangayomi/cloud credential commits check cancellation; cloud sign-in also compares the captured configuration before saving. All 66 focused sync tests and final regression/platform checks passed, including 17 new lifecycle/credential-race tests. WebView/OS credentials, remote-library ownership and additional-profile activation remain gated.20- **Delivered cookie/browser ownership (2026-10-05):** jars capture a stable owner and suppress credential reads/mutations after retirement; shared browser stores are available only to a live Default session. Headless calls run under the captured session and join finalizers, while rendered views and callbacks retain their jar. Android headless cleanup awaits main-thread stop/destroy rather than posting detached destruction. All 28 focused tests and final regression/platform checks passed, including 13 new ownership/lifecycle tests. Independent extra-profile browser stores and HTTP transport credential isolation remain open.21- **Delivered HTTP call ownership/admission (2026-10-05):** enhanced and raw HTTP requests/streams run under their captured session and join cancellation finalizers; expired or retained stream callbacks cannot deliver bytes. Both HTTP factories refuse extra-profile owners before transport allocation, preserving Default configuration. All 54 focused tests and final regression/platform checks passed, including 12 new HTTP lifecycle/admission tests and actual retired Room/service-graph rejection. Independent transport credential stores and extra-profile activation remain open; Together/image lifetime ownership is extended below.22- **Delivered Together/image ownership (2026-10-05):** Together room state and joins capture the profile session, reject stale/non-Hub credentials, and join replacement/retirement. Image loaders capture one jar/database/transport and register retryable session cleanup. Both transports track actual Ktor call jobs so late finalizers finish before release; old loader cleanup cannot clear a replacement cache target. All 49 focused tests and final regression/platform checks passed, including 14 new lifecycle/credential/resource tests. OS credential stores, cached-image/UI disposal and extra-profile activation remain open; app HTTP/Hub cleanup and Together account revocation are extended below.23- **Delivered app HTTP/Hub transport retirement (2026-10-05):** app HTTP and Hub live sync track actual Ktor call-context jobs and await request/body/socket finalizers before native release. Hybrid/profile sync forwards awaited cleanup, including after legacy immediate close; Hub's watcher/live/debounce work closes with its own child scope, preserving parent/sibling work. All 73 focused tests and final regression/platform checks passed, including 10 new lifecycle tests. Independent credential stores, active-account/remote leases, UI switching/disposal and extra-profile activation remain open.24- **Delivered Together account revocation (2026-10-05):** changed Hub login/provider/server/device/selection revokes the room, resets its controls and joins old clients. Retained/queued command, receive, reconnect and engine work checks the captured account; failed cleanup retries before replacement allocation. Credential reads and connection startup run outside room/engine locks. All 41 focused tests and final regression/platform checks passed, including 10 new account/concurrency tests. Sync/REST account leases, cached-image/UI disposal, credential-store isolation and extra-profile activation remain open.25- **Delivered cloud transfer account guards (2026-10-05):** cloud operations retain one exact account/connection and one listed backup. Changed identities reject export/download/restore boundaries; restore checks the snapshot required by its atomic commit, and completion uses a guarded update preserving unrelated bookkeeping. Missing sync IDs never borrow another account. All 74 focused tests and final regression/platform checks passed, including 12 new tests. Durable account/profile leases, remote namespaces, selected-target restore coordination and extra-profile activation remain open.26- **Delivered Together creation ownership (2026-10-05):** title actions and their ViewModel use one injected session/controller/HTTP service. REST creation and socket replacement run as one joined controller-owned call, preserve the exact account through cleanup, and validate the returned client before navigation. REST failures preserve an existing room. All 37 final focused tests and final regression/platform checks passed, including 14 new tests. The SQLite busy-lock fixture now acquires its lock with a bounded wait and cleans up only a started transaction. Durable account leases, remote-room cleanup, reader/player/UI disposal and extra-profile activation remain open.27- **Delivered Together UI bindings (2026-10-05):** manga/player/novel hooks and navigation capture one owner/controller. Composition disposal, background lifecycle, client replacement and account revocation reject stale updates/actions; resume/remount gets fresh admission. Novel scrolling belongs to its follower effect, and Leave retains its target client. All 31 focused tests and final regression/platform checks passed, including 15 new Compose/socket/navigation regressions. Full switching/progress shutdown, other reader/player callbacks, cached-image disposal, credentials and extra-profile activation remain open.28- **Delivered reader content ownership (2026-10-05):** manga page loading, novel source headers/remote cleaned markup and anime video extraction use one session-owned content service with captured database/runtime/local files. Caller expiry and retirement join extraction cleanup; canceled or retiring calls cannot deliver late results or write the page cache. All 36 focused tests and final regression/platform checks passed, including 15 new extraction/cache regressions and actual Default Room/service-graph retirement checks. Local EPUB/TTS/link callbacks, player configuration/proxy/AniSkip/screenshots, image/export callbacks and full progress/UI shutdown remain open.29- **Delivered local novel content/links (2026-10-05):** EPUB chapter/image reads and rich-content parsing run inside the captured session call, with joined cancellation and resource callbacks that expire after parsing. Late archive failures become cancellation before UI error/fallback handling. Parsed links retain chapter/screen/session admission, reject background or stale clicks, use current actions and rebuild on lifecycle-owner replacement. All 40 final focused tests and final regression/platform checks passed, including 18 new extraction/parser/Compose regressions. TTS, player service callbacks, cached-image disposal and full progress/UI shutdown remain open.30- **Delivered novel speech ownership (2026-10-05):** the novel reader captures its session speech service and a separate handle per chapter/composition. Speech/voice calls join cleanup on expiry; old Stop cannot target a replacement reader. Disposal retires handles synchronously, controller commands serialize, progress callbacks expire and native release retries before reuse. Android releases its engine and desktop release joins subprocess termination. All 28 focused tests and final regression/platform checks passed, including 20 new speech/Compose lifecycle regressions and actual Default service-graph retirement checks. Player callbacks, cached-image disposal, foreground progress/UI shutdown and real native audio/device acceptance remain open.31- **Delivered player auxiliary ownership (2026-10-05):** configuration/custom-script files, AniSkip, proxy registration and screenshot seed/cleanup use a captured session service and expiring episode handles. Cancellation joins blocking file/HTTP work; retired handles reject file/native dispatch and proxy URLs, and old Stop cannot stop the shared proxy. The route injects the service, owner replacement resets cached player state, and expired initialization results/failures cannot reach UI. Screenshot names retain unique suffixes for long titles. All 35 focused tests and final regression/platform checks passed, including 27 new service/blocking-I/O/Compose regressions and actual Default Room/service-graph retirement checks. Controller allocation/retirement is extended below; queued mpv command/capture completion, surface/bridge/PiP callbacks and full switching/progress shutdown remain open.32- **Delivered native media proxy retirement (2026-10-05):** session cleanup awaits the captured proxy's listener/client workers and actual upstream HTTP call finalizers before returning. Retired proxies reject direct/header-free URLs as well as registrations, and failed native release retries without reopening admission. Legacy immediate Stop remains compatible with later awaited cleanup; another proxy keeps its own headers and transport. All 40 focused tests and final regression/platform checks passed, including 7 new loopback/Ktor lifecycle regressions. Controller allocation/retirement is extended below; queued mpv command/capture completion, surface/bridge/PiP callbacks and full switching/progress shutdown remain open.33- **Delivered player controller allocation/retirement (2026-10-05):** captured controller allocation/lifetime and awaited mpv retirement. Cancellation joins late factory results, active controller callbacks and command/observer finalizers before native release; failed cleanup is retained for retry. All 68 focused application tests and 8 vendored mpv wrapper tests passed (18 new regressions: 17 app, 1 dependency). Full desktop regression passed (1204 tests, 1202 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed.34- **Delivered native screenshot completion (2026-10-05):** awaited native commands and capture completion. Capture now waits for native command completion, joins cancellation finalizers before deleting its own file and rejects late UI notices; queue admission alone cannot report success. All 75 focused tests passed, including 16 new command/capture regressions for cancellation, failure, ordering and blocking native cleanup. Full desktop regression passed (1220 tests, 1218 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed.35- **Delivered player bridge UI/PiP admission (2026-10-05):** captured bridge collection and picture-in-picture admission. Bridge collection joins reader/session cleanup and retains the UI context; expiring controller/lifecycle bindings reject late events and old PiP requests. PiP state is published by identity after composition commits, so old cleanup cannot clear a replacement owner. All 105 focused tests passed, including 19 new ownership/Compose regressions for disposal, replacement, finalizers and lifecycle changes. Android host callbacks retain their originating activity. Full desktop regression passed (1239 tests, 1237 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed.36- **Delivered software player surface retirement (2026-10-05):** desktop/iOS software render loops now run as controller-owned work on their captured UI context. Controller retirement joins native frame work and UI pixel cleanup; expired loops reject late frames/failures and escaped renderer callbacks. All 46 focused tests passed, including 12 new ownership/Compose surface regressions. Full desktop regression passed (1251 tests, 1249 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Android SurfaceView and compatibility/browser surfaces are extended by the following milestone.37- **Delivered native/compatibility player surface retirement (2026-10-06):** Android SurfaceView attachment/resize/detachment belongs to the controller and joins before libmpv release. Compatibility surfaces allocate per controller/remount, detach UI before awaited backend cleanup, preserve the captured cleanup context and retry failed release. Browser DOM listeners, pending PiP requests and AudioContext.close() promises retain their exact video/controller; old cleanup cannot affect replacements. The pinned compatibility backend is a local source module, with owned Android/iOS/desktop work and exact native observer guards. All 65 focused app tests passed, including 19 new regressions. All 36 headless-Chrome library tests and four JVM disposal tests passed. Full desktop regression passed (1270 tests, 1268 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open. Controlled browser promises/native hooks do not establish real playback, native PiP or device/store acceptance.38- **Delivered profile activation/switching and management (2026-10-06):** the coordinator now owns the published session. Settings → Profiles creates, renames, switches and deletes extra profiles; quick switching and backup/restore profile selectors appear only once an extra profile exists. Switching preflights target storage, waits for composition disposal and navigator finalizers, retires the old session and publishes a fresh one, with a recovery screen on failure. The last active profile reopens on launch. Targeted export/restore/rollback pin the selected profile; active-profile restores retire the foreground UI first and keep destination credentials/device paths. Extra profiles disable shared WebViews, Mihon servers, Together and remote sync until those boundaries are isolated.39- **Delivered integration isolation (2026-10-06):** extra profiles now get per-profile browser stores (Android androidx.webkit profiles on MULTI_PROFILE WebViews, iOS per-identifier or non-persistent WKWebsiteDataStores, desktop per-owner JavaFX cookie handler and data directory), per-profile Mihon servers (desktop child JVM confined to the profile root; Android in-process bridge with namespaced preferences, one owner at a time and a cleared cookie jar on owner change), and the real Hub/Mangayomi/cloud sync graph plus Together. A device-wide sync-account lease in the profile registry stops two profiles connecting to one remote library. Remaining limits: iOS Mihon and BGTask scheduling stay with Default; web extras cannot use browser logins, WebSockets or Mangayomi cookie auth.40- **Remaining:** physical device/installer acceptance.41- **Delivered e-ink display mode (2026-10-07):** Appearance → E-ink display adds a device-local mode for Android e-ink readers with Kindle (basic, Paperwhite, Oasis, Scribe), Kobo (Clara, Libra, Sage, Elipsa) and Boox presets. It applies a black-on-white theme without ripples or route/chrome motion, grayscale manga pages, instant page turns (manga, novel paged and screen-sized novel scroll jumps) and a black full-refresh flash every N page turns (off, 1–20). Optionally, new manga page downloads are stored as grayscale JPEGs whose short side matches the preset's panel width (Android Bitmap, Skia elsewhere); GIFs, undecodable images and results that are not smaller keep the original. Sync and backup restore never change these settings. Tested by sizing/refresh tests, a real Skia transcode test and an offscreen render of the settings screen in the e-ink theme. Not yet tried on a physical e-ink device.42- **Verification (2026-10-06):** final `:composeApp:desktopTest`, `:composeApp:compileKotlinWasmJs`, `:composeApp:compileDebugKotlinAndroid`, and `:composeApp:compileKotlinIosSimulatorArm64` passed after native/compatibility player surface retirement. Desktop suite: 1270 tests, 0 failures/errors, 2 skipped (1268 passed), including 42 profile tests, 9 download-binding tests, 6 notification tests, 4 background-completion tests, 15 sync-ownership tests, 17 cloud-sync tests, 5 cookie-ownership tests, 8 browser-ownership tests, 12 HTTP-ownership tests, 7 Together-ownership tests, 9 Together-account tests, 1 room-admission concurrency test, 5 image-transport tests, 7 Ktor transport-lifecycle tests, 42 backup restore tests, 10 Together-creation tests, 3 room-REST tests, 4 detail ViewModel tests, 15 Together UI/Compose lifecycle tests, 23 reader-content tests, 8 chapter-page resolver tests and 8 novel content/Compose ownership tests, 12 speech-service ownership tests, 4 novel TTS command-ownership tests and 4 novel TTS Compose lifecycle tests, 20 player auxiliary service tests, 8 player blocking-I/O/Compose lifecycle tests, 7 native media proxy lifecycle tests, 9 controller ownership tests, 4 mpv retirement tests, 2 controller Compose lifecycle tests and 1 terminal compatibility controller test and 16 native command/capture tests (8 command, 7 screenshot, 1 blocking native I/O) and 20 bridge UI/PiP admission tests (7 bridge binding, 8 PiP ownership, 5 Compose lifecycle) and 12 software surface lifetime tests (9 controller ownership, 3 actual Compose surface) and 18 native/compatibility surface tests (9 resource lifetimes, 5 native bindings, 4 actual Compose surface). The local compatibility library also passed 36 headless-Chrome tests (including 4 DOM/PiP and 2 AudioContext disposal tests) and 4 JVM awaited-disposal tests. The preceding controller milestone also verified 8 vendored mpv wrapper tests. Android used the installed SDK via `ANDROID_HOME`. App icon release resources and Apple actool asset/metadata checks passed in the preceding icon milestone; Xcode project/plist and ICNS checks passed there too. `git diff --check` passed. iOS device/release builds, full app installations, real native-browser/store/cleanup acceptance, real PendingIntent/process-relaunch delivery, two-tab browser isolation, and platform/device acceptance remain unverified; completed checkboxes do not imply device acceptance.43- All preceding feature, profile, icon, statistics and parity work was committed in five commits on 2026-10-05; subsequent milestones are committed after verification.444546## Current coverage4748| Feature | Status | Remaining work |49| --- | --- | --- |50| Manga Notes | Implemented | iOS device/release builds and device acceptance remain open. |51| Smarter Bulk Migration | Core implemented | iOS device/release builds and device/real-extension acceptance remain open. |52| Saved Source Filters | Implemented | iOS device/release builds and device/real-extension acceptance remain open. Schema changes conservatively require review. |53| Automatic Layout | Core implemented | iOS device/release builds and device/offline/real-extension acceptance remain open. |54| Press and hold to scroll | Core implemented | iOS device/release builds and device acceptance remain open. |55| Scanlator priority & duplicate skipping | Core implemented | iOS device/release builds and device/real-extension acceptance remain open. |56| App Icons (+ Light/Dark mode) | Core implemented | Physical launcher/appearance/upgrade acceptance remains open; the installed icon is OS-owned and unaffected by profile switching. Desktop/browser retain static installed icons. |57| Profiles | Management UI, switching, targeted backups, registry/storage, session/jobs, transport/UI bindings, reader content, speech, player auxiliary/controller ownership, native retirement/capture, bridge/PiP admission and all player surface retirement | Default ownership/retirement, job ownership, notification origins, external sync/HTTP-call lifetimes, cookie/browser ownership, app HTTP/Hub/Together/image transport retirement, Together UI bindings, reader content extraction, novel EPUB/link ownership, novel speech ownership, player auxiliary ownership, native proxy retirement, controller allocation/retirement, screenshot completion, bridge UI/PiP admission and desktop/iOS software, Android native and compatibility/browser surface retirement are implemented and verified. Activation/switch recovery, management UI, scoped deletion and targeted backup/restore are implemented. Browser stores, Mihon servers, remote sync (with device-wide account leases) and Together are isolated per profile; documented platform limits remain (iOS Mihon/BGTasks Default-only, Android WebView profile support, web extras without browser logins/WebSockets). Device acceptance remains open. |5859## 1. Manga Notes6061**Starting points:** [title entities](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DatabaseEntities.kt), [detail UI](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/detail), [repository](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/data/YokanRepository.kt), [backup](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/backup).6263- [x] Add a private plain-text note field for each library title, with an empty default. Keep it separate from source metadata so a refresh cannot overwrite it. Carry it through domain mapping, database adapters, snapshots, and entity equality/change detection.64- [x] Add a Notes action and a compact note preview on title details. Support create, edit, save, cancel, and clear; expose an editor only for titles in the library. Retain the note when unfavoriting a title so re-adding it recovers the text.65- [x] Store notes inside the owning profile. Never send them to extension runtimes, metadata providers, trackers, or logs. Initially keep notes out of cloud sync; include them in native backups and document that those backups contain private text.66  - **Implemented:** database-owned private text, redacted entity debug strings, Hub/Mangayomi incoming/outgoing protection, cloud upload exclusion, native-backup privacy guidance, and external-format omission guidance. Independent database instances do not share notes. **Profiles (2026-10-06):** each profile's notes live in its own database; targeted backups export/restore only the selected profile.67- [x] Preserve notes during source migration and native backup/restore. If the destination already has a different note, retain both with clear separation rather than silently overwriting one. Older backups without notes must not erase existing notes during merge; full replacement follows the selected restore semantics.6869**Acceptance:** A multiline Unicode note survives restart, source refresh, migration, and native backup round-trip. Cancel leaves the saved note untouched; clear removes it. A second profile cannot see it. External backup formats explicitly report when notes cannot be represented.7071**Verified (2026-10-04):** focused common/desktop tests cover multiline Unicode/whitespace, source refresh, unfavorite plus cleanup/re-add, snapshot restart, Room 10→11 upgrade and reopen, save/cancel/clear, source-migration conflict handling, native round-trip, repeated merge and legacy replacement, cloud omission with local-note preservation, and Hub/Mangayomi privacy. Clear edits the draft and Save commits the removal; Cancel discards it. Native exports include retained notes on unfavorited titles for selected title types. Additional-profile and device acceptance are still pending.7273## 2. Smarter Bulk Migration7475**Starting points:** [MigrationService](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/migration/MigrationService.kt), [migration screens](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/migration), [migration tests](composeApp/src/commonTest/kotlin/eu/friedcutlet/yokan/services/migration/MigrationServiceTest.kt).7677Discovery and transfer are now separate. Select and reorder compatible destinations, inspect suggested matches and effective/raw chapter counts, override or skip individual titles, and explicitly migrate the selection. Discovery never changes the library and no longer falls back to an unrelated first result.7879- [x] Change destination selection and runner state/routes to accept multiple installed, compatible sources. Search every selected destination for each selected title, with bounded concurrency, cancellation, per-source timeouts, and visible partial failures.80- [x] Separate matching from migration. Normalize titles and known aliases, check available language/type metadata, and fetch details for plausible matches. Remove the automatic first-result fallback: ambiguous or weak matches require review.81- [x] Rank accepted matches by chapter coverage, descending. Proposed count: distinct recognized chapters, retaining unnumbered entries separately, so duplicate scanlator releases do not inflate coverage. Show both effective and raw counts; use match confidence, selected source order, then stable identity to break ties.82- [x] Define a bounded pagination/candidate policy and mark truncated searches as incomplete. A failed or incomplete source must be visible rather than silently treated as having no chapters. Allow retry before committing the proposed winner.83- [x] Show a review list containing old title, proposed title/source, chapter count, and match reason; allow override or skip. Reuse the existing migration transfer path, including notes when available. Cache fetched details for the run and only unfavorite the old title after a successful transfer.84- [x] Keep accurate totals for migrated, unmatched, failed, and skipped titles, including titles with no candidate. Bind the run to its originating profile.85  - **Implemented:** totals retain every selected eligible title, including unmatched and source/transfer failures. Discovery/review/transfer use the captured repository/database/settings/service scope for Default; reopening the route reattaches to the same run. **Profiles (2026-10-06):** runs live in the profile session's service scope, so switching cancels and joins them before the session closes.8687**Acceptance:** A later-selected source with more chapters beats an earlier match; a similarly named unrelated title never wins on count alone. Ties are deterministic, duplicate releases do not inflate rank, source failures remain visible, and failed/cancelled transfers preserve the original library entry and progress.8889**Verified (2026-10-04):** focused tests passed for later-source coverage wins, duplicate release counts, normalized titles and known aliases, conservative similarity and sequel/side-story rejection, language/type compatibility, confidence/source-order/URL ties, and per-run detail caching. Service coverage includes explicit override/skip, accurate unmatched/failed totals, partial source/detail failures, pagination limits, retry, bounded concurrency and per-source timeouts, parent-deadline propagation, discovery cancellation, failure/cancellation during transfer, and destination removal before commit. ViewModel coverage checks compatible destination selection/reordering/removal and route reattachment without repeated discovery. Final combined desktop tests and Android/browser compilation passed as recorded above.9091**Policy and limits:** at most three sources run concurrently per title. Each title/source has a 60-second cooperative timeout, three distinct title/alias queries, three pages per query, 100 raw search results across queries, and 12 plausible detail fetches. Reaching a limit, failed details, timeouts, or source failures is visible in review; retry refreshes that title's searches/details. Ranking compares conservative distinct chapter identities, then title-match confidence, selected source order, and URL. Unnumbered/ambiguous entries remain separate. Type and available language metadata must agree; exact titles/known aliases are preferred, and limited token similarity is shown for manual review. All transfers require an explicit review action. The existing single-destination route field remains readable for saved-route compatibility.9293**Compatibility limits:** additional profiles, iOS device/release builds, and device/real-extension acceptance remain pending. Reviews and cached details are kept in memory for the current process; restarting abandons an uncommitted review without changing the library. Timeouts and cancellation depend on runtime cooperation. The extension detail contract does not report hidden chapter-list truncation, so coverage uses the details it supplies. Transfer reuses the existing progress/category/note path and preserves the original until its final successful step; a failed/cancelled transfer may leave a prepared destination entry, without deleting the original or its downloaded files.9495## 3. Saved Source Filters9697**Starting points:** [SourceHomeViewModel](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/browse/SourceHomeViewModel.kt), [SourceFilterSheet](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/browse/SourceFilterSheet.kt), `DbSavedSearch` in [DatabaseEntities](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DatabaseEntities.kt).9899`DbSavedSearch` now stores a stable preset ID, source identity, query, and typed selections with the recorded filter schema. Existing query-only rows remain compatible.100101- [x] Extend saved searches into named source presets with stable IDs, query text, and serialized typed filter selections. Support all runtime filter types, including multi-select, tri-state, sort, and text, keyed by source identity and stable filter identifiers.102- [x] Add Save current filters, Apply, Rename, Update, and Delete to the filter/search UI. Allow an empty query and filter-only presets. Save the combination currently shown in the filter editor; make overwriting an existing name explicit.103- [x] Applying a preset replaces the current query and filter combination together, resets pagination, and triggers one search. Preserve old query-only saved searches with empty selections.104- [x] Validate stored selections against the current extension schema. Show removed or incompatible filters for review rather than silently applying a different combination; do not rely solely on translated labels or option positions.105- [x] Persist per profile and include presets in native settings backup/restore. Handle missing/reinstalled sources without attaching a preset to an unrelated source.106  - **Implemented:** database-owned settings persistence for Default, native export/merge/replace, unique source-identity remapping (including settings-only backups), legacy adoption, stable-ID merge conflict handling, and protection from unrelated numeric source-ID reuse. **Profiles (2026-10-06):** presets persist in each profile's database and move with targeted backups.107108**Acceptance:** Save two distinct combinations, restart, and recover identical requests. Applying a filter-only preset clears a previous query. Old saved searches still work; renamed/removed extension filters produce a recoverable warning.109110**Verified (2026-10-04):** policy tests round-trip toggle, single-select, multi-select, tri-state, text, and sort selections without changing outbound requests, including untouched defaults and sort direction. ViewModel tests cover two combinations after snapshot restart, filter-only query clearing, page reset and exactly one fresh request (including repeat Apply), explicit overwrite/update/cancel/rename/delete, legacy query-only rows, current-schema refetch, and recoverable schema failures. Review alone performs no search; pressing Filter applies the reviewed combination. Native-backup tests cover typed presets, source-ID remapping, repeated merge, replacement, and settings-only restore. A Room 10→11 upgrade/reopen test verifies preset settings alongside notes. Final desktop tests and Android/browser compilation passed as recorded above.111112**Compatibility limits:** recorded names, options and defaults must still match, even when the runtime supplies explicit IDs. Runtimes with synthesized IDs are never matched by translated labels or guessed option positions; changed schemas require explicit review. Failed schema loads and source-identity mismatches leave the current request unchanged. Update can explicitly replace an unavailable preset with the current source/editor combination. Multiple profiles, iOS device/release builds, and device/real-extension acceptance remain unverified.113114## 4. Automatic Layout115116**Starting points:** [reader preferences](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderPreferences.kt), [ReaderViewModel](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderViewModel.kt), [reader settings](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderSettingsSheet.kt), `DbReaderMode`/`DbPageMode` in [DatabaseEntities](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DatabaseEntities.kt).117118Automatic Layout is opt-in globally or per title. Existing per-title manual modes retain priority until explicitly reset to Automatic or the global default. Page pairing remains a separate override; the reader settings sheet shows the resolved layout and provides immediate manual/default/automatic controls.119120- [x] Add an Automatic preference globally and per title while keeping resolved reading direction, scrolling mode, and page pairing separate. Explicit per-title choices always win; preserve existing manual preferences during upgrade.121- [x] Implement a testable layout resolver using available source/title metadata, a small sample of page dimensions, and viewport size/orientation. Prefer explicit direction metadata; tall-image patterns suggest webtoon, ordinary pages use the configured paged/vertical fallback, and sufficiently wide viewports may permit double-page.122- [x] Treat image shape as insufficient evidence for RTL versus LTR. On uncertainty or missing metadata, use the user's fallback. Show the resolved layout and allow immediate manual override or reset to Automatic.123- [x] Avoid pairing already-wide spreads and avoid switching repeatedly as images load. Resolve at chapter entry; apply viewport changes while preserving the logical page and reading position. Cache decisions with enough input/version information to invalidate stale results.124- [x] Keep detection lightweight and usable offline from cached metadata/images. Review serialized enum compatibility before extending reader settings.125126**Acceptance:** Cover tall webtoon pages, ordinary RTL/LTR pages, missing metadata, mixed aspect ratios, landscape spreads, rotation, and offline reading. Manual overrides remain stable and no layout change loses progress.127128**Implemented and verified (2026-10-04):** the shared resolver keeps fallback direction, scrolling mode, and page pairing separate. Only explicit Webtoon/Long strip genre tags or a conservative sample of the first three original image dimensions select webtoon. Multi-page chapters require at least two valid samples, with at least 75% tall images (height/width ≥ 2.5). Insufficient, failed-only, or mixed samples retain the configured fallback. Sampling reuses the existing three-request prefetch limiter and normal cached/file image paths, with a 1.5-second decision window; later dimensions cannot flip the chapter mode. A later preloaded chapter resolves independently. A wide landscape viewport (at least 840 dp) permits adaptive pairing in paged modes, but both pages must have known ordinary dimensions; wide spreads, tall pages, unknown sizes, and chapter transitions remain single. Explicit one-/two-page choices still win. Logical page indexes and progress remain unchanged by layout and viewport changes.129130**Compatibility and limits:** no serialized reader/page enum values changed. New settings fields default to disabled and persist in existing Room settings JSON and browser snapshots. Native backups remap per-title owners by unique title identity, preserve fallback modes, support local-wins merge and replacement, and restore only the global flag without owner identities. Hub sync excludes the new fields; local identity migration remaps their owners. Per-session decisions are bounded to eight entries and keyed by policy version, source version, genres, page identities/headers, and refresh generation; geometry is bounded to 200 pages. Force refresh invalidates sampling, while viewport/fallback changes resolve live. Source/title APIs currently expose no explicit reading-direction field, so production uses the configured RTL/LTR fallback rather than guessing from language or image shape. Sampling may fetch up to the first three images even when resuming later; it does not make separate metadata requests. iOS device/release builds, actual offline/device/real-extension acceptance, and pixel-offset preservation during rotation remain unverified. Additional-profile sessions remain dependent on feature 8.131132**Verification:** policy tests cover tall/ordinary/mixed/invalid samples, explicit/fallback direction, viewport and manual pairing precedence, wide spreads and unknown dimensions, and legacy settings/serialization. Reader tests cover bounded failure/deadline fallback, late/stale callbacks, per-chapter preloaded geometry, rotation, manual override/reset, and preserved logical progress. Renderer feedback coverage prevents a regrouped/resumed second page from moving backward to the spread's first page. Native-backup tests verify owner remapping, merge idempotence, replacement and settings-only restore; Room reopening verifies the global flag and title fallback. Hub exclusion and local identity migration are covered. The final combined desktop suite and Android/browser compilation passed as recorded above.133134## 5. Press and hold to scroll135136**Starting points:** [ReaderAutoScroll](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderAutoScroll.kt), [ReaderGestures](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderGestures.kt), [ReaderScreen](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderScreen.kt), [ReaderContract](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderContract.kt).137138Hold to scroll is opt-in in global Reader settings and the reader settings sheet. In the image-based reader, a stationary single-pointer long press starts forward scrolling in webtoon, vertical continuous, and horizontal continuous modes. Drag against the reading direction to accelerate; drag along it to slow down to zero. Release stops scrolling. Page image actions, refresh, and browser opening are available from the toolbar's Page actions menu; disabled/unsupported/zoomed modes retain long-press image actions.139140- [x] Add an opt-in hold-to-scroll gesture in webtoon and continuous modes. Proposed behavior: hold to begin forward scrolling, drag upward to accelerate, downward to decelerate to zero, and release to stop. Horizontal continuous modes use the same speed gesture along their reading axis/direction.141- [x] Track idle/holding/scrolling state and transient speed in reader state; use a dead zone and bounded speed range. Show a small speed indicator. Do not persist every pointer movement or change the user's normal auto-scroll speed.142- [x] Reuse the scrolling driver with one active controller. A hold temporarily takes ownership from ordinary auto-scroll; release leaves scrolling paused. Stop on pointer cancellation, focus/background loss, reader exit, settings/image dialogs, or profile switch.143  - **Implemented:** one frame-driven controller for ordinary and held scrolling; taking ownership pauses ordinary scrolling, and release does not resume it. Pointer cancellation, multi-touch, rotation/layout changes, zoom, focus/background loss, reader exit/disposal, settings, chapter dialogs, and page image actions stop the hold. **Profiles (2026-10-06):** switching disposes the reader composition before retiring the session, which stops the hold through the existing disposal path. Device acceptance remains open.144- [x] When enabled, route long press to scrolling only in supported modes; keep image actions reachable through an explicit menu. Preserve zoom, ordinary swipe, taps, and multi-touch without firing competing actions.145- [x] Keep accessible play/pause and speed controls as alternatives. Define chapter-boundary behavior consistently with continuous reading; stop at the final available content and avoid a busy loop while loading.146147**Acceptance:** Holding starts, dragging changes speed smoothly, and release/cancellation stops immediately. Verify webtoon, vertical and horizontal continuous modes, RTL direction, zoom/multi-touch, chapter loading, and app backgrounding.148149150**Policy and compatibility:** pointer ownership starts only after the platform long-press timeout, with no consumed child gesture or competing pointer. A 12 dp speed dead zone and a 0–60 transient range prevent accidental reversal; normal saved speed remains 2–30 and pointer movements never write settings. A speed multiplier/paused indicator reflects the hold. The existing play/pause button and settings speed slider remain available when hold is enabled, even without automatic startup. Normal average scrolling speed is preserved while the list driver uses frame-based increments; speed updates do not restart it. Loading boundaries suspend until scroll extent or terminal status changes, and the confirmed final transition stops once. A continuous chapter adoption retains the hold unless the resolved layout changes its mode. New settings JSON defaults to disabled; existing reader enums and Room schema remain unchanged. Room reopen/JSON round-trip persist the flag; native replacement/settings-only restore recover it and merge preserves the local choice. Hub settings exclude the flag until protocol support is established.151152**Focused verification (2026-10-04):** policy tests cover bounds, dead zone, zero speed, invalid movement, reading-axis direction, and legacy serialization. ViewModel tests cover temporary ownership, no speed persistence, release/stale callbacks, accessible play/pause, settings/background/resume, disabled/manual/automatic layouts, reader exit, and continuous chapter entry. Real desktop Compose scenes verify hold/drag/release without tap/image actions, single/double taps, ordinary swipes, multi-touch before/after ownership, disabled-mode image actions, horizontal LTR/RTL gestures, and the actual reader pinch-zoom handler. Driver integration verifies saved/transient speed, next-frame pause, loading-boundary extent changes, one terminal stop, and logical forward RTL scrolling. The final combined desktop suite and Android/browser compilation passed as recorded above. iOS device/release builds, physical-device/app focus acceptance, and additional profiles remain unverified or pending.153154## 6. Scanlator priority & duplicate skipping155156**Starting points:** [ChapterFilters](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/detail/ChapterFilters.kt), [ReaderChapterSequence](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ReaderChapterSequence.kt), [sequence tests](composeApp/src/commonTest/kotlin/eu/friedcutlet/yokan/ui/screens/reader/ChapterReadingSequenceTest.kt).157158One shared policy now chooses releases for detail lists, library counts/status filters, manga/novel reading, anime navigation, and bulk downloads. Duplicate skipping is opt-in; priorities can be configured globally in Reader settings and overridden on title details. Show all releases exposes alternates without deleting any rows or files.159160- [x] Add a default ordered scanlator preference and optional per-title override, plus a Skip duplicate releases toggle. Normalize names conservatively and allow users to reorder groups, including unknown/unranked groups.161- [x] Extract a shared chapter-selection policy: identify equivalent releases, apply scanlator exclusions and priority, then choose one stable winner per chapter. Preserve volume, fractional chapter, language, and special-edition distinctions where known; uncertain/unnumbered chapters remain separate.162- [x] Apply read/download/bookmark filters to the selected winners, with explicit access to other releases. Use the same winners for chapter display, next/previous navigation, unread counts, and automatic/bulk downloads. Never delete underlying releases or downloaded files.163  - **Implemented:** winner-first detail filters, alternate-release access, library counts/status/sorting, reader/novel/player navigation, and bulk download selection. The opened alternate bridges into the selected sequence without enabling other excluded rows. **Note:** neither Yokan nor Mangayomi has an automatic new-chapter downloader; any future runner must select with `selectChapterReleases` before queuing.164- [x] Replace the raw-sequence fallback: a directly opened alternate release remains readable, but advancing skips its equivalent releases. Resolve read/bookmark state deliberately so a new preferred release does not unexpectedly reset apparent reading progress.165- [x] Define deterministic fallback when the preferred scanlator has no release, including offline availability. Preserve existing downloads and provide Show all releases for manual selection. Back up preferences per profile.166  - **Implemented:** stable rank/download/group/URL/ID fallback, downloaded-only selection before ranking, file/page retention, Show all releases, settings persistence, and native settings backup/restore for Default. Per-title backup owners remap by unique title identity; settings-only restore recovers the global default and omits overrides lacking owner identities. **Profiles (2026-10-06):** preferences live in each profile's settings and move with targeted backups.167168**Acceptance:** Preferred releases win regardless of insertion order; missing groups fall back consistently. Specials, fractions, volume resets, and translations are not incorrectly collapsed. Reading an alternate release does not replay duplicates, and changing priorities preserves files and progress.169170**Verified (2026-10-04):** focused policy and integration coverage includes order-independent ranking, exclusions, offline/download fallback, unknown groups, fractional/zero chapters, volume/season resets, recognized language/edition markers, uncertain ranges, aggregated read/bookmark state, and actual file/page retention. Detail tests cover default inheritance, per-title reordering/reset, grouped actions, Show all releases, and bulk download queuing. Library tests cover winner counts and status filters; reader tests cover alternate bridging and live priority changes replacing future preloads without moving the current page. Anime navigation tests verify the same winners while retaining the title's configured sort order. Repository tests retain all underlying source releases on refresh. Native backup tests cover round-trip, owner remapping, local-wins/idempotent merge, replacement, and settings-only restore. Room upgrade/reopen coverage includes persisted preferences. Hub tests verify incoming/outgoing exclusion and local identity migration remaps owner IDs. Final combined desktop tests and Android/browser compilation passed as recorded above.171172**Compatibility limits:** legacy settings show all releases until duplicate skipping is enabled; manga/novel readers now follow that shared toggle instead of always collapsing numeric keys. Extension chapters have no structured volume/language/edition fields, so distinctions are retained only when recognized in names; ambiguous and unnumbered rows remain independent. Online priority takes precedence, with known downloads breaking equal ranks; downloaded-only mode limits candidates to known local availability. Winner state reflects any equivalent release's read/bookmark flags while file paths and page positions remain specific to the actual release. Winner actions affect the equivalence group; Show all releases enables individual actions. Preferences remain local to Hub/Mangayomi sync until protocol ownership support exists; native backups carry them. iOS device/release builds, device/real-extension acceptance, automatic downloads, and multiple profiles remain unverified or pending.173174## 7. App Icons (+ Light/Dark mode)175176**Starting points:** [AppearanceSettingsScreen](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/settings/appearance/AppearanceSettingsScreen.kt), [theme](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/theme), [Android manifest](composeApp/src/androidMain/AndroidManifest.xml), [iOS bundle configuration](iosApp/Info.plist).177178Light, dark, follow-system, and pure-black app themes already exist. Treat the missing feature as selectable app-icon artwork with light/dark variants; retain existing theme behavior.179180- [x] Add an Appearance icon picker with previews and a default/reset choice. Represent icon design separately from icon appearance (Light, Dark, Follow system where supported).181- [x] Audit launcher, dock, installed-web-app, and in-app branding capabilities on each target before promising runtime switching. Package appropriate assets and implement a small platform capability/service interface; show only supported choices and retain a static fallback.182- [ ] Test how icon appearance follows OS appearance versus the app's explicit light/dark setting and explain that behavior in the picker. Include accessible/themed artwork where supported, without assuming every platform can change an installed icon dynamically.183  - **Implemented:** separate design/appearance controls, capability-gated iOS 18+ Follow system with Any/Dark/Tinted artwork, Android 13+ monochrome layers, explicit theme independence guidance, radio semantics, busy/error feedback, and light/dark app-theme render fixtures. **Remaining:** actual Home Screen/launcher OS appearance transitions and accessibility acceptance on devices.184- [ ] Keep the installed app icon device-wide because profiles share one installation. App theme preferences can remain profile-specific. Preserve default launch/deep-link behavior after icon changes and app upgrades.185  - **Implemented:** OS-owned selection outside DbSettings/backups/sync; stable Android launcher aliases keep MainActivity and deep links enabled; iOS uses OS alternate-icon persistence; Default/reset and post-failure readback are covered by tests. **Remaining:** physical launcher/pinned-shortcut/upgrade behavior and actual additional-profile switching. The first Android upgrade moves the launcher filter to aliases; individual launchers may refresh old pinned entries.186187**Implemented (2026-10-04):** Original stays the default. The new Torii design has Light/Dark artwork; iOS 18+ also offers Follow system when packaged alternates are available. Android provides adaptive assets and a monochrome layer; desktop DMG/MSI/DEB retain the original artwork in native containers and the browser uses a static original favicon. Unsupported choices are hidden. Selection, draft/apply/cancel/reset, busy/error handling and refresh use a ViewModel plus a small serialized platform service. The OS remains the persistence authority. See [platform audit and ownership](docs/architecture/APP_ICONS.md).188189**Verified (2026-10-04):** seven focused desktop tests passed for cancel/apply/reset/restart, failed/partial/ignored OS changes, unsupported choices, serialized completion after route closure, Android manifest/asset contracts, opaque iOS artwork and light/dark picker renders. Apple actool compiled all primary/alternate assets with expected iPhone/iPad metadata; plutil accepts the project/plist and macOS image inspection accepts ICNS. Final full desktop tests, Android/browser/iOS simulator compilation, and Android release resource processing passed as recorded above. Generated native artwork uses explicit sRGB and a packaging test checks its palette against vector previews. No Android device/emulator is connected. Device and installer acceptance remain open.190191**Acceptance:** Existing system/light/dark themes continue to work. Supported icon changes survive restart, reset works, and switching profiles does not unexpectedly change the installed icon. Check packaged assets and launch behavior on each supported target.192193## 8. Profiles194195**Starting points:** [YokanRuntime](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/app/YokanRuntime.kt), [ServiceRegistry](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/app/ServiceRegistry.kt), [database factories](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/PersistentDatabase.kt), [file service](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/files/LocalFileService.kt), [backup service](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/backup/BackupService.kt), [data/storage UI](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/screens/settings/data).196197`YokanRuntime` now delegates database, settings, repository, services, controllers and workers to an explicit Default `ProfileSession`. Native targets use Room; the browser's active Default database retains its existing snapshot key. Extra-profile sessions are gated until activation, credential and job isolation are complete. Profiles require a lifecycle and storage boundary, not just a library filter.198199- [x] Introduce a small device-level registry with stable profile IDs, display names, one permanent Default profile, and the last active profile. Adopt existing data as Default without resetting or unnecessarily copying it; make upgrade recovery safe after interruption. Metadata validates before commit, concurrent writers compare-and-set, interrupted provisioning/deletion retains its stage, and deleted IDs cannot be reused. Default aliases existing locations without a data move. Starting the recorded extra-profile session remains part of the pending coordinator below.200- [x] Add Settings → Profiles to create, rename, switch, and delete additional profiles. Keep Default undeletable. New profiles start empty; deleting the active extra profile switches safely to Default. Confirm deletion with its data scope and cancel only that profile's work.201- [x] Replace profile-owned runtime singletons with an explicit profile session: database, repository, settings, service scope, file roots, caches, and credentials. Use a separate native database and storage namespace per profile, with separate browser persistence keys. Share only explicitly safe immutable resources. **Delivered:** every profile, including extra profiles, runs through an explicit owned session with terminal retirement; credentials, browser stores, extension servers and sync accounts are isolated per profile as recorded below.202- [x] Isolate libraries, categories, history/progress, downloads/queues, notes, source enablement/preferences/logins, trackers, sync configuration, reader/layout preferences, saved filters, and backups. Audit HTTP cookies, WebView storage, extension runtime/server state, and external folder grants: separate credentials and mutable state even if binaries are shared. Flag platform isolation gaps before enabling those integrations in extra profiles.203  - **Sync-call ownership delivered:** external settings/browser-login calls and direct cloud connect/upload/restore run as children of the captured session. Retirement and caller expiry join call finalizers; stale references cannot start new operations or read the account. Credential commits reject canceled responses; cloud connect rejects a changed provider/server/account configuration. Orderly shutdown joins calls before provider/transport release and supports retry after cleanup failure. Cloud transfers check cancellation before uploading an export, starting restore from downloaded bytes, or recording success; remote work already accepted cannot be undone by cancellation. All 66 focused sync tests and final regression/platform checks passed. This does not yet isolate native/browser transport cookies or WebView storage, reserve remote accounts/libraries across profiles, protect transfers against concurrent account changes, or provide a targeted restore lease.204  - **Cookie/browser ownership delivered:** cookies and transient browser user agents use the captured database/session; late imports, clears and HTTP responses cannot read or mutate a retired jar. Shared Android CookieManager, iOS WKWebsiteDataStore, desktop JavaFX/system-browser and browser-tab access is limited to live Default. Unsupported/retired owners do not construct a headless browser or render a native view. Headless calls join on expiry/retirement, views remount on jar replacement, and cookie/navigation/external-open callbacks recheck that owner. Sync sign-in uses the same captured jar as its services. Android headless challenge/script calls await stop/destroy on the main thread in a cancellation-safe finalizer; callbacks stop harvesting when the call expires. All 28 focused tests and final regression/platform checks passed. Direct HTTP transport cookies/credentials, independent extra-profile browser stores, active native-view disposal during switching, tracker/server/external-grant isolation, remote-library ownership and real native/device acceptance remain open.205  - **HTTP ownership/admission delivered:** enhanced calls capture settings/cookie/retry lifetime, raw sync HTTP uses the same session owner, and retirement joins both before engine/database release. Caller expiry joins its own finalizers without canceling siblings. Stream callbacks check their original call job, including non-cancelable cleanup and callbacks retained past completion. Both public HTTP factories take an explicit owner and refuse extra IDs before engine allocation; Default configuration stays unchanged. All 54 focused tests and final regression/platform checks passed, including 12 new tests. Independent native/browser credential stores and actual device acceptance remain open; Together/image lifetimes are extended below and extra-profile activation stays gated.206  - **Together/image ownership delivered:** Together state/credentials belong to the captured session; REST-to-join actions and routes retain that controller. Stale account snapshots and non-Hub tokens cannot allocate a room engine. Room replacement, leave and retirement join socket/send/pinger and actual Ktor call-context finalizers before transport release, preserving the parent owner. Image loaders reuse one captured client, retain source-header/clearance behavior, suppress retired credential/progress access and register retryable cleanup before database close. Loader publication/clearing is serialized by identity. All 49 focused tests and final regression/platform checks passed, including 14 new tests. Cached image/decode callbacks, remote leases, UI disposal and native/device acceptance remain open; app HTTP/Hub cleanup and Together account revocation are extended below.207  - **App HTTP/Hub cleanup delivered:** tracked call jobs cover app requests/body producers and Hub handshakes; orderly retirement awaits finalizers before native transport release. Profile/hybrid shutdown forwards awaited cleanup, including after legacy immediate close, and Hub closes only its own child scope. Failed native release remains retired and retries without admitting new calls. All 73 focused tests and final regression/platform checks passed, including 10 new lifecycle tests. Independent credential stores, account/remote leases and extra-profile activation remain gated.208  - **Together account revocation delivered:** rooms retain preference/provider/server/token/device identity through their lifetime. Changed accounts revoke published clients and reset controls; retained/queued sends, receives, reconnects and engine dispatch cannot use the revoked client. Unrelated settings and sync bookkeeping retain the room. Replacement waits for all old cleanup targets, retries native-release failures, and rechecks the latest account rather than an older queued snapshot. Credential reads run outside room/engine locks and connection work starts after unlocking; a concurrent-close regression covers blocked credential reads. All 41 focused tests and final regression/platform checks passed, including 10 new tests. REST creation/sync-transfer account leases, remote-library ownership, cached-image/UI disposal and real native/device acceptance remain pending.209  - **Cloud transfer account guards delivered:** each upload/download/sync captures an exact sync ID and provider/server/account/token identity. Listing, export and download boundaries reject changed accounts; sync reuses the object from its one listing. Restore checks the account against the same database snapshot required by its atomic replacement, and completion uses a guarded preference write preserving unrelated bookkeeping. Missing IDs never select another account and blank tokens cannot dispatch. All 74 focused tests and final regression/platform checks passed, including 12 new regressions. Durable account/profile leases, remote namespaces, targeted restore coordination and extra-profile activation remain open.210  - **Together creation ownership delivered:** title actions inject their captured controller/HTTP service instead of resolving the runtime singleton. REST creation and socket replacement run in one controller-owned call; retirement/caller expiry joins its finalizers. REST requests check the captured account before dispatch and after response, and socket replacement retains the exact preference identity through old cleanup. Navigation validates the returned client. All 37 final focused tests and final regression/platform checks passed, including 14 new regressions. The existing SQLite busy-lock fixture now uses bounded lock acquisition, conditional rollback and guaranteed connection close without weakening timeout/retry assertions. Durable account leases, accepted remote-room cleanup, reader/player/UI disposal and extra-profile activation remain open.211  - **Together UI bindings delivered:** manga/player/novel hooks collect one injected controller and use composition/client/chapter capabilities. Disposal, background lifecycle and account/client changes reject retained work; resume/remount creates fresh admission. Navigation retains the repository/settings and labels messages with the originating profile. Room controls use captured lambdas; serialized Leave cannot target a replacement client. Novel follow scrolling remains inside its effect, ignores non-finite progress and resets its threshold per client/chapter. All 31 focused tests and the full 1100-test desktop suite passed (1098 passed, 2 skipped, no failures/errors), including 15 new Compose/socket/navigation regressions. Final Android/browser/iOS simulator compilation passed. The scene fixture now delivers collection and recomposition frames before assertions. Full switching/progress shutdown, other reader/player service callbacks, cached-image disposal, credential stores, durable leases and extra-profile activation remain open.212  - **Reader content ownership delivered:** manga local/remote page loading, novel source headers/remote markup and anime video lists use a captured session service. Owned extraction calls join runtime finalizers on caller expiry/retirement and reject retained calls before resource access. The page resolver checks cancellation/admission around extraction, runtime release and cache writes, preserving TTL, source-version/header behavior and offline fallback. Extraction effects restart when the content service changes. All 36 focused tests and the full 1115-test desktop suite passed (1113 passed, 2 skipped, no failures/errors), including 15 new extraction/cache regressions. Final Android/browser/iOS simulator compilation passed. Local novel EPUB/TTS/link callbacks, player configuration/proxy/AniSkip/screenshots, reader image/colorization/export work, progress/UI shutdown and extra-profile activation remain open.213  - **Local novel content/link ownership delivered:** EPUB inventory/chapter/images and parsing use captured session dependencies under an owned request. Caller expiry and retirement join blocking archive work; late results/failures and retained resource callbacks cannot deliver after expiry. Existing blank-chapter fallback, index/resource-path behavior, markup and links remain. Parsed links capture their chapter/composition/content owner, reject background/stale clicks and rebuild when the lifecycle owner changes; current links use current callbacks/settings. All 40 final focused tests and the full 1133-test desktop suite passed (1131 passed, 2 skipped, no failures/errors), including 18 new regressions. Final Android/browser/iOS simulator compilation passed. TTS, native player service callbacks, image/decode disposal, foreground progress save/join, full navigation/ViewModel shutdown, independent credentials and extra-profile activation remain open.214  - **Novel speech ownership delivered:** the service graph owns its captured native TTS backend; each novel chapter/composition has an expiring reader handle. Speech and voice calls join cancellation cleanup, and replacement speech waits for old native cleanup. Reader Stop cannot target another reader. Controller commands serialize and stale progress cannot change highlights; disposal retires synchronously without launching into the canceled UI scope. Engine/Stop release failures remain retryable before native reuse. All 28 focused tests and the full 1153-test desktop suite passed (1151 passed, 2 skipped, no failures/errors), including 20 new speech/Compose lifecycle regressions. Final Android/browser/iOS simulator compilation passed. Background speech policy remains unchanged; native audio/device acceptance, player callbacks, image/decode disposal, foreground progress save/join, full navigation/ViewModel shutdown and extra-profile activation remain open.215  - **Player auxiliary ownership delivered:** player routes inject one captured file/AniSkip/proxy service, and each episode/composition has an expiring handle. Configuration/script and screenshot seed work join blocking cleanup; guards run between file stages and before native dispatch. Proxy registration drains off the UI thread before native proxy release; old proxy Stop retires only its handle. Replacement resets remembered player state and rejects late initialization result/failure UI. Screenshot names retain unique suffixes for long titles, and rejected requests remove only their own seeds. All 35 focused tests and the full 1180-test desktop suite passed (1178 passed, 2 skipped, no failures/errors), including 27 new regressions. Final Android/browser/iOS simulator compilation passed. Controller allocation/retirement is extended below; accepted/queued mpv command and screenshot completion, surface/bridge/PiP callbacks, image disposal, foreground progress save/join, full switching and extra-profile activation remain open.216  - **Native media proxy retirement delivered:** session retirement uses awaited proxy cleanup. JVM proxies cancel their own blocking request work, track actual Ktor call-context jobs, join response/request finalizers before native release, and join listener/client threads off the UI thread. Direct URLs and registrations reject retired proxies; failed native release retries without reactivation. Immediate Stop still closes sockets and can be followed by awaited cleanup. All 40 focused tests passed, including 7 new lifecycle regressions, existing idle-socket/registration checks, player ownership and actual Default Room retirement. Full desktop regression passed (1187 tests, 1185 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Controller allocation/retirement is extended below; accepted/queued native commands, surface/bridge/PiP callbacks, image disposal, foreground progress save/join and full switching remain open.217  - **Player controller allocation/retirement delivered:** the captured episode handle owns background factory work and the active callback, recording late allocations before dispatcher cancellation can lose them. Expiry joins callback and native cleanup; failed cleanup retries before allocation or session close. The composition saves its captured episode position before release. mpv joins command/observer finalizers before native destruction; its wrapper retries failed close without reviving admission. Compatibility controllers cannot revive from stale commands or snapshots; their joined surface lifetimes are extended below. All 68 focused app tests and 8 vendored wrapper tests passed, including 18 new regressions (17 app, 1 dependency). Full desktop regression passed (1204 tests, 1202 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Native capture, surface retirement and bridge/PiP admission are extended below; legacy queued script/bridge commands, image disposal, foreground progress persistence joining, full switching and extra-profile activation remain open.218  - **Native screenshot completion delivered:** a separate awaited controller command retains its caller and shares native queue order. Cancellation joins blocking calls/finalizers without retiring sibling commands; controller retirement joins capture before native release. Screenshots explicitly use synchronous encoding/writing, publish the path after capture and remove only their own failed/expired files after cleanup. The UI guards notice publication and distinguishes failure from an unsupported backend. All 75 focused tests passed, including 16 new command/capture regressions. Full desktop regression passed (1220 tests, 1218 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Bridge UI/PiP admission and native/compatibility surface retirement are extended below; legacy queued script/bridge work, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open.219  - **Player bridge UI/PiP admission delivered:** bridge collection belongs to the captured reader and an expiring controller/UI binding, joins finalizers on expiry and delivers through the captured UI context. Disposal, controller/chapter/service replacement and lifecycle stop reject retained events and requests; a stop/resume epoch prevents revival before recomposition. Handler updates retain the live binding. PiP ownership activates after composition commits; old cleanup cannot clear replacement state. Android host callbacks retain their originating activity, and native/browser entry checks original admission. All 105 focused tests passed, including 19 new ownership/Compose regressions. Full desktop regression passed (1239 tests, 1237 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Player surface retirement and exact browser DOM/PiP binding are extended below; queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open.220  - **Software player surface retirement delivered:** desktop/iOS render loops and pixel finalizers belong to the controller and retain the UI context. Retirement joins native frame work and pixel cleanup before libmpv release; expired loops reject late frames/errors and escaped callbacks. All 46 focused tests passed, including 12 new ownership/Compose surface regressions. Full desktop regression passed (1251 tests, 1249 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Android/compatibility/browser surface retirement and exact DOM/PiP binding are extended below; queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open.221  - **Native/compatibility player surface retirement delivered:** Android SurfaceView attachment/resize/detachment belongs to the controller and joins before libmpv release. Compatibility surfaces allocate per controller/remount, detach UI before awaited backend cleanup, preserve the captured cleanup context and retry failed release. Browser DOM listeners, pending PiP requests and AudioContext.close() promises retain their exact video/controller; old cleanup cannot affect replacements. The pinned compatibility backend is a local source module, with owned Android/iOS/desktop work and exact native observer guards. All 65 focused app tests passed, including 19 new regressions. All 36 headless-Chrome library tests and four JVM disposal tests passed. Full desktop regression passed (1270 tests, 1268 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open. Controlled browser promises/native hooks do not establish real playback, native PiP or device/store acceptance.222- [x] Make switching an orderly operation: save current progress, stop/cancel and join foreground work, flush persistence, close old resources, clear navigation/ViewModels and source caches, then publish the new session. On failure, retain a usable prior session. Scope delayed callbacks and notifications to the originating profile.223- [x] Key background jobs, download manifests, notifications, sync identities/namespaces, and backup retention by profile ID. Workers must open their recorded profile, never whichever profile happens to be active. Deleting a profile prevents its pending work from recreating data. Do not silently connect two profiles to the same remote sync library.224  - **Partial, delivered:** periodic Android jobs carry an owner ID and schedule/cancel only that owner's unique work; Default retains legacy names and explicitly adopts older jobs without owner data. Explicit invalid IDs never fall back. Shared admission refreshes metadata and skips unknown, provisioning, deleting, retired or unsupported owners before opening a session; unreadable metadata requests a retry. iOS's fixed permitted identifiers always dispatch to Default and reject extra-profile scheduling; unreadable metadata on cold launch retains a retry request with at least a 15-minute delay. OS callback execution is joined on caller expiry and owner retirement; iOS reports completion even when canceled before dispatch. **Remaining:** sync namespaces, retention/targeted backups, iOS extra-profile dispatch, and a coordinator lease preventing deletion from racing work already admitted. Extra-profile production sessions remain gated.225  - **Download/notification groundwork delivered:** resume jobs partition unique work by stable ID and explicitly adopt only old Default jobs with absent owner data. Cold admission refuses unavailable or unsupported owners before accessing storage. Foreground Cancel all actions resolve a live profile/session token without bootstrapping; replacing or retiring that session invalidates its actions and joins its mirror work. Android retains one process foreground-service indicator bound to its current owner rather than retargeting a live mirror. Regular Android notifications use full `(tag, ID)` identities for extras, avoiding integer-hash collisions; Default retains legacy identities. iOS identifiers and desktop/browser event origins capture the profile. Retired notification references are suppressed. **Remaining:** real device/relaunch acceptance, concurrent multi-profile foreground-service policy, open-app/profile-activation routing and current snackbar disposal, deletion leases/cancellation/notification cleanup, sync namespaces, retention/targeted backups and credential/integration isolation. Download rows and app-owned artifact roots use the captured database/files; shared external folder capabilities still require isolation review.226  - **Cancellation guard delivered:** session and download-binding entry points check the caller's cancellation before dispatching into a live owner scope. Two additional tests use immediate dispatch to confirm that an already-expired caller cannot perform side effects and does not retire its owner.227- [x] Keep the Profiles management entry discoverable with only Default. Show quick switching and the **backup source / restore target profile selectors only when at least one non-default profile exists**. With only Default, backup/restore retains the current simple flow.228- [x] Export exactly the selected profile. Restore into the explicitly selected profile, including an inactive one, using existing preview/merge/replace behavior and a safety snapshot scoped to that target. Lock the target for the operation; source profile metadata in a backup must never override the user's chosen destination or copy device credentials automatically. Legacy backups remain restorable into any selected profile.229- [x] Delete only app-owned data for the selected extra profile. Preserve other profiles, explicitly exported backups, and user-owned external folders. Keep device-wide choices limited and documented: profile registry, installed icon, and unavoidable OS permissions.230231**Implemented groundwork:** Separate Room paths, browser snapshot keys, and app-owned download/backup/cache roots accept validated stable IDs. Only Default can import the legacy native snapshot. Browser stores provide explicit flushes, own their persistence jobs/listeners, report failed saves for retry, and refuse to seed over malformed extra-profile data. Registry failure leaves Default's existing runtime usable. See [profile ownership and remaining isolation gaps](docs/architecture/PROFILE_OWNERSHIP.md).232233**Session progress:** Default's services/settings/index/download/reader helpers/migration/colorization/schedulers capture their owning session. Unused resources stay unopened on retirement; retiring/closed owners reject further resource lookup. Cancellation waits for final progress writes before backend release, with an observable retryable failed-retirement state. Room shutdown drains its queue, closes resources, and rejects stale mutation references; a timed-out flush retains the live database and queue. Browser backends remove their own coalescer and page listeners before the final flush and cannot write after successful close. Retirement is terminal: it is not the pending switching coordinator's rollback/recovery implementation. UI progress owners and navigation/ViewModels still require explicit shutdown before invoking it.234235**Background-work verification (2026-10-04):** All 16 new routing/completion tests and the full 967-test desktop suite passed (965 passed, 2 skipped, no failures/errors). Coverage includes a delayed job after rename/active-profile change, fresh rejection of stale lifecycle stages, malformed IDs and legacy Default adoption, corrupt/unreadable registry preservation, unsupported-owner gating, wrong-owner rejection, caller expiry and joined finalizers, retirement and final database progress, surviving sibling work, separate schedule/cancel names, and iOS completion even when canceled before dispatch. Final Android/browser/iOS simulator compilation passed, with a further iOS compile after the cold-registry retry follow-up. Real OS relaunch/device acceptance remains open.236237**Download/notification verification (2026-10-05):** All 16 new ownership/cancellation tests and the full 983-test desktop suite passed (981 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. Tests cover independent owner cancellation, same-profile session replacement and stale cleanup, action expiry, joined mirror finalizers, surviving download work, retirement before action dispatch, invalid/unknown/missing tokens, rejected retired installation, separate resume/action identities, retained Default notification identifiers, extra-owner/channel/hash-collision separation, forced event origins, stale endpoints and in-app visibility. Already-canceled callers cannot dispatch into a live session or binding, even with immediate dispatch. The preceding focused run also passed all 18 existing persistent-download tests and the background-admission tests. Real Android PendingIntent/foreground-service delivery, cold process relaunch and device acceptance remain open.238239**Sync-call verification (2026-10-05):** All 17 new lifecycle/credential-race tests and the full 1000-test desktop suite passed (998 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 66-test focused run included existing Hub/Mangayomi/cloud regressions. Coverage includes joined external sign-in/restore finalizers, caller expiry with surviving sibling work, immediate/pre-dispatch cancellation, rejection of all stale sync/cloud entry points and account reads, independent owners with identical sync IDs, retryable provider cleanup, late Hub/Mangayomi/cloud responses, cross-owner/replacement browser attempts, changed/overlapping cloud sign-ins, and cancellation before cloud restore or local upload-success bookkeeping. These are session-lifetime guarantees; platform credential stores, remote-library ownership, transfer/account-change recovery, targeted backups and actual extra-profile activation remain open.240241**Cookie/browser verification (2026-10-05):** All 13 new ownership/lifecycle tests and the full 1013-test desktop suite passed (1011 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation after awaited Android headless cleanup. The preceding 28-test focused run included all existing cookie and Cloudflare request/stream tests. Coverage includes Default legacy-cookie adoption, extra-owner independence and restart, retired reads/imports/clears without touching a closed database, replacement-session preservation, late HTTP cookie responses, capability checks without credential reads, refusal before lazy browser construction for extra/retired owners, retained Default request arguments, joined finalizers and late-harvest suppression, caller expiry with surviving sibling work, immediate/pre-dispatch cancellation and isolated browser failures. Native-view remount/callback guards and Android cleanup were compiled on all relevant targets; actual OS browser/store behavior, UI switching, native cleanup/device acceptance and independent extra-profile stores remain unverified.242243**HTTP ownership/admission verification (2026-10-05):** All 12 new HTTP lifecycle/admission tests and the full 1025-test desktop suite passed (1023 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 54-test focused run included existing Cloudflare request/stream, Ktor streaming and sync regressions plus the actual Room/service graph. Coverage includes preserved request credentials/binary response data, ordered chunks and buffered errors, stale entry-point refusal, joined owner/caller finalizers, late non-cancelable and retained stream callback rejection, immediate/pre-dispatch expiry, transport/consumer failure isolation, independent injected owners and extra-profile factory refusal. The actual retired Default graph rejects captured HTTP references before database/engine access. Default native/browser credential settings remain unchanged; independent stores, reader-image/Together lifetimes, device acceptance and extra-profile activation remain open.244245**Together/image verification (2026-10-05):** All 14 new lifecycle/credential/resource tests and the full 1039-test desktop suite passed (1037 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 49-test focused run included existing room reducer, progress, HTTP and Room/session regressions. Coverage includes captured authorization/device headers, uppercase room codes, joined replacement/retirement, non-cancelable Ktor call finalizers, caller expiry and surviving owners, stale/non-Hub account refusal, independent injected room owners, retained source cookies/agents and solved clearance agents, image transport expiry/reuse/cleanup, replacement credentials, idempotent shutdown, and retryable context-resource failure before database release. The actual Default Room/session graph also captures and retires Together. A pre-existing SQLite lock/rollback test failed once during focused verification, then passed on rerun and in the final full suite. OS credential stores, actual socket/browser/native cleanup and device acceptance, and cached-image/UI callback disposal remain unverified or pending. App HTTP/Hub cleanup and Together account revocation are verified by the following milestones. Additional-profile activation remains gated.246247**App HTTP/Hub cleanup verification (2026-10-05):** All 10 new lifecycle tests and the full 1049-test desktop suite passed (1047 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 73-test focused run included existing Ktor streaming, HTTP ownership, Hub sync and actual Room/session regressions. Coverage includes pending engine request finalizers, response-body producers after engine execution returns, captured Hub authorization/device headers, awaited handshake cleanup through both sync wrappers, watcher removal with surviving parent/sibling work, response/cookie compatibility, expired-owner refusal before URL validation or Default allocation, concurrent public shutdown, joined cleanup after legacy immediate release and retryable native-release failure. These checks exercise real Ktor pipelines with controlled transports; independent OS/browser credential stores, native cleanup/device acceptance, active-account/remote leases and UI switching/disposal remain pending. Additional-profile activation stays gated.248249**Together account verification (2026-10-05):** All 10 new account/concurrency tests and the full 1059-test desktop suite passed (1057 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The final 41-test focused run included existing Together controller/reducer, image transport, Ktor retirement and actual Room/session regressions. Coverage includes token/logout/provider/server/device/preference-selection changes, retained-client refusal after restored credentials, unchanged settings and normalized server identity, pre-dispatch refusal, captured replacement authorization, joined old finalizers, failed native cleanup retry, queued account/replacement races and independent owners. A real Ktor WebSocket upgrade with controlled frame channels verifies queued-send suppression and late-message rejection. A desktop concurrency test holds a credential read open while another thread closes the client, verifying that admission does not hold its release lock. Remote bytes already accepted cannot be recalled. Sync/REST account leases, remote-library ownership, native/device cleanup acceptance, cached-image/UI disposal and additional-profile activation remain pending.250251**Cloud transfer account verification (2026-10-05):** All 12 new regressions and the full 1071-test desktop suite passed (1069 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 74-test focused run included all cloud-sync, backup replacement and profile sync-ownership tests. Coverage includes account changes during listing, export, download and restore preparation; logout/token/account/provider/server/preference-ID changes; late upload-success refusal; preservation of unrelated sync settings/bookkeeping; absent-ID and blank-token refusal; one-listing sync behavior; snapshot rejection before safety writes; atomic conflict after snapshot acceptance; and successful restore retaining target credentials and a safety snapshot. Boundary checks do not detect an account changed away and restored between checks. Accepted remote uploads and already committed local restores cannot be rolled back by a later account change. Durable account/profile leases, remote ownership/namespaces, selected-target restore coordination, credential-store isolation, native/device acceptance and extra-profile activation remain pending.252253**Together creation verification (2026-10-05):** All 14 new regressions and the full 1085-test desktop suite passed (1083 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The final 37-test focused run included Together controller/account tests, room REST methods, detail ViewModel behavior and actual Room/session regressions. Coverage includes captured REST/socket credentials and media/policies, logout/provider/server/token/device/preference-ID changes, controller retirement through the profile HTTP wrapper, caller expiry with joined finalizers and surviving sibling work, queued/immediately expired admission, late non-cancelable responses, REST-failure preservation, changed preference during old-client cleanup, suppressed stale title navigation, successful captured title action, unrelated bookkeeping and injected ViewModel observation/actions. The initial full run exposed the previously observed SQLite busy-lock test failure: unconditional rollback could mask a failed lock acquisition. The fixture now waits a bounded time to acquire its external lock, rolls back only a started transaction and always closes the connection; close-timeout and durable-retry assertions are unchanged. Expanded focused and final full checks passed after that fix. This does not add durable account leases or automatic cleanup of accepted remote rooms. Reader/player/UI disposal, independent credential stores, native/device acceptance and additional-profile activation remain pending.254255**Together UI verification (2026-10-05):** All 15 new Compose/socket/navigation regressions and the full 1100-test desktop suite passed (1098 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 31-test focused run included existing controller/account regressions. Coverage includes initial follower delivery, page clamping/detachment, disposal/remount, stale positions and unrelated room updates, immediate account revocation and revocation during a player read, same-code replacement, captured Leave/navigation, lifecycle stop/resume, host debounce cancellation, novel scroll cancellation and progress threshold reset per client/chapter. Four initial execution failures were fixture timing: room Flow collection requires a subsequent composition frame. The fixture now delivers collection/recomposition frames without draining delayed work; the original follower assertions passed. Navigation retains the owner's library/settings and unavailable-title messages carry its profile ID. This is Together UI admission and composition cancellation; foreground progress save/join, full navigation/ViewModel shutdown, other anime/novel service callbacks, cached-image disposal, credential stores, durable leases, native/device acceptance and additional-profile activation remain open.256257**Session verification (2026-10-04):** All 13 new retirement tests and the full 951-test desktop suite passed, alongside final Android/browser/iOS simulator compilation. Coverage includes lazy construction, independent owners, canceled close and final progress, join timeout/retry, dirty-snapshot quota recovery, stale browser persistence, actual Room drain/reopen and a busy SQLite lock, the Default service graph/scope, and stale logging ownership. Hub auto-sync now uses the same owner scope as the service graph. Actual UI switching, platform credentials/jobs, device cleanup and two-tab browser acceptance remain open.258259**Progress (2026-10-04):** All 14 registry/storage tests and the full desktop regression suite passed, alongside final Android/browser/iOS simulator compilation. Coverage includes Default adoption, restart, interrupted lifecycle stages, deletion tombstones/capacity, validation/corruption, failed writes, concurrent commits, cancellation during commit, independent Room databases with identical title IDs, separate owned roots, and snapshot quota failure/retry. Additional-profile creation, switching, targeted backups and integrations remain hidden until the remaining session boundaries are complete; these tests do not establish device or two-tab browser acceptance.260261**Acceptance:** Two profiles with identical title IDs stay independent across restart, switching, source login, downloads, sync, and background work. Restoring into inactive B leaves active A unchanged. Upgrade preserves all existing Default data; deleting an active extra profile recovers to Default. Backup/restore profile selectors appear with an extra profile and disappear after the last extra profile is deleted.262263**Reader content ownership verification (2026-10-05):** All 15 new extraction/cache regressions and the full 1115-test desktop suite passed (1113 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. The preceding 36-test focused run included reader stream and actual Default Room/service-graph retirement checks. Coverage includes captured-database page caching, saved-list reuse/force refresh, case-insensitive header precedence, local archive/file/content URLs without runtime allocation, offline header fallback, cleaned novel markup, no fabricated streams on episode failures, late header/page/HTML rejection, retirement before owner cancellation and during runtime finalization, joined caller/service cleanup, retained-call rejection and preservation of the parent session. Source/runtime/device acceptance, local EPUB/TTS/link callbacks, player configuration/proxy/AniSkip/screenshots, image/colorization/export callbacks, foreground progress save/join, full navigation/ViewModel shutdown and extra-profile activation remain open.264265**Local novel content/link verification (2026-10-05):** All 18 new extraction/parser/Compose regressions and the full 1133-test desktop suite passed (1131 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. All 40 final focused tests passed, including existing content extraction, rich-content and TTS controller regressions. Coverage includes captured EPUB chapter/image reads, real markup/link/image parsing, blank local-chapter fallback with retained local resources, index defaults and absent hrefs, resource-capability expiry, cancellation/retirement between archive stages, late archive-failure suppression, parser failure isolation, retired-call rejection, joined blocking caller/owner cleanup, link disposal/remount, chapter/owner replacement with identical IDs, immediate background/resume admission, updated actions and lifecycle-owner replacement. The final loading effect keys on its link binding so replacement also rebuilds parsed listeners. These controlled reads/Compose scenes do not establish native/device or real-EPUB acceptance. TTS ownership, native player service callbacks, cached-image/decode disposal, progress save/join, full navigation/ViewModel shutdown, credential isolation and extra-profile activation remain open.266267**Novel speech ownership verification (2026-10-05):** All 20 new regressions and all 28 focused tests passed, including existing novel TTS behavior and actual Default Room/service-graph retirement checks. The full desktop suite passed (1153 tests, 1151 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. Coverage includes completed/canceled utterance callback expiry, reader-scoped Stop, cleanup barriers before replacement speech/voice lookup, canceled caller/close joining, voice-initialization finalizers, retirement admission before owner cancellation, independent engines, failed Stop/native-release retry, parent-scope preservation, pause/restart highlight rejection, canceled queued commands, retirement during restart cleanup, actual Compose disposal/remount, chapter/service replacement with identical IDs and visible-controller rejection on session retirement. Android shutdown and desktop subprocess-exit joining compile successfully; controlled backends do not establish real native speech/audio/device acceptance. Background speech policy stays unchanged. Player service callbacks, image/decode disposal, foreground progress save/join, full navigation/ViewModel shutdown, independent credentials and extra-profile activation remain open.268269**Player auxiliary ownership verification (2026-10-05):** All 27 new regressions and all 35 focused tests passed, including existing mpv behavior and actual Default Room/service-graph retirement checks. The full desktop suite passed (1180 tests, 1178 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. Coverage includes captured configuration roots, user-config preservation, disabled configuration without I/O, foreign-root rejection, cancellation/admission between inventory/write/script/native stages, screenshot path sanitization and unique long-title suffixes, rejected seed cleanup, exact AniSkip request/parsing and late-failure rejection, joined HTTP finalizers, canceled caller admission, independent services, parent-scope preservation, reader-scoped proxy Stop and late registration rejection. Controlled blocking writes and native-thread proxy registration verify cleanup joining; real Compose scenes verify disposal/remount, chapter/service replacement with identical IDs and retirement admission before owner cancellation. Native controller initialization/release joining, accepted mpv command/screenshot completion and bridge/PiP callbacks remain open; these tests do not establish real playback/screenshot/device acceptance. Image/decode disposal, foreground progress save/join, complete navigation/ViewModel shutdown, credential isolation and extra-profile activation remain pending.270271**Native media proxy retirement verification (2026-10-05):** All 7 new proxy lifecycle regressions and all 40 focused tests passed. The full desktop suite passed (1187 tests, 1185 passed, 2 skipped, no failures/errors), alongside final Android/browser/iOS simulator compilation. Controlled upstream engines exercise the real loopback socket/Ktor pipeline: pending request finalizers, response producers that outlive `execute()`, awaited cleanup after legacy Stop, cancellation during retirement, failed native release retry, independent proxy transports/headers and preserved HLS rewriting. Existing registration reuse and idle-client closure checks remain passing. Unused proxies close once without requests, and retained direct URLs cannot bypass retirement. Controller allocation/retirement is extended below. This milestone does not establish native playback/device acceptance or finish queued mpv commands/capture completion, surface/bridge/PiP callbacks, image/decode disposal, foreground progress save/join, full switching, credential isolation or extra-profile activation.272273**Player controller allocation/retirement verification (2026-10-05):** All 68 focused application tests and 8 vendored mpv wrapper tests passed, including 18 new regressions (17 app, 1 dependency). Full desktop regression passed (1204 tests, 1202 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Coverage includes a blocking factory returning after cancellation, joined active/native finalizers, failed cleanup retry before replacement, separate owner preservation, actual Compose disposal/chapter/service replacement, progress captured before native release, command/observer drain before mpv destruction, retryable wrapper close and terminal compatibility controllers. Native capture, surface retirement and bridge/PiP admission are extended below; legacy queued script/bridge commands, image/decode disposal, foreground progress persistence joining, full switching and extra-profile activation remain open. Controlled backends do not establish native playback, screenshot or device acceptance.274275**Native screenshot completion verification (2026-10-05):** All 75 focused tests passed, including 16 new regressions (8 native command tests, 7 captured screenshot tests and 1 blocking native I/O test). Full desktop regression passed (1220 tests, 1218 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Coverage includes completion before publication, queue ordering, queued/active caller expiry, native failure, synchronous command arguments, late write cleanup, expired success suppression, file isolation, actual captured service/controller retirement and native capture blocked on a worker thread. Bridge UI/PiP admission and native/compatibility surface retirement are extended below; legacy queued script/bridge completion, image/decode disposal, foreground progress persistence joining, full switching and extra-profile activation remain open. Controlled backends do not establish native screenshot/device acceptance.276277**Player bridge UI/PiP admission verification (2026-10-05):** All 105 focused tests passed, including 19 new regressions (7 bridge binding tests, 7 PiP ownership tests and 5 actual Compose lifecycle tests). Full desktop regression passed (1239 tests, 1237 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Tests cover captured UI delivery, finalizer joins and late events, canceled callers, session retirement, surviving siblings, uncommitted PiP owners, stale updates/requests/cleanup, disposal/remount, controller/chapter/service replacement, stop/resume before recomposition, lifecycle-owner replacement and current callbacks. Player surface retirement and exact browser DOM/PiP binding are extended below; queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open. Controlled platform hooks do not establish native/browser PiP or device acceptance.278279**Software player surface retirement verification (2026-10-05):** All 46 focused tests passed, including 12 new regressions (9 controller render-ownership tests and 3 actual desktop Compose surface tests). Full desktop regression passed (1251 tests, 1249 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Coverage includes captured UI context, pending load independence, joined native/UI finalizers before release, caller/controller expiry, late frame/failure suppression, retired/escaped render callbacks, sibling preservation, mounted surface retirement, resize and controller replacement with delayed native completion. Android/compatibility/browser surface retirement and exact DOM/PiP binding are extended below; queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open. Controlled frames do not establish real libmpv playback or native device acceptance.280281**Native/compatibility player surface retirement verification (2026-10-06):** Android SurfaceView attachment/resize/detachment belongs to the controller and joins before libmpv release. Compatibility surfaces allocate per controller/remount, detach UI before awaited backend cleanup, preserve the captured cleanup context and retry failed release. Browser DOM listeners, pending PiP requests and AudioContext.close() promises retain their exact video/controller; old cleanup cannot affect replacements. The pinned compatibility backend is a local source module, with owned Android/iOS/desktop work and exact native observer guards. All 65 focused app tests passed, including 19 new regressions. All 36 headless-Chrome library tests and four JVM disposal tests passed. Full desktop regression passed (1270 tests, 1268 passed, 2 skipped, no failures/errors); final Android/browser/iOS simulator compilation passed. Coverage includes in-flight native attachment, generation invalidation, partial attachment failure, replacement target safety, retryable detachment, UI-before-backend disposal, captured retry context, disposal/remount, delayed cleanup, captured-controller PiP, listener/source removal, late PiP entry/exit and AudioLevelProcessor cleanup with controlled AudioContext close promises after successful or failed initialization. Queued script/bridge completion, image/decode disposal, foreground persistence joining, full switching and extra-profile activation remain open. Controlled browser promises/native hooks do not establish real playback, native PiP or device/store acceptance.282283## Suggested delivery order2842851. Define the profile ownership boundary and compatibility rules first so new persisted features will fit it; profile implementation can proceed as a separate larger milestone.2862. Deliver notes and saved source filters as small end-to-end changes, including native backup compatibility.2873. Build the shared chapter identity/selection policy, then scanlator ranking and smarter migration so coverage counts and duplicate handling agree.2884. Add Automatic Layout and hold-to-scroll on the existing reader pipeline; test their interaction with manual settings and chapter transitions.2895. Add platform-supported icon variants independently, preserving the existing themes.2906. Complete profile sessions, safe switching, job isolation, and targeted backup/restore before exposing additional profiles.291292For implementation, keep policy in shared Kotlin and platform-specific storage/icon/gesture integration behind existing service boundaries. Use ViewModel-owned `StateFlow` with atomic updates, lifecycle-aware collection on Android, and stateless UI callbacks. Validate persistence migrations on Room and browser snapshots; add focused policy, ViewModel, backup, and isolation tests as each feature lands. Progress above tracks delivered code and verification; remaining unchecked items are still planned.293294**Profile coordinator progress (2026-10-06):** Added serialized activation, creation, rename, deletion and explicit-target storage leases. Switching awaits UI detachment and terminal session release before constructing a replacement; failed activation reopens the prior profile through a fresh owner. Failed releases remain retryable and block reopening their storage. Interrupted provisioning/deletion retains its stable metadata stage; deleting an active extra profile switches to Default first. All 25 focused coordinator/session/registry tests passed, including eight new coordinator regressions. Production activation, platform storage deletion, management UI and targeted backup wiring remain in progress.295296**Profile storage/background progress (2026-10-06):** Added app-owned deletion on Android, desktop, iOS and browser, preserving recorded explicit exports and excluding external settings paths. Native traversal does not follow symlinks. The registry durably records extra-profile export destinations. Coordinator background leases share one owner per profile without holding the mutation mutex for long jobs; switching/deletion cancels and joins their owned calls before opening replacement storage or deleting data. All 62 focused tests passed (including background switch/delete races, symlink/export preservation and HTTP regressions), with Android/iOS simulator and browser test compilation. Production wiring and cross-process/tab lifetime reservations remain pending.297298**Profile HTTP transport progress (2026-10-06):** Extra transports now use independent JVM engines with no ambient cookie/authenticator/cache storage, and iOS engines with OS cookie/credential/cache stores disabled and automatic credential challenges refused. Browser extras use an anonymous fetch transport with credentials omitted and response caching disabled; cookie logins and WebSockets are explicitly unavailable, and responses are bounded to 64 MiB. Default transport behavior is unchanged. Real desktop requests verify independent explicit credentials and no automatic cookie replay; Android, browser and iOS simulator implementations compile. Browser runtime tests are in progress. Shared WebViews, Mihon servers, remote-account policies and actual profile activation remain gated.299300**Profile storage reservation verification (2026-10-06):** Extra-profile owners now retain an exclusive desktop/Android file lock, browser Web Lock, or iOS app-process reservation until database retirement finishes. Deletion reserves the same identity and cannot remove another live owner’s data; native lock files live outside deletable roots and are never unlinked. Switching preflights the replacement database before detaching the current profile, so unavailable storage leaves the current owner live. All 24 focused desktop tests passed, and Android/iOS simulator compilation passed. The first successful browser task matched no tests; the corrected run exposed a missing engine timeout capability, now declared. Both headless-Chrome isolated-transport tests then passed. A pre-existing Together fixture produced invalid Wasm for a conditional `Nothing` coroutine result; equivalent sequential control flow fixes module loading. Karma now reports top-level import rejection immediately. Production activation/management and selected-target backups are recorded below.301302**Profile activation, management and targeted backup verification (2026-10-06):** The runtime facade now resolves the coordinator's published session; the app root keys its UI on that session and keeps profile/backup ViewModels in a device-level store so commands survive foreground retirement. Coordinator `replaceProfileData` restores into the selected profile: an active target detaches and retires the foreground first, restores through a fresh owner, then republishes (a failed restore still republishes a usable session with its message); inactive targets never touch the foreground. Restore plans keep destination cookies, credentials, device paths and tracker logins, and clear local archive links/download paths. Deleting a profile cancels its Android WorkManager jobs and notifications. Extra profiles use isolated HTTP transports and image loaders; Mihon servers, Together accounts and remote sync are explicitly unavailable, and auto-sync is never scheduled for them. All 1302 desktop tests passed (2 skipped), including 4 new restore/coordinator regressions; Android, iOS simulator and browser main/test compilation passed, as did both headless-Chrome isolated HTTP tests. A desktop smoke run against an isolated `XDG_DATA_HOME` with an extra profile recorded as last active switched to it on launch, opened its own Room database under `profiles/<id>/` and held its storage lock, while Default data stayed separate. Visual/device acceptance of the management screens was not exercised (no screen capture available).303304**Profile integration isolation verification (2026-10-06):** Default-only gates (`UnavailableProfileSync`, `UnavailableProfileExtensionServer`, `mihonAvailable`, Together `accountAvailable`, `canUseSharedBrowserStorage`) are removed; the browser gate is now `canUseBrowserStorage` with a per-platform `platformBrowserIsolation`. Sync commits claim a `hub|mangayomi|cloud` account key in the registry right before the guarded credential write, operations re-check it, logout/deletion release it, and sessions adopt an existing login on open. Loopback Mihon proxies always resolve to the session's own server, never a saved port. Profile deletion also removes Android WebView profiles and namespaced bridge preferences, and iOS 17+ identifier data stores. All 1313 desktop tests (2 skipped) and 15 yokan-ext tests passed, with Android/iOS simulator/browser main and test compilation. A desktop smoke run on an isolated `XDG_DATA_HOME` showed Default adopting its existing Hub login as a lease and an extra profile holding the same account (differing only in case/whitespace) refused with "already connected to profile ‘Default’", leaving the lease unchanged. Android/iOS WebView, bridge and data-store behavior is compile-verified only (no device/emulator).305

Search chapters, reference and source filenames.