A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Loader: refuse a blank name_he_review on a map location (#2804 item 9) (#2870)
Berie80af6bf703a
diff --git a/changelog.d/2804-9.md b/changelog.d/2804-9.mdnew file mode 100644index 000000000..46d41c168--- /dev/null+++ b/changelog.d/2804-9.md@@ -0,0 +1,5 @@+### Fixed++- Content checks: the loader now refuses a map location whose `name_he_review` is there but blank (`""` or a bare key),+ naming `map/locations_1948.yaml` and the field (Refs #2804). A blank flag used to load as a reviewed Hebrew name.+ Rows without the line still load, and every shipped row says `agent-checked`, so the game is unchanged.diff --git a/sim/Statecraft.Sim.Tests/MapContentTests.cs b/sim/Statecraft.Sim.Tests/MapContentTests.csindex fdadd9546..64dbb99bc 100644--- a/sim/Statecraft.Sim.Tests/MapContentTests.cs+++ b/sim/Statecraft.Sim.Tests/MapContentTests.cs@@ -100,6 +100,8 @@ public class MapContentTests[InlineData(" name_he_sources: [{ url: 'https://example.org/town-a-he', checked: 2026-10-18 }]\n", "", "locations[town_a].name_he_sources", "needs a source")][InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review: checked\n", "locations[town_a].name_he_review", "not agent-checked")][InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review: checked\n", "locations[town_a].name_he_review", "an AI-assisted contributor who discloses it")] // #564+ [InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review: \"\"\n", "locations[town_a].name_he_review", "not agent-checked")] // #2804 item 9: blank is not a review+ [InlineData(" name_he: עיר א\n", " name_he: עיר א\n name_he_review:\n", "locations[town_a].name_he_review", "not agent-checked")][InlineData("q: 1", "q: 9", "locations[town_a].q", "not a land hex")][InlineData(" sources: [{ url: 'https://example.org/town-a', checked: 2026-10-18 }]\n", "", "locations[town_a].sources", "required")][InlineData(" status: draft", " starting_control: arab_forces\n status: draft", "locations[town_a].control_date", "required with starting_control")]diff --git a/sim/Statecraft.Sim/Content.cs b/sim/Statecraft.Sim/Content.csindex 65d27417c..df42223cd 100644--- a/sim/Statecraft.Sim/Content.cs+++ b/sim/Statecraft.Sim/Content.cs@@ -26,7 +26,10 @@ namespace Statecraft.Sim/// <summary>The Hebrew display name the Hebrew UI's map label shows, with its own sources (as settlements_1948.yaml's name_he).</summary>public string NameHe { get; set; } = "";/// <summary>"agent-checked" while no person has read the Hebrew name (CONTENT_POLICY section 2, rule 6); empty once reviewed.</summary>- public string NameHeReview { get; set; } = "";+ public string NameHeReview { get => nameHeReview ?? ""; set => nameHeReview = value ?? ""; }+ /// <summary>True when the file has the key at all, even blank: a blank flag is an error, not a review (#2804 item 9).</summary>+ [YamlIgnore] public bool NameHeReviewGiven => nameHeReview != null;+ string? nameHeReview;public List<Source> NameHeSources { get; set; } = new List<Source>();public string Kind { get; set; } = "";public double Lon { get; set; }diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.csindex 7baef18ae..4857ce276 100644--- a/sim/Statecraft.Sim/ContentLoader.cs+++ b/sim/Statecraft.Sim/ContentLoader.cs@@ -1969,7 +1969,7 @@ namespace Statecraft.Simvar at = $"locations[{x.Id}]";Named(lf, at + ".name", x.Name);Named(lf, at + ".name_he", x.NameHe); // the map labels it in both languages (#1008)- if (x.NameHeReview != "" && x.NameHeReview != "agent-checked")+ if (x.NameHeReviewGiven && x.NameHeReview != "agent-checked")throw new ContentException(lf, at + ".name_he_review", $"'{x.NameHeReview}' is not agent-checked (delete the line once a native speaker, or an AI-assisted contributor who discloses it, has reviewed the name, #564)");if (x.NameHeSources.Count == 0) throw new ContentException(lf, at + ".name_he_sources", "required: a Hebrew name needs a source");for (int i = 0; i < x.NameHeSources.Count; i++)