fix(polymarket): complete legacy rollback before health - #520
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 13 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 (2)
📝 WalkthroughWalkthroughLegacy rollback verification now validates only runtime identity instead of identity plus health freshness. Control-plane contract tests enforce the updated verifier usage and final-check ordering. ChangesLegacy rollback verification
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 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 |
7e6feed to
cf21028
Compare
Change contract
For a legacy Python rollback, restore and verify the exact saved collector/timer
state without waiting for the collector's next approximately 35-minute
full-cycle health publication. Keep Rust-to-Rust rollback health advancement
strict and unchanged.
Issue relationship
Refs #519
Out of scope
Gate duration, collector/uploader data semantics, Python cycle performance,
quote-collector RuntimeMaxSec, research, snapshot/#235, evaluator/MCTS, and CI
restructuring.
Dependency or merge order
Based on exact main
45b7a0ca933abdc74ea613be06c8aedc8b7d9425, after thebounded uploader cutover fix in PR #518. No stacked PR dependency remains.
Focused validation
rollback no longer verifies the restored legacy identity at every boundary.bash -n deployment/aliyun/polymarket-raw-ops-cutover.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.shshellcheck deployment/aliyun/polymarket-raw-ops-cutover.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.shbash deployment/aliyun/test-polymarket-raw-ops-control-plane.shgit diff --checkRollout / rollback impact
Rollout requires a new exact-main release artifact before the next production
cutover. The runtime controller remains
/root. Revert this commit to restorethe prior behavior. The saved rollback manifest, exact Python ExecStart,
PID/InvocationID/NRestarts checks, canonical FragmentPath/DropInPaths checks,
timer-state verification, and immutable marker flow remain fail-closed.
Counterexample
Production invocation
t-jpn6sictxlowsg0restored the exact Python runtime buthad no new
health.jsonwithin 180 seconds, so the old code exited beforerestoring timers. The focused test now rejects any legacy rollback path that
still calls
verify_fresh_legacy_runtime, while requiring four exactverify_legacy_runtimeboundaries including the final check after saved timerstate restoration.
Summary by CodeRabbit
Bug Fixes
Tests