fix(http-bridge): reuse reservations after owner rejection - #2353
Conversation
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe owner-forward recovery path now reuses the origin request’s API-key reservation after pre-dispatch rejection. OpenSpec requirements and unit tests cover single reservation acquisition and existing fail-closed behavior. ChangesOwner-rejection reservation reuse
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Owner-rejection recovery now reuses the existing API-key reservation, avoiding duplicate holds while preserving settlement behavior. The change is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (5 skipped: 4 unsupported, 1 too large.)
✨ Finishing Touches 💡 1📝 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 |
Summary
When an HTTP bridge owner rejects a bootstrap request before dispatch, local recovery acquires a second API-key reservation. The original hold can remain reserved, and a low request limit can reject recovery before it starts.
Transfer the original reservation into the local recovery request. Its existing lifecycle keeps settlement ownership through capacity waits, submission and cancellation.
Validation
OpenSpec:
reuse-owner-rejection-reservation. This follows the maintainer's request to separate the reservation repair from draining-owner recovery.