A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
R-WAR-008: the four armistice cards' early texts in the owner-approved words (Refs #1709) (#3005)
Eyal Golan2185e1ce20e6
diff --git a/changelog.d/1709-early-texts-real.md b/changelog.d/1709-early-texts-real.mdnew file mode 100644index 000000000..21647edd7--- /dev/null+++ b/changelog.d/1709-early-texts-real.md@@ -0,0 +1,4 @@+- The four armistice cards (Egypt, Jordan, Lebanon, Syria) now carry their early text in English and Hebrew (R-WAR-008,+ #1709): offered before its date because that front has been quiet, a card says the armistice talks came sooner than in+ history, with no place or date, under the "Alternative course" banner. The words are the ones the owner approved on+ 9 November 2026; the Hebrew stays on the native reader's list (#564).diff --git a/content/events/armistice_egypt.yaml b/content/events/armistice_egypt.yamlindex 844a796cd..4cc31d5c3 100644--- a/content/events/armistice_egypt.yaml+++ b/content/events/armistice_egypt.yaml@@ -6,6 +6,16 @@ text: 'Talks in Rhodes have produced an armistice agreement with Egypt. {prime_m# https://he.wikipedia.org/wiki/הסכמי_שביתת_הנשק_בתום_מלחמת_העצמאותtitle_he: שביתת הנשק עם מצריםtext_he: 'השיחות ברודוס הניבו הסכם שביתת נשק עם מצרים. על {prime_minister} להחליט אם ישראל תחתום עליו.'+# R-WAR-008 (owner, 9 November 2026, #1709: "Separate early text (Recommended)", "You approve the words (Recommended)";+# the English "Approve as written (Recommended)", the Hebrew "Approve with my choices (Recommended)", with "עם" and+# "התקיימו (Recommended)"): the text when the card is shown before its `from` (the early path), under the+# "Alternative course" banner. No date: an early card's date is the player's.+# It names no Rhodes ("No Rhodes (Recommended)"): an early card can come from the 15 December 1948 turn, and the+# Rhodes talks opened on 13 January 1949 (rhodes_talks.yaml).+# For the native reviewer (#564): early_text_he is agent-written; the owner approved its exact words (#1709, 9 November+# 2026). It keeps the card's terms "שביתת נשק" / "הסכם שביתת נשק" (he.wiki, as noted above).+early_text: 'The front with Egypt has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Egypt. {prime_minister} must decide whether Israel signs.'+early_text_he: 'החזית עם מצרים שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם מצרים. על {prime_minister} להחליט אם ישראל תחתום עליו.'anchor: hardfront_quiet: egyptoffice: prime_minister@@ -38,3 +48,5 @@ sources:- { url: "https://avalon.law.yale.edu/20th_century/arm01.asp", checked: 2026-10-14 }- { url: "https://unispal.un.org/pdfs/634DB5CC6628D5C88525643C00766FB9.pdf", checked: 2026-10-14 }status: fact-checked+reviewed_by: eyalgolan+reviewed_on: 2026-11-10diff --git a/content/events/armistice_jordan.yaml b/content/events/armistice_jordan.yamlindex 5f17d36f4..917d2b708 100644--- a/content/events/armistice_jordan.yaml+++ b/content/events/armistice_jordan.yaml@@ -6,6 +6,14 @@ text: 'Negotiators have reached an armistice agreement with Jordan. {prime_minis# https://he.wikipedia.org/wiki/הסכמי_שביתת_הנשק_בתום_מלחמת_העצמאותtitle_he: שביתת הנשק עם ירדןtext_he: 'המשא ומתן הניב הסכם שביתת נשק עם ירדן. על {prime_minister} להחליט אם ישראל תחתום עליו.'+# R-WAR-008 (owner, 9 November 2026, #1709: "Separate early text (Recommended)", "You approve the words (Recommended)";+# the English "Approve as written (Recommended)", the Hebrew "Approve with my choices (Recommended)", with "עם" and+# "התקיימו (Recommended)"): the text when the card is shown before its `from` (the early path), under the+# "Alternative course" banner. No date: an early card's date is the player's.+# For the native reviewer (#564): early_text_he is agent-written; the owner approved its exact words (#1709, 9 November+# 2026). It keeps the card's terms "שביתת נשק" / "הסכם שביתת נשק" (he.wiki, as noted above).+early_text: 'The front with Jordan has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Jordan. {prime_minister} must decide whether Israel signs.'+early_text_he: 'החזית עם ירדן שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם ירדן. על {prime_minister} להחליט אם ישראל תחתום עליו.'anchor: hardfront_quiet: jordanoffice: prime_minister@@ -38,3 +46,5 @@ sources:- { url: "https://avalon.law.yale.edu/20th_century/arm03.asp", checked: 2026-10-14 }- { url: "https://unispal.un.org/pdfs/E450A4C18F4EE4D085256D96006272BF.pdf", checked: 2026-10-14 }status: fact-checked+reviewed_by: eyalgolan+reviewed_on: 2026-11-10diff --git a/content/events/armistice_lebanon.yaml b/content/events/armistice_lebanon.yamlindex 490a0c661..809e0fbed 100644--- a/content/events/armistice_lebanon.yaml+++ b/content/events/armistice_lebanon.yaml@@ -6,6 +6,14 @@ text: 'Negotiators have reached an armistice agreement with Lebanon. {prime_mini# https://he.wikipedia.org/wiki/הסכמי_שביתת_הנשק_בתום_מלחמת_העצמאותtitle_he: שביתת הנשק עם לבנוןtext_he: 'המשא ומתן הניב הסכם שביתת נשק עם לבנון. על {prime_minister} להחליט אם ישראל תחתום עליו.'+# R-WAR-008 (owner, 9 November 2026, #1709: "Separate early text (Recommended)", "You approve the words (Recommended)";+# the English "Approve as written (Recommended)", the Hebrew "Approve with my choices (Recommended)", with "עם" and+# "התקיימו (Recommended)"): the text when the card is shown before its `from` (the early path), under the+# "Alternative course" banner. No date: an early card's date is the player's.+# For the native reviewer (#564): early_text_he is agent-written; the owner approved its exact words (#1709, 9 November+# 2026). It keeps the card's terms "שביתת נשק" / "הסכם שביתת נשק" (he.wiki, as noted above).+early_text: 'The front with Lebanon has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Lebanon. {prime_minister} must decide whether Israel signs.'+early_text_he: 'החזית עם לבנון שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם לבנון. על {prime_minister} להחליט אם ישראל תחתום עליו.'anchor: hardfront_quiet: lebanonoffice: prime_minister@@ -36,3 +44,5 @@ sources:- { url: "https://avalon.law.yale.edu/20th_century/arm02.asp", checked: 2026-10-14 }- { url: "https://unispal.un.org/pdfs/71260B776D62FA6E852564420059C4FE.pdf", checked: 2026-10-14 }status: fact-checked+reviewed_by: eyalgolan+reviewed_on: 2026-11-10diff --git a/content/events/armistice_syria.yaml b/content/events/armistice_syria.yamlindex d87100d3c..bcd4c4761 100644--- a/content/events/armistice_syria.yaml+++ b/content/events/armistice_syria.yaml@@ -6,6 +6,14 @@ text: 'Negotiators have reached an armistice agreement with Syria. {prime_minist# https://he.wikipedia.org/wiki/הסכמי_שביתת_הנשק_בתום_מלחמת_העצמאותtitle_he: שביתת הנשק עם סוריהtext_he: 'המשא ומתן הניב הסכם שביתת נשק עם סוריה. על {prime_minister} להחליט אם ישראל תחתום עליו.'+# R-WAR-008 (owner, 9 November 2026, #1709: "Separate early text (Recommended)", "You approve the words (Recommended)";+# the English "Approve as written (Recommended)", the Hebrew "Approve with my choices (Recommended)", with "עם" and+# "התקיימו (Recommended)"): the text when the card is shown before its `from` (the early path), under the+# "Alternative course" banner. No date: an early card's date is the player's.+# For the native reviewer (#564): early_text_he is agent-written; the owner approved its exact words (#1709, 9 November+# 2026). It keeps the card's terms "שביתת נשק" / "הסכם שביתת נשק" (he.wiki, as noted above).+early_text: 'The front with Syria has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Syria. {prime_minister} must decide whether Israel signs.'+early_text_he: 'החזית עם סוריה שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם סוריה. על {prime_minister} להחליט אם ישראל תחתום עליו.'anchor: hardfront_quiet: syriaoffice: prime_minister@@ -36,3 +44,5 @@ sources:- { url: "https://avalon.law.yale.edu/20th_century/arm04.asp", checked: 2026-10-14 }- { url: "https://unispal.un.org/pdfs/E845CA0B92BE4E3485256442007901CC.pdf", checked: 2026-10-14 }status: fact-checked+reviewed_by: eyalgolan+reviewed_on: 2026-11-10diff --git a/sim/Statecraft.Sim.Tests/FinalWaveTests.cs b/sim/Statecraft.Sim.Tests/FinalWaveTests.csindex 217f07076..a2880e9e6 100644--- a/sim/Statecraft.Sim.Tests/FinalWaveTests.cs+++ b/sim/Statecraft.Sim.Tests/FinalWaveTests.cs@@ -93,8 +93,9 @@ public class FinalWaveTests/// <summary>R-ALT-011, R-WAR-008 (#1709; owner, 9 November 2026: "Separate early text (Recommended)", checked through/// the alternate-timeline gate): an armistice card's early text is a what-if, so a card with one and no person's- /// reviewed_by keeps a shareable build back; signed, it does not. A fixture card: no real card has an early text until the- /// owner signs the four ("You, before they land (Recommended)"), which the first assert above pins.</summary>+ /// reviewed_by keeps a shareable build back; signed, it does not. A fixture card. The four real cards' early texts+ /// (#1709 PR 2) land only with the owner's own sign-off on all four ("You, before they land (Recommended)"), which the+ /// first assert above pins.</summary>[Fact]public void AShareableBuildNeedsAnEarlyArmisticeTextSignedOff(){diff --git a/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs b/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.csindex f404557ac..77ac3e6f0 100644--- a/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs+++ b/sim/Statecraft.Sim.Tests/Gdd03EventRulesTests.cs@@ -543,10 +543,10 @@ public class Gdd03EventRulesTests{"absorb_immigrants:95682d1835e8de59e3e69f56a9beb13ddf91447270a672d23eaff2523898fea1", // re-pinned for #1065 (reviewer comment matches the text), then for the stale reviewer comment (comment-only)"altalena:83a6ebf59b5c64c489056ce3e4b17f14cc93d16f35a6fa8ebcffb788f04be1a7", // re-pinned for #1065 (owner's native read; flag removed in 8fbcb2aff), then for the stale reviewer comment (comment-only), then for #2531 (compromise's arms: -2 and comments on both options; no title, text or option text changed), then for the owner's approval of both values in #2995 (comment-only), then for #2537 (HE-06: straight quote to gershayim U+05F4 in Hebrew acronyms; no word changed)- "armistice_egypt:253a579e5de78fd3648b582b3f2329ca2947100df5568db74ff2a1819442a782", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment)- "armistice_jordan:fe65c03057dc670b096a8385478738b76fd7ebd200b4f5e7c281b94b0c48a8c4", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment), then for `order: 1` and its comment (R-EVT-006: after Lebanon's card)- "armistice_lebanon:5ce3ba85f056294691be4ac345896a3222a8898042491bbb989a281b8bc6a882", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment)- "armistice_syria:b552b74029c98058bd6b7f8b4a62f815539cc766023fa99efb4c01adbcb06824", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment)+ "armistice_egypt:843e8697ec7a45b015edc9d0d81856b2b6330b462cdbe574805a240b7dbb2ee4", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment), then for #1709 PR 2 (R-WAR-008: early_text and early_text_he in the words the owner approved on 9 November 2026, "You approve the words (Recommended)", and their comments; no text, date, option, effect or review line changed), then for the owner's own sign-off after it (41f8b9e89: reviewed_by eyalgolan, reviewed_on 2026-11-10)+ "armistice_jordan:319f6f337d8ffba53ab5fd5aafa94ce251a231e5159ce24715f1d39d59614867", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment), then for `order: 1` and its comment (R-EVT-006: after Lebanon's card), then for #1709 PR 2 (R-WAR-008: early_text and early_text_he in the words the owner approved on 9 November 2026, "You approve the words (Recommended)", and their comments; no text, date, option, effect or review line changed), then for the owner's own sign-off after it (41f8b9e89: reviewed_by eyalgolan, reviewed_on 2026-11-10)+ "armistice_lebanon:9bdca83d89dbd9f5f4b237904c54c5cfeb0457b09f16056a174de7c3e6dc72a6", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment), then for #1709 PR 2 (R-WAR-008: early_text and early_text_he in the words the owner approved on 9 November 2026, "You approve the words (Recommended)", and their comments; no text, date, option, effect or review line changed), then for the owner's own sign-off after it (41f8b9e89: reviewed_by eyalgolan, reviewed_on 2026-11-10)+ "armistice_syria:b9ce4b1983c84e965742f923cb2b0f4f5ebbbd2c00284c2a2bc40c65cccb8c63", // re-pinned for #1065 (Beri's native Hebrew read), then for #2478's front_quiet key (no text, date, option or effect changed), then for #2551 (R-TURN-002: `from` a turn earlier and its comment), then for #1709 PR 2 (R-WAR-008: early_text and early_text_he in the words the owner approved on 9 November 2026, "You approve the words (Recommended)", and their comments; no text, date, option, effect or review line changed), then for the owner's own sign-off after it (41f8b9e89: reviewed_by eyalgolan, reviewed_on 2026-11-10)"austerity_1949:94454d82815b0507236a206d1f834a0af25e2483990bb842f6085e04327ed928", // re-pinned for #1065 (Beri's native Hebrew read), then for #2551 (R-TURN-002: `from` a turn earlier and its comment)"bernadotte_assassination:03bce3e407874fa619899beb75bd4fa8a2b7d89b5f48ff33f38e0087291001ce", // re-pinned for #1065 (Beri's native Hebrew read), then for the stale reviewer comment (comment-only), then for #2537 (HE-06: straight quote to gershayim U+05F4 in Hebrew acronyms; no word changed)"burma_road_complete:6c49179b3844761c6f580c1436596cbace6932cbb6b620a9ea2872b6e0342ba2", // re-pinned for #1065 (owner's native read; flag removed in 8fbcb2aff), then for the stale reviewer comment (comment-only)diff --git a/sim/Statecraft.Sim.Tests/RealContentTests.cs b/sim/Statecraft.Sim.Tests/RealContentTests.csindex e7b21a029..bdf85a207 100644--- a/sim/Statecraft.Sim.Tests/RealContentTests.cs+++ b/sim/Statecraft.Sim.Tests/RealContentTests.cs@@ -500,6 +500,31 @@ public class RealContentTestsAssert.Equal(new DateTime(1950, 1, 1), C.Events.Single(e => e.Id == id).To);}+ // R-WAR-008 (#1709; owner, 9 November 2026): each front's card carries its early text in both languages, in the words the+ // owner approved ("You approve the words (Recommended)": English "Approve as written (Recommended)", Hebrew "Approve with+ // my choices (Recommended)", with "עם" and "התקיימו"). Shown before its `from` (the earliest early offer, 15 December+ // 1948), the card shows it; on its `from` it shows its ordinary text. Red without the four cards' early_text lines.+ [Theory]+ [InlineData("armistice_egypt",+ "The front with Egypt has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Egypt. {prime_minister} must decide whether Israel signs.",+ "החזית עם מצרים שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם מצרים. על {prime_minister} להחליט אם ישראל תחתום עליו.")]+ [InlineData("armistice_jordan",+ "The front with Jordan has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Jordan. {prime_minister} must decide whether Israel signs.",+ "החזית עם ירדן שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם ירדן. על {prime_minister} להחליט אם ישראל תחתום עליו.")]+ [InlineData("armistice_lebanon",+ "The front with Lebanon has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Lebanon. {prime_minister} must decide whether Israel signs.",+ "החזית עם לבנון שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם לבנון. על {prime_minister} להחליט אם ישראל תחתום עליו.")]+ [InlineData("armistice_syria",+ "The front with Syria has been quiet, and the armistice talks have come sooner than in history: negotiators have reached an armistice agreement with Syria. {prime_minister} must decide whether Israel signs.",+ "החזית עם סוריה שקטה, ושיחות שביתת הנשק התקיימו מוקדם יותר מאשר בהיסטוריה: המשא ומתן הניב הסכם שביתת נשק עם סוריה. על {prime_minister} להחליט אם ישראל תחתום עליו.")]+ public void EachArmisticeCardCarriesItsApprovedEarlyText(string id, string early, string earlyHe)+ {+ var e = C.Events.Single(x => x.Id == id);+ Assert.Equal((early, earlyHe), (e.EarlyText, e.EarlyTextHe));+ Assert.True(EventSystem.ShowsEarly(e, Armistice.EarliestOffer));+ Assert.False(EventSystem.ShowsEarly(e, e.From));+ }+// Owner decision of 17 October 2026 (#937), "Yes, match the others": refusing any of the four armistices keeps the war// going at rung 4. Egypt's hold_out had no set_rung, so refusing it left the rung where it was.[Fact]diff --git a/tools/tests/test_translate.py b/tools/tests/test_translate.pyindex 4554803ab..fc80344b5 100644--- a/tools/tests/test_translate.py+++ b/tools/tests/test_translate.py@@ -266,8 +266,8 @@ def test_a_late_text_has_its_row_in_every_language(langs):assert translate.load("fr")[0]["event:rhodes_talks:late_text"] == "Plus tard, {foreign_minister} décide."def test_an_early_text_has_its_row_in_every_language(langs, tmp_path, monkeypatch):- """R-WAR-008 (#1709): the early text's row, as the late text's above. No real card has one yet (the four armistice- texts wait for the owner's approval and sign-off), so a fixture event in a temporary events folder stands in."""+ """R-WAR-008 (#1709): the early text's row, as the late text's above, on a fixture event in a temporary events+ folder. Its real-content twin below reads armistice_egypt."""events = tmp_path / "events"events.mkdir()early = EARLY.replace("id: sample", "id: early_sample")@@ -292,6 +292,27 @@ def test_an_early_text_has_its_row_in_every_language(langs, tmp_path, monkeypatcassert translate.load("fr")[0]["event:early_sample:early_text"] == "Plus tôt, {prime_minister} demande."+def test_a_real_early_text_has_its_row_in_every_language(langs):+ """R-WAR-008 (#1709; owner, 9 November 2026, "You approve the words (Recommended)"): the real-content twin of the+ test above. armistice_egypt's early text has its row, its Hebrew is the approved words, and another language saves+ it with the rest of the card, all or none."""+ r = rows()+ assert r["event:armistice_egypt:early_text"]["en"].startswith("The front with Egypt has been quiet, and the armistice talks")+ assert r["event:armistice_egypt:early_text"]["unit"] == "event:armistice_egypt"+ texts, _ = translate.load("he")+ assert texts["event:armistice_egypt:early_text"].startswith("החזית עם מצרים שקטה, ושיחות שביתת הנשק התקיימו")+ edits = {"event:armistice_egypt:title": "Armistice avec l'Égypte", "event:armistice_egypt:text": "{prime_minister} décide.",+ "event:armistice_egypt:option:sign": "Signer", "event:armistice_egypt:option:hold_out": "Refuser"}+ assert "all or none" in translate.save("fr", edits, {})["errors"]["event:armistice_egypt"]+ sooner = {"event:armistice_egypt:early_text": "Plus tôt, {prime_minister} décide."}+ assert translate.save("fr", {**edits, **sooner}, {})["errors"] == {}+ events = yaml12.load((langs / "fr/events.yaml").read_text(encoding="utf-8"))+ assert events["armistice_egypt"] == {"title": "Armistice avec l'Égypte", "text": "{prime_minister} décide.",+ "early_text": "Plus tôt, {prime_minister} décide.",+ "options": {"sign": "Signer", "hold_out": "Refuser"},+ "review": "agent-checked"}+ assert translate.load("fr")[0]["event:armistice_egypt:early_text"] == "Plus tôt, {prime_minister} décide."+FR = {"event:altalena:title": "L'Altalena", "event:altalena:text": "{defense_minister} décide.","event:altalena:option:enforce": "Imposer", "event:altalena:option:compromise": "Céder"}diff --git a/unity/Assets/Tests/EditMode/EventCardTests.cs b/unity/Assets/Tests/EditMode/EventCardTests.csindex 8b9cff6bf..7b6e3945f 100644--- a/unity/Assets/Tests/EditMode/EventCardTests.cs+++ b/unity/Assets/Tests/EditMode/EventCardTests.cs@@ -870,18 +870,19 @@ sources: [{ url: ""https://example.org/record"", checked: 2026-10-17 }]// R-WAR-008 (#1709; owner, 9 November 2026: "Separate early text (Recommended)", "Banner (Recommended)", "Ordinary text// (Recommended)"): an armistice card shown before its `from` shows its early text, in Hebrew its early_text_he, under- // the event.alt_early banner; the same card on its date shows its ordinary text and no banner. The early texts here are- // the test's, in memory: no real card has one until the owner approves and signs the four.+ // the event.alt_early banner; the same card on its date shows its ordinary text and no banner. The early texts are the+ // real card's, in the words the owner approved (#1709, 9 November 2026); each is checked up to its first placeholder,+ // since the card fills {prime_minister} with the minister's name.[Test]public void AnEarlyArmisticeCardShowsItsEarlyTextUnderTheWhatIfBannerInBothLanguages(){- const string earlyEn = "The talks came sooner in this test.";- const string earlyHe = "השיחות הגיעו מוקדם יותר בבדיקה הזאת.";var c = ContentLoader.Load(Paths.Content);var e = c.Events.Single(x => x.Id == "armistice_egypt");- Assert.AreEqual("", e.EarlyText, "precondition: the real card has no early text yet");- e.EarlyText = earlyEn;- e.EarlyTextHe = earlyHe;+ static string UpToPlaceholder(string t) => t.IndexOf('{') is var i and >= 0 ? t.Substring(0, i) : t;+ var earlyEn = UpToPlaceholder(e.EarlyText);+ var earlyHe = UpToPlaceholder(e.EarlyTextHe);+ Assert.That(earlyEn.Length, Is.GreaterThan(40), "precondition: the real card has its English early text");+ Assert.That(earlyHe.Length, Is.GreaterThan(40), "precondition: the real card has its Hebrew early text");foreach (var local in new[] { Text, He }){var hebrew = local["ui.lang"] == UiLanguage.Hebrew;@@ -901,13 +902,14 @@ sources: [{ url: ""https://example.org/record"", checked: 2026-10-17 }]Assert.AreEqual(DisplayStyle.Flex, banner.style.display.value, where);Assert.AreEqual(local["event.alt_early"], banner.text, where);StringAssert.StartsWith(hebrew ? "מסלול חלופי." : "Alternative course.", banner.text, where);- Assert.AreEqual(hebrew ? earlyHe : earlyEn, body, where);+ Assert.IsTrue(body.StartsWith(hebrew ? earlyHe : earlyEn, System.StringComparison.Ordinal), $"{where}: {body}");+ Assert.IsFalse(body.Contains('{'), $"{where}: a placeholder is left: {body}");}else{Assert.AreEqual(DisplayStyle.None, banner.style.display.value, where);Assert.AreEqual("", banner.text, where);- StringAssert.DoesNotContain(hebrew ? earlyHe : earlyEn, body, where);+ Assert.IsFalse(body.Contains(hebrew ? earlyHe : earlyEn, System.StringComparison.Ordinal), $"{where}: {body}");StringAssert.Contains(hebrew ? "מצרים" : "Egypt", body, where);}}