Skip to content

fix(polymarket): preflight local closed segments - #427

Merged
proerror77 merged 2 commits into
mainfrom
codex/polymarket-local-segment-preflight-426
Jul 28, 2026
Merged

fix(polymarket): preflight local closed segments#427
proerror77 merged 2 commits into
mainfrom
codex/polymarket-local-segment-preflight-426

Conversation

@proerror77

Copy link
Copy Markdown
Owner

Change contract

Before shadow startup, select the newest stable direct real production closed Polymarket segment, run the exact candidate Rust uploader against an isolated copy, and bind its verified OSS readback without depending on legacy Python upload status.

Out of scope

Quote collection, legacy Python uploader compatibility, snapshot/evaluator/research logic, the 3600+601 second observation contract, and production cutover.

Dependency / merge order

Depends on merged PR #423. Merge this fix before rebuilding raw-ops and starting the next formal Gate.

Focused validation

  • Red proof: the prior Gate rejected a real source directory before invoking the candidate because it required upload-status.json.
  • deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
  • deployment/aliyun/test-polymarket-market-recorder-release.sh
  • bash -n and ShellCheck on the changed shell scripts
  • Spec and Standards reviews: APPROVE, no remaining P0-P3
  • Counterexamples: incompatible/no-quote segment, insecure spool, symlink, unstable file, unrelated upload output, and timestamp-collision UUID ordering.

Rollout / rollback impact

Control-plane only. Rollback is reverting this commit. Production services remain unchanged until the separately governed #326 Gate and cutover.

PRD

Not required: this is the small, already-specified behavior fix in Issue #426.

Closes #426

Use the newest stable direct production market segment as the candidate uploader preflight input, independent of legacy uploader status. Bind local source identity and verified OSS readback in Gate evidence.\n\nCloses #426
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@proerror77, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 22 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6c484ec9-d977-4507-8b14-2b2233fa6caa

📥 Commits

Reviewing files that changed from the base of the PR and between 9455682 and cbef106.

📒 Files selected for processing (3)
  • deployment/aliyun/polymarket-raw-ops-shadow-gate.sh
  • deployment/aliyun/polymarket-shadow-gate-policy.jq
  • deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/polymarket-local-segment-preflight-426

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6f0c6b4c6

ℹ️ 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".

Comment thread deployment/aliyun/polymarket-raw-ops-shadow-gate.sh
Comment thread deployment/aliyun/polymarket-raw-ops-shadow-gate.sh
@proerror77
proerror77 merged commit 82b8f7e into main Jul 28, 2026
42 checks passed
@proerror77
proerror77 deleted the codex/polymarket-local-segment-preflight-426 branch July 28, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Polymarket Gate must preflight a local real closed segment without legacy uploader

1 participant