Reconcile external-action settlement retries - #708
Conversation
|
@coderabbitai review |
|
@codex please review |
✅ Action performedReview finished.
|
|
Warning Review limit reached
Next review available in: 51 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds idempotent reconciliation for retained external-action settlement candidates after acknowledgement loss. Exact durable matches return the original settlement and commit digest without WAL growth; conflicting, malformed, or missing settlements are rejected. ChangesSettlement retry reconciliation
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Adapter
participant RetryReconciliation
participant Coordinator
participant WAL
Adapter->>RetryReconciliation: Submit retained settlement candidate
RetryReconciliation->>Coordinator: Validate and compare candidate
Coordinator->>WAL: Read durable settlement and commit digest
WAL-->>Coordinator: Recovered settlement state
Coordinator-->>RetryReconciliation: Original fact or conflict
RetryReconciliation-->>Adapter: Settlement result without new WAL commit
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/warp-core/tests/external_action_protocol_tests.rs`:
- Around line 1108-1151: Extend
conflicting_settlement_retry_obstructs_without_wal_growth with a separate retry
candidate using the same result bytes as the admitted settlement but
ExternalActionSettlementKindV1::Failed. Assert
reconcile_external_action_settlement_retry returns ConflictingSettlement for
this kind-only mismatch, while preserving the existing WAL/frame growth
assertions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 27c730c2-7c9d-4bc7-9b78-15ab3cd7322c
📒 Files selected for processing (5)
CHANGELOG.mdcrates/warp-core/src/external_action.rscrates/warp-core/tests/external_action_protocol_tests.rsdocs/adr/0026-durable-external-action-settlement.mddocs/topics/ExternalActions.md
|
@coderabbitai review |
|
@codex please review |
✅ Action performedReview finished.
|
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Merge gate: 40/40 checks pass on b6fb6bb; zero unresolved review threads; Codex found no issues on the current head; CodeRabbit confirmed the only finding, then was rate-limited on the follow-up. Solo-maintainer operator-authorized review substitution applies. |
Return exact already-admitted settlement evidence after acknowledgement loss without another WAL transaction or effect authority. Conflicting and malformed retries fail closed; duplicate WAL history remains an obstruction.
Closes #707.
Summary by CodeRabbit
New Features
Documentation