Repository navigation
F12-Q2 step 4: companion-owned copies, groups and finish - #176
Merged
Merged
Conversation
Delete the four legacy Lua catalog modules and route callers through neutral commands and bounded snapshots. Preserve durable queue phases, delivery hashes, offline reads and native writer ordering. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Read the position mode's saved native value, retain compatibility checks, and finish through the existing writer plus outbox drain before downloading. Owned Home also closes the end sheet and readies its finish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Keep native writer setup off Home's render path and require the companion before leaving into the owned Home flow. Add a deterministic scheduling regression. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Include executing catalog work in the companion busy gate after dequeue, and release it in finally. Cover both normal completion and failure so background copy transfers retain their Wi-Fi hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Bulk Use leaves previously kept choices intact. Acknowledgements count only successful native writes, and review clears the unseen line without repeating notices. Project native action labels in the companion and cover the complete eight-row snapshot budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Assert copy count publication and inherited finish row-budget rejection through SQLite. Reuse CacheWorker's injected timing logger for workflow-driven publication. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Retain both neutral command sets, collection membership and the four-module catalog deletion. Preserve Storage registration and rerun the combined companion and plugin suites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Retain the base's startup and upgrade behavior alongside companion-owned catalog workflows. Validate the combined plugin, read-model, companion build and lint checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
…writer Retain catalog provenance during sync login adoption and project matched local files through the existing ledger. Keep end-of-book preparation local and route native catalog downloads through the sole companion worker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
…writer Retain catalog provenance during sync login adoption and project matched local files through the existing ledger. Keep end-of-book preparation local and route native catalog downloads through the sole companion worker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Avoid redundant finish-leave commands for unmarked readers and keep the existing 30-intent flow budget when switching repeatedly between Home and the companion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Keep both loader additions while retaining the four retired catalog modules' removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves copy replacement, native grouped lists, settings recommendations and end-of-book catalog work out of plugin Lua. Deletes the four legacy Lua modules; their callers use
ko/library.luacommands and bounded neutral snapshots. All catalog protocol/transport stays in the companion adapter, and native reader/settings actions remain behind Library.android/companion/app/src/main/java/net/fledgewing/orbitcompanion/server/bookorbit/CacheWorker.kt:318(saved-detail lookup),:338(sidecar/statistics repair),CopiesLogic.kt:35(candidate rules),BookOrbitLibrary.kt:36(local ledger),BookOrbitProjection.kt:249(membership/grouping), andLibraryReadModel.kt:26(bounded publication). Reusesandroid/koreader/orbit.koplugin/ko/endsheet.lua,ko/home_host.luaandko/library.luafor rendering/navigation/transport.catalog.actionandsettings.recommendationscommands to Library and the companion interface, plusreader.finish/copies.stateprojections. Existinggroups/windowprojections gain native-list selection scope. No parallel catalog or replacement position writer.Validation: 799 companion unit tests (4 existing skips),
verifySharedVersion,assembleDebug,lintDebug; 241 Lua logic tests and 277 flows; 11 boundary tests; feature/workflow/release-input/product-name checks; installer/sideload test doubles; 16 attestation tests; pinned upstream check (58 routes, none requires app attestation); pinned native plugin compatibility. Removed legacy transport/engine flow assertions move to companion workflow/projection tests and neutral dispatch tests, including the recorded delivery-variant fixture.Android only. No devices, adb, releases, tags or firmware source changes. PR targets
feature/0.12. Source/reuse evidence, performance rule and sync integration are recorded indocs/design/booksync-home/F12-Q2-NOTES.md,docs/design/backend-independence.md,AGENTS.mdand the interface contract. Automatic PR checks must pass before squash merge.