Skip to content

feat: add capabilities() recovery view and storage-tier docs (#984, #…#1016

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
abdoolbasit374-web:Predictify/issues
Jul 26, 2026
Merged

feat: add capabilities() recovery view and storage-tier docs (#984, #…#1016
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
abdoolbasit374-web:Predictify/issues

Conversation

@abdoolbasit374-web

Copy link
Copy Markdown
Contributor

Closes #984
Closes #989

Issue #984 — Add read-only capabilities() view for recovery

  • Declare pub mod capabilities in lib.rs (was missing, causing unresolved path)
  • Enable recovery_tests and capability_bitmap_tests modules in lib.rs
  • capability_bitmap_tests.rs: 12 end-to-end tests for capabilities() entrypoint including RECOVERY bit (bit 17), side-effect-free property, full bitmap match, reserved-bit guard, uniqueness, and range checks
  • recovery_tests.rs: 12 tests covering validate_market_state_integrity, recover_market_state, partial_refund_mechanism, get_recovery_status, and end-to-end workflow; each verifies capabilities() advertises RECOVERY
  • docs/CAPABILITIES.md: add Recovery Capability section with entrypoint table, workflow diagram, security properties, and test references

Issue #989 — Add storage-tier documentation

  • storage.rs DataKey enum: add 10 missing variants that were referenced by subsystems but absent (OracleAdminCooldownState, MultisigRotationState, CollusionDetectorConfig, AdminOverrideNonce, PerLedgerBetCap, PerLedgerBetCounter, EventNonce, MarketAuditHead, MarketAuditLog, DeprecatedRegistry) each with inline tier rationale
  • storage_tier_audit.rs: rewrite with accurate 37-entry audit table covering every DataKey variant and non-DataKey composite key, organised by subsystem; add 8 focused tests (coverage, purity, tier correctness)
  • docs/STORAGE_TIER.md: full rewrite with per-subsystem key matrix, TTL tier definitions, tier-selection guide, and source references

Thank you for your contribution to Predictify! 🚀

…ify-org#984, Predictify-org#989)

Issue Predictify-org#984 — Add read-only capabilities() view for recovery
- Declare pub mod capabilities in lib.rs (was missing, causing unresolved path)
- Enable recovery_tests and capability_bitmap_tests modules in lib.rs
- capability_bitmap_tests.rs: 12 end-to-end tests for capabilities()
  entrypoint including RECOVERY bit (bit 17), side-effect-free property,
  full bitmap match, reserved-bit guard, uniqueness, and range checks
- recovery_tests.rs: 12 tests covering validate_market_state_integrity,
  recover_market_state, partial_refund_mechanism, get_recovery_status,
  and end-to-end workflow; each verifies capabilities() advertises RECOVERY
- docs/CAPABILITIES.md: add Recovery Capability section with entrypoint
  table, workflow diagram, security properties, and test references

Issue Predictify-org#989 — Add storage-tier documentation
- storage.rs DataKey enum: add 10 missing variants that were referenced
  by subsystems but absent (OracleAdminCooldownState, MultisigRotationState,
  CollusionDetectorConfig, AdminOverrideNonce, PerLedgerBetCap,
  PerLedgerBetCounter, EventNonce, MarketAuditHead, MarketAuditLog,
  DeprecatedRegistry) each with inline tier rationale
- storage_tier_audit.rs: rewrite with accurate 37-entry audit table
  covering every DataKey variant and non-DataKey composite key, organised
  by subsystem; add 8 focused tests (coverage, purity, tier correctness)
- docs/STORAGE_TIER.md: full rewrite with per-subsystem key matrix,
  TTL tier definitions, tier-selection guide, and source references
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@abdoolbasit374-web 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! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit eadb243 into Predictify-org:master Jul 26, 2026
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged via direct push to master (admin)

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.

Add storage-tier documentation for storage Add read-only capabilities() view for recovery

2 participants