Skip to content

test: bind LSP merge inspection to the actual checkout - #16690

Queued
EffortlessSteven wants to merge 1 commit into
mainfrom
fix/windows-lsp-merge-status-oracle-20261130
Queued

EffortlessSteven wants to merge 1 commit into
mainfrom
fix/windows-lsp-merge-status-oracle-20261130

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

The native Windows LSP merge-recovery test rejects the correct checkout because it compares the command's normalized path spelling with Windows' native canonical-path display. Both repetitions in Windows Advisory run 46359136733 fail at that assertion even though the actual LSP action is disabled, contains no commit command, and prints the correct merge recovery and read-only inspection instructions.

Decode the inspect command with the existing host-aware test reader, require exactly git -C ROOT status, and compare the canonical filesystem roots. Add focused controls that accept equivalent path spelling and reject a different checkout, a mutating command, an extra argument, or a missing root. Preserve the real-server, hover, merge-state, and staged-resolution assertions.

Swarm / Source Boundary

  • repair or follow-up for a same-repo swarm PR

This is a test-oracle repair in the development repository. It changes no production behavior or publication surface.

Source-of-truth Links

Proposal: #15601 native Windows repeat qualification and its observed LSP failure
Spec: existing #16440 / #16638 merge-recovery no-commit contract; no new product contract
ADR: none; reuse the existing host-aware printed-command test reader
Plan item: #3922 Windows evidence; #9271 release checkpoint
Governing issue or accepted claim: #15601, #15601 (comment)
Acceptance delta (one sentence): The real LSP merge-recovery test accepts a correctly normalized path to its actual checkout while still rejecting an unsafe command or a different root.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): fix/windows-lsp-merge-status-oracle-20261130
Stack parent or prerequisite PR (if any): none; original product repair #16638 and follow-up #16652 are already landed
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): not applicable
Accepted winner and losing candidate disposition (when decided): not applicable

Scope

Source inspection and evidence

Published head: 0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed.
Tree: c635aec4bace6d5bfa06933b9bade4e4f353f22c.
Parent: 438a99e49b90d028c2a1245c2ef9a55261be2dc0.

Git Data publication and a separate Git fetch/diff confirm that the published tree is byte-identical to locally inspected commit f0098abdc4afbfe0c50c25a9ff363f975b9c36de.

The writer and an independent source reviewer inspected the full live fixture, unsafe_commit_start_reason, the existing common/printed_words.rs decoder, the new root/command oracle, and both captured native failures. The original test blob was unchanged between native tested source 3b7bf9ec4e9d3ff2acbdcac3ac8ee3f840cb801a and this candidate's parent. Independent decoding of both captured actions confirms that the read-only command names the same root as the real diagnostic URI. That is diagnostic evidence of the old assertion defect, not execution of the repaired Rust test.

Initial local and baseline proof

  • git diff --check: pass.
  • Retained e491b446 xtask executable: check-changelog-fragments, check-local-context, and check-static-language: pass against this checkout.
  • Exact remote/local tree comparison after Git fetch: pass.
  • Retained native logs independently decoded: both repeated failures preserve the disabled action, absence of a commit command, merge continue/abort guidance, and correct read-only root.
  • Source controls inspect same-root and equivalent-path acceptance plus wrong-root, commit, extra-argument, and missing-root refusal.

The retained xtask executable has SHA-256 89d29ecacc630f7bf9996f6f480b1d60df5d0697f5f5fed55f894da3c9a96b00; its policy-owner sources for the listed checks are unchanged from e491b446 through the candidate parent. It was not built from this candidate. These checks use the current working directory.

Unrun locally: Rust compilation, formatting, the added oracle test, the real LSP regression, full precommit, and native Windows execution. This executor has no Cargo/rustc. The local environment did not establish hosted or repaired native execution; the subsequently completed hosted qualification is recorded below.

Initial inspection record before hosted qualification

