Repository navigation
Resolve multi-outcome Pyth brackets, add data-flow review checklist, and fix security contact - #1662
Merged
hman38705 merged 4 commits intoSep 28, 2026
Conversation
…ns a binary outco Closes solutions-plug#1545
…c has no reviewed Closes solutions-plug#1562
…dress is unverifi Closes solutions-plug#1563
…nc mechanism agai Closes solutions-plug#1564
|
@rudeus112266 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolve multi-outcome Pyth brackets, add data-flow review checklist, and fix security contact
What was solved
#1545 — Pyth-based oracle resolution only ever returns a binary outcome (0 or 1)
Fix Pyth-based oracle resolution so it no longer silently collapses multi-outcome markets to a binary 0/1 result. The chosen approach is to extend
determine_outcometo support multiple price brackets/strike thresholds for multi-outcome markets, while preserving the existing binary behavior for 2-outcome markets, and to add a test covering a 3-outcome market's interaction with Pyth-based resolution.Addressed:
oracles::determine_outcome(contracts/predict-iq/src/modules/oracles.rs) to support multi-outcome markets via multiple price brackets/strike thresholds instead of only returning 0 or 1.resolve_with_pythcorrectly selects outcome indices >= 2 for markets with 3+ options when price data falls in the appropriate bracket.#1562 — docs/data-flow.md GDPR/privacy compliance doc has no reviewed-by/last-verified date, unlike architecture.md
Add a review/ownership and staleness-control section to docs/data-flow.md so the GDPR/privacy-scoped document gains a last-reviewed date, named owner/team, and a PR checklist (mirroring docs/architecture.md) that triggers updates when new PII-bearing fields, tables, or third-party data sharing are introduced; verify the doc against the current services/api/database/migrations/*.sql schema as part of the change.
Addressed:
#1563 — SECURITY.md security@predictiq.io contact address is unverifiable and undocumented elsewhere
Update SECURITY.md to replace the unverifiable security@predictiq.io mailbox with a verifiable contact method (GitHub Security Advisories, which is the standard monitored channel for a GitHub-hosted project), and cross-reference the same contact from CONTRIBUTING.md so the reporting path is documented in more than one place.
Addressed:
#1564 — docs/CONTRACT_ERRORS.md has no generation/sync mechanism against contracts/predict-iq/src/errors.rs, unlike API_SPEC.md
Add a sync/verification mechanism so docs/CONTRACT_ERRORS.md cannot drift from contracts/predict-iq/src/errors.rs, mirroring how API_SPEC.md is generated/checked. Implement a lightweight Node script that parses error variants/codes from errors.rs and diffs them against the markdown table in CONTRACT_ERRORS.md, wire it into CI, and document the mechanism at the top of the doc.
Addressed:
Changes
docs/data-flow.md(modify)docs/CONTRACT_ERRORS.md(modify)contracts/predict-iq/src/modules/oracles.rs(modify)CONTRIBUTING.md(modify)SECURITY.md(modify)contracts/predict-iq/src/errors.rs(modify)Approach
Issues
Closes #1545
Closes #1562
Closes #1563
Closes #1564