Skip to content

F12-Q2 step 5: enforce the server boundary across all plugin Lua - #180

Open
Fledgewing wants to merge 3 commits into
feature/0.12from
f12/plugin-no-server-catalog-step5
Open

Fledgewing wants to merge 3 commits into
feature/0.12from
f12/plugin-no-server-catalog-step5

Conversation

@Fledgewing

@Fledgewing Fledgewing commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

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), and ko/base.lua:48 (native hooks). Companion windows reuse server/bookorbit/MirrorLogic.kt:116, CacheStore.kt:240 and the existing CatalogWorkflow.kt ledger/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. Targets feature/0.12; complete current-head CI must pass before squash merge and worktree removal.

Fledgewing and others added 3 commits November 26, 2026 18:16
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
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