Repository navigation
test: top-limitation parity across MCP, LSP hover and CLI (+ fix MCP reason wording) - #11829
Conversation
…he MCP reason per probe family (#11821) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPbrnaom45UcHBf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPbrnaom45UcHBf
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record, head f5ba974 (self-review of the exact head; bot reviewers are quota-limited). Angles: semantic owner, divergence direction, oracle discrimination, claim boundary.
Findings: none blocking. Hosted Generated by Claude Code |
|
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 39 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
The Generated by Claude Code |
|
Review of record, head
Disposition COMMENT (author session). Merge only on green Generated by Claude Code |
Governing issue or accepted claim: #11821
Acceptance delta (one sentence): A parity test fails if the MCP top-limitation result, the LSP hover or the CLI explanation name a different limitation (kind, reason, next step) for the same finding, and the one divergence it found is fixed at the MCP owner.
What the test found
GapItem::limitation_documentwordedreasonwithStaticLimitKind::describe(), while the CLI (output/human/sections.rs) and LSP hover (push_preview_boundary) usedescribe_for_family(&probe.family). Forrust_assertion_context_unresolvedon a match arm, MCP saidassert_eq!while hover and CLI saidassert!.Change
mcp/gaps.rs:GapItemstoresstatic_limit_reason, computed withdescribe_for_familywhen the item is built, andlimitation_documentuses it.lsp/hover.rstests:top_limitation_parity_testsbuilds one finding per (family, kind) pair and asserts that MCP kind, stage, reason and recovery appear verbatim in the hover (Static limit: kind — reason) and the CLI (kind — reasonandNext:equals the MCP recovery). A second test checks that a producer static limit never reads asno_limitation_established.Proof
cargo test -p ripr --lib top_limitation_parity: 2 passed with the fix.describe()the first test fails on the match-arm case (assert_eq!vsassert!); restored before commit.cargo fmt --checkandcheck-changelog-fragmentspass.cargo xtask precommitnot run locally (host OOM on full builds); hosted CI is the remaining gate.Not claimed
top_limitationDTO (editors/vscode/src/client.ts), and the extension host suite does not run in this environment. test: top-limitation parity across CLI, LSP hover/action, VS Code and MCP #11821's VS Code row stays open.Generated by Claude Code