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.

Tests: the gdd-0.3 event inventory lists unit_orders and rejoin (Fixes #2769) (#2785)

Berie0ef419f4708
diff --git a/docs/gdd03-event-inventory.md b/docs/gdd03-event-inventory.md
index 0663cd120..52374d681 100644
--- a/docs/gdd03-event-inventory.md
+++ b/docs/gdd03-event-inventory.md
@@ -14,10 +14,15 @@ and review the diff. Do not edit the table by hand.
- **Old target** and **old delta**: the field as authored, which `legacy` and `gdd-0.1` apply (R-EFX-001). The
exception is `debt_dollars`: those rulesets read it but only `gdd-0.3` applies it (R-EFX-009, #2457). A
- `set_policy` or `set_rung` field sets a level instead of adding a delta.
+ `set_policy` or `set_rung` field sets a level instead of adding a delta. A `unit_orders` field gives a go-to order
+ under `gdd-0.1` only (R-ENEMY-005), and a `rejoin` field returns a road not taken to the recorded course (R-ALT-009).
- **gdd-0.3 target**: "same" when the card is in the `gdd-0.3` catalogue. The loader has then validated the field
- under `gdd-0.3` (R-EFX-001, R-EFX-002) and it applies with the same delta. "Legacy rulesets only" when
- `content/gdd03-events.yaml` excludes the whole card: none of its options is in play under `gdd-0.3`.
+ under `gdd-0.3` (R-EFX-001, R-EFX-002) and it applies with the same delta. A `unit_orders` field is the exception:
+ the loader still checks it, but `gdd-0.3` gives no order (R-ENEMY-005; owner, 31 October 2026, #749). "Legacy
+ rulesets only" when `content/gdd03-events.yaml` excludes the whole card: none of its options is in play under
+ `gdd-0.3`.
+- **Not in the table**: `requires_unit_regions` (added by #2621, not on main yet) is an option gate, not an effect
+ field, so it is out of this inventory.
- **Review reset**: "no" on every row. Only `israel_bonds` changes its source bytes: its `launch` option gains
`debt_dollars: 52` and a comment (#2457), with its text, Hebrew, sources and review status unchanged. Every card's
bytes are pinned (`AllFortyOneSourceRecordsIncludingReviewsAndHebrewAreUnchanged`), and the test checks that a kept card keeps its status and human sign-off under `gdd-0.3`. An excluded card keeps
@@ -108,6 +113,7 @@ first-slice availability") describes; this file changes no exclusion.
| `jerusalem_ceasefire` | `keep` | `effects[0].security` | 0.015 | `effects[0].security` (same) | 0.015 | no |
| `jerusalem_ceasefire` | `hold_out` | `effects[0].security` | -0.015 | `effects[0].security` (same) | -0.015 | no |
| `jerusalem_ceasefire` | `hold_out` | `effects[1].intl_standing` | -0.03 | `effects[1].intl_standing` (same) | -0.03 | no |
+| `jerusalem_demilitarisation_guard` | `return_military_government` | `rejoin` | rejoins `jerusalem_military_government` | `rejoin` (same) | rejoins `jerusalem_military_government` | no |
| `jerusalem_military_government` | `military_government` | `effects[0].security` | 0.01 | `effects[0].security` (same) | 0.01 | no |
| `jerusalem_military_government` | `military_government` | `effects[1].intl_standing` | -0.02 | `effects[1].intl_standing` (same) | -0.02 | no |
| `jerusalem_military_government` | `accept_demilitarisation` | `effects[0].security` | -0.015 | `effects[0].security` (same) | -0.015 | no |
@@ -117,6 +123,7 @@ first-slice availability") describes; this file changes no exclusion.
| `latrun_proposal` | `press_offensive` | `effects[0].security` | 0.025 | `effects[0].security` (same) | 0.025 | no |
| `latrun_proposal` | `press_offensive` | `effects[1].intl_standing` | -0.1 | `effects[1].intl_standing` (same) | -0.1 | no |
| `latrun_proposal` | `press_offensive` | `effects[2].morale` | -0.02 | `effects[2].morale` (same) | -0.02 | no |
+| `latrun_proposal` | `press_offensive` | `unit_orders[0].harel` | go to (-3, 25) | `unit_orders[0].harel` (loaded, not run under gdd-0.3) | none (no order given) | no |
| `law_of_return` | `enact` | `effects[0].morale` | 0.03 | `effects[0].morale` (same) | 0.03 | no |
| `law_of_return` | `enact` | `effects[1].intl_standing` | 0.01 | `effects[1].intl_standing` (same) | 0.01 | no |
| `law_of_return` | `quota` | `effects[0].morale` | -0.06 | `effects[0].morale` (same) | -0.06 | no |
@@ -130,17 +137,23 @@ first-slice availability") describes; this file changes no exclusion.
| `ministry_supply_crisis` | `keep_ministry` | `effects[0].morale` | -0.03 | `effects[0].morale` (same) | -0.03 | no |
| `operation_hiram` | `stop_at_ceasefire` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `operation_hiram` | `stop_at_ceasefire` | `effects[0].security` | 0.02 | `effects[0].security` (same) | 0.02 | no |
+| `operation_hiram` | `stop_at_ceasefire` | `unit_orders[0].carmeli` | go to (15, 3) | `unit_orders[0].carmeli` (loaded, not run under gdd-0.3) | none (no order given) | no |
+| `operation_hiram` | `stop_at_ceasefire` | `unit_orders[1].brigade_7` | go to (14, 4) | `unit_orders[1].brigade_7` (loaded, not run under gdd-0.3) | none (no order given) | no |
| `operation_hiram` | `advance_into_lebanon` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `operation_hiram` | `advance_into_lebanon` | `effects[0].security` | 0.025 | `effects[0].security` (same) | 0.025 | no |
| `operation_hiram` | `advance_into_lebanon` | `effects[1].intl_standing` | -0.08 | `effects[1].intl_standing` (same) | -0.08 | no |
| `operation_horev` | `launch` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `operation_horev` | `launch` | `effects[0].security` | 0.02 | `effects[0].security` (same) | 0.02 | no |
+| `operation_horev` | `launch` | `unit_orders[0].golani` | go to (-8, 28) | `unit_orders[0].golani` (loaded, not run under gdd-0.3) | none (no order given) | no |
| `operation_horev` | `hold` | `effects[0].security` | -0.01 | `effects[0].security` (same) | -0.01 | no |
| `operation_yoav` | `stop_at_ceasefire` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `operation_yoav` | `stop_at_ceasefire` | `effects[0].security` | 0.025 | `effects[0].security` (same) | 0.025 | no |
+| `operation_yoav` | `stop_at_ceasefire` | `unit_orders[0].negev` | go to (-10, 35) | `unit_orders[0].negev` (loaded, not run under gdd-0.3) | none (no order given) | no |
+| `operation_yoav` | `stop_at_ceasefire` | `unit_orders[1].givati` | go to (-9, 29) | `unit_orders[1].givati` (loaded, not run under gdd-0.3) | none (no order given) | no |
| `operation_yoav` | `push_to_hebron` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `operation_yoav` | `push_to_hebron` | `effects[0].security` | 0.03 | `effects[0].security` (same) | 0.03 | no |
| `operation_yoav` | `push_to_hebron` | `effects[1].intl_standing` | -0.08 | `effects[1].intl_standing` (same) | -0.08 | no |
+| `rafah_force_pressure` | `complete_pullback` | `rejoin` | rejoins `sinai_withdrawal` | `rejoin` (same) | rejoins `sinai_withdrawal` | no |
| `reparations_claim` | `claim` | `effects[0].intl_standing` | 0 | `effects[0].intl_standing` (same) | 0 | no |
| `reparations_claim` | `claim` | `effects[1].treasury` | -1 | `effects[1].treasury` (same) | -1 | no |
| `reparations_claim` | `refuse` | `effects[0].intl_standing` | 0 | `effects[0].intl_standing` (same) | 0 | no |
@@ -160,10 +173,12 @@ first-slice availability") describes; this file changes no exclusion.
| `sinai_withdrawal` | `hold_el_arish` | `effects[1].security` | 0.025 | `effects[1].security` (same) | 0.025 | no |
| `ten_days` | `central_front` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `ten_days` | `central_front` | `effects[0].security` | 0.025 | `effects[0].security` (same) | 0.025 | no |
+| `ten_days` | `central_front` | `unit_orders[0].kiryati` | go to (-3, 24) | `unit_orders[0].kiryati` (loaded, not run under gdd-0.3) | none (no order given) | no |
+| `ten_days` | `central_front` | `unit_orders[1].carmeli` | go to (14, 6) | `unit_orders[1].carmeli` (loaded, not run under gdd-0.3) | none (no order given) | no |
| `ten_days` | `southern_front` | `set_rung` | set 5 | `set_rung` (same) | set 5 | no |
| `ten_days` | `southern_front` | `effects[0].security` | 0.015 | `effects[0].security` (same) | 0.015 | no |
-122 rows: 41 cards under gdd-0.1, 41 under gdd-0.3.
+132 rows: 41 cards under gdd-0.1, 41 under gdd-0.3.
| Excluded card | gdd-0.3 loader with only this exclusion removed |
|---|---|
diff --git a/sim/Statecraft.Sim.Tests/Gdd03EventInventoryTests.cs b/sim/Statecraft.Sim.Tests/Gdd03EventInventoryTests.cs
index 204529f4f..357d328bc 100644
--- a/sim/Statecraft.Sim.Tests/Gdd03EventInventoryTests.cs
+++ b/sim/Statecraft.Sim.Tests/Gdd03EventInventoryTests.cs
@@ -18,8 +18,9 @@ public class Gdd03EventInventoryTests
static string Num(double v) => v.ToString("G", CultureInfo.InvariantCulture);
/// <summary>Every effect field of every option, in the card's own order: set_policy (by key), set_rung, effects, then
- /// the structured grant_units, city_effects and unlock_projects, then debt_dollars (R-EFX-009, applied under gdd-0.3
- /// only). Same-target effects keep their list index.</summary>
+ /// the structured grant_units, city_effects and unlock_projects, then unit_orders (R-ENEMY-005, not run under
+ /// gdd-0.3), debt_dollars (R-EFX-009, applied under gdd-0.3 only) and rejoin (R-ALT-009). Same-target effects keep
+ /// their list index.</summary>
static IEnumerable<(string Field, string Change)> Fields(EventOption o)
{
foreach (var kv in o.SetPolicy.OrderBy(kv => kv.Key, StringComparer.Ordinal))
@@ -33,7 +34,10 @@ public class Gdd03EventInventoryTests
yield return ($"city_effects[{i}].{o.CityEffects[i].City}.{o.CityEffects[i].Field}", Num(o.CityEffects[i].Delta));
for (int i = 0; i < o.UnlockProjects.Count; i++)
yield return ($"unlock_projects[{i}]", o.UnlockProjects[i]);
+ for (int i = 0; i < o.UnitOrders.Count; i++)
+ yield return ($"unit_orders[{i}].{o.UnitOrders[i].Unit}", FormattableString.Invariant($"go to ({o.UnitOrders[i].Q}, {o.UnitOrders[i].R})"));
if (o.DebtDollars is double debt) yield return ("debt_dollars", Num(debt) + " (US$ m; Debt under gdd-0.3 only)");
+ if (o.Rejoin != "") yield return ("rejoin", $"rejoins `{o.Rejoin}`");
}
static string Render()
@@ -64,8 +68,11 @@ public class Gdd03EventInventoryTests
foreach (var (field, change) in oldFields)
{
rows++;
+ // R-ENEMY-005: a card's unit orders run under gdd-0.1 only; gdd-0.3 checks them and gives none (owner, #749).
var (target, delta) = m == null
? ("legacy rulesets only (card excluded)", "none (not in play)")
+ : field.StartsWith("unit_orders[", StringComparison.Ordinal)
+ ? ($"`{field}` (loaded, not run under gdd-0.3)", "none (no order given)")
: ($"`{field}` (same)", change);
sb.Append($"| `{e.Id}` | `{o.Id}` | `{field}` | {change} | {target} | {delta} | no |\n");
}