A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Relabel military.fortify_bonus Agreed under gdd-0.3 (R-ORDER-002) (#2989)
Eyal Golan59fdd6924d91
diff --git a/changelog.d/1725-fortify-bonus-agreed.md b/changelog.d/1725-fortify-bonus-agreed.mdnew file mode 100644index 000000000..a7b4a4d58--- /dev/null+++ b/changelog.d/1725-fortify-bonus-agreed.md@@ -0,0 +1,6 @@+### Changed++- GDD 0.3 catalogue (Refs #1725): `military.fortify_bonus` is now labelled Agreed instead of Default, after the+ owner-approved answer O1 (1 November 2026, #1668 issuecomment-6553884547): +25%, one turn to set, and the #2918+ C2 audit. The content loader refuses a `military.fortify_bonus` row that is not Agreed, as it already+ does for `military.fortify_turns` (R-ORDER-002). The value stays 25, so there is no change in the game.diff --git a/content/gdd03-balance.yaml b/content/gdd03-balance.yamlindex 6be2c1588..d1938c6b4 100644--- a/content/gdd03-balance.yaml+++ b/content/gdd03-balance.yaml@@ -374,11 +374,11 @@"values": [50]"military.fortify_turns":"basis": "Agreed"- "note": "Military and control: turns / percent defence for Fortify order; Retained turn; bonus Default. Source: #1668 balance.md at 605277df."+ "note": "Military and control: turns / percent defence for Fortify order; Retained turn; bonus Agreed (O1). Source: #1668 balance.md at 605277df.""values": [1]"military.fortify_bonus":- "basis": "Default"- "note": "Military and control: turns / percent defence for Fortify order; Retained turn; bonus Default. Source: #1668 balance.md at 605277df."+ "basis": "Agreed"+ "note": "Military and control: percent defence for a settled Fortify order. The owner-approved answer O1 (1 November 2026, #1668 issuecomment-6553884547): +25%, one turn to set; relabelled from Default after the #2918 C2 audit. Source: #1668 balance.md at 605277df.""values": [25]"military.stack_limit":"basis": "Default"diff --git a/docs/gdd03-catalogue.md b/docs/gdd03-catalogue.mdindex 34cdbb7dd..8128b706e 100644--- a/docs/gdd03-catalogue.md+++ b/docs/gdd03-catalogue.md@@ -8,7 +8,7 @@ The pinned source is [#1668's balance.md at 605277df](https://github.com/eyalgolEach entry has an **Agreed**, **Default** or **Deferred** basis and a provenance note. Numbers are exact `decimal` quantities, including integers. `expression` preserves symbolic formulas without evaluating them. Composite rows have separately labelled `parts`: a project's agreed cost does not promote its default upkeep. The existing combat draw count carries its separately labelled default draw band and four outcome bands, since the source gives that table no additional key names. Unavailable outcomes are omitted, as the part notes explain. These are design values, not historical measurements or gameplay defaults.-The source's retained approved baselines map to Agreed. Derived values preserve their dependency's basis: starting Food break-even (`start.food_production` and `start.food_consumption`) is Default, because it is derived from the Open-mode farmers and population and the Historical MVP does not use it (owner, 1 November 2026, D2); starting housing capacity is Default because its 24 housing projects are Default. Prepared fields (`start.prepared_fields`) are Agreed by their own ruling, the authored opening fields (owner, 1 November 2026, Q36 and MAN-1; #2859), not derived from `start.farmers`. The starting free-civilian expression `34 - A` is Deferred because A is Deferred. Agreed zero costs in retained projects are explicitly recorded. Camp construction and upkeep remain Default; the source's city baseline versus standalone camp/centre application is separately labelled. The queue-loss amount (`reception.queue_cohesion_loss`) and its per-turn non-stacking cadence are both Default, because the row is post-MVP and not operative in the MVP (owner, 1 November 2026). Fortify duration is Agreed and its bonus Default.+The source's retained approved baselines map to Agreed. Derived values preserve their dependency's basis: starting Food break-even (`start.food_production` and `start.food_consumption`) is Default, because it is derived from the Open-mode farmers and population and the Historical MVP does not use it (owner, 1 November 2026, D2); starting housing capacity is Default because its 24 housing projects are Default. Prepared fields (`start.prepared_fields`) are Agreed by their own ruling, the authored opening fields (owner, 1 November 2026, Q36 and MAN-1; #2859), not derived from `start.farmers`. The starting free-civilian expression `34 - A` is Deferred because A is Deferred. Agreed zero costs in retained projects are explicitly recorded. Camp construction and upkeep remain Default; the source's city baseline versus standalone camp/centre application is separately labelled. The queue-loss amount (`reception.queue_cohesion_loss`) and its per-turn non-stacking cadence are both Default, because the row is post-MVP and not operative in the MVP (owner, 1 November 2026). Fortify duration and bonus are both Agreed: the bonus by the owner's O1 answer (1 November 2026, #1668), relabelled after the #2918 C2 audit.`start.army` must be Deferred expression `A`, without any numeric value or parts. The loader refuses numeric substitutions, numeric expressions and relabelling it Default or Agreed. #1717 requires a separate owner decision before this contract can change; only then may the complete population partition and `34 - A >= 0` be validated with an actual integer. This task guesses no army size.diff --git a/docs/rules/mvp.md b/docs/rules/mvp.mdindex 0037200a0..ccfdb5e48 100644--- a/docs/rules/mvp.md+++ b/docs/rules/mvp.md@@ -328,7 +328,7 @@ Phase 5 PR 7 (#746). Q-HOLD-1, "(a) 1 turn, free, lost on move", and Q-HOLD-2, "R-ORDER-001: `UnitOrder(unit, order)` gives one of the player's military units the standing order `fortify` or `hold`, replacing the one it had. A new order replaces a go-to too. The unit keeps its order, turn after turn, until the player gives another; moving clears fortify (Q-HOLD-1): in the resolver after combat (step 2), in id order, a unit no longer on the hex its fortify names (`OrderTarget`, "q,r") loses the order. The order is refused with the state unchanged and a reason for an unknown order or unit, a unit with no side (a halutz), a unit of another side, a hold for artillery (R-COMBAT-007), or the order the unit already has (fortify on the hex it fortifies). It costs `attention_cost.unit_order` (0, D-A6) and is refused in the legacy loop.-R-ORDER-002: Fortify takes one turn to set and costs no Arms or Money (Q-HOLD-1). Given, it reads `fortifying` and names the unit's hex; in the same resolver step it becomes `fortify`, so the combat of the turn it is given sees no bonus. A fortified unit on its hex defends at `mvp.fortify_defence_percent` of its strength (`Orders.DefencePercent`; real value 125), and from the moment it leaves the hex at 100. Under `gdd-0.3`, the catalogue's Agreed `military.fortify_turns` must remain 1; settled fortify on its named hex adds the Default `military.fortify_bonus` (25) to the other defence bonuses, once (R-COMBAT-002). `fortifying` adds nothing.+R-ORDER-002: Fortify takes one turn to set and costs no Arms or Money (Q-HOLD-1). Given, it reads `fortifying` and names the unit's hex; in the same resolver step it becomes `fortify`, so the combat of the turn it is given sees no bonus. A fortified unit on its hex defends at `mvp.fortify_defence_percent` of its strength (`Orders.DefencePercent`; real value 125), and from the moment it leaves the hex at 100. Under `gdd-0.3`, the catalogue's Agreed `military.fortify_turns` must remain 1; settled fortify on its named hex adds the Agreed `military.fortify_bonus` (25) (O1, owner-approved 1 November 2026, #1668) to the other defence bonuses, once (R-COMBAT-002). `fortifying` adds nothing.R-ORDER-003: Hold acts on the unit's own hex only and does not intercept or stop any enemy move, past or next to it (Q-HOLD-2). It names no hex and stays when the unit moves. A holding unit defends at `mvp.hold_defence_percent` of its strength (real value 100: hold keeps the position and adds nothing); a unit with no order defends at 100. Under `gdd-0.3`, Hold adds no defence bonus; it does not multiply terrain or permanent forts (R-COMBAT-002).diff --git a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.csindex 538daddf4..6ae9fe5d0 100644--- a/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs+++ b/sim/Statecraft.Sim.Tests/DesignValuesGdd03Tests.cs@@ -228,6 +228,7 @@ public partial class DesignValuesTests[InlineData("military.training_money", "Agreed", "0.5", Keep, Oct30)][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("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/Gdd03MovementFortTests.cs b/sim/Statecraft.Sim.Tests/Gdd03MovementFortTests.csindex da03e42c3..9d3ea6cc7 100644--- a/sim/Statecraft.Sim.Tests/Gdd03MovementFortTests.cs+++ b/sim/Statecraft.Sim.Tests/Gdd03MovementFortTests.cs@@ -273,14 +273,17 @@ public class Gdd03MovementFortTestsAssert.Equal("values." + key, error.Field);Assert.Contains("must be a whole number >= 0", error.Message);}- // R-ORDER-002 (#2601): fortify_turns is Agreed; a Default row with the same value is refused, naming the exact file and field.- [Fact]- public void LoaderRejectsNonAgreedFortifyTurns()+ // R-ORDER-002: both fortify rows are Agreed, fortify_turns since #2601 and fortify_bonus since the owner's O1 answer+ // (1 November 2026, #1668) and the #2918 C2 audit. A Default row with the same value is refused, naming the exact+ // file and field.+ [Theory]+ [InlineData("military.fortify_turns", "1")]+ [InlineData("military.fortify_bonus", "25")]+ public void LoaderRejectsNonAgreedFortifyRows(string key, string value){- const string key = "military.fortify_turns";var f = Files();f[Gdd03BalanceCatalogue.FileName] = System.Text.RegularExpressions.Regex.Replace(f[Gdd03BalanceCatalogue.FileName],- "(?m)^ \"" + System.Text.RegularExpressions.Regex.Escape(key) + "\":\\n(?: .*\\n)*", " \"" + key + "\": { basis: Default, values: [1], note: fixture }\n");+ "(?m)^ \"" + System.Text.RegularExpressions.Regex.Escape(key) + "\":\\n(?: .*\\n)*", " \"" + key + "\": { basis: Default, values: [" + value + "], note: fixture }\n");var error = Assert.Throws<ContentException>(() => ContentLoader.Load(Fixture.Write(f)));Assert.Equal(Gdd03BalanceCatalogue.FileName, error.File);Assert.Equal("values." + key, error.Field);diff --git a/sim/Statecraft.Sim/Gdd03Military.cs b/sim/Statecraft.Sim/Gdd03Military.csindex 5267628d3..ea693d198 100644--- a/sim/Statecraft.Sim/Gdd03Military.cs+++ b/sim/Statecraft.Sim/Gdd03Military.cs@@ -153,8 +153,10 @@ namespace Statecraft.SimScalar(c, "military.fortify_bonus", false);Scalar(c, "military.combat_xp_gain"); Scalar(c, "military.combat_xp_full"); // R-UNIT-011if (Scalar(c, "military.fortify_turns") != 1) throw Invalid("military.fortify_turns", "only the existing one-turn settlement is implemented");- // R-ORDER-002 (#2601): the rule names this value Agreed; Entry alone would also accept a Default row.- if (Entry(c, "military.fortify_turns").Basis != "Agreed") throw Invalid("military.fortify_turns", "must be Agreed (R-ORDER-002)");+ // R-ORDER-002: the rule names both fortify rows Agreed (fortify_turns #2601; fortify_bonus O1, owner, 1 November 2026,+ // #1668, relabelled after #2918 C2); Entry alone would also accept a Default row.+ foreach (var key in new[] { "military.fortify_turns", "military.fortify_bonus" })+ if (Entry(c, key).Basis != "Agreed") throw Invalid(key, "must be Agreed (R-ORDER-002)");foreach (var biome in new[] { "coastal_plain", "lowland", "valley", "hills", "mountains", "desert" }){Terrain(c, biome, "infantry"); Terrain(c, biome, "armour"); Defence(c, biome);