reviewed_head_sha: 0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed
integration_basis: parent 438a99e49b90d028c2a1245c2ef9a55261be2dc0; remote tree equals independently inspected local tree c635aec4bace6d5bfa06933b9bade4e4f353f22c
claim_boundary: test-oracle correction for existing safe LSP merge recovery; no product/native/release qualification claim
changed_surfaces_and_semantic_owners_inspected: full live merge fixture; unsafe_commit_start_reason; common printed_words host decoder; new exact-command/root oracle; changelog
blocking_findings: none in source scope
non_blocking_suggestions: none
refuted_or_stale_findings: captured Windows failure does not establish an unsafe product commit; the returned action is disabled and inspection root is correct
proof_and_ci_observed: diff check; three current-checkout retained policy gates; remote tree equality; independent captured-failure analysis
proof_or_review_missing: candidate Rust execution, hosted required results, native Windows repeat, fresh integration proof
affected_currentness_dimensions: test oracle and added oracle stimulus; production implementation, public claims, generated relationships, and goldens unchanged
residual_assumptions_and_non_claims: source inspection supports qualification; native path behavior remains to be executed on the repaired head
disposition: REVIEW_INCOMPLETE

Spec-Test-Code Traceability

CI Economics

The existing Rust Small qualification route covers the two-file test-only change. No workflow, trigger, required check, budget, or artifact contract changes. Native Windows replay of the existing regression is still needed to close the Windows evidence item. A green Linux result alone cannot establish that closure.

Claim Boundary and Rollback

This change repairs the test's command/root comparison while preserving the no-commit guarantee. It does not establish complete Windows qualification or release readiness. Revert the two changed files through the ordinary protected path if the candidate fails to preserve that acceptance.

Completed ordinary qualification and final leaf review

Required run 46407157430, attempt 1 completed successfully on this published head. Its actual executed merge subject was edb88e2303f64053d838af114bf68075249b796d, tree 1630e025f77c8052f610a68ecba440feb3b9595c, with independently verified parents 10ce9da684840e1bbaf53b768f6cf10d357a94ab and reviewed H 0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed.

Independent artifact inspection established 34,715 unique passing cases = 17,348 + 17,367. Each shard's executed identities exactly match its selected partition; the combined identities exactly match the full workspace list. Failures, errors, skips, duplicate, missing and outside-list identities are all zero. Both contexts name the same run, attempt and executed subject, Rust/Cargo 1.95 and nextest 0.9.149, and all four qualification input blobs match that subject.

Selected LSP test Actual partition Outcome Time
real_seam_start_prints_no_commit_during_a_merge 1 Passed once 0.349 s
merge_status_root_oracle_keeps_root_and_read_only_command_binding 2 Passed once 0.006 s

Actual gate job 141808985557 passed formatting, policy/precommit, architecture, evidence honesty, skills, both Clippy modes, goldens/fixtures, capabilities, verdict corpora, current-base merge, PR evidence and schema sweep. Hosted shards own the Rust tests; the gate's own test-step skip is expected. Actual conservation verifier 141831070836 and final Result 141831291308 passed; the Result rechecked the exact head and request 46407157430-1. VSCode e2e was explicitly unselected.

Combined artifact 15375178003 was independently downloaded in memory and matched its metadata: 1,005,076 bytes, SHA-256 c3d6be7b4ab925a73767c0bdc7cef62a9021380e19c9bfc838ead3f8a6ef66b7. The combined sorted test-identity digest equals the full-list digest a322b6f3d13ce0df4e72c3905a8fdd98ca50d01387c2f6468253e42989a5b471. Both individual shard archives were likewise size/digest checked. No retained compiler or successful workflow envelope was substituted for actual test execution.

Current inspection record

