Skip to content

Implement Beneficiary Conflict Resolution Tie-Break Determinism #431

Description

@maugauwi-hash

Labels: bug, ttl-vault
Priority: Medium
Estimated Time: 1.5 hours

Description:
docs/beneficiary-conflict-resolution.md describes resolving conflicting beneficiary claims, but the tie-break logic when two claims have identical priority/timestamp should be verified to be fully deterministic (not dependent on storage iteration order) to avoid consensus divergence.

Tasks:

  • Audit the tie-break comparator for any non-deterministic ordering (e.g., HashMap iteration)
  • Replace with a deterministic secondary key (e.g., beneficiary address ordering)
  • Add tests for exact-tie scenarios asserting stable, repeatable outcomes
  • Document the deterministic tie-break rule in docs/beneficiary-conflict-resolution.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions