From 30b457c9a005df6f0b260294d12f6f961f9f0b39 Mon Sep 17 00:00:00 2001 From: gamer147 Date: Sun, 31 May 2026 22:18:12 -0400 Subject: [PATCH] fix(battle-node): assert Bid is in envelope (not Body) on BuildMatched Co-Authored-By: Claude Sonnet 4.6 --- .../BattleNode/Lifecycle/ScriptedLifecycleTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SVSim.UnitTests/BattleNode/Lifecycle/ScriptedLifecycleTests.cs b/SVSim.UnitTests/BattleNode/Lifecycle/ScriptedLifecycleTests.cs index 2387f30..de8707a 100644 --- a/SVSim.UnitTests/BattleNode/Lifecycle/ScriptedLifecycleTests.cs +++ b/SVSim.UnitTests/BattleNode/Lifecycle/ScriptedLifecycleTests.cs @@ -17,6 +17,10 @@ public class ScriptedLifecycleTests Assert.That(selfInfo["oppoId"], Is.EqualTo(847666884L)); var oppoInfo = (Dictionary)env.Body["oppoInfo"]!; Assert.That(oppoInfo["oppoId"], Is.EqualTo(906243102L)); + + // Bid travels in the envelope, not the Body — protect against the Task 5 reserved-keys regression. + Assert.That(env.Bid, Is.EqualTo("b")); + Assert.That(env.Body.ContainsKey("bid"), Is.False); } [Test]