Skip to content

Supervise formal Polymarket raw-ops Gate - #469

Merged
proerror77 merged 3 commits into
mainfrom
codex/polymarket-gate-supervisor-448
Jul 29, 2026
Merged

proerror77 merged 3 commits into
mainfrom
codex/polymarket-gate-supervisor-448

Conversation

@proerror77

@proerror77 proerror77 commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Change contract

Run each formal Polymarket raw-ops Gate as one bounded, queryable systemd-supervised job with an immutable candidate and invocation identity, so Cloud Assistant can request operations without owning the Gate process tree.

Out of scope

Dependency or merge order

Focused validation

  • RED -> GREEN counterexamples cover controller disappearance, duplicate start, post-start InvocationID read failure containment, finalize-time shadow readback failure receipts, cancellation, abnormal exit, finalizer-only pass promotion, missing official evidence, paired-unit mismatch, symlink rejection, exact fake-systemctl argument shapes, and inherited-fd lock retention/release.
  • Terminal commit counterexamples inject failures at .receipt.json.tmp -> .receipt.json.ready, .receipt.json.commit -> receipt.json, and staged-journal cleanup. Before durable receipt publication PASSED.sha256 is absent; status idempotently validates and completes each interrupted commit.
  • Failed terminal cleanup removes the actual Gate temporary marker ..PASSED.sha256.ready.tmp.
  • bash deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
  • bash -n deployment/aliyun/polymarket-raw-ops-gate-control.sh deployment/aliyun/polymarket-raw-ops-shadow-gate.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
  • shellcheck deployment/aliyun/polymarket-raw-ops-gate-control.sh deployment/aliyun/polymarket-raw-ops-shadow-gate.sh deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
  • Replayed the exact CI Rust-only/Python-command scanner from .github/workflows/ci.yml.
  • git diff --check origin/main...HEAD
  • Rebase range-diff: all three commits unchanged from reviewed base.
  • Spec review: Erdos the 2nd — APPROVE.
  • Standards review: Avicenna the 2nd — APPROVE.
  • Additional concurrency/fail-closed review — APPROVE.
  • CI-fixture code review: Ampere the 2nd — APPROVE.
  • CI-fixture test review: Mendel the 2nd — APPROVE.
  • Terminal commit code review (gate448_terminal_review) — APPROVE.
  • Terminal commit test review (gate448_terminal_tests) — APPROVE.

Atomic exception

The final delta is +1195/-15, above the 750-line review guardrail. Erdos the 2nd (Spec), Avicenna the 2nd (Standards), gate448_terminal_review, and gate448_terminal_tests explicitly APPROVED the atomic exception. The controller, templated systemd unit, Gate-side exact-supervisor/ready-marker handshake, recoverable receipt/marker commit, and counterexample harness are one rollback and safety boundary. Splitting them would leave an unrunnable unit, a controller without Gate-side ownership/pass-promotion enforcement, or safety behavior without the regression proof needed to review it.

Rollout and rollback impact

Closes #448

@coderabbitai

coderabbitai Bot commented Jul 29, 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: 5 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: 0201bcc4-ea80-47c2-9693-d89a24b29902

📥 Commits

Reviewing files that changed from the base of the PR and between a98f26d and 39bd447.

📒 Files selected for processing (4)
  • deployment/aliyun/polymarket-raw-ops-gate-control.sh
  • deployment/aliyun/polymarket-raw-ops-gate@.service
  • deployment/aliyun/polymarket-raw-ops-shadow-gate.sh
  • deployment/aliyun/test-polymarket-raw-ops-control-plane.sh

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: 369ac74cd3

ℹ️ 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-gate-control.sh Outdated
Comment thread deployment/aliyun/polymarket-raw-ops-gate-control.sh Outdated
@proerror77
proerror77 force-pushed the codex/polymarket-gate-supervisor-448 branch 2 times, most recently from 9b71248 to 8583ecf Compare July 29, 2026 11:47
@proerror77
proerror77 force-pushed the codex/polymarket-gate-supervisor-448 branch from 8583ecf to 39bd447 Compare July 29, 2026 12:49
@proerror77
proerror77 merged commit 3aae5dd into main Jul 29, 2026
42 checks passed
@proerror77
proerror77 deleted the codex/polymarket-gate-supervisor-448 branch July 29, 2026 13:02
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 raw-ops: supervise formal Gate independently of Cloud Assistant

1 participant