fix(collector): bound recovered legacy Gate timeouts - #389
Conversation
|
Warning Review limit reached
Next review available in: 50 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 shadow gate adds legacy health classification and bounded recovery transitions. It delays parity progression during transient API errors, treats unrecoverable states as fatal, and requires an advancing legacy health decision before entering gate evidence. Focused tests cover classifications, timing transitions, and wiring. ChangesLegacy health gate
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c72617db5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
Change contract: Allow the Polymarket Rust shadow Gate to tolerate only an otherwise-clean legacy Python comparator sample whose sole failure is non-empty
api_errors, freeze the parity cutoff while it is transient, require a clean recovery within the existing 240-second health budget, and remain fail-closed for every other failure.Out of scope: Python collector behavior; Rust collector data contract; production cutover; snapshot/research logic; #235.
Dependency or merge order: Independent focused repair for #326 after formal Gate
t-jpn6s3s1l438irk; no stacked PR. Merge before building the next exact-main candidate.Focused validation:
bash -n deployment/aliyun/polymarket-raw-ops-shadow-gate.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.sh;shellcheckon both files;bash deployment/aliyun/test-polymarket-raw-ops-control-plane.sh;git diff --check. Executable counterexamples cover transient through t=240, recovery at t=240, persistent or first-clean recovery at t=241, fatal legacy health, and Rust baseline rejection. Final spec and standards reviews passed.Rollout/rollback impact: No production mutation in this PR. After merge, build an exact-main candidate and rerun the full 3600-second observation plus 601-second mature-tail Gate. Revert this PR to restore immediate failure on any legacy
api_errors.Closes #388
Summary by CodeRabbit
Bug Fixes
Tests