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.

content: CBS immigration and population for 1950 and 1951

eyalgolanb48f2753d3d8
diff --git a/content/aliyah.yaml b/content/aliyah.yaml
index 2945ae3f7..3c8011e70 100644
--- a/content/aliyah.yaml
+++ b/content/aliyah.yaml
@@ -15,3 +15,21 @@ series:
- { url: "https://jewishvirtuallibrary.org/jsource/Immigration/Immigration_by_Period_and_Continent.html", checked: 2026-10-09 }
- { url: "https://www.jewishvirtuallibrary.org/total-immigration-to-israel-by-year", checked: 2026-10-09 }
status: fact-checked
+ # 1950 and 1951 rows parsed from the raw HTML of the JVL table (right-to-left; the row label follows the data). Each
+ # row sums exactly to the CBS total: 170,563 (1950) and 175,279 (1951), as in CBS Publication 1365, Table 1.
+ - from: 1950-01-01
+ to: 1950-12-31
+ origins: { asia: 57565, africa: 26162, europe: 81195, america_oceania: 1954, unknown: 3687 }
+ sources:
+ - { url: "https://jewishvirtuallibrary.org/jsource/Immigration/Immigration_by_Period_and_Continent.html", checked: 2026-10-10 }
+ - { url: "https://www.jewishvirtuallibrary.org/total-immigration-to-israel-by-year", checked: 2026-10-10 }
+ - { url: "https://www.cbs.gov.il/he/publications/DocLib/2009/1365/pdf/e_print.pdf", checked: 2026-10-10 }
+ status: fact-checked
+ - from: 1951-01-01
+ to: 1951-12-31
+ origins: { asia: 103396, africa: 20382, europe: 47074, america_oceania: 1286, unknown: 3141 }
+ sources:
+ - { url: "https://jewishvirtuallibrary.org/jsource/Immigration/Immigration_by_Period_and_Continent.html", checked: 2026-10-10 }
+ - { url: "https://www.jewishvirtuallibrary.org/total-immigration-to-israel-by-year", checked: 2026-10-10 }
+ - { url: "https://www.cbs.gov.il/he/publications/DocLib/2009/1365/pdf/e_print.pdf", checked: 2026-10-10 }
+ status: fact-checked
diff --git a/content/population.yaml b/content/population.yaml
index 7caa05487..0c9ab5c15 100644
--- a/content/population.yaml
+++ b/content/population.yaml
@@ -12,3 +12,11 @@ anchors:
jews: 1013900 # end of year
sources: [{ url: "https://www.cbs.gov.il/he/publications/doclib/2023/2.shnatonpopulation/st02_01.pdf", checked: 2026-10-09 }]
status: fact-checked
+ - date: 1950-12-31
+ jews: 1203000 # end of year (1,203.0 thousand)
+ sources: [{ url: "https://www.cbs.gov.il/he/publications/doclib/2023/2.shnatonpopulation/st02_01.pdf", checked: 2026-10-10 }]
+ status: fact-checked
+ - date: 1951-12-31
+ jews: 1404400 # end of year (1,404.4 thousand)
+ sources: [{ url: "https://www.cbs.gov.il/he/publications/doclib/2023/2.shnatonpopulation/st02_01.pdf", checked: 2026-10-10 }]
+ status: fact-checked
diff --git a/docs/determinism.md b/docs/determinism.md
index 8d7a39190..b10e8c5b6 100644
--- a/docs/determinism.md
+++ b/docs/determinism.md
@@ -20,7 +20,7 @@ with `GoldenRun.Seed = 1948` on the real `content/`, then steps with `Historical
| Run | Ends | Hash |
|---|---|---|
-| to 1950-01-01 (`Hash1950`) | 1950-02-26, turn 45 | `d46ce5ffd442f6b47f515fe2497b1db3e262217b5d01be543b822e5d41a6a8cd` |
+| to 1950-01-01 (`Hash1950`) | 1950-02-26, turn 45 | `3d360deb200945776a9ae1ae5faea8cd075900d0b9cd7d2bab715b309e3f0b91` |
Each constant is written in three places that must agree:
- `sim/Statecraft.Sim/GoldenRun.cs`, which Unity code and players compare against;
@@ -42,3 +42,4 @@ rules or content, treat it as a determinism bug.
| Plan task | Run | New hash (first 8) | Why |
|---|---|---|---|
| M3 Task 2 | 1950 | `d46ce5ff` | the Immigration budget line moves to the Prime Minister (the Ministry of Immigration ends on 1951-10-08), which renames a key in the hashed budget |
+| M3 Task 3 | 1950 | `3d360deb` | CBS immigration for 1950 adds January-February 1950 arrivals inside the run |
diff --git a/sim/Statecraft.Sim.Tests/CalibrationTests.cs b/sim/Statecraft.Sim.Tests/CalibrationTests.cs
index abf0c3aa3..cd88089b3 100644
--- a/sim/Statecraft.Sim.Tests/CalibrationTests.cs
+++ b/sim/Statecraft.Sim.Tests/CalibrationTests.cs
@@ -10,7 +10,7 @@ using Statecraft.Sim;
/// ANCHOR INDEPENDENCE: rules.yaml derives initial_population from the end-1948 CBS figure and
/// natural_increase from end-1948 to end-1949. So the 1948-12-31 and 1949-12-31 anchors are CONSISTENCY
/// checks of that derivation (they should hold by construction). The 1948-11-08 population registration
-/// (716,700) is the only INDEPENDENT anchor.
+/// (716,700) and the end-1950 and end-1951 figures (nothing in rules.yaml is derived from them) are INDEPENDENT.
/// </summary>
public class CalibrationTests
{
@@ -27,20 +27,23 @@ public class CalibrationTests
return before.TotalPopulation + t * (after.TotalPopulation - before.TotalPopulation);
}
- static string Kind(DateTime d) => d == new DateTime(1948, 11, 8) ? "independent" : "consistency";
+ static readonly DateTime End = new DateTime(1952, 1, 1);
+
+ static string Kind(DateTime d) =>
+ d == new DateTime(1948, 11, 8) || d.Year >= 1950 ? "independent" : "consistency";
[Fact]
public void HistoricalPlaythroughMatchesCbsPopulationAnchors()
{
var s = Simulation.NewGame(C, 1948, Mode.Historical);
var history = new List<GameState> { s };
- while (s.Date <= new DateTime(1950, 1, 1))
+ while (s.Date <= End)
{
s = Simulation.Step(C, s, HistoricalAI.Commands(C, s)).State;
history.Add(s);
}
Assert.Null(s.GameOver);
- Assert.Equal(3, C.PopulationAnchors.Count);
+ Assert.Equal(5, C.PopulationAnchors.Count);
var report = C.PopulationAnchors.Select(a =>
{
var sim = PopulationOn(history, a.Date);
@@ -50,7 +53,7 @@ public class CalibrationTests
string.Format(CultureInfo.InvariantCulture, "[{0}] {1:yyyy-MM-dd}: sim {2:N0} vs CBS {3:N0} ({4:+0.0;-0.0;+0.0}%)",
Kind(r.a.Date), r.a.Date, r.sim, r.a.Jews, r.error * 100)));
Assert.True(report.All(r => Math.Abs(r.error) <= Tolerance),
- "Only 1948-11-08 is an independent anchor; the other two are consistency checks of the rules.yaml derivation. " + lines);
+ "1948-12-31 and 1949-12-31 are consistency checks of the rules.yaml derivation; the other anchors are independent. " + lines);
}
[Fact]
diff --git a/sim/Statecraft.Sim.Tests/DeterminismTests.cs b/sim/Statecraft.Sim.Tests/DeterminismTests.cs
index bbf5c21ea..bffff2e9a 100644
--- a/sim/Statecraft.Sim.Tests/DeterminismTests.cs
+++ b/sim/Statecraft.Sim.Tests/DeterminismTests.cs
@@ -19,7 +19,7 @@ public class DeterminismTests
/// <summary>Any change to this value is a deliberate rules or content change: update it here, in
/// GoldenRun.Hash1950 and in docs/determinism.md in the same commit.</summary>
- public const string GoldenHash = "d46ce5ffd442f6b47f515fe2497b1db3e262217b5d01be543b822e5d41a6a8cd";
+ public const string GoldenHash = "3d360deb200945776a9ae1ae5faea8cd075900d0b9cd7d2bab715b309e3f0b91";
/// <summary>Real content, seed 1948, Historical mode, HistoricalAI until the date reaches 1950-01-01.</summary>
public static GameState GoldenPlaythrough(Content c) => GoldenRun.Play(c, GoldenRun.Until1950);
diff --git a/sim/Statecraft.Sim/GoldenRun.cs b/sim/Statecraft.Sim/GoldenRun.cs
index 2388debef..184bb14e1 100644
--- a/sim/Statecraft.Sim/GoldenRun.cs
+++ b/sim/Statecraft.Sim/GoldenRun.cs
@@ -11,7 +11,7 @@ namespace Statecraft.Sim
/// <summary>Final hash of Play(content, Until1950). Changing it is a deliberate rules or content change:
/// update it, DeterminismTests and docs/determinism.md in the same commit and say why in the message.</summary>
- public const string Hash1950 = "d46ce5ffd442f6b47f515fe2497b1db3e262217b5d01be543b822e5d41a6a8cd";
+ public const string Hash1950 = "3d360deb200945776a9ae1ae5faea8cd075900d0b9cd7d2bab715b309e3f0b91";
public static readonly DateTime Until1950 = new DateTime(1950, 1, 1);