A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Relabel combat.artillery_range Agreed under gdd-0.3 (R-COMBAT-007) (Refs #1725) (#3047)
Eyal Golan867fa8e64dac
diff --git a/changelog.d/1725-artillery-range-agreed.md b/changelog.d/1725-artillery-range-agreed.mdnew file mode 100644index 000000000..4831c9e3b--- /dev/null+++ b/changelog.d/1725-artillery-range-agreed.md@@ -0,0 +1,11 @@+### Changed++- GDD 0.3 catalogue (Refs #1725): `combat.artillery_range` is now labelled Agreed instead of Default, after the+ owner-approved answer O5 (1 November 2026, #1668 issuecomment-6553884547): "2 hexes.", and the #2918 C2 audit.+ The combat catalogue reader refuses a `combat.artillery_range` row that is not Agreed (R-COMBAT-007). The value+ stays 2, so there is no change in the game.+- GDD 0.3 catalogue (Refs #2918): `combat.artillery_factor` is now Agreed at 2 instead of Default 1, after the+ owner's answer C1 (10 November 2026, #2918 issuecomment-6765662598): "200% wins (Recommended)". The row is a+ unitless multiplier, so 2 is the same 200% as artillery's live `combat_percent` in `unit_types.yaml`. The combat+ catalogue reader refuses a `combat.artillery_factor` row that is not Agreed (R-COMBAT-007). The catalogue is not+ read by combat yet, so there is no change in the game.diff --git a/content/gdd03-balance.yaml b/content/gdd03-balance.yamlindex d1938c6b4..60043387c 100644--- a/content/gdd03-balance.yaml+++ b/content/gdd03-balance.yaml@@ -486,13 +486,13 @@"note": "Movement and engagement defaults: unitless role multiplier; Default. Source: #1668 balance.md at 605277df.""values": [1.50]"combat.artillery_range":- "basis": "Default"- "note": "Movement and engagement defaults: hex support range; cannot attack alone or hold ground; Default range; retained role. Source: #1668 balance.md at 605277df."+ "basis": "Agreed"+ "note": "Movement and engagement defaults: hex support range; cannot attack alone or hold ground; retained role. The owner-approved answer O5 (1 November 2026, https://github.com/eyalgolan/statecraft-israel/pull/1668#issuecomment-6553884547): \"2 hexes.\"; relabelled from Default after the #2918 C2 audit. Source: #1668 balance.md at 605277df.""values": [2]"combat.artillery_factor":- "basis": "Default"- "note": "Movement and engagement defaults: unitless role multiplier; Default. Source: #1668 balance.md at 605277df."- "values": [1]+ "basis": "Agreed"+ "note": "Movement and engagement defaults: unitless role multiplier. The owner's answer C1 (10 November 2026, https://github.com/eyalgolan/statecraft-israel/issues/2918#issuecomment-6765662598): \"200% wins (Recommended)\"; 2 matches the live combat_percent 200 in unit_types.yaml (was Default 1). Source: #1668 balance.md at 605277df."+ "values": [2]"combat.loss_cohorts":"basis": "Default""note": "Movement and engagement defaults: combatant population cohort removed on loss result; Default abstract loss granularity. Source: #1668 balance.md at 605277df."diff --git a/docs/gdd03-catalogue.md b/docs/gdd03-catalogue.mdindex 8128b706e..4188dff52 100644--- a/docs/gdd03-catalogue.md+++ b/docs/gdd03-catalogue.md@@ -42,6 +42,6 @@ Other post-MVP rows (for example `reception.turns`, `reception.capacity`, `recep## #1706 slices 0/1: inactive combat catalogue foundation-Coordinator decision, 26 Oct 2026 (Q5): synthetic catalogue validation only; the foundation remains inactive in the actual game. The catalogue defines one draw (Agreed), four ratio ranges, complete, non-overlapping inclusive 0..99 outcome bands, role factors and artillery support range (Default). Required missing, malformed or Deferred entries are refused without an old-table fallback.+Coordinator decision, 26 Oct 2026 (Q5): synthetic catalogue validation only; the foundation remains inactive in the actual game. The catalogue defines one draw (Agreed), four ratio ranges, complete, non-overlapping inclusive 0..99 outcome bands, role factors (Default, except `combat.artillery_factor`, Agreed at 2, the 200% of `combat_percent`: the owner's C1 answer, 10 November 2026, #2918, "200% wins (Recommended)") and artillery support range (Agreed: the owner's O5 answer, 1 November 2026, #1668, "2 hexes."; relabelled after the #2918 C2 audit). Required missing, malformed or Deferred entries are refused without an old-table fallback.Sources: `content/gdd03-balance.yaml:447-475,484-495`; pinned GDD `605277df`, `docs/gdd/balance.md:172,175-177,180-185`. See [the combat rules](rules/mvp.md#combat) for current runtime behavior.diff --git a/docs/rules/mvp.md b/docs/rules/mvp.mdindex 20807688c..3c082fcae 100644--- a/docs/rules/mvp.md+++ b/docs/rules/mvp.md@@ -352,7 +352,7 @@ On a game with an initialized Historical ledger (the dark start, R-POP-004; #170Phase 5 PR 9, part 1 (#748): artillery's combat role and the armoured car. Q-ARTY-1 and Q-ARTY-2 are the plan's recommendations (owner, 15 October 2026, #375: "Take all recommendations"). The numbers in `unit_types.yaml` are agent defaults proposed on #748 and accepted by the owner as design values on 21 October 2026, together with three of R-COMBAT-007's mechanics that the Q-ARTY-1 text does not settle: the attackers' losses sparing the guns, the hold refused as "never holds ground", and the 200% counting on defence too (owner, 21 October 2026, #748, https://github.com/eyalgolan/statecraft-israel/issues/748#issuecomment-6317339304). How either type is acquired (R-UNIT-008) is part 2, on top of Phase 5 PR 3's training.-R-COMBAT-007: Artillery (a type of class `artillery`, which needs a `range` and an `arms_per_fire`; real values 2 and 2) attacks alone from range. Its `UnitOrder(unit, attack, q, r)` names an enemy hex at a hex distance of 1 to its `range`; a farther hex is refused with "That hex is beyond the unit's range". The player's artillery attacks at once like any unit, pays its type's `arms_per_fire` in place of `mvp.arms_per_attack`, and its losses spare it, so it loses nothing. Enemy artillery still joins an engagement in step 2 after the other attackers of its side and only when at least one of them joins; otherwise it holds its fire, with a line, pays nothing and keeps its order. Its strength counts at its `combat_percent` (real value 200). Artillery that is attacked defends and takes losses like any unit. It never holds ground: a hold order for it is refused with "Artillery does not hold ground" (fortify is allowed). As in any attack, residents are never a target (Q-CIV-2, R-COMBAT-005). Under `gdd-0.3`, artillery still fires alone at once from the existing range and keeps the same outcomes, but has no Arms affordability check or deduction; `arms_per_fire` is not required or read in that identity. Range and combat factors retain their existing validation. The remaining combat redesign is held.+R-COMBAT-007: Artillery (a type of class `artillery`, which needs a `range` and an `arms_per_fire`; real values 2 and 2) attacks alone from range. Its `UnitOrder(unit, attack, q, r)` names an enemy hex at a hex distance of 1 to its `range`; a farther hex is refused with "That hex is beyond the unit's range". The player's artillery attacks at once like any unit, pays its type's `arms_per_fire` in place of `mvp.arms_per_attack`, and its losses spare it, so it loses nothing. Enemy artillery still joins an engagement in step 2 after the other attackers of its side and only when at least one of them joins; otherwise it holds its fire, with a line, pays nothing and keeps its order. Its strength counts at its `combat_percent` (real value 200). Artillery that is attacked defends and takes losses like any unit. It never holds ground: a hold order for it is refused with "Artillery does not hold ground" (fortify is allowed). As in any attack, residents are never a target (Q-CIV-2, R-COMBAT-005). Under `gdd-0.3`, artillery still fires alone at once from the existing range and keeps the same outcomes, but has no Arms affordability check or deduction; `arms_per_fire` is not required or read in that identity. Range and combat factors retain their existing validation; the catalogue's `combat.artillery_range` (2) is Agreed (O5, owner-approved 1 November 2026, #1668), and its `combat.artillery_factor` is Agreed at 2, the same 200% as `combat_percent` (C1, owner, 10 November 2026, #2918: "200% wins (Recommended)"). The remaining combat redesign is held.R-COMBAT-008: A military type may carry a `combat_percent` (at least 1; none is 100): its units' strength counts at that percent in the ratio, attacking and defending, in integers (R-COMBAT-002). The armoured car's is 150 (real value), with its 5 movement points (R-MOVE-001) and no other rule (Q-ARTY-2). Under `gdd-0.3`, armour's movement allowance is the catalogue value 3 (R-MOVE-001); combat factors and other mechanics remain unchanged.diff --git a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.csindex 6ae9fe5d0..edccd3a39 100644--- a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs+++ b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs@@ -229,6 +229,8 @@ public partial class DesignValuesTests[InlineData("military.active_money", "Agreed", "0.05", Keep, Oct30)][InlineData("prisoner.return_points", "Agreed", "10", "\"10 per unit, main (Recommended)\"", Nov1)][InlineData("military.fortify_bonus", "Agreed", "25", "owner-approved answer O1 (1 November 2026, #1668 issuecomment-6553884547): +25%, one turn to set", Nov1)]+ [InlineData("combat.artillery_range", "Agreed", "2", "owner-approved answer O5 (1 November 2026, https://github.com/eyalgolan/statecraft-israel/pull/1668#issuecomment-6553884547): \"2 hexes.\"", Nov1)]+ [InlineData("combat.artillery_factor", "Agreed", "2", "C1 (10 November 2026, https://github.com/eyalgolan/statecraft-israel/issues/2918#issuecomment-6765662598): \"200% wins (Recommended)\"", "10 November 2026")][InlineData("transit.cost", "Default", "0.50", PostMvp, Nov1)][InlineData("reception.queue_cohesion_loss", "Default", "1", PostMvp, Nov1)][InlineData("housing.max_deterioration", "Default", "10", "declined by the owner", Oct30)]diff --git a/sim/Statecraft.Sim.Tests/Gdd03CombatCatalogueTests.cs b/sim/Statecraft.Sim.Tests/Gdd03CombatCatalogueTests.csindex c3487bc5f..00488f875 100644--- a/sim/Statecraft.Sim.Tests/Gdd03CombatCatalogueTests.cs+++ b/sim/Statecraft.Sim.Tests/Gdd03CombatCatalogueTests.cs@@ -104,10 +104,14 @@ public class Gdd03CombatCatalogueTests}}Assert.Equal(1, table.DrawCount);- Assert.Equal(1.50m, table.ArmouredFactor); Assert.Equal(1m, table.ArtilleryFactor);+ // C1 (owner, 10 November 2026, #2918): 2 is the unitless multiplier for unit_types.yaml's combat_percent 200.+ Assert.Equal(1.50m, table.ArmouredFactor); Assert.Equal(2m, table.ArtilleryFactor);Assert.Equal(2, table.ArtilleryRange);Assert.Equal("Agreed", table.Sources["combat.draw_count"].Basis);- foreach (var source in table.Sources.Where(p => p.Key != "combat.draw_count"))+ Assert.Equal("Agreed", table.Sources["combat.artillery_range"].Basis); // O5, owner-approved 1 November 2026, #1668+ Assert.Equal("Agreed", table.Sources["combat.artillery_factor"].Basis); // C1, owner, 10 November 2026, #2918+ foreach (var source in table.Sources.Where(p => p.Key != "combat.draw_count" && p.Key != "combat.artillery_range"+ && p.Key != "combat.artillery_factor"))Assert.Equal("Default", source.Value.Basis);foreach (var source in table.Sources.Values) Assert.Contains("605277df", source.Note);Assert.Throws<ArgumentOutOfRangeException>(() => table.Outcome(1m, -1));@@ -141,6 +145,38 @@ public class Gdd03CombatCatalogueTestsAssert.Throws<ContentException>(() => Gdd03BalanceCatalogue.ReadCombatCatalogue(c));}+ // R-COMBAT-007: combat.artillery_range is Agreed since the owner's O5 answer (1 November 2026, #1668: "2 hexes.") and+ // the #2918 C2 audit. A Default row with the same value is refused, naming the exact file and field.+ [Theory, InlineData("he-IL"), InlineData("en-US")]+ public void DefaultArtilleryRangeRefuses(string culture)+ {+ InCulture(culture, () => {+ var c = Synthetic(); var v = At(c, "combat.artillery_range");+ v.Basis = "Default";+ Assert.Equal(new[] { 2m }, v.Values);+ var error = Assert.Throws<ContentException>(() => Gdd03BalanceCatalogue.ReadCombatCatalogue(c));+ Assert.Equal(Gdd03BalanceCatalogue.FileName, error.File);+ Assert.Equal("values.combat.artillery_range", error.Field);+ Assert.Contains("requires its catalogue basis Agreed", error.Message);+ });+ }++ // R-COMBAT-007: combat.artillery_factor is Agreed since the owner's C1 answer (10 November 2026, #2918: "200% wins+ // (Recommended)"). A Default row with the same value is refused, naming the exact file and field.+ [Theory, InlineData("he-IL"), InlineData("en-US")]+ public void DefaultArtilleryFactorRefuses(string culture)+ {+ InCulture(culture, () => {+ var c = Synthetic(); var v = At(c, "combat.artillery_factor");+ v.Basis = "Default";+ Assert.Equal(new[] { 2m }, v.Values);+ var error = Assert.Throws<ContentException>(() => Gdd03BalanceCatalogue.ReadCombatCatalogue(c));+ Assert.Equal(Gdd03BalanceCatalogue.FileName, error.File);+ Assert.Equal("values.combat.artillery_factor", error.Field);+ Assert.Contains("requires its catalogue basis Agreed", error.Message);+ });+ }+[Theory, InlineData("combat.armoured_factor"), InlineData("combat.artillery_factor"), InlineData("combat.artillery_range")]public void ZeroRoleQuantitiesRefuse(string key){diff --git a/sim/Statecraft.Sim/Gdd03Military.cs b/sim/Statecraft.Sim/Gdd03Military.csindex ea693d198..b67bb2f6e 100644--- a/sim/Statecraft.Sim/Gdd03Military.cs+++ b/sim/Statecraft.Sim/Gdd03Military.cs@@ -132,14 +132,17 @@ namespace Statecraft.Simrows[row] = result.AsReadOnly();}// content/gdd03-balance.yaml `combat.armoured_factor`, `combat.artillery_range` and `combat.artillery_factor`; GDD docs/gdd/balance.md:175-177 at 605277df.- decimal Role(string key)+ decimal Role(string key, string basis){- var n = List(Required(key, "Default"), key, 1)[0];+ var n = List(Required(key, basis), key, 1)[0];if (n <= 0) throw Invalid(key, "requires a positive exact role factor");return n;}- var armour = Role("combat.armoured_factor"); var artillery = Role("combat.artillery_factor");- var range = Integer(List(Required("combat.artillery_range", "Default"), "combat.artillery_range", 1)[0], "combat.artillery_range", true);+ // R-COMBAT-007: the artillery factor is Agreed at 2, the live combat_percent 200 (C1, owner, 10 November 2026,+ // #2918: "200% wins (Recommended)"); the armoured factor stays Default.+ var armour = Role("combat.armoured_factor", "Default"); var artillery = Role("combat.artillery_factor", "Agreed");+ // R-COMBAT-007: the range is Agreed (O5, owner, 1 November 2026, #1668: "2 hexes."; relabelled after #2918 C2).+ var range = Integer(List(Required("combat.artillery_range", "Agreed"), "combat.artillery_range", 1)[0], "combat.artillery_range", true);return new Gdd03CombatCatalogue(thresholds, rows, draws, armour, artillery, range, sources);}