Skip to content

feat(polymarket): return published evidence digests - #110

Merged
proerror77 merged 1 commit into
mainfrom
codex/polymarket-publisher-trust-anchor
Jul 17, 2026
Merged

proerror77 merged 1 commit into
mainfrom
codex/polymarket-publisher-trust-anchor

Conversation

@proerror77

@proerror77 proerror77 commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Change contract: Return the exact published NDJSON and manifest SHA-256 digests as a publication-only carrier after the immutable evidence triplet is installed.

Out of scope: Constructing the verifier-side PolymarketEvidenceTrustAnchor; authenticating an OSS object or catalog selection; changing triplet bytes, publication ordering, or no-clobber behavior; snapshot compilation or research consumption.

Dependency or merge order: None. The carrier is deliberately named PublishedPolymarketEvidenceDigests and requires an explicit downstream conversion into the separately typed verifier trust anchor.

Focused validation:

  • cargo test --locked -p hft-collector polymarket_evidence_artifact
  • cargo clippy --locked -p hft-collector --all-targets --no-deps -- -D warnings
  • rustfmt --edition 2021 --check rust_hft/tools/collector/src/polymarket_evidence_artifact.rs
  • git diff --check
  • Linux-only counterexample/identity test: published_result_returns_digests_for_the_exact_triplet recomputes the manifest digest from the exact installed bytes.

Rollout/rollback impact: Additive publisher JSON output only; artifact data, manifest, _SUCCESS, and publication safety behavior are unchanged. Rollback removes the returned digest carrier without invalidating already-published triplets.

Scope exception: None (1 file, 82 added lines).

Summary by CodeRabbit

  • New Features
    • Published evidence results now include expected SHA-256 digests for both normalized content and the associated manifest.
    • Added validation to confirm these digests match the exact published evidence and stored manifest bytes.

@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 Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bea1031-b169-4900-83f3-4687acecf0c2

📥 Commits

Reviewing files that changed from the base of the PR and between 370dbe4 and 64db3e7.

📒 Files selected for processing (1)
  • rust_hft/tools/collector/src/polymarket_evidence_artifact.rs

📝 Walkthrough

Walkthrough

PublishedPolymarketEvidence now returns expected content and manifest SHA-256 digests. Publication computes the manifest digest from serialized bytes, and a Linux-only test verifies both returned digests against the normalized evidence and written manifest.

Changes

Published evidence digest reporting

Layer / File(s) Summary
Digest contract and publication
rust_hft/tools/collector/src/polymarket_evidence_artifact.rs
Adds PublishedPolymarketEvidenceDigests, extends PublishedPolymarketEvidence, computes the manifest SHA-256, and returns both expected digests.
Digest validation test
rust_hft/tools/collector/src/polymarket_evidence_artifact.rs
Adds validation imports and a Linux-only test covering content and on-disk manifest digest matching.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • proerror77/monday#98: Introduces the Polymarket evidence publishing API and PublishedPolymarketEvidence extended by this change.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: returning published evidence digests.
Description check ✅ Passed The description covers the required template sections and includes contract, scope, validation, rollback, and exception details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/polymarket-publisher-trust-anchor

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 2333e4c into main Jul 17, 2026
20 of 21 checks passed
@proerror77
proerror77 deleted the codex/polymarket-publisher-trust-anchor branch July 17, 2026 20:26
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