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: cite the farmer-only field ruling in the field fixture and test (Fixes #2491) (#2509)

Beri8d4de6aad752
diff --git a/changelog.d/2491-farmer-only-field-ruling.md b/changelog.d/2491-farmer-only-field-ruling.md
new file mode 100644
index 000000000..15f76f159
--- /dev/null
+++ b/changelog.d/2491-farmer-only-field-ruling.md
@@ -0,0 +1,4 @@
+### Changed
+- Under the gdd-0.3 rules only, the sim's field test fixture now cites the owner's 4 November 2026 ruling that only a
+ farmer may work a field, where it used to call that rule our own reading (Fixes #2491). The refusal itself is
+ unchanged. The game players play (gdd-0.1) is unchanged.
diff --git a/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs b/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs
index 65c104d2f..9cd8564b3 100644
--- a/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs
+++ b/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs
@@ -168,17 +168,19 @@ public class Gdd03FieldFixtureTests
Assert.Equal(0, f.Yield(Rules(c), Month(c, s, V1), AllHeld(c)).Fields[V1]);
}
- // Our reading, not an owner ruling: only a farmer holds a field (the rates exist only for farmer tiers, GDD.md:385;
- // tools and the self-taught route are post-MVP, #1693; a course grants the qualification, training.md:48; starting
- // farmers have the 1:2:1 tiers, GDD.md:389). A civilian with no profession, a pioneer and a craftsman are refused.
+ // R-FIELD-002: only a farmer holds a field. Owner ruling, 4 November 2026, #1694 (Q22), asked "May only a unit with
+ // the Farmer profession staff a field?", answered "yes" (issuecomment-6623124984). A civilian with no profession, a
+ // pioneer and a craftsman are refused with the state unchanged; a farmer then takes the same field.
[Fact] public void OnlyAFarmerWorksAField()
{
var c = Real();
var s = State(c, new[] { Person(InValleys, CivilianProfession.None, CivilianTier.None),
Person(InValleys, CivilianProfession.Pioneer, CivilianTier.Veteran),
- Person(InValleys, CivilianProfession.Craftsman, CivilianTier.Expert) });
+ Person(InValleys, CivilianProfession.Craftsman, CivilianTier.Expert), Person(InValleys) });
var f = new Gdd03FieldFixture(c, s, Array.Empty<Gdd03FixtureSlot>());
foreach (var id in new[] { 0, 1, 2 }) Refused(s, () => f.Staff(id, V1, israeliHeld: true), "Only a farmer");
+ Assert.Equal(Gdd03FixtureAssignmentResult.Applied, f.Staff(3, V1, israeliHeld: true));
+ Assert.Equal(V1, s.PopulationLedger.Get(3).Assignment.Target);
}
// 27M-2 ("Farming counts whole months from the month's snapshot") and R-VET-002 (the turn-start tier): a farmer
diff --git a/sim/Statecraft.Sim/Gdd03FieldFixture.cs b/sim/Statecraft.Sim/Gdd03FieldFixture.cs
index 11db0a313..0f4757f46 100644
--- a/sim/Statecraft.Sim/Gdd03FieldFixture.cs
+++ b/sim/Statecraft.Sim/Gdd03FieldFixture.cs
@@ -91,13 +91,9 @@ namespace Statecraft.Sim
// Q37 (docs/GDD.md:373): "Only an Israeli-held hex can be farmed". The sim has no hex control yet, so the
// caller states it.
if (!israeliHeld) throw new ArgumentException("Only an Israeli-held field can be farmed (Q37).");
- // Our reading, not an owner ruling: only a farmer holds a field. Its basis:
- // - #1693, owner, 3 November 2026 (issuecomment-6606032643): "Tools in the MVP: no" and "Self-taught
- // pioneers: not reachable in the MVP", so there is no self-taught route to a profession;
- // - docs/gdd/training.md:48: "Completion grants the retained qualification";
- // - docs/GDD.md:389: "Each census city's starting farmers are a quarter novice, half trained and a quarter
- // veteran" ("Amir's 1:2:1 ratio per city (Recommended)").
- // The farmer tiers are also the only field rates (docs/GDD.md:385). The ledger ties a Farmer to those tiers.
+ // R-FIELD-002: only a farmer holds a field. Owner ruling, 4 November 2026, #1694 (Q22), asked "May only a
+ // unit with the Farmer profession staff a field?", answered "yes":
+ // https://github.com/eyalgolan/statecraft-israel/issues/1694#issuecomment-6623124984
if (state.PopulationLedger.Get(id).Profession != CivilianProfession.Farmer)
throw new ArgumentException("Only a farmer can work a field.");
return work.Assign(id, field);