MIHON_DIFF.md
docs/parity/MIHON_DIFF.md
1# Mihon parity and Yokan product-difference plan23## 1. Scope and ground truth45The upstream reference is [Mihon](https://github.com/mihonapp/mihon), including6its [public README](https://github.com/mihonapp/mihon/blob/main/README.md).7This document is a decision-ready comparison and delivery plan, not a claim8that every item below is absent from Yokan.910**Parity** means parity in observable manga-reader behavior: finding manga,11organizing a library, reading, updating, downloading, restoring data, and12connecting trackers should be predictable to a Mihon user. It does **not** mean13copying Mihon's Android implementation or narrowing Yokan to manga. Yokan must14retain its cross-platform manga/anime/novel scope and treat Android-only15facilities as optional platform capabilities.1617Ground truth for each row is an executable check against the current app,18service implementation, or fixture. A route, interface, registry entry, or19`StubService` is evidence of intended shape only. In particular, service20capabilities and `StubServices` require verification; they must not be treated21as automatically absent.2223## 2. Current baseline2425- Yokan targets Android, desktop JVM, iOS, and Wasm in26 [`composeApp/build.gradle.kts`](composeApp/build.gradle.kts). The source-set27 split is a constraint and an advantage: shared behavior should remain in28 KMP, while filesystem, scheduling, WebView, notifications, APK, and player29 details remain gated by platform capability.30- Shared routes and the intended feature surface are catalogued in31 [`ui/navigation/Route.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/navigation/Route.kt).32 Together with the root sections in `ui/navigation/NavSection.kt` they cover libraries for all three media types, local media,33 history, updates, browse/extensions, reader/player settings, downloads,34 backups, categories, statistics, tracking, deep-link-related flows, and35 Together.36- Shared database entities are in37 [`database/DatabaseEntities.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DatabaseEntities.kt).38 They already model manga, anime, novels, chapters, categories, sources,39 repositories, history, downloads, tracks, page caches, and sync/outbox data.40- Service contracts live one-per-domain under41 [`services/<domain>/`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services)42 (e.g. `extensions/ExtensionRuntimeService.kt`, `download/DownloadService.kt`,43 `backup/BackupService.kt`, `sync/SyncService.kt`, `tracking/TrackerService.kt`,44 `webview/WebViewService.kt`, `http/HttpService.kt`), each next to its DTOs and45 default implementation.46- [`services/ServiceRegistry.kt:32-40`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/ServiceRegistry.kt#L32-L40)47 exposes a broad but partially incomplete capability registry. It explicitly48 describes tracker, downloader, backup/restore, and platform-service gaps, but49 the registry and its concrete services still need end-to-end verification.50 The default registry also wires concrete tracker, downloader, backup/cloud,51 updater, WebView, and extractor implementations alongside52 `HttpSourceCatalogService` (formerly `StubSourceCatalogService`) and `StubTorrentServerService`; this is why a53 source-level inventory cannot be converted directly into an absence claim.5455## 3. Feature-difference matrix5657### Status vocabulary5859| Status | Meaning for this plan |60|---|---|61| **Present** | The current code has a usable, testable path or model. Verify observable behavior before documenting it as shipped. |62| **Partial** | Some model, route, contract, or implementation exists, but an important Mihon behavior, fidelity guarantee, or production path remains unverified/incomplete. |63| **Unsupported** | No supported cross-platform behavior is currently evidenced; confirm with a capability check before making a final product claim. |64| **Platform-specific** | Feasible only behind a target capability gate; not a universal parity requirement. |6566### Library and content organization6768| Mihon behavior | Yokan state | Practical gap / decision |69|---|---|---|70| Library with favorites, unread/read state, progress, and continue-reading entry points | **Present** | Shared manga library exists and the catalog also exposes anime and novel libraries. Verify large-library query cost, ordering, and restart persistence. |71| Categories: create, rename, reorder, hide, and include/exclude from updates | **Present** | Category routes and entity fields exist. Add behavioral coverage for per-item-type isolation, ordering, hidden categories, and update inclusion. |72| Local source / local manga library | **Partial** | Yokan has local folders, local titles, archive scanning, and metadata review. Confirm Mihon-like local-source import, stable identity, rescans, chapter mapping, and cross-device behavior. |73| Search, pinning, source filters, global search, and title detail actions | **Present** | Routes and repository methods exist. Verify cancellation, empty/error states, source scoping, and that browsing does not pollute the persistent library. |74| Updates screen and “mark read/clear” behavior | **Present** | An updates route and `LibraryUpdaterService` exist. Verify per-category inclusion, pagination, unread semantics, retry, and update results on every target. |75| Statistics (counts, reading time, completion, storage) | **Partial** | A statistics route and history duration data exist. Verify definitions match user-visible totals and storage is available where the platform exposes it. |7677### Source and extension ecosystem7879| Mihon behavior | Yokan state | Practical gap / decision |80|---|---|---|81| Local and installed manga sources | **Partial** | Source entities, local browsing, and extension runtime contracts exist. Prove a source can list, search, show detail, return pages, and fail safely on each supported target. |82| Extension repository add/remove/validate, refresh, language/type filtering, and lifecycle state | **Partial** | Repository screens and `SourceCatalogService` exist, but the default registry uses `HttpSourceCatalogService` (formerly `StubSourceCatalogService`). Verify manifest fetch, validation, persistence, removal, refresh, and stale-source handling. |83| Extension install/update/uninstall and app-visible version state | **Partial** | Extension detail/browse routes and update settings are catalogued. Define an authoritative manifest/version lifecycle and test rollback, incompatible versions, and interrupted updates. |84| Mihon-compatible extension execution | **Partial** | QuickJS and a Mihon APK bridge are referenced in the build and runtime setup. Establish compatibility fixtures for source listing, detail, chapters, pages, headers, cookies, preferences, and disposal. |85| Source filters and preferences | **Partial** | `filterList()`, `sourcePreferences()`, and cookie/WebView contracts exist; the stub supplies placeholder filters/preferences. Verify persistence, typed values, reset behavior, and that requests actually consume them. |86| Cookies, headers, WebView challenge/session flows | **Partial / platform-specific** | Shared cookie handling and a WebView contract exist; Android has stronger actual support than other targets. Gate challenge solving and cookie harvesting by platform instead of promising identical source success. |87| Trust, permissions, and extension safety | **Unsupported** | No verified user-facing trust/capability policy is established by the baseline. Add provenance, declared capabilities, approval, revocation, and safe failure before widening extension distribution. |88| Source migration and mass migration | **Partial** | Migration routes are present. Verify source identity, title matching, chapter mapping, dry-run warnings, and recovery when a destination source disappears. |8990### Reader9192| Mihon behavior | Yokan state | Practical gap / decision |93|---|---|---|94| Manga page reader with vertical/webtoon, LTR/RTL, continuous, fit/crop, double-page, preload, gestures, and color/background controls | **Present** | Reader route and settings/entity enums cover a broad set of modes. Run golden interaction checks for page order, rotation/config persistence, retries, and resume position. |95| Reader history, last page, bookmarks, unread transitions, and chapter navigation | **Partial** | History, chapter progress, and page-cache entities exist. Verify every exit path, process death, skipped chapter, duplicate title, and downloaded/offline chapter. |96| Reader configuration profiles and per-source/per-title overrides | **Partial** | Shared reader settings are exposed, but Mihon-equivalent precedence and migration rules need definition and tests. |97| Share/search title or chapter actions and reader deep links | **Partial** | Global search, deep-link state, and route catalog entries exist. Verify externally resolvable IDs, cold-start routing, invalid links, and share payloads. |98| Anime player and novel reader | **Present (Yokan-specific)** | These preserve Yokan's product scope and are not Mihon parity requirements. Keep their contracts and tests separate from manga parity. |99100### Downloads and offline101102| Mihon behavior | Yokan state | Practical gap / decision |103|---|---|---|104| Offline chapter downloads with queue, pause/resume/cancel/retry, progress, storage location, and downloaded-only reading | **Partial** | `DownloadService`, persisted download rows, archive output, HLS handling, and a queue exist. Current initialization notes that requests/page URLs are not yet reconstructable after interruption; durable task state is the blocker. |105| Download settings: location, Wi-Fi-only, concurrency, cleanup, archive format | **Partial / platform-specific** | Routes and settings exist. Wi-Fi-only holds the queue as "Waiting for Wi-Fi" (one notification) and resumes on an unmetered network or when the setting is turned off; metering is watched on Android and iOS, desktop/web count as unmetered. Verify permissions, free-space failures and atomic files. |106| Offline reader cache and source-independent chapter reopening | **Partial** | Page URL cache and file/archive services exist. Define a stable offline manifest and test no-network reopen, missing-page repair, and source URL/header changes. |107| Background downloads and completion notifications | **Platform-specific** | Android keeps the process alive with a `dataSync` foreground service (progress notification, cancel all) while the queue is not waiting for Wi-Fi, and a network-constrained WorkManager job resumes the queue if the process is killed; a start refused in the background falls back to resuming on the next launch. Desktop/iOS/web resume interrupted downloads on the next launch. |108109### Backups and migration110111| Mihon behavior | Yokan state | Practical gap / decision |112|---|---|---|113| Manual backup/restore of library, categories, progress, history, settings, sources, preferences, and downloads metadata | **Partial** | Backup routes, options, and `BackupService` exist. Verify the actual serialized payload, atomic restore, conflict policy, media/file handling, encryption, and schema migrations. |114| Automatic and cloud backup | **Partial / platform-specific** | Cloud provider contracts and Google Drive wiring exist, as do backup-frequency settings and Android scheduling. Verify credentials, retention, latest-backup selection, failure/retry, and non-Android behavior. |115| Tachiyomi backup fidelity and import compatibility | **Unsupported (fidelity not evidenced; verify)** | A Mihon/Tachiyomi-compatible fixture set and field-by-field round trip are not established in the baseline. Do not promise import fidelity until representative `.tachibk` fixtures pass. |116| Restore preview, selective restore, encrypted backup, and safe rollback | **Partial** | Preview/open/apply contracts exist, while encrypted support has an explicit default unsupported path. Make restore transactional and leave the pre-restore state recoverable. |117| Cross-device migration without copying platform-private paths | **Partial** | Yokan's sync/outbox and backup models can carry metadata, but local file references need relocation rules and a missing-file report. |118119### Tracker integrations120121| Mihon behavior | Yokan state | Practical gap / decision |122|---|---|---|123| Tracker login, OAuth/token refresh, search, bind, status/progress/score updates, and sync | **Partial** | `TrackerService` and tracker screens are present. Registry wiring lists MAL, AniList, Kitsu, SIMKL, trakt, and metadata; the capability summary calls concrete networking stubbed, so verify each operation rather than counting names. |124| MangaBaka | **Partial (not evidenced in current registry; verify)** | Add only after the common tracker contract, rate limits, auth, title matching, progress semantics, and tests are in place. |125| MyAnimeList (MAL) | **Partial (verify implementation)** | Listed in the registry and catalog. Verify OAuth, refresh, manga-only fields, score scale, status mapping, and offline error behavior. |126| AniList | **Partial (verify implementation)** | Listed and also used by Yokan-specific recommendation/watch-order flows. Separate tracker conformance from those integrations. |127| Kitsu | **Partial (verify implementation)** | Listed in the registry; verify actual account and mutation paths. |128| MangaUpdates | **Partial (not evidenced in current registry; verify)** | Confirm whether it is a planned adapter or a documentation-only target before committing to parity. |129| Shikimori | **Partial (not evidenced in current registry; verify)** | Same gate: capability check and provider fixture before a support claim. |130| Bangumi | **Partial (not evidenced in current registry; verify)** | Treat locale, status, and score mappings as provider-specific acceptance cases. |131| Hikka | **Partial (not evidenced in current registry; verify)** | Confirm API/auth viability and do not infer support from generic `TrackerService`. |132| Tracker library sections, stats, and bulk sync | **Partial** | Tracker library and statistics routes exist, but provider coverage, pagination, deduplication, and sync conflict behavior need measurable checks. |133134### Scheduling and notifications135136| Mihon behavior | Yokan state | Practical gap / decision |137|---|---|---|138| Scheduled library updates, metadata refresh, sync, and backup | **Partial / platform-specific** | Shared task concepts and platform scheduler actuals exist in the codebase. Define idempotent jobs, persisted checkpoints, backoff, and user-visible last-run/error state. |139| Download/update/backup completion notifications | **Partial / platform-specific** | Notification service and download completion calls exist. Verify permission denial, duplicate suppression, deep-link payloads, and target-specific presentation. |140| Android WorkManager constraints and notification channels | **Platform-specific** | Android-only acceptance: network/battery constraints, retries, channels, and foreground-service rules. These are not universal requirements for iOS, desktop, or Wasm. |141| iOS periodic scheduling | **Platform-specific** | Use BGTaskScheduler where permitted, but do **not** promise a periodic duration or exact execution frequency. Jobs and downloads must be resumable when the OS stops them. |142143### Platform integrations144145| Mihon behavior | Yokan state | Practical gap / decision |146|---|---|---|147| Android APK extension installation/loading | **Platform-specific** | A Mihon APK bridge/proxy path is referenced and an Android proxy route exists. Gate on Android packaging, permissions, ABI/runtime compatibility, and trust approval; never require it on other targets. |148| Android SAF file selection, export/import intents, share intents, and external browser/WebView | **Platform-specific** | Implement Android intent contracts and permission persistence as one gate. Desktop native paths, iOS document providers, and Wasm downloads/uploads need separate adapters. |149| Android app shortcuts and notification channels | **Platform-specific** | Useful Android parity, not shared-domain requirements. Define route payloads and a capability-free fallback. |150| Desktop filesystem, WebView, player, and app update behavior | **Platform-specific** | Verify native file paths, JavaFX/WebView limits, mpv, packaging, and update prompts independently of Android. |151| iOS document access, WebView, background work, and player | **Platform-specific** | Verify host-app integration and OS lifecycle behavior. Keep APIs in `iosMain`/host code rather than making Android assumptions common. |152| Wasm browser persistence, downloads, WebView, and media playback | **Platform-specific** | Treat localStorage/browser APIs and HTML5 playback as the capability boundary; do not promise Room, QuickJS, filesystem downloads, or native mpv in Wasm. |153154### Documentation and community155156| Mihon behavior | Yokan state | Practical gap / decision |157|---|---|---|158| Public positioning, install instructions, screenshots, source/extension guidance, privacy, support, and disclaimer/license | **Partial** | Current README is concise and useful but claims broad features without a verification matrix, has a minimal install matrix, and ends with an ignored raw repository link. Restyle it using the plan in section 6. |159| Clear platform limitations and extension safety guidance | **Partial** | Some native-only limitations are documented, but every feature must be labeled Android/desktop/iOS/web and tied to an executable check. |160| Community/support path and contribution onboarding | **Partial** | Add canonical issue/discussion/support links, extension contribution rules, and a reproducible build/test path. |161162**Outside Mihon's scope:** Yokan's anime player/extractors, novel reader/source ecosystem, anime/novel tracking semantics, metadata server/recommendations/watch order, Together rooms, translation, subtitles, torrent integration, and cross-media hub sync are Yokan product differentiators. They should not be deleted or made dependent on manga parity.163164## 4. Architecture roadmap grounded in current code1651661. **Make the database authoritative.** Replace UI-wide snapshot reads with167 native SQL/Room query flows for each screen and feature. Use `suspend`168 transactional writes for mutations and restore-scale operations. Keep169 `YokanDatabaseSnapshot` only at explicit serialization boundaries (backup,170 migration, sync import/export, diagnostics); do not make a global snapshot171 the live read model.1722. **Introduce feature repositories.** Start with library/categories,173 source/extensions, reader/history, downloads, backup/migration, trackers,174 and scheduling. Repositories expose narrow query `Flow`s and suspend175 commands, hiding Room/SQL and platform services from UI code.1763. **Retire `YokanRuntime`.** Pass service/repository dependencies through the177 composition root and feature constructors. This removes ambient global178 state and makes platform capability failures testable. Preserve existing179 KMP source sets, Room schema/migrations, and service contracts while the180 composition root changes.1814. **Split the 2,500+ line `ui/AppState.kt` / `YokanStore`.** Move state and182 commands into feature ViewModels (library, browse, reader, downloads,183 backup, tracking, settings). UI receives state and lambdas, not a god store184 or service locator. Do this incrementally by route group, retaining route185 behavior during each extraction.1865. **Use typed, ID-only serializable routes.** Replace payload-heavy route187 state with serializable route types containing stable IDs and small validated188 parameters. Reload entities from repositories, support cold-start deep links,189 and avoid serializing full manga/source/chapter objects into navigation.1906. **Define extension capability, trust, and conformance.** Store source191 provenance/version and declared capabilities; require user approval for192 risky capabilities. Build fixtures for listing, detail, filters,193 preferences, cookies, headers, page extraction, errors, cancellation, and194 disposal. A generic runtime interface is not a compatibility guarantee.1957. **Build durable download/update coordinators.** Persist task identity,196 request manifest, page/segment checkpoints, destination, retry state, and197 schema version. On restart, resume or expose a safe retry; never fabricate198 an active task whose request is gone. Use the same resumable job model for199 library updates, metadata refresh, backup, and sync.200201Do not transplant Mihon modules or libraries prematurely. Preserve KMP source202sets, Room, and the existing contracts; borrow observable behavior and fixture203expectations, then implement the smallest native/shared design that satisfies204them.205206## 5. Phased delivery plan207208| Phase | Deliverables and dependencies | Acceptance criteria | Main risk / mitigation | Platform capability gates |209|---|---|---|---|---|210| **P0 — ground truth and reliability** | Freeze the matrix; inventory every registry implementation and stub; add capability probes and test fixtures; establish Room/SQL query-flow and suspend-transaction seams; define typed IDs and job manifests. Depends on current entities/contracts and schema snapshots. | Every matrix row has `present`, `partial`, or `unsupported` evidence; no unsupported claim relies only on a missing grep result. Representative library/category/history/restore/download fixtures pass on desktop and Android. Snapshot is used only at explicit boundaries in new paths. | Migration can break existing data or sync. Mitigate with schema migration tests, backup-before-migration, dual-read/telemetry period, and rollback path. | Probe Room/filesystem/WebView/player/notifications/SAF separately; Wasm explicitly reports unavailable native capabilities. |211| **P1 — source compatibility and core manga flow** | Feature repositories for library, categories, browse, sources/extensions, reader/history, and downloads; source repo lifecycle; filters/preferences/cookies; local source; durable download/update coordinators. Depends on P0 query/write seams and extension fixtures. | A clean install can add/refresh a repository, install/use a verified source, apply a filter/preference, add a title, read it, persist history, update it, download it, kill/restart, and reopen offline. Failed source/download jobs are retryable and observable. | Extension drift, hostile pages, and filesystem interruptions. Mitigate with capability/trust policy, request timeouts, fixture conformance, atomic files, checkpoints, and explicit unsupported UI. | Android APK/SAF is an optional adapter; desktop/iOS/Wasm use only their verified runtime/file capabilities. |212| **P2 — secondary Mihon parity** | Reader configuration precedence, share/search/deep links, stats, backup/restore preview and encryption, Tachiyomi fixture import/export, automatic/cloud backup, tracker adapter framework and verified providers, notifications. Depends on P1 stable IDs, task manifests, and source/title identity. | Tachiyomi representative fixtures round-trip with a documented field-loss report; restore is transactional and reversible; each claimed tracker passes login/search/bind/read-progress/write-progress/error tests; deep links work from cold start; stats reconcile with history. | Provider APIs and backup formats change. Mitigate with versioned adapters, golden fixtures, migration reports, rate-limit handling, and no claim until tests pass. | Android channels/intents/shortcuts/WorkManager tested separately; cloud and background features degrade to manual/foreground flows elsewhere. |213| **P3 — platform polish and product differentiation** | Native platform UX, app/extension update UX, scheduling refinement, screenshots/docs/community, and Yokan anime/novel/Together parity hardening. Depends on P0–P2 reliability; does not block core manga reader release if explicitly labeled. | Release matrix shows per-target capability results; scheduled tasks are idempotent and resumable; README claims map to checks; Android-only conveniences do not leak into common code; Yokan-specific media features remain green. | Scope expansion and false cross-platform promises. Mitigate with capability gates, release checklists, and separate Yokan-specific milestones. | iOS BGTaskScheduler is best-effort only—never promise duration or exact cadence. Web uses browser lifecycle/manual fallback. |214215**Ordering rule:** P0 and P1 are release blockers for core parity. Do not spend216the primary parity budget on tracker breadth, screenshots, or Android polish217while source compatibility, persistence, restart recovery, and offline reading218are unverified.219220### Capability-gate checklist221222- [ ] `ExtensionRuntime`, source catalog, cookies, and WebView report supported223 capabilities rather than silently falling through to a stub.224- [ ] Filesystem/archive/download behavior is tested independently on Android,225 desktop, iOS, and Wasm; browser persistence is not represented as Room.226- [ ] APK loading, SAF/intents, WorkManager, notification channels, and app227 shortcuts are Android-only gates, with non-Android alternatives or clear228 “not available” states.229- [ ] Background work is modeled as resumable tasks with checkpoints. iOS230 scheduling is best-effort and no execution duration is promised.231- [ ] Every provider-specific tracker and cloud provider has a live/mock232 capability check before it appears as supported documentation.233234## 6. README restyle plan235236Model the public information hierarchy on the237[Mihon README](https://github.com/mihonapp/mihon/blob/main/README.md), while238making Yokan's cross-platform and cross-media position explicit.239240### Proposed README outline2412421. **Hero and positioning** — Yokan name, one-sentence manga/anime/novel243 description, target platforms, project status, and links to releases/builds.2442. **Download/install matrix** — Android APK/release path, desktop packages or245 run instructions, iOS host/Xcode instructions, and Wasm/web deployment;246 include prerequisites and current capability limitations per target.2473. **Verified features** — short checklist linked to capability checks/tests,248 separated into manga parity and Yokan-specific anime/novel/Together features.2494. **Platform limitations** — a compact Android/desktop/iOS/web table covering250 filesystem, extensions, background scheduling, notifications, WebView,251 player, and offline behavior.2525. **Screenshots** — selected library, browse/source, reader, downloads, and253 anime/novel views with captions and target labels.2546. **Extensions and sources** — repository lifecycle, compatibility/trust255 policy, supported source types, and how to report a broken source.2567. **Sync and privacy** — hub sync, cloud backup, credentials/tokens, what is257 stored locally, and what is never uploaded by default.2588. **Build and run** — JDK/SDK/Xcode requirements, clone/submodule setup, and259 Android/desktop/iOS/Wasm commands.2609. **Contributing** — code layout, KMP/source-set rules, Room schema migration261 process, fixture requirements, and platform testing.26210. **Support and community** — issue tracker, discussions/chat, source and263 extension support boundaries, and security reporting.26411. **Disclaimer and license** — copyright, third-party/source responsibility,265 legal/content disclaimer, and license links.266267### README content rules268269- No feature claim without an executable capability check or test. Link the270 check where practical; “route exists” is not enough.271- Distinguish **Android**, **desktop**, **iOS**, and **web/Wasm** in every272 feature table. Say “best effort” for OS-scheduled work.273- Distinguish present behavior from planned/partial behavior; never turn274 `ServiceCapability` text or a `StubService` into an automatic absence or275 support claim without verification.276- Describe Mihon/Tachiyomi compatibility with tested format/version scope and277 a field-loss report, not a broad “compatible” badge.278- Explain that Yokan includes anime, novels, sync, and Together, which are not279 Mihon requirements.280- Replace the current trailing ignored raw repository link with a labeled281 **Sources/extensions** link or remove it if it is not a supported source. Do282 not leave unexplained “ignore this” text in public documentation.283284## 7. Do not copy blindly285286- Android types and APIs in `commonMain`.287- Android APK loading on non-Android targets.288- A Mihon module-by-module rewrite or premature dependency/library transplant.289- Manga-only domain assumptions that erase Yokan's anime and novel models,290 readers, players, schedules, or Together scope.291292## 8. Measurable completion gates293294- [ ] A capability ledger covers 100% of this matrix, with owner, target,295 executable check/fixture, and evidence date.296- [ ] New live UI read paths use feature query flows; no new feature depends on297 the global `YokanDatabaseSnapshot` as its source of truth.298- [ ] All core mutations and restore/import operations have suspend transaction299 tests, including cancellation and rollback cases.300- [ ] A clean-install-to-offline-read scenario passes on Android and desktop;301 iOS and Wasm have an explicit pass/blocked result for every step.302- [ ] Interrupted downloads and updates resume from persisted manifests after303 process death, or present a deterministic retry with no false completion.304- [ ] Source/extension conformance fixtures pass for every documented source305 capability, including filters, preferences, cookies, headers, pages, and306 failure behavior.307- [ ] Tachiyomi/Mihon backup fixtures have field-level round-trip results and a308 documented list of intentionally unsupported fields.309- [ ] Every documented tracker/provider passes its contract suite, including310 auth refresh, search, binding, read/write progress, rate limits, and311 failure recovery.312- [ ] Android-only integrations pass Android gates without becoming common313 dependencies; desktop/iOS/Wasm capability reports are accurate.314- [ ] iOS background work is demonstrably resumable and documented without a315 promise about periodic execution duration or exact cadence.316- [ ] README feature claims resolve to the capability ledger and the ignored317 trailing link is gone.318319## 9. Sources and evidence320321- [Mihon repository](https://github.com/mihonapp/mihon)322- [Mihon README](https://github.com/mihonapp/mihon/blob/main/README.md)323- [`composeApp/build.gradle.kts`](composeApp/build.gradle.kts) — KMP targets,324 source sets, Room, QuickJS, mpv, and Android WorkManager dependencies.325- [`ui/navigation/Route.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/navigation/Route.kt)326 — typed route and settings-page inventory.327- [`database/DatabaseEntities.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/DatabaseEntities.kt)328 — shared manga/anime/novel, source, reader, download, backup, and sync data.329- [`services/<domain>/*Service.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services)330 — extension, source, tracker, downloader, backup, sync, and platform-service331 contracts, one file per domain.332- [`services/ServiceRegistry.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/ServiceRegistry.kt)333 — registry capability summary and default concrete/stub wiring.334- [`database/YokanDatabase.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/YokanDatabase.kt)335 — current snapshot-based interface and transaction migration seam.336- [`data/YokanRepository.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/data/YokanRepository.kt)337 — current repository surface and the boundary for feature-repository338 extraction.339- [`ui/AppState.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/ui/AppState.kt)340 — current `YokanStore`/global UI state extraction target.341- [`services/extensions/DatabaseFallbackRuntimeService.kt`](composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/services/extensions/DatabaseFallbackRuntimeService.kt)342 — explicit fallback runtime that requires capability verification,343 not automatic absence conclusions.344