Skip to content

Prevent alliance mission replay after rejoin - #53

Merged
SrMessiSOL merged 1 commit into
masterfrom
audit/persist-alliance-mission-history
Jul 11, 2026
Merged

SrMessiSOL merged 1 commit into
masterfrom
audit/persist-alliance-mission-history

Conversation

@SrMessiSOL

Copy link
Copy Markdown
Owner

Summary

  • retain alliance membership PDAs after leave or expulsion and mark them inactive
  • reactivate retained memberships instead of recreating claim history
  • preserve current-period mission masks when rejoining the same alliance
  • reset masks when joining a different alliance
  • reject alliance actions from inactive memberships
  • add regression tests for same- and different-alliance reactivation

Verification

  • cargo test --lib --manifest-path programs/game-state/Cargo.toml
  • 41 tests passed

Compatibility

  • no account resize or migration
  • requires the companion frontend PR to hide role-0 memberships

@SrMessiSOL
SrMessiSOL merged commit 16311ea into master Jul 11, 2026
1 check passed
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