Repository navigation
fix(vscode): probe resolved servers through standard LSP - #3191
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 22 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (16)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 0dff800
integration_basis: origin/main 6fdecdf; pull/3191/head re-read immediately before this record and still exact
claim_boundary: Review is limited to #1745''s pre-activation standard-LSP compatibility admission. It does not establish #1879 provenance, private-protocol compatibility, universal optional-feature support, or release qualification.
changed_surfaces_and_semantic_owners_inspected:
- Full 10-file diff, with
lspCompatibility.tsas framing/lifecycle/capability owner,serverResolver.tsas candidate/fallback owner, andclient.tsas the active consumer. - Initialize parameters, root/trust ordering, serverInfo/version evidence, fallback order, shutdown/exit, timeout cleanup, Windows shell behavior, stdout/stderr behavior, tests, package contents, SERVER_PROVISIONING.md, issue #1745, process policy, exact-head checks, reviews/comments.
- Confirmed trust gating occurs before
resolveServer; configured-path fail-closed behavior and managed/bundled/PATH order are unchanged.
blocking_findings:
- [admission/consumer mismatch]
lspCompatibility.ts:247-255admits a server whenexecuteCommandProvider, workspace folders/configuration, and diagnostics support are absent, records those omissions only as booleans, and no production consumer readscompatibilityResult. The active client nevertheless sendsworkspace/executeCommandunconditionally atclient.ts:924,1311,1632,1692,1829,1884and installs a workspace/configuration consumer. The committedoptional-omittedtest positively proves this incompatible state is admitted, but there is no weaker-mode/feature-disable behavior. This does not satisfy #1745''s required-vs-optional contract: either require every actually exercised baseline capability/command or gate each consumer with typed weaker state and prove the rendered degradation. - [cross-platform cleanup]
probeVersionspawns withoutdetached: process.platform !== ''win32''while its timeout callsterminateProbeProcessTree. On POSIX,process.kill(-child.pid)only targets a process group whose id equals the child pid; this child inherits the extension''s process group, so the call falls through to killing only the immediate child. A wrong/hung--versionwrapper can leave descendants running, contrary to the PR''s process-tree claim and #1745''s bounded failure requirement. Add a process-group-owning spawn (or equivalent platform authority) and a descendant-leak oracle, not only single-process fake servers. - [required exact-head policy failure] Exact-head hosted CI fails
check-process-policy: the new file has unallowlistedchild_process(1) andcp.spawn(2). This is candidate-caused, not inherited clipboard noise. It causesRipr Rust Small on GitHub Hosted, aggregate result,rust-tests-junit, andrust-coverageto fail/cancel with incomplete denominators (JUnit ran 5200/6069 before the policy test stopped it). Add the reviewed owner/reason entries and rerun the current-head gates. - [standard framing oracle] The parser admits response objects without
jsonrpc: "2.0";JsonRpcMessage.jsonrpcis optional and never validated before initialize/shutdown results are consumed. Such a fake can pass the claimed standard JSON-RPC/LSP admission. Validate the envelope/version (and response shape for the active id/phase) and add a wrong/missing-jsonrpc rejection test. - [spec/proof parity] This behavior closes #1745 and changes public editor compatibility, but the diff changes no RIPR-SPEC or traceability row. The PR body names only tests/code and a provisioning guide. Amend the applicable editor-integration spec/traceability authority and add an exact packaged-server oracle: the local test''s
RIPR_TEST_SERVER_PATHaccepts any executable and does not establish that the binary came from a packaged server archive.
non_blocking_suggestions:
- Bound/drain stderr and bound
--versionstdout/stderr; today a chatty candidate can consume unbounded memory or fill the LSP stderr pipe and be classified as a timeout. - Consider correlating the
--versionresult with initializeserverInfo.version, or explicitly document why divergent authorities are accepted.
refuted_or_stale_findings:
- Workspace Trust is not bypassed:
client.tschecks trust before resolution/probing. - Fallback after an incompatible bundled candidate is covered and preserves the existing channel order.
- The PR body''s clipboard failure is not present in exact-head hosted evidence because the hosted
vscodejob was skipped. The changed files do not touch that assertion, but without a main/current-head paired run it is only writer-reported unrelated noise, not a confirmed inherited denominator. - The reported local
check-prouter timeout/BrokenPipe is incomplete proof, not a behavioral failure. Hosted CI instead supplies a concrete candidate-caused process-policy failure.
proof_and_ci_observed:
- Read-only detached Windows worktree at exact head.
npm ci: passed (369 packages, 0 vulnerabilities).- Direct TypeScript
npx tsc -p .: passed. The combined command later failed only because direct Node Mocha cannot load the VS Code host shim for the resolver test. - Focused LSP suite with
RIPR_TEST_SERVER_PATH=C:\Code\Rust\ripr-swarm\target\debug\ripr.exe: 12 passing, including version-only, missing-hover/optional omission, encoding, wrong identity, timeout, malformed, partial, crash, nonzero, shutdown, and fallback cases. - VSIX produced from exact compiled JS with
npx vsce package; it containsextension/out/src/lspCompatibility.js,serverResolver.js,extension.js, and package metadata. - Exact-head remote checks at inspection: 8 success, 4 failure, 10 skipped, 1 in progress, 1 queued. Security/dependency/source-of-truth passed; required routed Rust result failed due the candidate process-policy violation;
vscodewas skipped. No submitted reviews or inline review comments existed.
proof_or_review_missing:
- No passing exact-head required denominator.
- No exact-head hosted VS Code test/package job.
- No packaged server-archive identity tying the binary exercised by the test to a package receipt.
- No descendant cleanup test on POSIX.
- No feature-disable proof for admitted optional omissions.
- Automated substantive reviewers were unavailable/rate-limited; this record is the independent substantive review.
affected_currentness_dimensions:
- source: exact PR head and live base stable at inspection
- dependency/integration: based on current origin/main 6fdecdf; no base movement observed
- generated/package: exact compiled VSIX inspected locally; no hosted package artifact
- runtime/platform: Windows local runtime observed; POSIX process-group behavior is defective by construction and unproved remotely
- policy/CI: exact-head required gates failing/incomplete
residual_assumptions_and_non_claims:
- The local
ripr.exereports 0.10.0 and passes the probe, but its archive/package provenance was not established. - No conclusion is made about producer provenance, private
riprAgentcompatibility, every optional LSP feature, or the unrelated clipboard assertion. - I did not mutate the candidate or merge.
disposition: REPAIR_REQUIRED
|
Addressed every blocker from review 4920243425 at exact head befaf15: active-client capability/command omissions now fail admission; both probes own platform-correct process trees; process policy has explicit governed counts/rationale; JSON-RPC 2.0 envelopes and response payloads fail closed; RIPR-SPEC-0129 plus traceability govern the behavior; and the default E2E route probes a SHA-256-identical executable extracted from an archive-shaped package. Focused packaged/runtime proof: 19 passing, 1 POSIX-only pending on Windows; trust/no-spawn: 1 passing. Local check-pr reached 4,164 ripr tests passing and 1,587 xtask tests passing, with only two environment failures from missing jq. Fresh exact-head review remains required. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: befaf15
integration_basis: live origin/main 23560f2; pull/3191/head re-read immediately before this record and remained exact. GitHub reports the draft mergeable; main has moved through #3187/#3190, with shared traceability/spec-index surfaces but no conflicting production owner.
claim_boundary: #1745 pre-activation standard-LSP admission only. This does not establish #1879 provenance, private-protocol compatibility, universal optional-feature support, or release qualification.
changed_surfaces_and_semantic_owners_inspected:
- Full 16-file diff: lspCompatibility.ts framing/capability/lifecycle owner; serverResolver.ts version/channel admission owner; client.ts and the Rust LSP capability authority as consumers/producers; trust gate; process allowlist; SPEC-0129/index/traceability; CI route; xtask archive staging; tests and package path.
- Reconciled the required standard surface against the active client/server: full saved sync, hover, code actions, pull diagnostics, workspace folders, UTF-16, and all seven currently consumed execute commands are now required. Resolve/work-done remain explicitly optional.
- Confirmed untrusted startup reaches neither resolver nor process/client/watcher creation, managed fallback ordering remains bounded, both probe spawns own a POSIX process group and use taskkill /T on Windows, and default hosted E2E builds, ZIP-stages, single-member extracts, built/extracted SHA-compares, and probes that extracted server. The exact-head hosted vscode job passed and includes compile, VSIX package, and default E2E.
blocking_findings:
- [JSON-RPC response exclusivity] lspCompatibility.ts:139-163 and :314 accept any response having result OR error, then branch on the truthiness of error. JSON-RPC 2.0 requires exactly one of result and error. A response containing a valid result plus error:null is therefore admitted as compatible even though it is not a valid JSON-RPC response. The new wrong/missing-jsonrpc and missing-payload tests do not challenge both members or a malformed error member. Make response validation exclusive and structural for the active id/phase, and add the discriminating negative cases for initialize and shutdown.
- [process-tree boundedness is not established on exit paths] lspCompatibility.ts:86-110 only calls terminateProbeProcessTree while the direct child is still running; serverResolver.ts:250-260 never calls it on direct-child exit. Thus a wrong wrapper that spawns a descendant and then exits/crashes/nonzero (or returns version output and exits) leaves the descendant outside cleanup. The committed oracle proves only POSIX version-timeout descendants; the LSP timeout/crash/nonzero cases assert classification, not descendant death, and Windows has no descendant oracle for either probe. This falls short of the PR body claim that failed probes terminate their process tree and #1745's bounded-failure contract. Cleanup must cover direct-child exit/success as applicable, with descendant-leak oracles for both probe owners and Windows/POSIX behavior (or a clearly bounded platform authority).
non_blocking_suggestions:
- Bound version-probe stdout/stderr and drain/bound LSP stderr so a chatty wrong binary cannot turn compatibility classification into memory/backpressure behavior.
- Either correlate --version identity with initialize serverInfo.version or keep the non-correlation explicit as a non-claim.
refuted_or_stale_findings:
- The prior capability/consumer mismatch, missing JSON-RPC version check, POSIX detached-spawn defect, process-policy violation, missing SPEC/traceability, and arbitrary direct-binary default E2E findings are repaired at this head.
- Configuration is client-negotiated in initialize params; LSP defines no corresponding server capability to require. Workspace-folder server support is correctly required.
- The exact seven execute-command requirements match the current Rust capability producer and active extension calls.
- Trust no-spawn and resolver fallback remain intact.
proof_and_ci_observed:
- Read-only detached Windows worktree at exact head; npm ci passed (369 packages, zero vulnerabilities). A local compile/focused combined attempt produced no denominator before its 60/120-second review budget expired, so it is not claimed as proof.
- Writer record reports 19 passing / 1 Windows-only pending, explicit process-policy/spec/traceability gates, default archive extraction and digest parity, and full nonzero Rust/xtask denominators except two disclosed local jq environment failures.
- Exact-head hosted evidence at posting: vscode SUCCESS (compile/package/default archive-backed E2E), required routed GitHub-hosted Rust and aggregate SUCCESS, msrv/future-clippy/security/source-of-truth/JUnit/coverage/UB SUCCESS. Main CI rust and Windows advisory were still IN_PROGRESS. codecov/patch is advisory FAILURE; it does not refute behavioral test coverage but also does not close the two findings above. No review threads existed.
proof_or_review_missing:
- Strict result/error response-shape oracle and implementation.
- Descendant-death proof for LSP and Windows, plus cleanup on direct-child exit paths.
- Terminal exact-head main rust/windows-advisory denominators were not yet available at posting.
affected_currentness_dimensions:
- source: exact remote head stable at posting
- integration: live main 23560f2; production owners remain non-conflicting, shared traceability/index changes require normal merge-currentness reconciliation
- generated/package/runtime: hosted vscode passed compile, VSIX package and the default archive-extracted server E2E; no downloadable VSIX artifact was published for independent byte inspection
- platform: Windows implementation inspected; Ubuntu hosted E2E passed; explicit descendant proof remains incomplete as described
- policy/CI: process policy repaired and required routed result passed; two long advisory/aggregate jobs still running
residual_assumptions_and_non_claims:
- No claim about provenance, private riprAgent compatibility, every optional feature, MCP, or repair usefulness.
- I did not mutate the candidate or merge.
disposition: REPAIR_REQUIRED
|
Repair for the exact-head findings in review #3191 (review) is published at
A fresh independent exact-head review is still required; this comment does not self-approve the candidate. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 80e16ee
integration_basis: live origin/main f9644fb; exact hosted merge ref 7174fa1 merged this head into that main; pull/3191/head was re-read immediately before posting and remained exact
claim_boundary: #1745 pre-activation standard-LSP compatibility admission for the supported VS Code install-to-launch path. This does not establish #1879 download provenance, private riprAgent compatibility, universal optional-feature support, or release qualification.
changed_surfaces_and_semantic_owners_inspected:
- Full 16-file diff: lspCompatibility.ts owns framing, admission and probe lifecycle; serverResolver.ts owns version/channel fallback; client.ts and Rust capabilities.rs are the active consumer/producer authorities; client trust gate owns no-spawn; xtask owns default archive staging/digest proof; SPEC-0129, index, traceability, process allowlist, workflow, tests and packaged VSIX were inspected.
- Reconciled the required surface against active production consumers: FULL saved sync, hover, code actions, pull diagnostics, workspace folders, UTF-16, and all seven consumed execute commands are required. Only codeAction resolve/work-done progress remain optional.
- Inspected current-main overlap and the hosted merge checkout. Main movement touches shared xtask/traceability/server internals but does not conflict with the extension probe owners or capability authority.
blocking_findings:
- none
non_blocking_suggestions:
- Bound version-probe stdout/stderr and drain/bound LSP stderr so a hostile chatty candidate cannot turn the bounded time window into unnecessary memory/backpressure.
- Keep the absence of --version/serverInfo.version correlation explicit unless a later provenance claim needs one identity authority.
refuted_or_stale_findings:
- The prior result/error-exclusivity blocker is repaired: active-id responses require jsonrpc 2.0, no method, exactly one result/error, structural integer-code/string-message errors, and shutdown result null. Missing/wrong version, wrong id, dual members, malformed errors, initialize error, and non-null shutdown were challenged.
- The prior exit-path descendant blocker is repaired. Every version/LSP terminal path calls the same cleanup owner. POSIX probes own a detached process group and kill that group even after direct-child exit. Windows assigns the authenticated PowerShell wrapper to a kill-on-close Job before candidate spawn; descendants inherit it, the exit marker uses a random nonce removed from the candidate environment, and taskkill is addressed only to a still-current wrapper PID. Direct success/nonzero/crash/protocol/timeout and normal-shutdown descendant cases all reached terminal cleanup.
- Trust no-spawn and channel fallback remain intact. The configured archive route requires the expected single executable member and built/extracted digest equality; the real-server test recomputes the exercised executable digest.
- No unresolved review threads existed. codecov/patch is advisory failure (40%); it does not expose a missing behavioral oracle here because the changed control paths are directly exercised across 31 applicable compatibility cases on Windows and the hosted POSIX suite.
proof_and_ci_observed:
- Reviewer-owned detached Windows worktree at exact head. npm ci passed (369 packages, zero vulnerabilities); npx tsc -p . passed.
- Exact focused Windows Electron compatibility suite: 31 passing, 1 POSIX-only pending. It challenged malformed/dual/wrong-id JSON-RPC, version success/nonzero wrappers, LSP crash/protocol/timeout descendants, normal shutdown descendants, identity/capabilities, timeout and fallback. Workspace Trust Runtime: 1 passing with zero resolver/process/watcher/client work.
- cargo xtask vscode-package passed. The exact VSIX contains package.json plus compiled lspCompatibility.js and serverResolver.js. Local real-server execution used a known ripr.exe and therefore is runtime/platform proof, not independent archive provenance proof.
- Local check-process-policy, check-output-contracts, check-capabilities, check-spec-format, check-traceability, check-workflows and git diff --check all passed.
- Exact-head hosted Ubuntu vscode passed on the current-main merge ref. Its default xtask route ZIP-staged/extracted ripr, exported the extracted path plus SHA-256, and the suite accepted that real packaged server. Denominator: 171 passing, 1 unrelated packaged-trust clipboard pending; all standard-LSP cases, including POSIX group cleanup, passed.
- Exact-head remote checks are terminal: rust, routed GitHub-hosted/result, vscode, Windows advisory, JUnit, coverage, MSRV, future-clippy, source-of-truth, security/dependency, UB review and process/policy steps succeeded. Platform/docs route skips are expected; codecov/patch alone is advisory failure.
proof_or_review_missing:
- No blocking proof is missing for the bounded claim. The local Windows run does not independently establish archive origin, and hosted Ubuntu does not exercise Windows Job Objects; together the hosted archive route plus exact-head Windows lifecycle run cover those distinct dimensions.
affected_currentness_dimensions:
- source: exact remote head stable at posting
- integration: hosted exact-head/current-main merge ref passed; GitHub reports draft and mergeable
- generated/package: exact VSIX produced and inspected locally; hosted default archive-extracted executable passed digest-bound real-server admission
- runtime/platform: Windows Job/wrapper behavior and trust tested locally; POSIX process groups and packaged server tested hosted
- policy/CI: all required and substantive advisory checks terminal-success; advisory codecov/patch failed as classified above
residual_assumptions_and_non_claims:
- Windows support assumes Windows PowerShell/.NET Add-Type and nested Job Object availability under the supported VS Code host environment; exact Electron proof exercised that environment here.
- No claim is made about #1879 artifact provenance, private protocol compatibility, every optional LSP feature, MCP, repair usefulness, or release readiness.
- I did not mutate the candidate or merge.
disposition: REVIEW_READY
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Summary
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Issue: Closes #1745
Exact candidate SHA:
80e16eeb476a06cd1af6168d81d23caf58a5b0b0Scope
Scope Classification
Production delta:
riprserver and complete JSON-RPC 2.0 initialize/shutdown with UTF-16, saved synchronization, hover, code actions, pull diagnostics, workspace folders, and the full server command set before activationEvidence/support delta:
Single acceptance criterion:
Non-goals:
Support-tier Impact
Claim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
npm --prefix editors/vscode ci cargo xtask vscode-compile RIPR_TEST_SERVER_PATH=target/debug/ripr.exe mocha --ui tdd out/test/suite/lsp_compatibility.test.js cargo xtask vscode-package tar -tf editors/vscode/dist/ripr-0.10.0.vsix | Select-String out/src/lspCompatibility.js cargo xtask check-process-policy cargo xtask check-output-contracts cargo xtask check-capabilities cargo xtask vscode-test-e2e cargo xtask check-pr git diff --checkResult, failures, or skipped proof:
cargo xtask vscode-compilepassedvscode-package,precommit,check-process-policy,check-spec-format,check-spec-numbering,check-traceability,check-output-contracts,check-capabilities,check-workflows, andcheck-ci-lane-whitelistpassedcheck-pron the prior head reached full nonzero denominators: ripr library 4,164 passing; xtask 1,587 passing and 2 environment failures because localjqis unavailable (not candidate behavior); exact-head hostedrustand required routed GitHub-hosted/result checks passedcodecov/patchis advisory failure at 40%; substantive exact-head review found the changed lifecycle/framing controls directly covered by 31 applicable Windows cases plus the hosted POSIX suiteClaim Boundary
Rollback
Spec-Test-Code Traceability
lsp_compatibility.test.ts,server_resolver_compatibility.test.ts, existing workspace trust runtime prooflspCompatibility.ts,serverResolver.tsdocs/SERVER_PROVISIONING.mdStatic Language Check
CI Economics
.github/workflows/ci.ymlnow lets the E2E runner stage/archive/extract the server instead of injecting an arbitrary pathEngineering Check
Gates
cargo xtask check-process-policycargo xtask check-output-contractscargo xtask check-capabilitiesExtension changes:
cd editors/vscode && npm cicd editors/vscode && npm run compilecd editors/vscode && npm run package