fix(polymarket): report historical overdue settlements - #415
Merged
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughHistorical overdue markets are now reported as explicit health evidence without failing collection. Legacy and Rust health policies accept well-formed non-empty overdue-market arrays, while control-plane tests cover missing and malformed values. ChangesHistorical overdue evidence
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant TrackedMarket
participant collect_once
participant HealthPolicy
TrackedMarket->>collect_once: provide overdue unresolved market
collect_once->>HealthPolicy: emit health payload with market ID
HealthPolicy->>HealthPolicy: validate non-empty string array
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 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 |
This was referenced Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change contract
Keep
overdue_unresolved_marketsas explicit historical incompleteness evidence without failing or restarting an otherwise healthy collection cycle.Out of scope
Snapshot construction, research logic, #235, PID/immutable evidence checks, legacy health cadence, and immutable release replacement.
Dependency or merge order
None. Built from exact base
399b330c78e080cfe1323a704a17f3987cfda8d8.Focused validation
overdue unresolved settlements: ["market-1"]; control-plane policy test exited non-zero for the same otherwise healthy fixture.cargo test -p hft-collector— 223 passed, 2 ignored; all binary test targets passed.bash deployment/aliyun/test-polymarket-raw-ops-control-plane.sh.cargo clippy -p hft-collector --all-targets -- -D warnings.git diff --checkpassed.cargo fmt --all -- --checkremains blocked by unrelated pre-existing formatting drift; no broad formatting changes were made.Rollout / rollback impact
After merge, build a new exact-main artifact and run a fresh 3600+601 second Gate. Production remains Python until immutable Gate evidence and cutover verification pass. Rollback remains the unchanged Python baseline.
Closes #414
Summary by CodeRabbit
Bug Fixes
Tests