From a2172349baa3285480503b52891aea371e1c0f65 Mon Sep 17 00:00:00 2001 From: Heimdall Date: Sat, 14 Nov 2026 08:09:39 +0000 Subject: [PATCH] Account merge saga: pin that a receipt mismatch stays the recorded answer across later sweeps Co-Authored-By: Claude Sonnet 5.5 --- tests/Bifrost.Web.Tests/AccountMergeSagaTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Bifrost.Web.Tests/AccountMergeSagaTests.cs b/tests/Bifrost.Web.Tests/AccountMergeSagaTests.cs index 821e22c..bfeae99 100644 --- a/tests/Bifrost.Web.Tests/AccountMergeSagaTests.cs +++ b/tests/Bifrost.Web.Tests/AccountMergeSagaTests.cs @@ -507,10 +507,13 @@ public sealed class AccountMergeSagaTests }); var stuck = await rig.AdvanceAsync(id); - await rig.AdvanceAsync(id); + var again = await rig.AdvanceAsync(id); Assert.Equal(AccountMergeState.Confirmed, stuck.State); Assert.Equal(AccountMergeSaga.ReceiptMismatch, stuck.LastOutcome); + // The answer stays what Heimdall gave: a later sweep does not turn it into an hourly "proofs unreadable" retry. + Assert.Equal(AccountMergeSaga.ReceiptMismatch, again.LastOutcome); + Assert.Null(again.NextAttemptUtc); Assert.Null((await rig.MergeAsync(id)).SealedProofs); Assert.Single(rig.Moves.Requests); Assert.IsType(await rig.StandingAsync(folded));