Skip to content

Fix M8C defaults, upgrade login adoption and signed-out local data - #179

Merged
Fledgewing merged 1 commit into
feature/0.12from
f12/firstrun-followups
Nov 27, 2026
Merged

Fledgewing merged 1 commit into
feature/0.12from
f12/firstrun-followups

Conversation

@Fledgewing

@Fledgewing Fledgewing commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Restore the approved §4 two-page M8C default (Home and Stats), preserving saved layouts and pass 4 navigation/touch fixes. Adopt existing device-entered sync and matching native OPDS logins as independent user logins, with both credentials and the once-only marker checkpointed atomically in the existing encrypted vault. Preserve the legacy catalog identity and cached-detail capability; imported logins survive account sign-out and are never resurrected after removal.

Signed-out readers now use a reserved device owner for companion-materialized local books, native custom covers, battery and local statistics. The generic ko/store.lua change is limited to allowing that reserved owner through Store.library; its SQL still selects only that owner's bounded row. The SQLite regression covers existing/no catalog owner, rejected remote-owner reads, zero oversized decode, and the foreground-reading memo gate. The maintainer clarified that the store restriction concerned the deleted legacy adapter store and explicitly approved this narrow generic Store change.

Reuse: logic/layout.lua:181, logic/home_plan.lua:81, ko/library.lua:15, ko/store.lua:149, companion LibraryReadModel.kt:30, server/bookorbit/ServerCredentials.kt:16, ReadingStats.kt:24, LibraryFilter.kt:30, and DeviceStorage.kt:19. No new public Library operation, parallel catalog, server transport, or position/lifecycle writer. All local scans/filtering/joins remain on the companion, with existing per-call/per-paint timing and row/byte/batch budgets. Updated design notes, AGENTS, roadmap and all four feature cells. Android only under the maintainer's ruling; firmware follows later.

Validation:

  • Lua logic: 238 passed; flow harness: 301 passed, including the real SQLite device-owner regression.
  • Companion: verifySharedVersion, testDebugUnitTest (732 tests), assembleDebug and lintDebug passed with JDK 17.
  • Upgrade regressions: existing/no credentials, independent OPDS, pre/post-checkpoint crash, current-login precedence, encrypted persistence, sign-out/removal, working sync and download without account setup.
  • Device regressions: ownerless and signed-out-with-old-catalog projections without an adapter; bounded windows/filtering, local custom covers, budget rejection and escaping-link exclusion.
  • Server boundary, feature matrix, credits, product names, shared versions, repository naming, plugin packaging and pinned KOReader hook compatibility passed.
  • USB installer: 43 passed; sideload scripts: 44 passed, fixtures only.

No device acceptance, adb, releases or tags. Device timing targets remain unconfirmed. Local covers here are native custom covers already available beside a book; no image extraction or fetch is added.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw

Post-merge integration: #168 landed while the full PR CI suite ran. The combined tree is identical to the landed f5ec240b commit and passes 238 logic tests, 290 updated flow tests, 758 companion tests, version verification, debug assembly/lint, boundary and feature checks. Android CI on the landed commit also passed. All applicable PR CI checks passed, including the three firmware builds and three simulator suites; publishing jobs were skipped as expected for a PR.

Restore the approved Home/Stats default without rewriting saved layouts.
Adopt independent legacy logins atomically in the existing encrypted vault,
and publish bounded local library windows without claiming a catalog owner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
@Fledgewing
Fledgewing merged commit f5ec240 into feature/0.12 Nov 27, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant