Skip to content

refactor(lsp): move workspace-root resolution derivation onto WorkspaceRootAuthority (#3020) - #11682

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/issue-3020-workspace-root-authority
Oct 31, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/issue-3020-workspace-root-authority

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #3020 (slice of #2689)

Acceptance delta (one sentence): The pure WorkspaceRootResolution to WorkspaceRootAuthority derivation now lives on WorkspaceRootAuthority::from_resolution in lsp/state.rs instead of Backend, with direct positive and negative tests and no behavior change.

Scope

Local proof gap

cargo test -p ripr --lib was SIGKILLed (OOM, host contention) under the shared flock; cargo fmt ran. Relying on hosted exact-head CI.


Generated by Claude Code

…kspaceRootAuthority (#3020)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmqg9H9w2Z6bowSS2Cz
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven self-assigned this Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 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 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: 176072fc-4030-466c-9a9d-48396461e0f0
Commits

Reviewing files that changed from the base of the PR and between 264db59 and 4b5a9d1.

Files selected for processing: 3
  • changelog.d/3020-workspace-root-authority-from-resolution.md
  • crates/ripr/src/lsp/backend.rs
  • crates/ripr/src/lsp/state.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

Review of record, head 9a41727. Angles: correctness (function body moved verbatim, only WorkspaceRootAuthority:: becomes Self::; both call sites in backend.rs switched; async guard-holding wrappers intentionally remain on Backend), tests (positive: absolute dir selected, valid ambiguous candidates; negative: relative path, missing dir, invalid ambiguous candidate, unavailable detail preserved), spec/contract (no output or schema change, changelog.d fragment added, no fields touched so no overlap with #2941/#2942). Findings: none blocking. Gap: local cargo test was OOM-SIGKILLed on the shared host; hosted exact-head CI is the proof of compilation and tests.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 31, 2026 14:17
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision

  • Needs one verification check before upstream.

Verification questions

  • Confirm the changelog and PR body claim direct positive and negative tests, but this diff adds no test code; existing tests may cover the path but are not identifiable from the patch.

Refuted

  • The local OOM means the refactor itself failed or was proven broken.; refuted because: An OOM-SIGKILL is a missing proof signal, not a failing behavioral test; exact-head CI or the scheduled cargo-test receipt can still establish the result.
  • The removal of Backend::workspace_root_authority_for_resolution leaves an unresolved caller or dead public route.; refuted because: The two visible callers were updated to WorkspaceRootAuthority::from_resolution, and the helper was pub(super), not a public API. This check is bounded to the changed source scope rather than proof of repository-wide sibling absence.
  • The smallest-complete-fix boundary is violated by relocating async transition behavior.; refuted because: Only the pure resolution-to-authority derivation moved; apply_workspace_root_resolution and apply_workspace_root_authority remain backend methods, preserving transition ownership and client round trips.
  • A Backend call site may still depend on the removed helper.; refuted because: Both visible resolution call sites in backend.rs now call WorkspaceRootAuthority::from_resolution; no other diff-visible caller requires the removed private method.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Exact-head compilation and tests remain trust-relevant because local cargo test was OOM-SIGKILLed and the scheduled cargo-test receipt was not available to this lane.
  • Repository-wide source-route completeness and successful Rust compilation are not proven locally: ripr failed with exit code 2 and cargo-test is scheduled late.
  • Exact-head compilation and test success remain unproven in available local evidence.

Copy link
Copy Markdown
Member Author

Correction: ub-review is right. The two tests were missing from head 9a41727 (my earlier edit was lost, so the review-of-record claim about tests was wrong for that head). They are now pushed in 96f84a9 (crates/ripr/src/lsp/state.rs, root_authority_from_resolution_*, 46 lines), merged with current main as bcc923b. The review of record applies to bcc923b, not 9a41727; CI restarts on the new head.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but no qualification run exists for head bcc923b2: it was pushed after the label was applied, or the label event was dropped. Remove and re-apply merge-ready to request it again.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Evidence gaps

  • Exact-head test completion is still unproven in the supplied packet.
  • Model proof intent was rejected by deterministic validation.
  • The local cargo-test SIGKILL leaves exact-head compilation and execution unproved; the scheduled cargo-test receipt is still absent.
  • Exact-head test success is not yet available because cargo-test has no receipt and the ripr sensor failed with exit code 2.
  • Exact-head test execution and compilation are not established by the available receipts.

Copy link
Copy Markdown
Member Author

Review of record, final head 4b5a9d1 (supersedes the earlier comment). Angles: correctness (verbatim move of the pure resolution-to-authority derivation to WorkspaceRootAuthority::from_resolution; async guard-holding wrappers stay on Backend; both call sites updated), tests (2 tests in state.rs: absolute dir selected; relative path, missing dir, invalid ambiguous candidate fall to unavailable; valid ambiguity kept; unavailable detail preserved), contract (no output/schema change, changelog fragment present). Head differs from the reviewed content only by merges of origin/main (incl. #11734). Findings: none blocking. Local cargo test was OOM-killed; hosted exact-head CI is the proof. merge-ready re-applied on this head.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the added tests exercise the new constructor but would also pass against the old Backend helper because its behavior was moved verbatim.
  • Confirm the new selected-root test depends on the process temporary directory existing and being a directory; this is conventional but not hermetically created by the test.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Exact-head compilation and test execution are not established by the supplied evidence.
  • The supplied packet does not establish exact-head compilation or test success because cargo-test has no receipt and ripr failed with exit code 2.
  • Exact-head compilation and test execution are not established by the supplied receipts; cargo-test is scheduled without a receipt and ripr failed with exit code 2.
  • Exact-head compilation and test execution remain unproven because the cargo-test receipt is absent and the ripr sensor failed with exit code 2.

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.

2 participants