refactor(notebook): extract local RPC adapter - #665
Merged
Conversation
ewen-poch
force-pushed
the
refactor/notebook-local-rpc-adapter
branch
from
August 3, 2026 08:06
915b5f9 to
9f9f75b
Compare
Codex ReviewVerdict: mergeable No actionable findings. Summary: Static inspection found no concrete merge-blocking defect in the pull request changes. Branch and pull request title prechecks are valid. |
ewen-poch
force-pushed
the
refactor/notebook-local-rpc-adapter
branch
from
August 3, 2026 08:17
9f9f75b to
3cffcfa
Compare
Give the local Notebook RPC surface an explicit capability contract while keeping transport authentication, trusted context injection, and input-run lease ownership in the server.
ewen-poch
force-pushed
the
refactor/notebook-local-rpc-adapter
branch
from
August 3, 2026 08:20
3cffcfa to
abab099
Compare
Codex ReviewVerdict: mergeable No actionable findings. Summary: Static inspection found no concrete merge-blocking defects in the pull request changes. Branch and PR title prechecks are valid; no tests or project commands were run. |
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.
Problem
NotebookLocalRpcServerowned both transport concerns and the concreteNotebookRuntimeServicedispatch table. That coupled authentication, trusted context injection, and input-run lease lifetime to 16 Notebook capability methods, making the local RPC boundary harder to evolve safely.Proposed change
NotebookLocalRpcCapabilitycontract for exactly the 16 existing Notebook methods.sessionId/workspaceCwdvalidation, method-to-capability translation, and four execution-method classification intolocal-rpc-notebook-adapter.ts.NotebookLocalRpcServer.Scope and non-goals
runtime:list-packagesandruntime:list-package-countsremain Settings/runtime-selection APIs and do not enter local Notebook RPC.Production churn: 223 lines (
local-rpc-server.ts9 additions/74 deletions plus the 140-line adapter), below the 450-line re-review threshold.Acceptance criteria and validation
All commands below ran after the final material edit.
npm test -- --run src/main/notebook/local-rpc-notebook-adapter.test.ts-> 20 passed.npm test -- --run src/main/notebook/local-rpc-server.test.ts-> 22 passed.npm run typecheck-> passed.npm run lint-> 0 errors; 18 pre-existing warnings in unchanged files.9f9f75b->npm test-> 697 files / 10,188 tests passed; 15 files / 184 tests environment-gated skipped.Uncovered risk: environment-gated host integration/certification cases remain skipped locally and are delegated to CI; no production behavior or platform-specific code changed.
Review focus