Repository navigation
refactor(lsp): move workspace-root resolution derivation onto WorkspaceRootAuthority (#3020) - #11682
Conversation
…kspaceRootAuthority (#3020) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqg9H9w2Z6bowSS2Cz
|
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 reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
|
Review of record, head 9a41727. Angles: correctness (function body moved verbatim, only Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmqg9H9w2Z6bowSS2Cz
|
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 ( Generated by Claude Code |
|
|
There was a problem hiding this comment.
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.
|
Review of record, final head 4b5a9d1 (supersedes the earlier comment). Angles: correctness (verbatim move of the pure resolution-to-authority derivation to Generated by Claude Code |
There was a problem hiding this comment.
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.
Requested by Steven · project thread
Governing issue or accepted claim: #3020 (slice of #2689)
Acceptance delta (one sentence): The pure
WorkspaceRootResolutiontoWorkspaceRootAuthorityderivation now lives onWorkspaceRootAuthority::from_resolutioninlsp/state.rsinstead ofBackend, with direct positive and negative tests and no behavior change.Scope
Backend::workspace_root_authority_for_resolutionbody verbatim toWorkspaceRootAuthority::from_resolution; both call sites updated.apply_workspace_root_resolution/apply_workspace_root_authority*wrappers stay onBackendbecause they hold the transition guard and client round trips. No fields touched (coordinated with slice(#2689-A): extract DocumentQuarantine owning type from Backend #2941/slice(#2689-B): extract ConfigPullCoordinator from the 4-field config-pull state bag #2942 work on backend.rs/state.rs).Local proof gap
cargo test -p ripr --libwas SIGKILLed (OOM, host contention) under the shared flock;cargo fmtran. Relying on hosted exact-head CI.Generated by Claude Code