Skip to content

research: wire verified artifacts into snapshot CLI - #142

Merged
proerror77 merged 2 commits into
mainfrom
codex/polymarket-verified-snapshot-cli-v2
Jul 18, 2026
Merged

proerror77 merged 2 commits into
mainfrom
codex/polymarket-verified-snapshot-cli-v2

Conversation

@proerror77

@proerror77 proerror77 commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Change contract

Add one opt-in snapshot CLI mode that consumes externally authenticated Binance and Polymarket content/manifest SHA-256 values, binds them to immutable triplet bytes through typed seal/verify APIs, aggregates the verified Polymarket set, and invokes the canonical verified-artifact snapshot adapter.

Out of scope

  • Artifact selection, authentication, or download
  • Deriving trust anchors from local manifests or sidecars
  • External audit JSON, status, or digest inputs in verified mode
  • Database import changes
  • Evaluator execution, image publication, ECS deployment, or live trading
  • Branch/worktree cleanup

Dependency or merge order

Depends on merged PR #133 and current main merge 3e1ca9ab. Merge this CLI layer before the cloud BTC/SOL Polymarket E2E. No stacked base PR remains.

Focused validation

  • Repeated Binance and Polymarket data/content-SHA/manifest-SHA flags require equal nonzero lengths.
  • Verified mode requires exactly one BTCUSDT or SOLUSDT symbol.
  • Typed trust-anchor constructors run before triplet sealing; Binance tape verification and Polymarket semantic verification/aggregation fail closed.
  • The adapter builds and validates the canonical audit internally; verified mode rejects legacy audit report, status, and digest flags.
  • Existing database mode remains unchanged behind the non-verified branch and still requires typed audit evidence.
  • Alpha Harness only expands the snapshot argument allowlist; cli.rs already forwards compiler arguments and is unchanged.
  • Counterexample tests cover missing anchors, implicit mode, mixed audit inputs, multi-symbol input, and wrapper allowlist rejection/acceptance.
  • Scope is 2 files and 524 changed lines, below the 750-line guardrail; git diff --check is clean.
  • Policy identity remains sha256:c7ccfd3bd8fc0ab7cd1444768cfe8b53b95baefc8973b47f34d5156b31d234c0; the snapshot CLI is outside the 36 governed policy-source inputs.
  • No local Cargo/rustfmt was used; GitHub Linux CI is authoritative.

Rollout / rollback impact

Research-only opt-in path. Existing database compilation remains available, execution authority is not added, and live trading stays disabled. Rollback is a single PR revert before cloud E2E promotion.

@coderabbitai

coderabbitai Bot commented Jul 18, 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: 28 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

Run ID: e32bf17f-23aa-481a-9cad-907220234dcc

📥 Commits

Reviewing files that changed from the base of the PR and between 3e1ca9a and 9484c47.

📒 Files selected for processing (2)
  • rust_hft/alpha-harness/app/src/prediction_snapshot.rs
  • rust_hft/prediction-markets/crates/ploy-research/src/bin/monday-prediction-snapshot.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/polymarket-verified-snapshot-cli-v2

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 05199d5 into main Jul 18, 2026
30 checks passed
@proerror77
proerror77 deleted the codex/polymarket-verified-snapshot-cli-v2 branch July 19, 2026 04:27
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