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: Jerusalem's Schneller start camp beside Tel Aviv's Tel HaShomer (Refs #1719) (#2393)

Eyal Golanb5d2be7e631e
diff --git a/changelog.d/1719.md b/changelog.d/1719.md
new file mode 100644
index 000000000..dddff8b5a
--- /dev/null
+++ b/changelog.d/1719.md
@@ -0,0 +1 @@
+- Under the `gdd-0.3` rules only, Jerusalem starts with a military camp at Schneller alongside Tel Aviv's Tel HaShomer camp; the game players play (`gdd-0.1`) is unchanged.
diff --git a/content/gdd03-start.yaml b/content/gdd03-start.yaml
new file mode 100644
index 000000000..0a60c2545
--- /dev/null
+++ b/content/gdd03-start.yaml
@@ -0,0 +1,10 @@
+# yaml-language-server: $schema=./schema/gdd03-start.schema.json
+# R-CAMP-003.
+# Owner ruling, 3 November 2026: "Tel Aviv's camp is Tel HaShomer; add Jerusalem" (recorded on #1719, issuecomment-6602125415).
+# research_notes/gdd-phase-4-sourcing.md: Schneller, 17 March 1948: the British evacuated the camp and handed it to
+# the Etzioni Brigade, the Haganah's Jerusalem district force; it was then called "permanent camp no. 1" and served
+# as an army base. The source note separately records its training role.
+ruleset: gdd-0.3
+military_camps:
+ - { city: tel_aviv, location: military_tel_litvinsky } # Existing cities.yaml camp; the ruling names it Tel HaShomer.
+ - { city: jerusalem, location: military_schneller }
diff --git a/content/schema/gdd03-start.schema.json b/content/schema/gdd03-start.schema.json
new file mode 100644
index 000000000..386b256ee
--- /dev/null
+++ b/content/schema/gdd03-start.schema.json
@@ -0,0 +1,39 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "GDD 0.3 start facilities",
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "ruleset",
+ "military_camps"
+ ],
+ "properties": {
+ "ruleset": {
+ "type": "string",
+ "enum": [
+ "gdd-0.3"
+ ]
+ },
+ "military_camps": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "city",
+ "location"
+ ],
+ "properties": {
+ "city": {
+ "type": "string",
+ "pattern": "^[a-z][a-z0-9_]*$"
+ },
+ "location": {
+ "type": "string",
+ "pattern": "^[a-z][a-z0-9_]*$"
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/docs/gdd/training.md b/docs/gdd/training.md
index 36535cf52..7efe7f5e2 100644
--- a/docs/gdd/training.md
+++ b/docs/gdd/training.md
@@ -91,7 +91,7 @@ Cancelled retained courses award no unfinished qualification. A course whose slo
- The start camps of Jerusalem (Schneller) and Petah Tikva (Tel HaShomer), which the owner ruled the cities already have (#375); this PR keeps the start facilities as they are. Training capacity, recruits as units and combat (Phase 5), veterans, craftsmen (D-D4), and any display (PRs 7 and 8).
Camp growth into permanent towns, soldier training in civilian centres and unsourced opening dates. The retained qualification rule permits switching back to qualified civilian roles without retraining.
-**Then decided (owner, 3 Nov 2026, #1719): "Tel Aviv's camp is Tel HaShomer; add Jerusalem" ([recorded on #1719](https://github.com/eyalgolan/statecraft-israel/issues/1719#issuecomment-6602125415)):** the start military camp in Tel Aviv stands for Tel HaShomer, and Jerusalem gets a start camp too. Not built yet: `content/cities.yaml` gives only Tel Aviv a start `military_camp`.
+**Then decided (owner, 3 Nov 2026, #1719): "Tel Aviv's camp is Tel HaShomer; add Jerusalem" ([recorded on #1719](https://github.com/eyalgolan/statecraft-israel/issues/1719#issuecomment-6602125415)):** the start military camp in Tel Aviv stands for Tel HaShomer, and Jerusalem gets a start camp too. Under `gdd-0.3` the optional `content/gdd03-start.yaml` adds Jerusalem's camp at `military_schneller` (R-CAMP-003); `gdd-0.1` keeps Tel Aviv's camp only.
## Sources
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 282fe86c6..a20a21b60 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -162,9 +162,9 @@ For R-PROJ-001 and R-PROJ-003, the preceding rules and the IL 0m upkeep of R-MON
## Training
-Training is step 4 of the turn in the approved order (§2.3, D-A6): it runs before production. One military camp and one Hakhshara exist in Tel Aviv at the start, a labelled design assumption (D-D5); pioneers build more at camp sites (R-CAMP-001). Scope note: this is the live `gdd-0.1` start. Under `gdd-0.3`, 27M-25 says: "Schneller and Tel HaShomer operate from the start, the other military camps are build sites, every camp uses `military.camp_capacity` 5, and the reception site is Kiryat Shmuel, Haifa".
+Training is step 4 of the turn in the approved order (§2.3, D-A6): it runs before production. One military camp and one Hakhshara exist in Tel Aviv at the start, a labelled design assumption (D-D5); pioneers build more at camp sites (R-CAMP-001). Scope note: this is the live `gdd-0.1` start. Under `gdd-0.3`, 27M-25 says: "Schneller and Tel HaShomer operate from the start, the other military camps are build sites, every camp uses `military.camp_capacity` 5, and the reception site is Kiryat Shmuel, Haifa". R-CAMP-003 defines the `gdd-0.3` start camps.
-R-TRAIN-001: `Train(city, track, n)` takes `n` of the city's civilians without a job (not a staffed arms workshop's worker, R-ARMS-005, or a builder, R-CITY-011) into a cohort that trains as `track` (a unit type with a `facility`: `recruit`, `artillery` and `armoured_car` in a military camp (R-UNIT-008), `halutz` in a Hakhshara, `craftsman` at industry, R-CRAFT-001) for the type's `training_turns`, counting the turn it was ordered in. The Treasury pays `n * training_cost` at once. When the Treasury holds less, the shortfall is borrowed, as for map actions: it is added to the debt and the Treasury stops at 0 (owner decision "Allow borrowing", 15 October 2026). The trainees leave the civilians at once; the cohort takes the next id, which units share. It is refused, with the state unchanged and the Attention refunded, when the city or track is unknown, `n` is below 1, the city lacks the facility, or it has fewer civilians without a job. A city has a facility when `cities.yaml` gives it one at the start or a camp site of that kind built for it is in the state (R-CAMP-001). The legacy loop refuses it before charging Attention. `Reinforce` (R-TRAIN-004) starts a cohort by the same rules, aimed at a unit. A queued `ReassignCraftsmen` or `ReassignPioneers` (R-QUAL-004, R-QUAL-005) takes its civilians without a job as a queued `Train` does (counted in full, so the orders are accepted in any order), in `Training.Ordered` and `Training.Available` (#1548; owner, 24 October 2026: "Yes, count them", https://github.com/eyalgolan/statecraft-israel/issues/1511#issuecomment-6378360813).
+R-TRAIN-001: `Train(city, track, n)` takes `n` of the city's civilians without a job (not a staffed arms workshop's worker, R-ARMS-005, or a builder, R-CITY-011) into a cohort that trains as `track` (a unit type with a `facility`: `recruit`, `artillery` and `armoured_car` in a military camp (R-UNIT-008), `halutz` in a Hakhshara, `craftsman` at industry, R-CRAFT-001) for the type's `training_turns`, counting the turn it was ordered in. The Treasury pays `n * training_cost` at once. When the Treasury holds less, the shortfall is borrowed, as for map actions: it is added to the debt and the Treasury stops at 0 (owner decision "Allow borrowing", 15 October 2026). The trainees leave the civilians at once; the cohort takes the next id, which units share. It is refused, with the state unchanged and the Attention refunded, when the city or track is unknown, `n` is below 1, the city lacks the facility, or it has fewer civilians without a job. A city has a facility when `cities.yaml` gives it one at the start, `gdd03-start.yaml` gives it one under R-CAMP-003, or a camp site of that kind built for it is in the state (R-CAMP-001). The legacy loop refuses it before charging Attention. `Reinforce` (R-TRAIN-004) starts a cohort by the same rules, aimed at a unit. A queued `ReassignCraftsmen` or `ReassignPioneers` (R-QUAL-004, R-QUAL-005) takes its civilians without a job as a queued `Train` does (counted in full, so the orders are accepted in any order), in `Training.Ordered` and `Training.Available` (#1548; owner, 24 October 2026: "Yes, count them", https://github.com/eyalgolan/statecraft-israel/issues/1511#issuecomment-6378360813).
R-TRAIN-002: `CancelTraining(cohort)` returns the cohort's people to its city as civilians without a job and refunds none of the Money paid (D-A3); a recruit cohort's Arms go back to the pool (R-ARMS-003). A cohort that does not exist, or has finished, is refused with the state unchanged. Replacements (R-TRAIN-004) cancel the same way.
@@ -240,6 +240,8 @@ R-CAMP-001: `PioneerWork(unit, build_camp, site)` builds a training camp at a si
R-CAMP-002: A camp site's `city` is the MVP city (`cities.yaml`) nearest to the site by hex distance (Q-CAMP-1). When several are equally near, it is the one of them nearest by straight-line km from the point the site's hex comes from to the city's point in `map/settlements_1948.yaml` (owner, 17 October 2026, #927). Tzrifin's hex is one hex from Tel Aviv, Petah Tikva and Rishon LeZion (4.4 km hexes, #1183), so it serves Rishon LeZion, about 3.9 km away.
+R-CAMP-003: Under `gdd-0.3` only, Tel Aviv starts with the existing Tel HaShomer camp and Jerusalem starts with Schneller. The owner's 3 November 2026 ruling is "Tel Aviv's camp is Tel HaShomer; add Jerusalem" ([recorded on #1719](https://github.com/eyalgolan/statecraft-israel/issues/1719#issuecomment-6602125415)). `gdd03-start.yaml` names the map location each start camp stands for: `military_tel_litvinsky` for Tel Aviv and `military_schneller` for Jerusalem. The loader keeps no link from a city to its location: only the city's `military_camp` facility flag is kept, added when the city lacks it, and Training checks that flag (R-TRAIN-001). These choices follow the ruling, not R-CAMP-002. When `content/gdd03-start.yaml` is present, the loader requires unique cities and unique military camp locations, each location must be an existing `military_camp` map location, and the effective number of cities with camps must equal `start.military_camps`. The file is optional, so synthetic `gdd-0.3` fixtures load without it. The shipped file is pinned by tests: deleting it fails 4 tests, `Gdd03StartFacilitiesTests.ShippedGdd03StartHasTheCataloguedNumberOfCampCities`, `Gdd03StartFacilitiesTests.Gdd03ReadsOverlayBytesIntoItsHash` and the two `SchemaTests` cases for `gdd03-start.yaml` (`RealContentPassesItsSchema` and `RealContentNamesItsSchemaInTheFirstLine`). Under `gdd-0.1`, the overlay is not read and Tel Aviv keeps the one start camp of D-D5.
+
## Military units
Phase 5 PR 2 (#741) introduced the military record and types. PR 3 (#742, #1130) adds recruit formations, service and Money upkeep. Phase 5 PR 4 (#743) adds the Arab forces' types and the sourced starting forces (R-UNIT-006).
diff --git a/sim/Statecraft.Sim.Tests/Gdd03StartFacilitiesTests.cs b/sim/Statecraft.Sim.Tests/Gdd03StartFacilitiesTests.cs
new file mode 100644
index 000000000..5d947c6f1
--- /dev/null
+++ b/sim/Statecraft.Sim.Tests/Gdd03StartFacilitiesTests.cs
@@ -0,0 +1,123 @@
+using Statecraft.Sim;
+
+// R-CAMP-003: the optional overlay changes only exact gdd-0.3; it names the map location each shipped start camp stands for,
+// and only the city's military_camp facility flag is kept.
+public class Gdd03StartFacilitiesTests
+{
+ const string OverlayFile = "gdd03-start.yaml";
+
+ static string ShippedOverlay() => File.ReadAllText(Path.Combine(RealContentTests.ContentRoot(), OverlayFile));
+
+ static Content LoadShipped(bool modern, string? overlay, Action<string>? onRead = null)
+ {
+ var root = RealContentTests.ContentRoot();
+ return ContentLoader.Load(rel =>
+ {
+ onRead?.Invoke(rel);
+ if (rel == OverlayFile) return overlay;
+ var path = Path.Combine(root, rel);
+ var text = File.Exists(path) ? File.ReadAllText(path) : null;
+ return modern && rel == "eras.yaml" ? text!.Replace("loop: gdd", "loop: gdd, ruleset: gdd-0.3") : text;
+ }, Directory.GetFiles(Path.Combine(root, "events"), "*.yaml").Select(p => "events/" + Path.GetFileName(p)));
+ }
+
+ [Fact]
+ public void ShippedGdd03StartHasTheCataloguedNumberOfCampCities()
+ {
+ var path = Path.Combine(RealContentTests.ContentRoot(), OverlayFile);
+ Assert.True(File.Exists(path), OverlayFile + " must be shipped");
+ var reads = new List<string>();
+ var c = LoadShipped(true, ShippedOverlay(), reads.Add);
+ Assert.Contains(OverlayFile, reads);
+ Assert.Equal(Gdd03Military.Scalar(c, "start.military_camps"),
+ c.Cities.Count(x => x.Facilities.Contains("military_camp")));
+ Assert.Equal(new[] { "jerusalem", "tel_aviv" },
+ c.Cities.Where(x => x.Facilities.Contains("military_camp")).Select(x => x.Id).OrderBy(x => x, StringComparer.Ordinal));
+ Assert.Equal(new[] { "military_camp", "hakhshara" }, c.Cities.Single(x => x.Id == "tel_aviv").Facilities);
+ var state = Simulation.NewGame(c, 1, Mode.Historical);
+ Assert.True(Training.HasFacility(c, state, "tel_aviv", "military_camp"));
+ Assert.True(Training.HasFacility(c, state, "jerusalem", "military_camp"));
+ }
+
+ [Fact]
+ public void AbsentOverlayLeavesGdd03CitiesUnchanged()
+ {
+ var reads = new List<string>();
+ var c = LoadShipped(true, null, reads.Add);
+ Assert.Equal(SaveGame.Gdd03Ruleset, c.Ruleset);
+ Assert.Contains(OverlayFile, reads); // requested under gdd-0.3; the reader returned null, so the absent path ran
+ Assert.Equal(new[] { "tel_aviv" }, c.Cities.Where(x => x.Facilities.Contains("military_camp")).Select(x => x.Id));
+ Assert.Equal(new[] { "military_camp", "hakhshara" }, c.Cities.Single(x => x.Id == "tel_aviv").Facilities);
+ Assert.False(Training.HasFacility(c, Simulation.NewGame(c, 1, Mode.Historical), "jerusalem", "military_camp"));
+ }
+
+ [Fact]
+ public void SyntheticGdd03FixtureLoadsWithoutTheOptionalOverlay()
+ {
+ var files = Fixture.Gdd();
+ files["eras.yaml"] = files["eras.yaml"].Replace("loop: gdd", "loop: gdd, ruleset: gdd-0.3");
+ files[Gdd03BalanceCatalogue.FileName] = File.ReadAllText(
+ Path.Combine(RealContentTests.ContentRoot(), Gdd03BalanceCatalogue.FileName));
+ var c = ContentLoader.Load(Fixture.Write(files));
+ var city = Assert.Single(c.Cities);
+ Assert.Equal("town_a", city.Id);
+ Assert.Equal(new[] { "military_camp", "hakhshara" }, city.Facilities);
+ }
+
+ [Fact]
+ public void Gdd03ReadsOverlayBytesIntoItsHash()
+ {
+ var text = ShippedOverlay();
+ var original = LoadShipped(true, text);
+ var changed = LoadShipped(true, text + "# hash input changed\n");
+ Assert.NotEqual(original.Hash, changed.Hash);
+ }
+
+ [Fact]
+ public void Gdd01NeverReadsOverlayAndKeepsManifestGoldens()
+ {
+ var reads = new List<string>();
+ var poison = LoadShipped(false, "this is deliberately invalid YAML: [", reads.Add);
+ Assert.DoesNotContain(OverlayFile, reads);
+ var absent = LoadShipped(false, null);
+ Assert.Equal(absent.Hash, poison.Hash);
+ Assert.Equal(Simulation.NewGame(absent, 1, Mode.Historical).Describe(),
+ Simulation.NewGame(poison, 1, Mode.Historical).Describe());
+ var run1950 = GoldenRun.Play(poison, GoldenRun.Until1950);
+ var run1952 = GoldenRun.Play(poison, GoldenRun.Until1952);
+ Assert.Equal(GoldenManifest.Expected("hash1950"), run1950.Hash());
+ Assert.Equal(GoldenManifest.Expected("hash1952"), run1952.Hash());
+ Assert.Equal(GoldenSnapshot.Read("hash1950"), run1950.Describe());
+ Assert.Equal(GoldenSnapshot.Read("hash1952"), run1952.Describe());
+ }
+
+ public static IEnumerable<object[]> InvalidOverlays()
+ {
+ yield return Case("ruleset: gdd-0.1\nmilitary_camps: []\n", "ruleset", "must be gdd-0.3");
+ yield return Case("ruleset: gdd-0.3\n", "military_camps", "must be a list");
+ yield return Case(One("missing", "military_schneller"), "military_camps[0].city", "must name an existing city");
+ yield return Case(Two(("tel_aviv", "military_tel_litvinsky"), ("tel_aviv", "military_schneller")),
+ "military_camps[1].city", "duplicate city");
+ yield return Case(One("jerusalem", "missing"), "military_camps[0].location", "must name an existing map location");
+ yield return Case(Two(("tel_aviv", "military_tel_litvinsky"), ("jerusalem", "military_tel_litvinsky")),
+ "military_camps[1].location", "duplicate location");
+ yield return Case(One("jerusalem", "negba"), "military_camps[0].location", "must name a military_camp map location");
+ yield return Case(One("tel_aviv", "military_tel_litvinsky"), "military_camps",
+ "effective military-camp city count 1 must equal start.military_camps 2");
+ }
+
+ static object[] Case(string yaml, string field, string reason) => new object[] { yaml, field, reason };
+ static string One(string city, string location) => Two((city, location));
+ static string Two(params (string City, string Location)[] rows) =>
+ "ruleset: gdd-0.3\nmilitary_camps:\n" + string.Concat(rows.Select(x => $" - {{ city: {x.City}, location: {x.Location} }}\n"));
+
+ [Theory]
+ [MemberData(nameof(InvalidOverlays))]
+ public void InvalidOverlayFailsWithItsExactFieldAndReason(string yaml, string field, string reason)
+ {
+ var ex = Assert.Throws<ContentException>(() => LoadShipped(true, yaml));
+ Assert.Equal(OverlayFile, ex.File);
+ Assert.Equal(field, ex.Field);
+ Assert.Equal($"{OverlayFile}: {field}: {reason}", ex.Message);
+ }
+}
diff --git a/sim/Statecraft.Sim.Tests/SchemaTests.cs b/sim/Statecraft.Sim.Tests/SchemaTests.cs
index 4353e3b0c..959fdce3f 100644
--- a/sim/Statecraft.Sim.Tests/SchemaTests.cs
+++ b/sim/Statecraft.Sim.Tests/SchemaTests.cs
@@ -143,6 +143,7 @@ public class SchemaTests
public static IEnumerable<object[]> RealFiles()
{
yield return new object[] { "gdd03-events.yaml", "gdd03-events.schema.json" };
+ yield return new object[] { "gdd03-start.yaml", "gdd03-start.schema.json" };
yield return new object[] { "people.yaml", "people.schema.json" };
yield return new object[] { "offices.yaml", "offices.schema.json" };
yield return new object[] { "parties.yaml", "parties.schema.json" };
@@ -198,6 +199,8 @@ public class SchemaTests
yield return new object[] { "map-overrides.schema.json", "/properties/locations/items", typeof(LocationOverride) };
yield return new object[] { "gdd03-events.schema.json", "", typeof(ContentLoader).GetNestedType("Gdd03EventsFile", BindingFlags.NonPublic)! };
yield return new object[] { "gdd03-events.schema.json", "/properties/exclusions/items", typeof(ContentLoader).GetNestedType("EventExclusion", BindingFlags.NonPublic)! };
+ yield return new object[] { "gdd03-start.schema.json", "", typeof(ContentLoader).GetNestedType("Gdd03StartFile", BindingFlags.NonPublic)! };
+ yield return new object[] { "gdd03-start.schema.json", "/properties/military_camps/items", typeof(ContentLoader).GetNestedType("StartCampBinding", BindingFlags.NonPublic)! };
yield return new object[] { "event.schema.json", "", typeof(GameEvent) };
yield return new object[] { "event.schema.json", "/properties/conditions/items", typeof(EventCondition) };
yield return new object[] { "event.schema.json", "/definitions/requirement", typeof(EventRequirement) };
diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.cs
index a08fad1b1..f891e8795 100644
--- a/sim/Statecraft.Sim/ContentLoader.cs
+++ b/sim/Statecraft.Sim/ContentLoader.cs
@@ -62,6 +62,16 @@ namespace Statecraft.Sim
public string Ruleset { get; set; } = "";
public List<EventExclusion>? Exclusions { get; set; }
}
+ sealed class Gdd03StartFile
+ {
+ public string Ruleset { get; set; } = "";
+ public List<StartCampBinding>? MilitaryCamps { get; set; }
+ }
+ sealed class StartCampBinding
+ {
+ public string City { get; set; } = "";
+ public string Location { get; set; } = "";
+ }
sealed class EventExclusion
{
public string Id { get; set; } = "";
@@ -453,6 +463,7 @@ namespace Statecraft.Sim
c.ProjectKinds = kinds.Where(k => k.Rulesets.Count == 0 || k.Rulesets.Contains(c.Ruleset)).ToList();
c.ProjectKindsOfOtherRulesets = kinds.Except(c.ProjectKinds).ToList();
c.Corridors = Read<CorridorsFile>(readFile, "corridors.yaml").Corridors; // sourced, hexes derived (Phase 4 PR 2)
+ if (c.Ruleset == SaveGame.Gdd03Ruleset) ApplyGdd03Start(readFile, c);
ValidateGdd(c, settlementIds);
Gdd03Military.Validate(c); // after effective map overrides and role validation, only exact gdd-0.3
// The sourced starting forces (Phase 5 PR 4, R-UNIT-006), once the types and people_per_unit are known valid.
@@ -474,6 +485,42 @@ namespace Statecraft.Sim
return c;
}
+ // R-CAMP-003: exact-gdd-0.3 start bindings add facilities to the shared city catalogue without changing gdd-0.1.
+ // The optional file keeps synthetic gdd-0.3 fixtures independent of the shipped map and city ids.
+ static void ApplyGdd03Start(Func<string, string?> readFile, Content c)
+ {
+ const string file = "gdd03-start.yaml";
+ var start = ReadOptional<Gdd03StartFile>(readFile, file);
+ if (start == null) return;
+ if (start.Ruleset != SaveGame.Gdd03Ruleset)
+ throw new ContentException(file, "ruleset", "must be gdd-0.3");
+ if (start.MilitaryCamps == null)
+ throw new ContentException(file, "military_camps", "required: an explicit list");
+
+ var cities = new HashSet<string>(StringComparer.Ordinal);
+ var locations = new HashSet<string>(StringComparer.Ordinal);
+ for (int i = 0; i < start.MilitaryCamps.Count; i++)
+ {
+ var row = start.MilitaryCamps[i];
+ var at = FormattableString.Invariant($"military_camps[{i}]");
+ var city = c.Cities.FirstOrDefault(x => x.Id == row.City);
+ if (city == null) throw new ContentException(file, at + ".city", "must name an existing city");
+ if (!cities.Add(row.City)) throw new ContentException(file, at + ".city", "duplicate city");
+ var location = c.MapLocations.FirstOrDefault(x => x.Id == row.Location);
+ if (location == null) throw new ContentException(file, at + ".location", "must name an existing map location");
+ if (location.Kind != "military_camp")
+ throw new ContentException(file, at + ".location", "must name a military_camp map location");
+ if (!locations.Add(row.Location)) throw new ContentException(file, at + ".location", "duplicate location");
+ if (!city.Facilities.Contains("military_camp")) city.Facilities.Add("military_camp");
+ }
+
+ var actual = c.Cities.Count(x => x.Facilities.Contains("military_camp"));
+ var expected = Gdd03Military.Scalar(c, "start.military_camps");
+ if (actual != expected)
+ throw new ContentException(file, "military_camps",
+ FormattableString.Invariant($"effective military-camp city count {actual} must equal start.military_camps {expected}"));
+ }
+
// R-EFX-001: this file is deliberately never read by legacy/gdd-0.1, including for hashing.
// Parse all event sources first: exclusion is availability, not permission to hide malformed YAML.
static void ApplyGdd03EventExclusions(Func<string, string?> readFile, Content c)