fix(polymarket): consume gated health during cutover - #516
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: 41 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)
📝 WalkthroughWalkthroughThe cutover script removes legacy Python health re-admission based on ChangesLegacy cutover promotion
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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 |
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 `@deployment/aliyun/test-polymarket-raw-ops-control-plane.sh`:
- Around line 4135-4136: Update the contract checks around the legacy rollback
assertions to count the complete verify_legacy_runtime invocation, including the
expected legacy_pid, restart-count, and InvocationID arguments, rather than any
occurrence of legacy_pid. Replace the whole-file verify_fresh_legacy_runtime
search with an assertion scoped to the restored-runtime rollback path so the
check requires an actual executable call, not only the function definition.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 66b25871-892d-4717-9b46-e20c80e10e79
📒 Files selected for processing (2)
deployment/aliyun/polymarket-raw-ops-cutover.shdeployment/aliyun/test-polymarket-raw-ops-control-plane.sh
Change contract
Consume the immutable Gate's legacy-health admission during Python-to-Rust
cutover instead of requiring a new 240-second Python health publication before
promotion or after uploader drain. A PRD is unnecessary because this is the
single, already-specified defect in issue #515.
Issue relationship
Closes #515
Out of scope
Collector/uploader data behavior, shared legacy or Rust health policies, Gate
duration, CI restructuring, production mutation, research, snapshot/#235,
evaluator/MCTS, and immutable release replacement.
Dependency / merge order
Base: exact
mainSHA44ad7ef73e8a30cb30656a13037792ef4cfa678a.No stacked code dependency. Runtime issue #498 remains open and may proceed only
after this PR merges, a new exact-main artifact is verified, the real segment
preflight passes, and a new 900-second Gate passes.
Focused validation
test-polymarket-raw-ops-control-plane.shfailedwith
cutover re-admits Python health after the immutable Gate already passed.bash deployment/aliyun/test-polymarket-raw-ops-control-plane.sh.bash -n deployment/aliyun/polymarket-raw-ops-cutover.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.sh.shellcheck deployment/aliyun/polymarket-raw-ops-cutover.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.sh.git diff --check.policy, checks the exact Python runtime twice, and never re-admits current
Python health.
Rollout / rollback impact
After merge, build and independently verify a new exact-main release, run the
real closed-segment preflight and a new strict 900-second Gate, then cut over.
All existing identity, restart-free stop, Rust health, OSS/parity, immutable
evidence, and automatic Python rollback checks remain fail-closed.