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
Labels:
bug,ttl-vaultPriority: Medium
Estimated Time: 1.5 hours
Description:
docs/beneficiary-conflict-resolution.mddescribes 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:
docs/beneficiary-conflict-resolution.md