fix(market-data): accept zero-based source sequences - #215
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR updates search policy snapshot identifiers for two Polymarket missions and changes contract verification to accept zero-based source sequences while preserving availability-clock, dataset, and deserialization validation. ChangesMission snapshot configuration
Polymarket provenance verification
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)rust_hft/prediction-markets/config/research_missions/polymarket-btc-5m.example.jsonTraceback (most recent call last): rust_hft/prediction-markets/config/research_missions/polymarket-sol-5m.example.jsonTraceback (most recent call last): 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. Comment |
Closes #214
Change contract
Treat source sequence
0as a valid first record in canonical hourly Polymarket raw tapes while preserving typed-field, availability-clock, dataset-identity, and immutable-triplet verification.A PRD is unnecessary because #214 specifies one small verifier behavior change with explicit acceptance and out-of-scope boundaries.
Out of scope
No collector changes, evidence recompilation, reference-fragment ordering changes, ResearchSnapshot/evaluator/MCTS behavior changes, or Paper/Live execution.
Dependency or merge order
Depends on merged #213. No stacked PR; this PR can merge independently after CI/review.
Focused validation
metadata_source_sequence: 0failed withcontract provenance or availability clock is invalidbefore the fix.cargo test -p ploy-market-data— 53 passed.u64; invalid availability clocks and reversed dataset identities still fail.cargo clippy -p ploy-market-data --lib --no-deps -- -D warnings— passed.cargo check -p ploy-research --bin monday-prediction-snapshot --features db— passed.cargo test -p ploy-research --lib checked_in_btc_and_sol_templates_pin_current_brief_and_rust_policy— passed.sha256:8da3878978b082f9087c0c7b513484eeb61fbcd8784af7a2de4fab8fc5034b24; the two mission pins are the required mechanical update becauseverified.rsis a policy-source input.Rollout / rollback impact
Roll out the exact merged-main verifier image, then rerun the two-triplet ACK verifier Job for #173. Roll back by selecting the prior image digest. Existing immutable evidence is unchanged. Cloud exact-main acceptance remains pending until this PR merges and that image is published.
Summary by CodeRabbit
Bug Fixes
Configuration