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.

gdd-0.3 events: keep budget, Food-refill and foreign-currency targets (#1718 D1) (#2128)

Eyal Golan7bf099341bb3
diff --git a/changelog.d/1718-d1-targets.md b/changelog.d/1718-d1-targets.md
new file mode 100644
index 000000000..d289ce271
--- /dev/null
+++ b/changelog.d/1718-d1-targets.md
@@ -0,0 +1,2 @@
+- GDD 0.3 events (#1718, decision D1): under the gdd-0.3 ruleset an event may move foreign currency
+ (`fx_reserves`), and the budget and Food-refill targets load as they do under gdd-0.1. Of the economy targets only Attention retires; `food_supply`, `housing` and the defeat targets stay refused under gdd-0.3.
diff --git a/docs/WRITING_EVENTS.md b/docs/WRITING_EVENTS.md
index ddeb2ba5d..b7188f6ad 100644
--- a/docs/WRITING_EVENTS.md
+++ b/docs/WRITING_EVENTS.md
@@ -525,11 +525,12 @@ sign-offs remain unchanged and available to review tools. Removing an exclusion
with approved accounting and authored values; it does not itself approve a replacement or transfer a sign-off.
There is no automatic review promotion, and all existing release gates still apply.
-R-EFX-001 rejects 0.3 writes to `food_supply`, `housing`, `fx_reserves`; `rationing`/`maabarot` policy assignments;
-and Attention, passive budgets, automatic Food refills and defeat commands even if authored as compatibility
-indicators. Reserved target spellings are `attention`/`attention_*`, `budget`/`budget_*`,
-`passive_budget`/`passive_budget_*`, `food_refill`, `automatic_food_refill`, `defeat`, `city_loss_defeat`,
-and `any_city_loss`. Other unknown targets remain errors. No new alias or conversion is provided.
+R-EFX-001 rejects 0.3 writes to `food_supply` and `housing`; `rationing`/`maabarot` policy assignments;
+and Attention and defeat commands even if authored as compatibility indicators. Reserved target spellings are
+`attention`/`attention_*`, `defeat`, `city_loss_defeat` and `any_city_loss`. Under D1 (owner, 1 November 2026)
+the passive budget, the monthly Food refill and foreign currency stay: `fx_reserves` and the `budget*`,
+`passive_budget*`, `food_refill` and `automatic_food_refill` spellings load in 0.3 as in 0.1. Other unknown
+targets remain errors. No new alias or conversion is provided.
`grant_units`, `city_effects` and `unlock_projects` await an approved 0.3 accounting contract and are rejected.
Explicit `food`, `arms`, `treasury` and approved indicator effects retain the existing application and no-gain
checks (R-EFX-002/005/007). Treasury costs still borrow (R-MONEY-003): the owner's 26 October 2026 ruling
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 23bfd9ed9..663a20ca1 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -470,7 +470,7 @@ R-NAT-004: "Low international support" (`low_intl_support`) is a situation on `i
R-EFX-001: In legacy and gdd-0.1, an option's effect may target an indicator id from `model.yaml`, `treasury` or `fx_reserves` (game money), or `food`, the national Food stock: the effect moves the stock by whole units (the delta rounds half away from zero) and the stock never drops below 0, so a cut larger than the stock applies only to what is there. Any other target is a load error naming file and field. The Arms stock becomes a target with its pool (#781): `arms` moves it the same way.
-Under gdd-0.3 (#1718, first slice landed in PR #1772 on 26 October 2026): only the active event catalogue is simulated. `content/gdd03-events.yaml` is required, read and hashed only for this identity; it explicitly excludes whole cards by id with a reason. Unknown or duplicate exclusions and stranded requirements, variants, rejoin edges or objective cards are errors. All source YAML is still parsed strictly. Eight legacy cards are excluded without changing their source bytes or reviews. There are no replacement amounts. Approved indicator writes and explicit `treasury`, `food`, `arms` effects retain finite checks, stock rounding and bounds. Writable `food_supply`, national `housing`, `fx_reserves`, Attention, passive-budget, automatic-Food-refill and city-loss/defeat command targets are rejected before compatibility-indicator acceptance. Retired `rationing` and `maabarot` policy writes are errors. Structured `grant_units`, `city_effects` and `unlock_projects` await approved population/facility accounting and are errors in this slice. Explicit Treasury costs continue borrowing with the existing cause under R-MONEY-003; the owner's 26 October 2026 ruling on #1718 overrides the proposal's no-borrowing text. No transaction refusal or new debt limit is introduced.
+Under gdd-0.3 (#1718, first slice landed in PR #1772 on 26 October 2026): only the active event catalogue is simulated. `content/gdd03-events.yaml` is required, read and hashed only for this identity; it explicitly excludes whole cards by id with a reason. Unknown or duplicate exclusions and stranded requirements, variants, rejoin edges or objective cards are errors. All source YAML is still parsed strictly. Eight legacy cards are excluded without changing their source bytes or reviews. There are no replacement amounts. Approved indicator writes and explicit `treasury`, `food`, `arms` effects retain finite checks, stock rounding and bounds. Writable `food_supply`, national `housing`, Attention and city-loss/defeat command targets are rejected before compatibility-indicator acceptance. Under decision D1 and answers Q1 and Q2 (owner, 1 November 2026, "Approve all six (Recommended)" on #1668) the passive budget, the monthly Food refill and the foreign-currency ledger stay, so `fx_reserves` and the budget and Food-refill spellings load under gdd-0.3 exactly as under gdd-0.1: `fx_reserves` moves the ledger, and a budget or refill spelling is accepted only where `model.yaml` defines it, otherwise it is an unknown target. Retired `rationing` and `maabarot` policy writes are errors. Structured `grant_units`, `city_effects` and `unlock_projects` await approved population/facility accounting and are errors in this slice. Explicit Treasury costs continue borrowing with the existing cause under R-MONEY-003; the owner's 26 October 2026 ruling on #1718 overrides the proposal's no-borrowing text. No transaction refusal or new debt limit is introduced.
R-EFX-002: In every ruleset, an option of an event tagged `holocaust`, `terror`, `massacre` or `war-casualties` cannot raise `treasury`, `fx_reserves`, `food`, `arms`, `food_supply`, `morale` or `intl_standing` (Q-EFX-2, decided 15 October 2026: the no-gain rule covers all five resources, with the legacy indicators standing for Food, Social cohesion and International Support; `food` is Food's own target, and Arms joins the rule with its pool, #781). A cost stays allowed. Under gdd-0.3, R-EFX-001 first rejects retired compatibility targets; the remaining Money, Food, Arms and indicator effects keep these no-gain checks. Availability changes do not reset sensitivity tags, review status or human sign-off, and no alias grants an exception (R-EFX-005/007).
diff --git a/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs b/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs
index b8494a21f..98ad3b736 100644
--- a/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs
+++ b/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs
@@ -34,11 +34,8 @@ public class Gdd03EventRulesTests
indicator ? f => f["model.yaml"] = Fixture.Files["model.yaml"].Replace("indicators:", $"indicators:\n - {{ id: {target}, name: Fixture, base: 0.5 }}") : null);
[Fact] public void Gdd03RejectsAttentionEffectEvenIfIndicatorExists() => Effect("attention", true);
- [Fact] public void Gdd03RejectsPassiveBudgetEffect() => Effect("budget", true);
- [Fact] public void Gdd03RejectsAutomaticFoodRefillEffect() => Effect("food_refill", true);
[Fact] public void Gdd03RejectsFoodSupplyWrite() => Effect("food_supply");
[Fact] public void Gdd03RejectsHousingCompatibilityWrite() => Effect("housing");
- [Fact] public void Gdd03RejectsFxEffectWithoutApprovedLedger() => Effect("fx_reserves");
[Fact] public void Gdd03RejectsRetiredRationingPolicy() => Reject(" set_policy: { rationing: 0.5 }\n", "set_policy.rationing");
[Fact] public void Gdd03RejectsRetiredMaabarotPolicy() => Reject(" set_policy: { maabarot: 0.5 }\n", "set_policy.maabarot");
[Fact] public void Gdd03RejectsCityLossDefeatEffect() => Effect("city_loss_defeat", true);
@@ -49,13 +46,59 @@ public class Gdd03EventRulesTests
[Theory]
[InlineData("attention_per_turn")]
- [InlineData("budget_finance_minister")]
- [InlineData("passive_budget")]
- [InlineData("automatic_food_refill")]
[InlineData("defeat")]
[InlineData("any_city_loss")]
public void CompatibilityIndicatorsCannotEnableCommandTargets(string target) => Effect(target, true);
+ // R-EFX-001, #1718 D1/Q1/Q2 (owner, 1 November 2026, "Approve all six (Recommended)"): main's economy stays (passive
+ // budget, monthly Food refill, the foreign-currency ledger), so under gdd-0.3 only Attention retires. These targets
+ // load under gdd-0.3 exactly as under gdd-0.1: a budget or refill spelling is accepted when model.yaml defines it.
+ [Theory]
+ [InlineData("budget", true)]
+ [InlineData("budget_finance_minister", true)]
+ [InlineData("passive_budget", true)]
+ [InlineData("passive_budget_defence", true)]
+ [InlineData("food_refill", true)]
+ [InlineData("automatic_food_refill", true)]
+ [InlineData("fx_reserves", false)]
+ public void Gdd03KeepsD1BudgetRefillAndForeignCurrencyTargets(string target, bool indicator)
+ {
+ foreach (var modern in new[] { true, false })
+ {
+ var f = Files(modern);
+ if (indicator) f["model.yaml"] = Fixture.Files["model.yaml"].Replace("indicators:", $"indicators:\n - {{ id: {target}, name: Fixture, base: 0.5 }}");
+ var c = Load(f, Card(option: $" effects: [{{ target: {target}, delta: -0.1 }}]\n"));
+ Assert.Equal(target, c.Events.Single().Options.Single().Effects.Single().Target);
+ }
+ }
+ // R-EFX-001: keeping D1's targets adds no alias. A budget or refill spelling model.yaml does not define is still an
+ // unknown target under gdd-0.3, as under gdd-0.1.
+ [Theory]
+ [InlineData("passive_budget")]
+ [InlineData("food_refill")]
+ public void Gdd03KeptD1TargetsStillNeedARealTarget(string target)
+ {
+ foreach (var modern in new[] { true, false })
+ {
+ var ex = Assert.Throws<ContentException>(() => Load(Files(modern), Card(option: $" effects: [{{ target: {target}, delta: -0.1 }}]\n")));
+ Assert.Equal("events[probe].options[ok].effects." + target, ex.Field);
+ Assert.EndsWith(": unknown target", ex.Message);
+ }
+ }
+ // R-EFX-001, #1718 Q2 (owner, 1 November 2026): foreign currency stays the internal ledger, so a gdd-0.3 card moves it once.
+ [Fact]
+ public void Gdd03ForeignCurrencyEffectMovesTheLedgerOnce()
+ {
+ var c = Load(Files(), Card(option: " effects: [{ target: fx_reserves, delta: -3 }]\n").Replace("from:", "anchor: hard\nfrom:"));
+ var s = Simulation.NewGame(c, 1, Mode.Historical); s.FxReserves = 10;
+ var why = new List<Cause>();
+ Assert.Null(EventSystem.Choose(c, s, "probe", "ok", why));
+ Assert.Equal(7, s.FxReserves);
+ Assert.Contains(why, w => w.Target == "fx_reserves" && w.Delta == -3);
+ Assert.NotNull(EventSystem.Choose(c, s, "probe", "ok", why));
+ Assert.Equal(7, s.FxReserves);
+ }
+
[Theory]
[InlineData("food_supply")]
[InlineData("housing")]
@@ -201,7 +244,7 @@ public class Gdd03EventRulesTests
[InlineData("war-casualties")] [InlineData("displacement")]
public void SensitivePositiveGainsStillFailAndNegativeCostsRemainAllowed(string tag)
{
- foreach (var target in new[] { "treasury", "food", "arms", "morale", "intl_standing" })
+ foreach (var target in new[] { "treasury", "fx_reserves", "food", "arms", "morale", "intl_standing" })
{
string Record(int delta) => Card(option: FormattableString.Invariant($" effects: [{{ target: {target}, delta: {delta} }}]\n")) + $"tags: [{tag}]\n";
var ex = Assert.Throws<ContentException>(() => Load(Files(), Record(1)));
diff --git a/sim/Statecraft.Sim/EventRules.cs b/sim/Statecraft.Sim/EventRules.cs
index d423a0931..cf95518f2 100644
--- a/sim/Statecraft.Sim/EventRules.cs
+++ b/sim/Statecraft.Sim/EventRules.cs
@@ -108,12 +108,11 @@ namespace Statecraft.Sim
CheckObjectives(c);
}
+ // #1718 D1/Q1/Q2 (owner, 1 November 2026): the passive budget, the monthly Food refill and the foreign-currency
+ // ledger stay, so their targets load as under gdd-0.1; of the economy's command targets only Attention retires.
static bool RetiredGdd03Target(string target) =>
- target == "food_supply" || target == "housing" || target == "fx_reserves" ||
+ target == "food_supply" || target == "housing" ||
target == "attention" || target.StartsWith("attention_", StringComparison.Ordinal) ||
- target == "budget" || target.StartsWith("budget_", StringComparison.Ordinal) ||
- target == "passive_budget" || target.StartsWith("passive_budget_", StringComparison.Ordinal) ||
- target == "food_refill" || target == "automatic_food_refill" ||
target == "defeat" || target == "city_loss_defeat" || target == "any_city_loss";
/// <summary>The options' structured effects (D-H2): R-EFX-006 refuses a target that does not exist at load, so Resolve