fix(polymarket): wait for completed legacy health - #434
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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe shadow Gate now waits up to 3,900 seconds for a fresh legacy health publication while rechecking baseline identity. Control-plane tests cover successful polling, timeout, late publication, contract presence, and updated snapshot-boundary detection. ChangesLegacy health admission
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ShadowGate
participant BaselineIdentity
participant LegacyHealthEvidence
ShadowGate->>LegacyHealthEvidence: Request fresh health observation
LegacyHealthEvidence-->>ShadowGate: Return observation or freshness failure
ShadowGate->>BaselineIdentity: Revalidate baseline identity
BaselineIdentity-->>ShadowGate: Return identity status
ShadowGate->>LegacyHealthEvidence: Retry until deadline or publication
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
proerror77
force-pushed
the
codex/polymarket-gate-legacy-health-wait-433
branch
from
July 29, 2026 00:17
9b7184b to
b3accd3
Compare
This was referenced Jul 30, 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.
Closes #433
Change contract
For a legacy-Python baseline, the shadow Gate admits a current completed health publication or waits up to 3,900 seconds for one; no shadow starts after expiry.
Focused validation
bash deployment/aliyun/test-polymarket-raw-ops-control-plane.shbash -nandshellcheckon both changed scripts.Out of scope
Python collector behavior, the legacy market-tape uploader incompatibility, research/snapshot/#235, production cutover, and immutable release replacement.
Dependency / merge order
None. Base is
00a2a8adbe67bbefd4807239a94671b44285935a(mainat branch creation).Rollout / rollback impact
A new immutable artifact and real closed-segment preflight remain required before a new full Gate. Reverting this PR restores immediate Gate admission failure outside the 240-second completed-write window; this PR changes no live control files.
PRD
A standalone PRD is unnecessary: this is the narrowly specified #433 Gate-admission bug fix with one public CLI seam.
Summary by CodeRabbit