A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Release gate: a field sourced after a starting row's person check counts as unchecked (Fixes #2722) (#2746)
Beribd5e88e7431b
diff --git a/changelog.d/2722-checked-on.md b/changelog.d/2722-checked-on.mdnew file mode 100644index 000000000..07d83a3d6--- /dev/null+++ b/changelog.d/2722-checked-on.md@@ -0,0 +1,5 @@+### Changed++- A shareable build now also waits for a person's check of a starting unit's field that was sourced after the unit's+ own check: each fact-checked row in `units_1948.yaml` records the day of that check (`checked_on`), and the release+ gate names the row and the field. Today that holds back the order targets of six brigades (#2722).diff --git a/content/map/units_1948.yaml b/content/map/units_1948.yamlindex 258a4c8c0..b2ac26334 100644--- a/content/map/units_1948.yaml+++ b/content/map/units_1948.yaml@@ -81,6 +81,11 @@# has checked yet (above; #1240, #1270). fact-checked = a person has checked the row against its sources; every row a# new game starts a unit from must be, before a shareable build (the release gate; Q-START-3). A comment above it# links the check.+# checked_on: a fact-checked row's day of its person check, 'YYYY-MM-DD', quoted, from the check the comment above status+# links; the sim refuses a fact-checked row without it. The release gate counts a field of the row whose sources were+# checked after that day (its strength, an anchor or an order target) as unchecked, and names it (#2722, owner,+# option (c), 5 November 2026). A person who checks the new field moves checked_on, and the comment's link, to the day of+# that check; agents never move it (owner, 15 October 2026, #375; as reviewed_by).# reviewed_by and reviewed_on (both or neither, beside status): a person's sign-off, their GitHub handle and the day; only# that person writes them (owner, 15 October 2026, #375; docs/HISTORIAN_REVIEW.md), or an AI-assisted contributor whose# pull request discloses the AI help and names the check, who may add or re-sign them but never remove them (owner,@@ -111,6 +116,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 4095as_of: '1948-05-15'@@ -175,6 +181,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 2289as_of: '1948-05-15'@@ -291,6 +298,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 3588as_of: '1948-05-15'@@ -347,6 +355,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 2504as_of: '1948-05-15'@@ -421,6 +430,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 3229as_of: '1948-05-15'@@ -508,6 +518,7 @@ units:wikipedia_only: false# The owner person-checked this row (#1241): https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840status: fact-checked+ checked_on: '2026-10-22'strength:value: 3166as_of: '1948-05-15'@@ -570,6 +581,7 @@ units:wikipedia_only: false# The owner person-checked this row (#1241): https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840status: fact-checked+ checked_on: '2026-10-22'to_verify:- "The strength is a secondary-source figure (en.wiki, citing Morris, 1948, pp. 221-224, which was not opened), allowed until a primary source turns up (owner, 20 October 2026, on #743). Replace it from a primary source."# R-UNIT-009 (#1241, owner, 21 October 2026, answer 1(a)): the brigade has no sourced place or single strength on 15 May, so it arrives on its first anchor's day with its first sourced strength.@@ -742,6 +754,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 1300as_of: '1948-05-15'@@ -889,6 +902,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 1300as_of: '1948-05-15'@@ -1160,6 +1174,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 10000as_of: '1948-05-15'@@ -1255,6 +1270,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'strength:value: 5000as_of: '1948-05-15'@@ -1336,6 +1352,7 @@ units:# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250# The owner person-checked the anchor from 8 July 1948 (#1270, S1) on 3 November 2026: https://github.com/eyalgolan/statecraft-israel/pull/2180#issuecomment-6606070287status: fact-checked+ checked_on: '2026-11-03'to_verify:- "The 15 May strength rests on two full-text search snippets that give the same figures, Glubb (1957) and Rogan and Shlaim (2007, chapter not identified), and the second reproduces Glubb's figures and total (review of #860), so the figure rests on Glubb alone, merged as data only (owner, 17 October 2026, on #860). Check both printed pages (the note, section 9)."strength:@@ -1421,6 +1438,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'to_verify:- "The 15 May strength rests on two full-text search snippets that give the same figures, Glubb (1957) and Rogan and Shlaim (2007, chapter not identified), and the second reproduces Glubb's figures and total (review of #860), so the figure rests on Glubb alone, merged as data only (owner, 17 October 2026, on #860). Check both printed pages (the note, section 9)."- "The 15 May window holds the game's first day only, by the owner's decision (17 October 2026, on #860), though Dupuy p. 51 has the force at Gesher on 16 and 17 May too and the diary of 16 May has it attacking farms in the Jordan Valley."@@ -1563,6 +1581,7 @@ units:wikipedia_only: false# The owner person-checked this row on 21 October 2026 (#1240): https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250status: fact-checked+ checked_on: '2026-10-21'to_verify:- "al-Malikiyya on 15 May follows the owner's ruling for the later research (#226, ruling 2), which he.wiki reports; Lorch has a Lebanese counter-attack there. The anchor rests on he.wiki until the later research (the Lebanese official account) is read."strength:diff --git a/docs/units.md b/docs/units.mdindex dedbe2c91..84a2d1918 100644--- a/docs/units.md+++ b/docs/units.md@@ -230,8 +230,10 @@ defaults"). The unit stands on the hex holding the anchor's coordinates, by theHulda from the 15 June 1948 turn.- **Release gate:** every row the sim starts a unit from must be `fact-checked` before a shareable build carries it(Q-START-3). `Statecraft.Cli --release-gate`, `Build -shareable` and `tools/package_release.py` refuse until then, and- name the rows; today that is Etzioni and the 7th (#1241), since the owner checked the other twelve on 21 October 2026- (#1240).+ name the rows. A `fact-checked` row records the day of its person check in `checked_on`; a field whose sources were+ checked after that day (the strength, an anchor or an order target) counts as unchecked, and the gate names the row+ and the field (#2722). Today that is the order targets of Carmeli, Kiryati, Givati, the 7th, Harel and Negev (#2135),+ sourced on 1 November 2026, after the owner's checks of 21 October (#1240) and 22 October 2026 (#1241).- Tests: `StartingForcesTests` (dotnet) and `UnitsInPlayTests.TheStartMatchesTheMap` (EditMode).### Tokens from the state (Phase 5 PR 14, #753)diff --git a/sim/Statecraft.Cli/Program.cs b/sim/Statecraft.Cli/Program.csindex 12b110d17..d605a12f4 100644--- a/sim/Statecraft.Cli/Program.cs+++ b/sim/Statecraft.Cli/Program.cs@@ -80,8 +80,8 @@ catch (ContentException e) { Console.Error.WriteLine($"Content error: {e.Message// --release-gate: the sensitivity gate before a build is shared (spec 5.5; tools/package_release.py, Build -shareable).// Exit 0 and "RELEASE GATE OK" when every sensitive event is sensitivity-reviewed and (R-ALT-011, Q-ALT-9) every// consequence card and every event with variants has a person's reviewed_by, and (R-UNIT-006, Q-START-3) every-// units_1948.yaml row a new game starts a unit from is fact-checked, and (Q-TGT-3 (b)) every settlement_targets.yaml row is-// sensitivity-reviewed; else exit 3 naming them.+// units_1948.yaml row a new game starts a unit from is fact-checked with no field sourced after its+// checked_on, and (Q-TGT-3 (b)) every settlement_targets.yaml row is sensitivity-reviewed; else exit 3 naming them.if (Array.IndexOf(args, "--release-gate") >= 0){var open = ReleaseGate.SensitiveUnreviewed(content);@@ -98,8 +98,8 @@ if (Array.IndexOf(args, "--release-gate") >= 0)+ " (see docs/m3-release.md)");foreach (var id in unsigned) Console.WriteLine(" unsigned alternate card: " + id);if (forces.Count > 0)- Console.WriteLine("RELEASE GATE REFUSED: these starting forces' rows are not fact-checked: " + string.Join(", ", forces)- + " (status: fact-checked in content/map/units_1948.yaml; Q-START-3, #743)");+ Console.WriteLine("RELEASE GATE REFUSED: these starting forces' rows are not fact-checked, or have a field sourced after their checked_on: "+ + string.Join(", ", forces) + " (status: fact-checked and checked_on in content/map/units_1948.yaml; Q-START-3, #743, #2722)");if (targets.Count > 0)Console.WriteLine("RELEASE GATE REFUSED: these settlement targets are not sensitivity-reviewed: " + string.Join(", ", targets)+ " (status: sensitivity-reviewed in content/settlement_targets.yaml; Q-TGT-3, #783)");diff --git a/sim/Statecraft.Sim.Tests/StartingForcesTests.cs b/sim/Statecraft.Sim.Tests/StartingForcesTests.csindex 618545fae..9f1b61bcc 100644--- a/sim/Statecraft.Sim.Tests/StartingForcesTests.cs+++ b/sim/Statecraft.Sim.Tests/StartingForcesTests.cs@@ -240,13 +240,57 @@ public class StartingForcesTests// R-UNIT-006, Q-START-3 (#743, owner, 20 October 2026): a shareable build waits until every row the sim starts a unit// from is fact-checked. The owner person-checked the twelve real ones on 21 October 2026 (#1240), and Etzioni and the- // 7th (#1241) after them (https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840), so none waits.+ // 7th (#1241) after them (https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840). Six of+ // them got an order target later (#2135), sourced on 1 November 2026, which no person has checked yet (#2722), so+ // those six wait, naming the target.[Fact]public void TheReleaseGateWaitsForEveryStartingRowToBeFactChecked(){Assert.Equal(14, Real.StartingForces.Count);- Assert.Empty(ReleaseGate.StartingForcesUnchecked(Real));- var c = Load(Row("b", "israel", 20), Row("a", "israel", 20, q: 2, status: "fact-checked"));+ Assert.Equal(new[]+ {+ "brigade_7: order_targets[0] (al-Malikiyya), sources checked 2026-11-01, row checked 2026-10-22",+ "carmeli: order_targets[0] (Manara), sources checked 2026-11-01, row checked 2026-10-21",+ "givati: order_targets[0] (Huleiqat), sources checked 2026-11-01, row checked 2026-10-21",+ "harel: order_targets[0] (Latrun police fort), sources checked 2026-11-01, row checked 2026-10-21",+ "kiryati: order_targets[0] (Ramle), sources checked 2026-11-01, row checked 2026-10-21",+ "negev: order_targets[0] (Beersheba), sources checked 2026-11-01, row checked 2026-10-21",+ }, ReleaseGate.StartingForcesUnchecked(Real));+ var c = Load(Row("b", "israel", 20), Row("a", "israel", 20, q: 2, status: "fact-checked", extra: " checked_on: '2026-10-21'\n"));Assert.Equal(new[] { "b" }, ReleaseGate.StartingForcesUnchecked(c));}++ /// <summary>A fact-checked row checked on 21 October 2026 whose strength, anchor and order target cite sources checked on+ /// the given days.</summary>+ static Content Checked(string strength, string anchor, string target, string checkedOn = " checked_on: '2026-10-21'\n") =>+ Load("anchors:\n - { id: a, anchor: 0, q: 1, r: 0 }\norder_targets:\n - { id: a, target: 0, q: 1, r: 0 }\n",+ ("- id: a\n service: army\n side: israel\n status: fact-checked\n" + checkedOn+ + $" strength: {{ value: 20, as_of: '1948-05-15', sources: [{{ url: 'https://example.org/s', checked: '{strength}' }}] }}\n"+ + $" anchors:\n - {{ place: Here, lon: 34.29, lat: 33.35, from: '1948-05-15', to: '1949-01-01', sources: [{{ url: 'https://example.org/a', checked: '{anchor}' }}] }}\n"+ + $" order_targets:\n - {{ place: Manara, lon: 35.54, lat: 33.2, from: '1948-10-29', to: '1949-03-23', sources: [{{ url: 'https://example.org/t', checked: '{target}' }}] }}\n", ""));++ // #2722 (owner, option (c), 5 November 2026): a field whose sources were checked after the row's person check+ // (checked_on) counts as unchecked: the gate refuses the row and names the field.+ [Theory]+ [InlineData("2026-11-01", "2026-10-21", "2026-10-21", "a: strength, sources checked 2026-11-01, row checked 2026-10-21")]+ [InlineData("2026-10-21", "2026-11-01", "2026-10-21", "a: anchors[0] (Here), sources checked 2026-11-01, row checked 2026-10-21")]+ [InlineData("2026-10-21", "2026-10-21", "2026-11-01", "a: order_targets[0] (Manara), sources checked 2026-11-01, row checked 2026-10-21")]+ public void AFieldSourcedAfterTheRowsCheckIsRefusedByName(string strength, string anchor, string target, string refused) =>+ Assert.Equal(new[] { refused }, ReleaseGate.StartingForcesUnchecked(Checked(strength, anchor, target)));++ // #2722: a field sourced on or before the row's check day is covered by that check.+ [Fact]+ public void AFieldSourcedOnOrBeforeTheRowsCheckPasses() =>+ Assert.Empty(ReleaseGate.StartingForcesUnchecked(Checked("2026-10-13", "2026-10-21", "2026-10-21")));++ // #2722: a fact-checked row records the day of its person check, so a row without one is a load error.+ [Theory]+ [InlineData("")]+ [InlineData(" checked_on: 21 October 2026\n")]+ public void AFactCheckedRowNeedsItsCheckDay(string checkedOn)+ {+ var ex = Assert.Throws<ContentException>(() => Checked("2026-10-21", "2026-10-21", "2026-10-21", checkedOn));+ Assert.Equal("map/units_1948.yaml", ex.File);+ Assert.Equal("units[a].checked_on", ex.Field);+ }}diff --git a/sim/Statecraft.Sim/ReleaseGate.cs b/sim/Statecraft.Sim/ReleaseGate.csindex 6f8bd1fdc..d3588c273 100644--- a/sim/Statecraft.Sim/ReleaseGate.cs+++ b/sim/Statecraft.Sim/ReleaseGate.cs@@ -28,10 +28,13 @@ namespace Statecraft.Sim.Select(e => e.Id).OrderBy(x => x, StringComparer.Ordinal).ToList();/// <summary>R-UNIT-006, Q-START-3 (owner, 15 October 2026; #743, owner, 20 October 2026): the units_1948.yaml rows a- /// new game starts a unit from whose status is not yet fact-checked, in id order. Once the sim reads a row it is game- /// state, so a shareable build refuses while this is not empty.</summary>+ /// new game starts a unit from whose status is not yet fact-checked (by row id), and (#2722, owner, option (c), 5 November+ /// 2026) each field of a fact-checked row whose sources were checked after the row's checked_on, naming the row and the+ /// field, in id order. Once the sim reads a row it is game state, so a shareable build refuses while this is not empty.</summary>public static IReadOnlyList<string> StartingForcesUnchecked(Content c) =>- c.StartingForces.Where(f => f.Status != "fact-checked").Select(f => f.Row).OrderBy(x => x, StringComparer.Ordinal).ToList();+ c.StartingForces.OrderBy(f => f.Row, StringComparer.Ordinal).SelectMany(f => f.Status != "fact-checked" ? new[] { f.Row }+ : f.SourcesChecked.Where(x => string.CompareOrdinal(x.Checked, f.CheckedOn) > 0)+ .Select(x => $"{f.Row}: {x.Field}, sources checked {x.Checked}, row checked {f.CheckedOn}")).ToList();/// <summary>R-CTRL-001, Q-TGT-3 (b) (owner, 18 October 2026; #783): the settlement_targets.yaml rows whose status is not/// yet sensitivity-reviewed, in id order. A shareable build refuses while this is not empty (#1274).</summary>diff --git a/sim/Statecraft.Sim/StartingForces.cs b/sim/Statecraft.Sim/StartingForces.csindex 59e5c71b7..c9ebf8776 100644--- a/sim/Statecraft.Sim/StartingForces.cs+++ b/sim/Statecraft.Sim/StartingForces.cs@@ -21,6 +21,12 @@ namespace Statecraft.Simpublic int R { get; set; }/// <summary>The row's review status (draft, to_verify, fact-checked); the release gate reads it (Q-START-3).</summary>public string Status { get; set; } = "";+ /// <summary>A fact-checked row's `checked_on`, the day of its person check ('YYYY-MM-DD'); empty for any other row.+ /// The release gate counts a field sourced after it as unchecked (#2722).</summary>+ public string CheckedOn { get; set; } = "";+ /// <summary>The latest `checked` day among the sources of the row's strength, each anchor and each order target, in+ /// the file's order, with the field's name (#2722): "strength", "anchors[k] (place)", "order_targets[k] (place)".</summary>+ public List<(string Field, string Checked)> SourcesChecked { get; } = new List<(string Field, string Checked)>();/// <summary>R-UNIT-009 (#1241): the day a row dated after the start arrives (its strength's as_of), or null for a row/// that starts the game. Its unit's id is reserved at the start and the resolver adds it on that day's turn.</summary>public DateTime? Arrives { get; set; }@@ -68,6 +74,10 @@ namespace Statecraft.Simvar id = Text(row, "id");if (id == "") throw new ContentException(FileName, $"units[{i}].id", "required");var at = $"units[{id}]";+ // #2722: a fact-checked row records the day of its person check, so a field sourced later can be told apart.+ if (Text(row, "status") == "fact-checked"+ && !DateTime.TryParseExact(Text(row, "checked_on"), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.None, out _))+ throw new ContentException(FileName, $"{at}.checked_on", "required on a fact-checked row, the day of its person check 'YYYY-MM-DD'");if (row.ContainsKey("hidden") || Text(row, "service") != "army") continue;if (!(row.TryGetValue("strength", out var so) && so is Dictionary<object, object> strength)) continue;// R-UNIT-009: a strength dated after the start is the row's arrival day; one dated before starts nothing.@@ -97,7 +107,14 @@ namespace Statecraft.Sim{Row = id, Anchor = Text(anchor, "place"), Type = TypeFor(c, side, at), Side = side,Strength = units, Q = q, R = r, Status = Text(row, "status"), Arrives = day == start ? (DateTime?)null : asOf,+ CheckedOn = Text(row, "checked_on"),};+ force.SourcesChecked.Add(("strength", LatestCheck(strength)));+ for (int j = 0; j < anchors.Count; j++)+ if (anchors[j] is Dictionary<object, object> a) force.SourcesChecked.Add((FormattableString.Invariant($"anchors[{j}] ({Text(a, "place")})"), LatestCheck(a)));+ if (row.TryGetValue("order_targets", out var oo) && oo is List<object> targets)+ for (int j = 0; j < targets.Count; j++)+ if (targets[j] is Dictionary<object, object> t) force.SourcesChecked.Add((FormattableString.Invariant($"order_targets[{j}] ({Text(t, "place")})"), LatestCheck(t)));if (side != Movement.PlayerSide) Script(c, force, anchors, id, at, hexes);(day == start ? list : arrivals).Add(force);}@@ -246,6 +263,12 @@ namespace Statecraft.Simint.TryParse(Text(m, key), NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out var n)? n : throw new ContentException(HexesFileName, $"{at}.{key}", "required, a whole number");+ /// <summary>The latest `checked` day among an entry's `sources` ('YYYY-MM-DD' compares as text), or "" with none.</summary>+ static string LatestCheck(Dictionary<object, object> m) =>+ m.TryGetValue("sources", out var so) && so is List<object> sources+ ? sources.OfType<Dictionary<object, object>>().Select(x => Text(x, "checked")).OrderBy(x => x, StringComparer.Ordinal).LastOrDefault() ?? ""+ : "";+static string Text(Dictionary<object, object> m, string key) => m.TryGetValue(key, out var v) && v is string s ? s : "";static decimal Number(Dictionary<object, object> m, string key, string field) =>diff --git a/tools/tests/test_package_release.py b/tools/tests/test_package_release.pyindex 3bdf03bf9..ec6767609 100644--- a/tools/tests/test_package_release.py+++ b/tools/tests/test_package_release.py@@ -41,7 +41,11 @@ def fake_build(tmp_path, reviewed, photos_reviewed=True, forces_checked=True, alf.write_text(re.sub(r"(?m)^status: .*$", f"status: {status}", f.read_text()))units = content / "map" / "units_1948.yaml"forces = "fact-checked" if forces_checked else "draft"- units.write_text(re.sub(r"(?m)^ status: .*$", f" status: {forces}", units.read_text(encoding="utf-8")), encoding="utf-8")+ # #2722: a fact-checked row needs its check day, and a field sourced after it counts as unchecked; TEST-ONLY, a day+ # after every source check, as a person's check of every field would leave it.+ checked_on = "\n checked_on: '2099-12-31'" if forces_checked else ""+ units_text = re.sub(r"(?m)^ checked_on: .*\n", "", units.read_text(encoding="utf-8"))+ units.write_text(re.sub(r"(?m)^ status: .*$", f" status: {forces}{checked_on}", units_text), encoding="utf-8")targets = content / "settlement_targets.yaml" # #793's rows, as the owner's review would leave them (Q-TGT-3 (b))targets.write_text(re.sub(r"(?m)^ status: .*$", f" status: {status}", targets.read_text(encoding="utf-8")), encoding="utf-8")# TEST-ONLY fixture data: these two files are copies below tmp_path, never the source content.diff --git a/unity/Assets/Editor/Build.cs b/unity/Assets/Editor/Build.csindex 1721c8df6..305d02804 100644--- a/unity/Assets/Editor/Build.cs+++ b/unity/Assets/Editor/Build.cs@@ -77,8 +77,8 @@ namespace Statecraft.Game.EditorTools+ string.Join(", ", unsigned) + " (see docs/m3-release.md)");// R-UNIT-006, Q-START-3 (#743): the rows a new game starts a unit from are game state, so a person checks them first.if (Statecraft.Sim.ReleaseGate.StartingForcesUnchecked(c) is { Count: > 0 } forces)- reasons.Add("a shareable build needs these starting forces' rows fact-checked: " + string.Join(", ", forces)- + " (status: fact-checked in content/map/units_1948.yaml; see docs/units.md)");+ reasons.Add("a shareable build needs these starting forces' rows fact-checked, and their fields sourced after checked_on checked: "+ + string.Join(", ", forces) + " (status: fact-checked and checked_on in content/map/units_1948.yaml; see docs/units.md)");// Q-TGT-3 (b) (#783): a settlement target row ships only after a person's sensitivity review.if (Statecraft.Sim.ReleaseGate.SettlementTargetsUnchecked(c) is { Count: > 0 } targets)reasons.Add("a shareable build needs these settlement targets sensitivity-reviewed: " + string.Join(", ", targets)diff --git a/unity/Assets/Scripts/Map/Units/UnitData.cs b/unity/Assets/Scripts/Map/Units/UnitData.csindex b7154d8f3..cfd3688ae 100644--- a/unity/Assets/Scripts/Map/Units/UnitData.cs+++ b/unity/Assets/Scripts/Map/Units/UnitData.cs@@ -178,6 +178,9 @@ namespace Statecraft.Game.Map.Unitspublic string? ReviewedOn { get => reviewedOn; set { reviewedOn = value; ReviewedOnGiven = true; } }[YamlIgnore] public bool ReviewedOnGiven { get; private set; }string? reviewedOn;+ /// <summary>A fact-checked row's day of its person check (#2722). The sim's StartingForces reads it for the release+ /// gate; the map does not.</summary>+ public string? CheckedOn { get; set; }/// <summary>Why the map does not draw the unit (the sources name it but do not place it), or null.</summary>public string? Hidden { get; set; }public List<string>? ToVerify { get; set; }diff --git a/unity/Assets/Tests/EditMode/BuildGateTests.cs b/unity/Assets/Tests/EditMode/BuildGateTests.csindex d41f51a43..168807f7c 100644--- a/unity/Assets/Tests/EditMode/BuildGateTests.cs+++ b/unity/Assets/Tests/EditMode/BuildGateTests.cs@@ -138,11 +138,16 @@ public class BuildGateTests/// <summary>The real content with its starting forces' rows fact-checked (R-UNIT-006, Q-START-3) and its settlement/// target rows sensitivity-reviewed (Q-TGT-3 (b), #793), as the owner's checks left them (#1240, #1241, #793), for the- /// tests about the other gates. In memory only, so these tests do not depend on the shipped statuses.</summary>+ /// tests about the other gates. In memory only, so these tests do not depend on the shipped statuses. Each row's+ /// checked_on moves to its latest source check too, as a person's check of the later fields would move it (#2722).</summary>internal static Content Checked(){var c = ContentLoader.Load(Paths.Content);- foreach (var f in c.StartingForces) f.Status = "fact-checked";+ foreach (var f in c.StartingForces)+ {+ f.Status = "fact-checked";+ f.CheckedOn = f.SourcesChecked.Select(x => x.Checked).Append(f.CheckedOn).OrderBy(x => x, System.StringComparer.Ordinal).Last();+ }foreach (var t in c.SettlementTargets) t.Status = ReleaseGate.ReviewedStatus;return c;}@@ -152,7 +157,9 @@ public class BuildGateTestspublic void AShareableBuildWaitsForTheStartingForcesRows(){var c = ContentLoader.Load(Paths.Content);- CollectionAssert.IsEmpty(ReleaseGate.StartingForcesUnchecked(c), "the owner person-checked the real rows (21 October 2026, #1240), and Etzioni and the 7th after them (#1241, https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840)");+ CollectionAssert.AreEqual(new[] { "brigade_7", "carmeli", "givati", "harel", "kiryati", "negev" },+ ReleaseGate.StartingForcesUnchecked(c).Select(x => x.Split(':')[0]),+ "the owner person-checked the real rows (21 October 2026, #1240), and Etzioni and the 7th after them (#1241, https://github.com/eyalgolan/statecraft-israel/issues/793#issuecomment-6338280840); these six got an order target sourced after that check (#2722)");foreach (var f in c.StartingForces) f.Status = "to_verify"; // in memory only: the rows as they were before that checkvar refusal = Refusal(c);Assert.IsNotNull(refusal, "a row that is not fact-checked blocks a shareable build");