reviewed_head_sha: 0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed
integration_basis: qualified P edb88e2303f64053d838af114bf68075249b796d, parents [10ce9da684840e1bbaf53b768f6cf10d357a94ab,H], tree 1630e025f77c8052f610a68ecba440feb3b9595c
claim_boundary: ordinary test-oracle leaf acceptance; unchanged production behavior
changed_surfaces_and_semantic_owners_inspected: complete published diff, original live fixture, merge-refusal producer, shared host-aware decoder, new oracle controls, actual admission/gate/JUnit/context/verifier/Result consumers
blocking_findings: none for this bounded leaf and its required qualification
non_blocking_suggestions: none
refuted_or_stale_findings: the captured native failure was the old path-spelling assertion; the original disabled-action and root safety assertions remain
proof_and_ci_observed: full required run/attempt and all 34715 selected identities; both actual LSP tests; complete disjoint cover; all required gates and final eligibility
proof_or_review_missing: actual queue G and landing; repaired native Windows and cross-seam/final-candidate qualification
affected_currentness_dimensions: test oracle, shared decoder inclusion and changelog; latest inspected main 4a0634ee changes since qualified base are three unrelated test relocations
residual_assumptions_and_non_claims: Linux proof is not native Windows path or release qualification; no final release subject is selected by this PR
disposition: REVIEW_READY for the ordinary bounded leaf

The governing #3922 sequence is focused implementation merge, then native exact-head leaf proof, then the cross-seam packet and candidate cut/repeat. No governing repaired-Windows-before-leaf-merge condition was found. Accordingly, ordinary leaf review can complete on the source reasoning, native baseline and full Linux execution above. Repaired Windows evidence remains missing, and #15601/#3922 stay open. Actual queue integration still requires its own successful proof and protected landing.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 138 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c218e2f8-34c6-449c-beff-c803658a2a30
Commits

Reviewing files that changed from the base of the PR and between 10ce9da and 0c15feb.

Files selected for processing: 2

  • changelog.d/15601-windows-lsp-merge-status-oracle.md
  • crates/ripr/tests/lsp_lifecycle.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Reviewed head 0c15feb, tree c635aec4bace6d5bfa06933b9bade4e4f353f22c. A separate Git fetch confirms exact equality with the independently inspected local commit. The two-file diff repairs the existing LSP merge-recovery test oracle and records the Internal / CI change.

The writer and independent source reviewer inspected the full live fixture, the unchanged merge-refusal producer, the shared host-aware command reader, the exact four-argument command/root check, and both captured native failures. Equivalent path spelling resolves to the same checkout; the new controls retain wrong-root, mutating-command, extra-argument and missing-root rejection. Real server, hover, disabled-action, MERGE_HEAD and staged-resolution checks remain. No material source finding remains.

Current-checkout diff, changelog-fragment, local-context, static-language and PR-shape checks pass using the documented retained policy executable where applicable. Candidate Rust compilation, hosted qualification and repaired native Windows execution have not run here; those results remain necessary for their respective acceptance claims. This source review admits the existing qualification route only. The complete inspection record and evidence limits are in the PR body.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 30, 2026 11:07

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the LSP merge-recovery test in lsp_lifecycle.rs to decode and canonicalize the inspect command's root path. This ensures that Windows path normalization is handled correctly while still rejecting incorrect roots, mutating commands, or extra arguments. A new helper function assert_merge_status_root and a corresponding unit test have been added to validate this behavior. I have no feedback to provide as there are no review comments.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY

Final ordinary leaf review for H 0c15feb, source tree c635aec4bace6d5bfa06933b9bade4e4f353f22c. The complete inspection record and limitations are in the PR body.

The independently inspected required run 46407157430 attempt 1 executed P edb88e2 with verified parents [10ce9da,H]. Both shard/context/list receipts, combined JUnit, native conservation verifier and final Result establish 34,715 unique passing tests (17,348 + 17,367), zero failures/errors/skips/duplicates/missing/extras. The real merge-refusal LSP case passed in 0.349 seconds and the new exact-command/root oracle in 0.006 seconds. All required gates and final exact-head/request eligibility succeeded.

Source review preserves the disabled action, no-commit/hover refusal, merge state, index contents and exact read-only root binding. No material source or review finding remains. The latest inspected main movement is unrelated test relocation; actual queue integration still needs its required proof.

This accepts the bounded test-oracle repair. The governing #3922 sequence places native leaf proof after focused implementation merge. Repaired Windows execution, repeated native stability, the cross-seam packet and final release-candidate qualification remain unestablished; #15601 and #3922 remain open. No Windows or release acceptance is implied.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 30, 2026
Any commits made after this event will not be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant