Skip to content

fix(bybit-options): write the PASSED marker as the gate.json checksum entry - #749

Merged
proerror77 merged 3 commits into
mainfrom
codex/bybit-gate-marker-fix
Aug 8, 2026
Merged

fix(bybit-options): write the PASSED marker as the gate.json checksum entry#749
proerror77 merged 3 commits into
mainfrom
codex/bybit-gate-marker-fix

Conversation

@proerror77

Copy link
Copy Markdown
Owner

Change contract

After a full passing 3600-second observation, the bybit shadow gate died writing its PASSED marker: printf sha+binary | sha256sum --strict--strict is only meaningful with --check (exit 1), and even without that misuse the content was wrong: host-bybit-options-cutover.sh requires PASSED.sha256 to contain exactly the gate.json checksum entry and verifies it with sha256sum --check --strict inside the evidence directory (cutover lines 603–607). This is the third never-executed-on-host startup bug in contract #4's scripts (#742 readonly ordering, #744 jq missing arg, now this).

Fix: write the marker as (cd "$evidence_dir" && sha256sum gate.json), matching the polymarket gate's marker publication. Contract test now asserts the marker line and forbids --strict without --check anywhere in the script.

Host evidence: gate run c8a2becb87b1414c837502e2c10c0208 (2026-08-08 08:20–09:22 CST) — shadow collected and uploaded for the full hour; only the marker write failed.

Issue relationship

None

Out of scope

  • The bybit gate rerun (another 3600s) and cutover with the fixed script.

Dependencies and merge order

None

Focused validation

  • test-bybit-options-shadow-gate.sh + test-bybit-options-release-contract.sh pass with the new assertions; bash -n clean; git diff --check clean.
  • Marker format verified against the cutover's exact requirements (one line, <64hex> gate.json, passes sha256sum --check --strict in the evidence dir).

Rollout and rollback

No production impact at merge. The fixed script ships as deploy assets; the staged release is re-installed with the new bundle and the 1-hour gate reruns. Rollback is revert.

Scope exception

None

… entry

The shadow gate wrote its PASSED.sha256 marker by piping the candidate
identity string into 'sha256sum --strict', which both misuses the tool
(--strict is only meaningful with --check, so the command failed) and
produced the wrong content: the cutover requires the marker to be the
gate.json checksum entry and verifies it with sha256sum --check --strict
inside the evidence directory. Compute the gate.json checksum entry
directly, matching the polymarket gate's marker publication.
@proerror77
proerror77 enabled auto-merge (squash) August 8, 2026 01:27
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 8, 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: 4 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

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: 282821b2-a443-424c-aa28-b82f8dab445c

📥 Commits

Reviewing files that changed from the base of the PR and between f273b20 and dc366e3.

📒 Files selected for processing (2)
  • deployment/aliyun/host-bybit-options-shadow-gate.sh
  • deployment/aliyun/test-bybit-options-shadow-gate.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.

@proerror77
proerror77 merged commit b02c1dd into main Aug 8, 2026
45 checks passed
@proerror77
proerror77 deleted the codex/bybit-gate-marker-fix branch August 8, 2026 02: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.

1 participant