Repository navigation
fix(lsp): never report another gap's attempt outcome as a gap's receipt status (#4541) - #4588
Conversation
…pt (#4541) collect_repair_packet_from_actionable_gaps fell back to packets.first() when the requested canonical_gap_id was absent, handing the client another gap's edit surface, verify and receipt commands and skipping the ledger fallback. read_latest_attempt_outcome likewise reported attempts.first() for a gap with no attempt. A named gap now matches by id only: the packet path falls through to the ledger and the "no repair packet for gap" sentinel; the attempt outcome is not_available. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
|
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 reachedNext included review available in 27 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
actionable-gaps.json is bounded by packet_limit, so a named gap it does not list resolves to its own ledger record. The test now asserts that route returns that record's packet. The changelog states that receipt status without an actionable gap still reports the latest attempt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
…-2rk3d2-lsp-packet # Conflicts: # CHANGELOG.md
…-2rk3d2-lsp-packet # Conflicts: # CHANGELOG.md # crates/ripr/src/lsp/backend.rs
|
Scope update at d947a07. #4543 landed on main with the same repair-packet fix, so this PR now carries main's version of What remains here:
The CHANGELOG entry now describes only the receipt-status change. Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review of d947a07, covering all three files in the diff.
- Production (
backend.rs,read_latest_attempt_outcome): the only behavior change is removing the first-entry fallback for a named gap. The unnamed-gap branch still takesattempts.first(), whichexecute_command_collect_receipt_status_with_attempt_ledger_returns_real_outcomepins. A named gap with no match returnsNoneand rendersnot_available. - Oracle:
latest_attempt_outcome_never_borrows_another_gaps_attemptwrites a ledger whose only entry belongs to another gap and assertsNone. Restoring the fallback fails the test. The packet test asserts the no-packet sentinel names the requested gap and carries no commands. It also asserts that a ledger-only gap gets its own packet and verify command, not the first actionable one. - Public claim: the CHANGELOG entry matches the narrowed scope. The packet half is already on main through #4543.
- Remote: hosted CI is green on this head (Rust gates, Rust-only feature lane, ub-review, cargo-deny). The review threads are resolved.
No findings. CodeRabbit, Gemini and droid-review are still missing, which is not the same as clean.
Generated by Claude Code
…-2rk3d2-lsp-packet # Conflicts: # CHANGELOG.md
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head note for 5a4a39e, a merge of origin/main.
- CHANGELOG is a union, and only this PR's receipt-status entry differs from main.
- No code conflicts.
cargo check -p riprexits 0.- The focused LSP tests (
gap_record_context_tests,execute_command_collect_repair_packet,execute_command_collect_receipt_status) pass: 38 passed.
The earlier review's dimensions are unchanged. The CodeRabbit, Gemini and droid-review reviews are still missing, which is not the same as clean.
Generated by Claude Code
…-2rk3d2-lsp-packet # Conflicts: # CHANGELOG.md
…-2rk3d2-lsp-packet # Conflicts: # CHANGELOG.md
… the stale-subject test) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx
Requested by Steven · project thread
Summary
Before: the LSP receipt status (
ripr.collectReceiptStatus) looked up the top actionable gap'slatest_attempt_outcomeinswarm-attempt-ledger.json. When that gap had no recorded attempt, the lookup fell back to the ledger's first entry. The agent was then shown another gap's outcome, for exampleevidence_improved, as the status of this gap.After: a named gap matches by
canonical_gap_idonly. A gap with no recorded attempt reportsnot_available. With no actionable gap, the ledger's latest entry is still reported as the workspace-level answer.The repair-packet half of #4541 (a named gap must not receive the first packet in
actionable-gaps.json) landed on main through #4543. This PR keeps an extended LSP test over that path. The test also covers a named gap that only the gap-decision ledger lists, becauseactionable-gaps.jsonis bounded bypacket_limit.Fixes #4541.
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: n/a
ADR: n/a
Plan item: 0.11 shared-state hunt
Governing issue or accepted claim: #4541
Acceptance delta (one sentence): no LSP attempt outcome or repair packet for gap X is built from gap Y's entry.
Candidate Relationships
Candidate branch:
claude/project-thread-2rk3d2-lsp-packetStack parent or prerequisite PR: none (the packet half landed through #4543)
Proposed replacement of PR: none
Scope
crates/ripr/src/lsp/backend.rs:read_latest_attempt_outcomeloses its.or_else(|| attempts.first())fallback for a named gap. Adds a unit test.crates/ripr/src/lsp/tests.rs: extends the no-substitution packet test with the gap-decision-ledger route.CHANGELOG.md: describes the receipt-status change.Scope Classification
Non-goals:
Support-tier Impact
Policy Impact
Proof
Hosted CI is green on d947a07: Rust gates, Rust-only feature lane, ub-review and cargo-deny.
Claim Boundary
Rollback
Revert the commit.
Spec-Test-Code Traceability
lsp::backend::gap_record_context_tests::latest_attempt_outcome_never_borrows_another_gaps_attempt,lsp::tests::execute_command_collect_repair_packet_never_substitutes_another_gaps_packetlsp/backend.rsStatic Language Check
killed,survived,untested,proven, andadequate.Engineering Check
panic,unwrap,expect,todo, orunimplemented.Gates
cargo fmt --checkcargo xtask precommitReview
Both Devin findings are addressed and resolved. CodeRabbit (rate limit), Gemini (quota) and droid-review reviews are missing, not clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_014WDSj54AyARNwy6oUuYXnx