Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

sim: R-WAR-004 pins that military actions move no parameter (refs #750) (#1339)

agamrafaeli-instinct4ef54a2677eb
diff --git a/changelog.d/sim-war-no-parameter-750.md b/changelog.d/sim-war-no-parameter-750.md
new file mode 100644
index 000000000..565255dc5
--- /dev/null
+++ b/changelog.d/sim-war-no-parameter-750.md
@@ -0,0 +1,8 @@
+### Added
+
+- The war state's last slice: R-WAR-004 pins that military actions move no parameter in the GDD loop - attacks,
+ attacks refused in a truce and moves (the sim has no frontier, Q-MOVE-4, so crossing one is a move), with their
+ losses, leave International Support and Social cohesion exactly where a turn without them does (Q-CIV-3,
+ "No effect in Phase 5"); the prisoners' Food-shortfall cohesion cost is the one exemption. The behaviour was
+ already true; the slice adds the rule and its
+ regression/mutation test. Refs #750.
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 544a78a9a..f29bfe86f 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -254,6 +254,8 @@ R-WAR-002: In the GDD loop the sim refuses `SetMobilization` and `SecurityOrder`
R-WAR-003 (first slice): the GDD loop retires the 52-week UN ceasefire clock (Q-WAR-2, option (b)): it never starts (`CeasefireWeeksLeft` stays 0), never counts down and never ends the war, and the Defence screen shows no ceasefire line there. An event's `set_rung` still moves the rung (Q-WAR-4). `ceasefire_weeks` stays in the rules for the legacy loop, which keeps the clock.
+R-WAR-004: Military actions move no parameter in the GDD loop (Q-CIV-3, "No effect in Phase 5", owner, 15 October 2026, #375): attacks, attacks refused in a truce and moves (the sim has no frontier, Q-MOVE-4, so crossing one is a move), with their losses, leave International Support (`intl_standing`) and Social cohesion (`morale`) exactly where a turn without them does. R-POW-002's prisoner Food-shortfall cohesion cost is the stated exemption.
+
## Prisoners
Phase 5 PR 12 (#751). The impact plan's §4.3 as written (Q-POW-1), points per unit returned (Q-POW-2), a sourced event card per front (Q-POW-3), the player's soldiers counted with a cost (Q-POW-4) and a Food cost whose shortfall costs cohesion (Q-POW-5): the owner's picks of 15 October 2026 (#375). The four amounts (`rules.yaml` `mvp.food_per_prisoner_unit`, `mvp.prisoner_shortfall_cohesion`, `mvp.points_per_prisoner_unit_returned`, `mvp.held_soldier_cost_per_turn`) are agent defaults posted on #751 (https://github.com/eyalgolan/statecraft-israel/issues/751#issuecomment-6318787961), accepted by the owner as design values (owner, 21 October 2026, #751: https://github.com/eyalgolan/statecraft-israel/issues/751#issuecomment-6321366548). The same ruling says ALA and local-force prisoners belong to no front, so they stay held, and fed, to the game's end. It does not name the front of each side or the captor of the player's soldiers; those stay agent defaults. The four sourced exchange cards are not in `content/` yet: they wait for a person's source check (CONTENT_POLICY §2) and the owner's sensitivity review.
diff --git a/sim/Statecraft.Sim.Tests/WarStateTests.cs b/sim/Statecraft.Sim.Tests/WarStateTests.cs
index f44f1190c..1d1be5dde 100644
--- a/sim/Statecraft.Sim.Tests/WarStateTests.cs
+++ b/sim/Statecraft.Sim.Tests/WarStateTests.cs
@@ -151,5 +151,62 @@ options:
Assert.NotEqual(5, cease.State.Rung);
Assert.Contains(cease.Why, w => w.Target == "ceasefire");
}
+
+ // R-WAR-004 (Q-CIV-3, the owner's "No effect in Phase 5" of 15 October 2026 on #375; the #750 last-slice
+ // scope of 22 October 2026): military actions move no parameter in the GDD loop. An attack and its losses,
+ // an attack refused in a truce, and a move leave International Support (intl_standing) and
+ // Social cohesion (morale) exactly where a turn without them does. R-POW-002's prisoner Food-shortfall
+ // cohesion cost is the stated exemption (PrisonersTests pins it).
+ [Fact]
+ public void MilitaryActionsMoveNoParameter()
+ {
+ var c = ContentLoader.Load(Fixture.Write(Fixture.Gdd(new Dictionary<string, string>
+ {
+ ["model.yaml"] = Fixture.Files["model.yaml"].Replace(
+ "policies:", " - id: intl_standing\n base: 0.5\n name: Standing\npolicies:"),
+ ["unit_types.yaml"] = Fixture.GddUnitTypes
+ + " - { id: soldier, kind: unit, side: israel, class: infantry, movement_points: 3 }\n"
+ + " - { id: enemy, kind: unit, side: egypt, class: infantry, movement_points: 3 }\n",
+ ["map/hexes.json"] = MovementTests.Board(),
+ ["corridors.yaml"] = "corridors: []\n",
+ })));
+ GameState State(DateTime? date = null, params (string Event, string Option)[] chosen)
+ {
+ var s = Simulation.NewGame(c, 42, Mode.Historical);
+ if (date is DateTime d) s.Date = d;
+ s.Arms = 10;
+ s.Units.Add(1, new Unit(1, "soldier", 3, 0, side: "israel", strength: 5));
+ s.Units.Add(2, new Unit(2, "enemy", 2, 0, side: "egypt", strength: 3));
+ foreach (var (e, o) in chosen) s.ChosenOptions[e] = o;
+ return s;
+ }
+ (double Morale, double Intl) Params(GameState s) => (s.Indicators["morale"], s.Indicators["intl_standing"]);
+ StepResult Step(GameState s, params Command[] cmds) => Simulation.Step(c, s, cmds);
+
+ // The reference: a turn with no military action.
+ var clean = Params(Step(State()).State);
+
+ // An attack and its losses: the fixture's below-2:1 row costs both sides a strength point, so the test
+ // is not vacuous, and the parameters stay where the clean turn leaves them.
+ var attack = Step(State(), new UnitOrder(1, Combat.Attack, 2, 0));
+ Assert.Empty(attack.Rejected);
+ Assert.Equal(4, attack.State.Units[1].Strength);
+ Assert.Equal(2, attack.State.Units[2].Strength);
+ Assert.Equal(clean, Params(attack.State));
+
+ // An attack refused in a truce (R-COMBAT-009): the refusal leaves the state as the turn without the
+ // order does.
+ var inside = new DateTime(1948, 6, 15);
+ var refused = Step(State(inside, ("first_truce", "accept")), new UnitOrder(1, Combat.Attack, 2, 0));
+ Assert.Equal("A truce is in force", Assert.Single(refused.Rejected).Reason);
+ Assert.Equal(Params(Step(State(inside, ("first_truce", "accept"))).State), Params(refused.State));
+
+ // A move. The sim has no frontier (Q-MOVE-4: units may enter any land hex), so a frontier crossing
+ // is an ordinary Move.
+ var move = Step(State(), new Move(1, 4, 0));
+ Assert.Empty(move.Rejected);
+ Assert.Equal((4, 0), (move.State.Units[1].Q, move.State.Units[1].R));
+ Assert.Equal(clean, Params(move.State));
+ }
}
}