Repository navigation
test: pin limitation failure states and base-side findings across surfaces - #11904
Conversation
…surfaces (#11821) 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! |
|
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 57 minutes. View limit details
|
|
Review of record, head c86287d (self-review of the exact head; bot reviewers are quota-limited). Angles: oracle strength, claim boundary, test-only scope.
Findings: none blocking. The hosted result on this head is the remaining gate. 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 verification checks before upstream.
Verification questions
- Confirm the base-deleted test rejects a limitation document only after constructing it directly; it verifies MCP kind/stage and CLI/hover disclosure independently.
- Confirm the PR establishes behavior for named surfaces but does not establish repository-wide sibling-path closure for limitation reads or repair-route rendering.
Parked follow-ups
- Hover and CLI non-repair behavior is asserted separately rather than through a shared cross-surface predicate, so future wording changes could require coordinated golden or contract updates.
- The hover test may be narrower than its name because it does not assert that
base_deleteditself is named.
Evidence gaps
- The PR changes only tests, but no completed cargo-test receipt is supplied; the ripr sensor also failed with exit code 2.
- Model proof intent was rejected by deterministic validation.
- Runtime red/green proof remains unavailable in this packet despite the seeded PR body reporting focused passing tests.
- The PR claims four limitation states always return typed failures, but no completed test receipt currently confirms the new assertions.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head c86287d): REVIEW_INCOMPLETE
Inspected:
crates/ripr/src/mcp/workspace.rsat headc86287d6and basefa621a32. The whole change is the new testa_missing_stale_or_unknown_limitation_read_never_yields_a_limitation_document(:2895-2926), fourexpect_codeassertions and nothing else.crates/ripr/src/lsp/hover.rsat the same two SHAs. The whole change is the new testa_base_side_finding_is_never_offered_as_a_repair_route_on_any_surface(:2681-2724), and nothing else.- The governing spec
docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md: the read-failure contract (:358-361), acceptance clause 2 (:499-505), and the spec's own## Test Mappingsection (:525-552). - The governing spec for base-side evidence,
docs/specs/RIPR-SPEC-0152-candidate-actionable-projection.md: the eligibility authority (:19-23), theRequired Evidencerecurrence clause (:75-79), and the acceptance examples (:101-113). - The rendering the CLI assertion depends on,
crates/ripr/src/output/human/sections.rs:624("source: {} -- base-side evidence, not a candidate edit target"), and the hover string the hover assertion depends on,crates/ripr/src/lsp/hover.rs:796("static limitation -- no bounded repair instruction available"). .ripr/traceability.toml: theRIPR-SPEC-0211"MCP workspace session evidence" behavior entry (:15647-15651), which registers siblingcrates/ripr/src/mcp/workspace.rs::tests::*tests, and the absence of anytop_limitation_parity_testsentry.- The merged sibling pull request #11829 ("test: top-limitation parity across MCP, LSP hover and CLI (+ fix MCP reason wording)"), which ships the same issue's parity tests and a changelog fragment and updates no spec or traceability entry.
- Hosted proof for this exact head and for the base, grouped by workflow run, and the failing shard's log.
Blocking:
None found. Both new tests are honest, discriminating proofs of behavior the repository's own specs already state, and neither changes production code:
- The MCP test discharges a contract the spec already owns. RIPR-SPEC-0211 states that on a usable root "reads before the first successful refresh fail closed with
no_snapshot; reads during an attempt reportanalysis_in_flight; unknown item ids fail closed withitem_not_found" (:358-361), and acceptance clause 2 repeats it together withstale_snapshot(:499-505). The new test asserts exactly those four typed codes againstget_limitation, so it is a true discriminator: if the read returned a limitation document instead of a typed failure in any of the four states, the correspondingexpect_codewould fail. The test name also states the reason the four states matter -- a limitation document where the limitation cannot be established is something a client could read as "no limitation, so a repair route". - The hover test is discriminating on the surface it covers. It sets
source_currentness = BaseDeletedand asserts that the hover contains "no bounded repair instruction available" and does not contain "ripr repair", which is the observable form of RIPR-SPEC-0152's rule that base-side evidence is "not a candidate edit target" and drives no repair obligation. - No spec clause needs narrowing here. This pull request adds missing proof for existing contracts rather than changing behavior, so unlike a contract-changing change there is no clause to narrow. Checked and cleared on that point.
- No fixture or golden moves: both additions are unit tests, and no production or rendered output changes.
Non-blocking:
-
The hover test's name claims an invariant it does not establish on the CLI surface, and the pull request body says so. The test is named
a_base_side_finding_is_never_offered_as_a_repair_route_on_any_surface, but the CLI assertion only checks that the rendering names the disposition -- "base_deleted -- base-side evidence, not a candidate edit target" (crates/ripr/src/output/human/sections.rs:624) -- and the body discloses that "the CLI still prints aNext step("add a boundary assertion...") for a base-deleted finding that MCP refuses as not repair-ready". So on one of the three surfaces the test names, a repair route is still offered, and the test neither asserts its absence nor asserts its presence. The disclosure in the body is the right practice, but the name is what a future reader greps to find the guard, and it currently advertises a stronger invariant than the code holds. Either narrowing the name to what the test proves, or adding the CLI assertion -- which would then fail, surfacing the divergence the body already describes -- would close the gap; the production fix itself is the separate slice the body names. -
The change ships no changelog fragment, while the pull requests this one most resembles do. #11829, the merged sibling that added the top-limitation parity tests for the same governing issue #11821, ships
changelog.d/11821-mcp-limitation-reason-family-wording.md, and the two comparable test-only pull requests in this repository (#11913 withchangelog.d/4518-python-first-pr-receipt-status-controls.md, #11823 withchangelog.d/kani-actionability-proofs.md) each ship one as well.cargo xtask check-changelog-fragmentsvalidates the fragments that exist rather than requiring one per pull request, so this is not a gate failure; it is a release-notes gap for a pull request whose stated purpose is pinning cross-surface failure states. -
The new tests are not registered in the repository's spec-to-test records, but that matches the convention for this class of change. RIPR-SPEC-0211 carries a
## Test Mappingsection (:525-552) that names siblingmcp/workspace.rs::tests::*tests, and the.ripr/traceability.tomlentry for the same behavior registers them too, so registering the new MCP test would be consistent and worth doing. The merged sibling #11829 added parity tests for the same issue without touching either record, and notop_limitation_parity_testsentry exists at all, so the hover side has no record to extend. I record this as an observation about where the records are thin rather than as a defect in this pull request, because the sibling precedent for exactly this kind of change set the convention the repository is currently following. -
The hover assertion uses a negative substring test for the repair command (
!hover.contains("ripr repair")), which is the right shape for "offers no repair command" but is sensitive to the exact spelling. The accompanying positive assertion on "no bounded repair instruction available" carries the real weight, so the pair is adequate.
Not run:
- No Rust toolchain on this reviewer host (
rustc,cargo,rustupare absent from PATH), socargo test -p ripr --lib -- top_limitation_parity a_missing_stale_or_unknownandcargo xtask precommitwere not executed locally; the analysis above is a source-level reading of the head and base blobs. - Hosted proof at this exact head, grouped by workflow run. Run 41244099332 (21:32:53) has
Ripr Rust Small on GitHub Hosted / Rust gatesCOMPLETED/SUCCESS,Admit PR CandidateSUCCESS,Route Ripr Rust SmallSUCCESS; run 41244099190 hasRust-only feature laneSUCCESS; run 41244099278 haswindows-advisory-subsetSUCCESS. Test shards 2, 3 and 4 of 4 are SUCCESS. Shard 1 of 4 is FAILURE, and with itRust test shards verifyandRipr Rust Small Result. - That failure is a base condition, not attributable to this candidate, and I read the failing log rather than inferring it. The shard's only failing test is
analysis::language::python::guard_activation::tests::compare_literal_values_fails_open_on_undecoded_literals, panicking atcrates/ripr/src/analysis/language/python/guard_activation.rs:1436:9("test result: FAILED. 0 passed; 1 failed; ... 16828 filtered out"). This pull request changes onlycrates/ripr/src/lsp/hover.rsandcrates/ripr/src/mcp/workspace.rs, and touches no Python analyzer code. The basefa621a32is red on the same lane -- itsrust-tests-junitrun 41243698892 is COMPLETED/FAILURE and itsRust tests shard 1 of 4in run 41243698941 is FAILURE -- so the red predates the candidate and is the main-red that the open pull request #11918 addresses. - The head is nonetheless not a fully green hosted check set, because a required shard and the aggregate result are red. That is why this disposition is REVIEW_INCOMPLETE rather than REVIEW_READY: every lane that observes the candidate's own contribution is green, and the remaining red clears when the base-red clears, but the check set is not green while that shard fails.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head c86287d651335314d0e59666a0b0a0fb1a9eb354. Not an approval.
Governing issue or accepted claim: #11821
Acceptance delta (one sentence): Tests pin that a missing, in-flight, stale or unknown-item limitation read answers with a typed failure instead of a limitation document, and that a base-side (
base_deleted) finding is never offered as a repair route on MCP, CLI or LSP hover.Change (tests only, no production change)
mcp/workspace.rs:a_missing_stale_or_unknown_limitation_read_never_yields_a_limitation_documentcoversno_snapshot,analysis_in_flight,stale_snapshotanditem_not_foundforget_limitation.lsp/hover.rs(top_limitation_parity_tests):a_base_side_finding_is_never_offered_as_a_repair_route_on_any_surface. MCP namesnot_candidate_actionable(stage notnone); the CLI says the source is not a candidate edit target; hover offers no repair instruction orripr repaircommand.Proof
cargo test -p ripr --lib -- top_limitation_parity a_missing_stale_or_unknown: 4 passed (these 2 plus the 2 from #11829).cargo fmt --checkpasses.cargo xtask precommitnot run locally (host OOM on full builds); hosted CI is the gate.Findings from the cross-surface probe (not fixed here; filed separately)
base_deletedat all, while the CLI does.Next step("add a boundary assertion…") for a base-deleted finding that MCP refuses as not repair-ready.Both change rendered text and goldens, so they are not folded into a test-only PR.
Not claimed
The VS Code adapter and the LSP code-action text remain open on #11821.
Generated by Claude Code