Repository navigation
F12-Q2 step 5: enforce the server boundary across all plugin Lua - #180
Open
Fledgewing wants to merge 3 commits into
Open
Fledgewing wants to merge 3 commits into
Fledgewing wants to merge 3 commits into
Conversation
Retire the native catalog facade and unused Lua projection policies. Owned Home, Library and account screens consume neutral snapshots; the companion supplies a bounded, trusted startup retirement descriptor and owns sleep credentials. Preserve offline finish updates, configured gesture aliases and the single sync writer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
The generic Library binding observes and writes bounded native scalars without knowing the adapter's preset keys or sentinel values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Keep repeated Home/Back behavior for the approved BookSync Home. The former Home choice retains its legacy companion cycle through the same owned screen. 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.
The final catalog boundary guard checks every production plugin Lua file, including adapter directories, the loader, and the five former sync paths. There are no Lua skip lists, baselines, suppressions, or vendor-name masks. Regression cases reject routes, vendor identifiers, HTTP imports/clients and subprocess entry points under invented nested adapters too.
To satisfy that boundary, this retires the native catalog facade/display bridge and unused Lua catalog policy modules. Home, lists, grouping and account setup use the existing owned UI and neutral Library windows. The companion retains all protocol and supplies a static, credential-free legacy retirement descriptor before instances start. Signer/version mismatch, missing metadata, late loading or an unknown seam cannot authorize the single owned sync writer. Existing gesture aliases dispatch owned actions. Sleep refresh carries no credentials; the adapter resolves its encrypted login and respects explicit removal. Companion-owned finish/undo patches keep offline display current.
Reuse:
android/koreader/orbit.koplugin/ko/home_host.lua:339(owned Home),ko/library.lua:163(existing command/read boundary),ko/store.lua:66(bounded local reads), andko/base.lua:48(native hooks). Companion windows reuseserver/bookorbit/MirrorLogic.kt:116,CacheStore.kt:240and the existingCatalogWorkflow.ktledger/queues. Minimal interface addition:LIBRARY_BOOTSTRAP/ConnectorInstaller.retirementPlan, with a named one-row, 16 KiB, one-round-trip, zero-network/subprocess startup budget and timing span.Validation: 804 companion tests (4 existing skips), shared version/debug build/lint; 199 Lua logic tests, 235 flows including both required reader release scenarios; 12 boundary tests; feature/workflow/release-input/product-name checks; 43 installer and 44 sideload test-double cases; pinned native retirement/migration compatibility. Historical window/section fixtures now exercise the companion implementations. Removed native-UI/policy assertions are replaced by owned Home, neutral retirement, bounded SQLite and companion tests. The release smoke still runs KOReader's actual opening coroutine while Full refresh is active.
Updates
F12-Q2-NOTES.md, backend/interface notes, AGENTS, contract and feature evidence. Android only; all four feature-matrix platform cells retain their existing scope/reasons. No devices, adb, firmware source changes, releases or tags. Targetsfeature/0.12; complete current-head CI must pass before squash merge and worktree removal.