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.

docs: record the owner's opening-ledger approval and pin it with tests (Refs #1689, Refs #1717) (#2915)

Eyal Golanadebb90704b5
diff --git a/changelog.d/1689-opening-ledger-approved.md b/changelog.d/1689-opening-ledger-approved.md
new file mode 100644
index 000000000..a4926de14
--- /dev/null
+++ b/changelog.d/1689-opening-ledger-approved.md
@@ -0,0 +1,5 @@
+### Changed
+
+- GDD 0.3 opening ledger (Refs #1689, Refs #1717): the rules text now records the owner's 7 November 2026 decisions on
+ every opening-ledger item, and tests pin each city's employed units and the plain starting records. Docs and tests only,
+ so there is no change in the game.
diff --git a/docs/gdd/balance.md b/docs/gdd/balance.md
index 2ed7d4862..e1d8ba0c2 100644
--- a/docs/gdd/balance.md
+++ b/docs/gdd/balance.md
@@ -34,7 +34,7 @@ Every value below is a game design value, not a historical estimate. **Agreed**
| `start.training_centres` | `1` | operating centre, with that teacher | Retained owner-decided inventory [S1]; hosted at Kiryat Shmuel, Haifa (owner, 1 November 2026, O8) [S12] |
| `start.food_production` / `start.food_consumption` | `65 / 65` | Food per turn, initially breaking even | Amir's no-refill derivation; the 30 October 2026 conflict review did not rule on it [S11]; on 1 November 2026 the owner kept the monthly import of `R-FOOD-002` (`docs/rules/mvp.md`) and the census start for the MVP (D1, D2), so this break-even is post-MVP [S12] |
-All operative starting roles partition the retained census-derived population total; army, teachers and farmers are not added on top. Starting professions, tools and completed buildings are already owned: do not deduct their entry/construction costs again from starting Money. Historical mode keeps the sourced army seed from `content/map/units_1948.yaml`; starting-army parameter `A` applies only to non-Historical modes and remains an owner question pending (owner, 30 Oct 2026). This catalogue does not choose `A`. Amir's proposed absolute population/farmer counts, spare-equipment inventory, regional prepared-slot allocation and no-refill Food break-even model are non-operative [S1][S4]; under the owner's 1 November 2026 answers the counts and spare equipment are the Open-mode start (D2) and the no-refill model is post-MVP (D1) [S12].
+All operative starting roles but the farmers partition the retained census-derived population total, and army and teachers are not added on top. The farmers' 20 units are added to the census total (owner, 7 November 2026: "On top, change the rule (Recommended)", which reverses "army, teachers and farmers are not added on top", [recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704565066)), and the training centre's one veteran pioneer teacher is a Haifa census unit ("Yes to all three (Recommended)"). Neither is wired into `Simulation.NewGame` yet. Starting professions, tools and completed buildings are already owned: do not deduct their entry/construction costs again from starting Money. Historical mode keeps the sourced army seed from `content/map/units_1948.yaml`; starting-army parameter `A` applies only to non-Historical modes and remains an owner question pending (owner, 30 Oct 2026). This catalogue does not choose `A`. Amir's proposed absolute population/farmer counts, spare-equipment inventory, regional prepared-slot allocation and no-refill Food break-even model are non-operative [S1][S4]; under the owner's 1 November 2026 answers the counts and spare equipment are the Open-mode start (D2) and the no-refill model is post-MVP (D1) [S12].
### Work, professions and training
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index e7cd40cac..1817799cd 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -607,8 +607,22 @@ R-POP-002: A ledger record has exactly one typed status and assignment, validate
R-POP-003: Clone copies all ledger containers; immutable records and frozen bindings may be shared. The canonical writer emits a gdd-0.3-only section ordered by numeric population id, with fixed field order, stable machine tokens, invariant integer formatting and length-prefixed reference strings. It covers every record/assignment/equipment/reference field, binding, creation/loss provenance and allocator even after the last combat loss. Legacy/gdd-0.1 emit no ledger section or allocator marker. R-SAVE-001/002 still govern identity mismatch refusal and replay: no ledger snapshot or new command syntax is added in this foundation, and fixture injection is not replay evidence. Existing unpublished schema-4 draft hashes change; no migration promise is made.
-R-POP-004: The Historical start inventory under exact `gdd-0.3` (#1689; owner, 1 November 2026, D2: "Approve all six (Recommended)", and D4). It is read from the same content as the aggregate start: each census city (R-CITY-006) gives its R-CITY-007 start units as free civilians, and each Israeli starting formation of `map/units_1948.yaml` (R-UNIT-006) gives its strength as active soldiers, no more and no less. Enemy formations are not own population, and a dated arrival (R-UNIT-009) is not in the start inventory: it takes new ids when it arrives (Q11). Counts use `rules.yaml`'s `people_per_unit` (1,000, D2), as R-CITY-007 and R-UNIT-006 do; the `gdd-0.3` catalogue's `population.people_per_unit` (10,000) is Open mode's (D2). A city's records have source key `census/<city id>` and a formation's `units_1948/<row id>`, each with within-source ordinals from 0, so R-POP-001's order (source key by ordinal string comparison, then ordinal) gives the ascending population ids that Q10's "N units" commands take. Legacy and `gdd-0.1` content refuse it. It reads no RNG and changes no state. It is not yet wired into `Simulation.NewGame`: an initialized ledger refuses every aggregate system (R-POP-002), so a new `gdd-0.3` game keeps the aggregate start until the producers are integrated. A fixture builder (`HistoricalPopulation.LedgerFixture`, internal, fixture-only) turns the inventory into an initialized Historical ledger with mode Historical (R-POP-001's 1,000 a record), each record in a region of `content/regions.yaml` (#1691): a census record takes the region whose `member_locations` hold its city (`census/tel_aviv` is `tel_aviv_jaffa`; Jaffa gets no records), and a formation record takes the region whose member hexes hold the formation's starting anchor hex (owner, 3 November 2026, #1689 open question 1: "Its anchor hex's region (Recommended)"). A source with no region is refused; no region is invented. Census records are free civilians with no assignment, and formation records are active soldiers whose service target is their own formation. Each formation record carries one issued military item, id `units_1948/<row id>/<ordinal>`, owned and recorded as paid; census records carry none. Issued items are apart from the spare Arms: the fixture leaves the Arms stock untouched, and a new game still starts with `arms_start`'s 12 (#1717, 27M-24: "The starting formations are equipped, and the Arms stock starts at 12"). Still Deferred: the work assignments of the employed share, which census units are farmers (fields, #1691/#1717; the owner's 1:2:1 novice/trained/veteran ratio per city then applies), and the formations' military qualification and combat experience (#1717). The ledger scale for this start is no longer Deferred: a Historical ledger fixture counts each record at `rules.yaml`'s `people_per_unit` for the start day, 1,000 people (R-POP-001; D2: "The Historical MVP keeps main's start: census cities at 1,000 people a unit (`R-CITY-007`)").
-The four opening-ledger values stay Deferred pending a separate sourced draft for owner approval (4 November 2026, Q24; the coordinator asked: "How should the four deferred opening-ledger values be approved before Historical NewGame initializes the ledger?"; the owner answered: "do the recommended for all"; the chosen option read: "Request and approve a separate sourced draft for employed assignments, farmer identities, formation qualifications and combat XP before wiring NewGame"; [recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6623135448)). Farmer home cities need a source-backed city-by-field proposal for owner approval (4 November 2026, Q26; the coordinator asked: "How should the census-city home of each opening field’s farmer be selected when its region contains several cities?"; the owner answered: "do the recommended for all"; the chosen option read: "Have an agent prepare a source-backed city-by-field proposal for owner approval"; [recorded on #1717](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6623136302)).
+R-POP-004: The Historical start inventory under exact `gdd-0.3` (#1689; owner, 1 November 2026, D2: "Approve all six (Recommended)", and D4). It is read from the same content as the aggregate start: each census city (R-CITY-006) gives its R-CITY-007 start units as free civilians, and each Israeli starting formation of `map/units_1948.yaml` (R-UNIT-006) gives its strength as active soldiers. The 20 farmer units are added to the census total (owner, 7 November 2026: "On top, change the rule (Recommended)", which reverses this rule's earlier "no more and no less"); the inventory does not hold them until they are wired in. Enemy formations are not own population, and a dated arrival (R-UNIT-009) is not in the start inventory: it takes new ids when it arrives (Q11). Counts use `rules.yaml`'s `people_per_unit` (1,000, D2), as R-CITY-007 and R-UNIT-006 do; the `gdd-0.3` catalogue's `population.people_per_unit` (10,000) is Open mode's (D2). A city's records have source key `census/<city id>` and a formation's `units_1948/<row id>`, each with within-source ordinals from 0, so R-POP-001's order (source key by ordinal string comparison, then ordinal) gives the ascending population ids that Q10's "N units" commands take. Legacy and `gdd-0.1` content refuse it. It reads no RNG and changes no state. It is not yet wired into `Simulation.NewGame`: an initialized ledger refuses every aggregate system (R-POP-002), so a new `gdd-0.3` game keeps the aggregate start until the producers are integrated. A fixture builder (`HistoricalPopulation.LedgerFixture`, internal, fixture-only) turns the inventory into an initialized Historical ledger with mode Historical (R-POP-001's 1,000 a record), each record in a region of `content/regions.yaml` (#1691): a census record takes the region whose `member_locations` hold its city (`census/tel_aviv` is `tel_aviv_jaffa`; Jaffa gets no records), and a formation record takes the region whose member hexes hold the formation's starting anchor hex (owner, 3 November 2026, #1689 open question 1: "Its anchor hex's region (Recommended)"). A source with no region is refused; no region is invented. Census records are free civilians with no assignment, and formation records are active soldiers whose service target is their own formation. Each formation record carries one issued military item, id `units_1948/<row id>/<ordinal>`, owned and recorded as paid; census records carry none. Issued items are apart from the spare Arms: the fixture leaves the Arms stock untouched, and a new game still starts with `arms_start`'s 12 (#1717, 27M-24: "The starting formations are equipped, and the Arms stock starts at 12"). Still not in the inventory or the fixture: the work assignments of the employed share, the opening field farmers (fields, #1691/#1717; the owner's 1:2:1 novice/trained/veteran ratio per city then applies), and the formations' military qualification and combat experience (#1717). The paragraphs below record the owner's decision on each. The ledger scale for this start is no longer Deferred: a Historical ledger fixture counts each record at `rules.yaml`'s `people_per_unit` for the start day, 1,000 people (R-POP-001; D2: "The Historical MVP keeps main's start: census cities at 1,000 people a unit (`R-CITY-007`)").
+The four opening-ledger values were Deferred pending a separate sourced draft for owner approval (4 November 2026, Q24; the coordinator asked: "How should the four deferred opening-ledger values be approved before Historical NewGame initializes the ledger?"; the owner answered: "do the recommended for all"; the chosen option read: "Request and approve a separate sourced draft for employed assignments, farmer identities, formation qualifications and combat XP before wiring NewGame"; [recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6623135448)). Farmer home cities needed a source-backed city-by-field proposal for owner approval (4 November 2026, Q26; the coordinator asked: "How should the census-city home of each opening field’s farmer be selected when its region contains several cities?"; the owner answered: "do the recommended for all"; the chosen option read: "Have an agent prepare a source-backed city-by-field proposal for owner approval"; [recorded on #1717](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6623136302)).
+
+Owner decision on both drafts, 7 November 2026: "all reccomended in "Decisions for the owner: the GDD 0.3 starting population (#1689) and where the field farmers live (#1717)" - approved" ([recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6703676150)). This wires nothing into `Simulation.NewGame`.
+
+Approved, starting population (`research_notes/GDD phase 4/opening-ledger-values-1689.md`, Owner-approval table). Row 1: employed units = census units x the printed working share, for Jerusalem, Tel Aviv-Yafo, Haifa, Tiberias and Safed (the wording answer below keeps R-CITY-007's people x share; those five cities' rounded units are the same either way). Row 2: the other seven census cities use the national 43.9%, labelled a stand-in. Row 4: no farmer identities for now. Row 5: one training level for all six Field Corps brigades, the level being a labelled stand-in. Row 8: Negev's combat experience is a labelled stand-in. The answers below give both values.
+
+Approved, field hosts (`research_notes/GDD phase 4/opening-field-farmer-cities-1717.md`). Every row settled by a source, and every row forced by the same-region rule. F01 and F02: Rosh Pinna. F11: Hadera. F18: Rishon LeZion. Decision A, option 1: F19 and F20 keep the same-region rule and are hosted at Nir Am and Nirim.
+
+Owner answers, 7 November 2026, on the items that decision left open ([recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704389240)). Farmers: "On top of census (Recommended)": the 20 farmers are separate units in their host towns, not taken from the city population. Rows 5 and 6: "Veteran for all 8 (Recommended)". Rows 7 and 8: "1 each, Negev 0 (Recommended)"; Negev's 0 is a labelled stand-in. Decision A host kind: "These two only (Recommended)": a settlement can host farmers for F19 and F20 only. F13, F14, F17: "Haifa, Haifa, Rehovot (Recommended)", design choices, not sourced. Nirim: "Add Nirim to Negev (Recommended)". Row 1 wording: "Keep people x share (Recommended)", as R-CITY-007 and the code do.
+
+Row 3, the mapping from economic branches to game jobs: the owner first answered "Map branches to game jobs", then ([recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704428057)) "Start in Industry (Recommended)" for building workers and "Start in Industry (Recommended)" for city people in agriculture. Trade, transport and services have no game job, so they go to Industry too (design choice). Row 3 closes with no change in the game: every employed unit starts in Industry. The printed branch shares stay in the research note.
+
+Owner answers, 7 November 2026, on the start's population rules ([recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704565066)). "On top, change the rule (Recommended)": the 20 farmer units are added to the census total. "Yes to all three (Recommended)": every farmer is staffed on their field from turn 1; one added housing place per farmer in their host; the training centre's one veteran pioneer teacher is a Haifa census unit.
+
+No item of either draft is open. These values are not yet wired into `Simulation.NewGame`: a new `gdd-0.3` game keeps the aggregate start.
#1706 slices 0/1 (coordinator decision, 26 Oct 2026, Q5): the synthetic combat catalogue foundation is inactive in the actual game. R-COMBAT-001 through R-COMBAT-008 retain their current runtime meanings. See [the catalogue foundation](../gdd03-catalogue.md#1706-slices-01-inactive-combat-catalogue-foundation) for its data contract and sources.
diff --git a/sim/Statecraft.Sim.Tests/HistoricalPopulationTests.cs b/sim/Statecraft.Sim.Tests/HistoricalPopulationTests.cs
index 822f5d929..fd94bd3c0 100644
--- a/sim/Statecraft.Sim.Tests/HistoricalPopulationTests.cs
+++ b/sim/Statecraft.Sim.Tests/HistoricalPopulationTests.cs
@@ -352,6 +352,81 @@ public class HistoricalPopulationTests
}
}
+ // R-CITY-007, R-CITY-006, R-POP-004 (owner, 7 November 2026, opening-ledger rows 1 and 2): each city's employed units are
+ // people x employed_share over rules.yaml's people_per_unit, nearest unit with a half up, written out here rather than
+ // read from Cities.NearestUnit. Five cities have their printed share; the seven others have the national 43.9%, a
+ // labelled stand-in (status design). Rosh Pinna's 153.65 people round to 0: the "at least 1" floor is for civilians only.
+ [Fact]
+ public void EachCitysEmployedIsItsPeopleTimesItsShare()
+ {
+ var expected = new (string City, decimal Share, string Status, int Employed)[]
+ {
+ ("jerusalem", 0.342m, "sourced", 29),
+ ("tel_aviv", 0.426m, "sourced", 106),
+ ("haifa", 0.429m, "sourced", 42),
+ ("tiberias", 0.334m, "sourced", 2),
+ ("safed", 0.345m, "sourced", 1),
+ ("petah_tikva", 0.439m, "design", 10),
+ ("rishon_lezion", 0.439m, "design", 5),
+ ("rehovot", 0.439m, "design", 5),
+ ("hadera", 0.439m, "design", 5),
+ ("netanya", 0.439m, "design", 5),
+ ("zikhron_yaakov", 0.439m, "design", 1),
+ ("rosh_pinna", 0.439m, "design", 0),
+ };
+ var c = Real(true);
+ var perUnit = c.RulesAt(c.Rules.Start).Mvp!.PeoplePerUnit;
+ var start = Simulation.NewGame(c, 1, Mode.Historical);
+ Assert.Equal(expected.Select(e => e.City).OrderBy(s => s, StringComparer.Ordinal),
+ c.Cities.Select(x => x.Id).OrderBy(s => s, StringComparer.Ordinal));
+ foreach (var (id, share, status, employed) in expected)
+ {
+ var city = c.Cities.Single(x => x.Id == id);
+ Assert.Equal((id, share, status), (id, city.EmployedShare!.Value, city.EmployedShare.Status));
+ var formula = (int)Math.Round(city.People!.Value * city.EmployedShare.Value / perUnit, MidpointRounding.AwayFromZero);
+ Assert.Equal((id, employed), (id, formula));
+ Assert.Equal((id, employed), (id, city.Employed));
+ Assert.Equal((id, employed), (id, start.Cities[id].Employed));
+ }
+ }
+
+ // R-POP-004 (owner, 7 November 2026): row 4 approved no farmer identities, the farmers come on top of the census, and
+ // row 3's Industry start is not wired in, so a census record stays a plain free civilian: no profession, no tier and no
+ // Work assignment.
+ [Fact]
+ public void CensusRecordsHaveNoProfessionTierOrWork()
+ {
+ var c = Real(true);
+ var inventory = HistoricalPopulation.Inventory(c);
+ var units = HistoricalPopulation.LedgerFixture(c).PopulationLedger.Units;
+ var census = units.Where((u, i) => inventory[i].Source.StartsWith(HistoricalPopulation.CensusPrefix, StringComparison.Ordinal)).ToList();
+ Assert.NotEmpty(census);
+ Assert.All(census, u =>
+ {
+ Assert.Equal(CivilianProfession.None, u.Profession);
+ Assert.Equal(CivilianTier.None, u.Tier);
+ Assert.NotEqual(PopulationAssignmentKind.Work, u.Assignment.Kind);
+ });
+ }
+
+ // R-POP-004 (owner, 7 November 2026): rows 5 to 8 are decided (Veteran for all 8; 1 tick each, Negev 0) but not wired in,
+ // so a starting soldier has no qualification and no XP of either kind yet.
+ [Fact]
+ public void StartingSoldiersHaveNoQualificationOrXp()
+ {
+ var c = Real(true);
+ var inventory = HistoricalPopulation.Inventory(c);
+ var units = HistoricalPopulation.LedgerFixture(c).PopulationLedger.Units;
+ var soldiers = units.Where((u, i) => inventory[i].Source.StartsWith(HistoricalPopulation.FormationPrefix, StringComparison.Ordinal)).ToList();
+ Assert.NotEmpty(soldiers);
+ Assert.All(soldiers, u =>
+ {
+ Assert.Equal("", u.Qualification);
+ Assert.Equal(0, u.CombatXp);
+ Assert.Equal(0, u.WorkXp);
+ });
+ }
+
// R-POP-004, 27M-24: the issued items are distinct, one per population unit of each own starting formation, so their
// count is the formations' total strength.
[Fact]