fix(polymarket): preserve priority polls during recovery - #372
Conversation
|
Warning Review limit reached
Next review available in: 27 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
The production shadow gate exposed two coupled contract regressions: the deployment policy still required a removed state recovery field, and detail recovery could consume enough of the shared request budget to defer priority trade polls. Reserve paired detail-plus-trade capacity from the remaining priority headroom, bind the emitted pre-detail count into the fail-closed policy, and cover under-reported priority accounting.
fb078a4 to
9e91bf7
Compare
Change contract
The Rust Polymarket reference collector keeps authoritative market-detail recovery and all priority trade polls within the existing 112-request cycle cap, while the deployment health policy validates the exact emitted accounting without requiring the removed state_recovery_markets field.
Out of scope
Research snapshot construction, Mission/evaluator/MCTS logic, Binance collectors, Polymarket full-update temporal CLOB capture (#235), trading, promotion, and production cutover itself.
Dependency or merge order
Supports #326. No code dependency. Merge before rebuilding the replacement polymarket-raw-ops candidate and rerunning the formal shadow gate. The rejected candidate 6cc03c9488f9bb5d34a623f1dea3c38d7af16c83e3829ec6b4186e96a2cb1bcf must not be reused.
Focused validation
Rollout and rollback impact
Build a new immutable exact-main Linux artifact after merge, stage it without changing production, and run the full one-hour plus maturity-tail shadow gate. Cut over only if immutable gate evidence passes. Until then the current Python reference collector and uploaders remain the rollback-safe production baseline. No snapshot or research logic changes.
Scope exception
None. Three files and 165 changed non-generated lines.