A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Population identity foundation — #1689 steps 1–2
This is a fixture-only data/helper contract under exact gdd-0.3 identity (R-POP-001/002/003), not a playable campaign. No production era, shipped content, catalogue or save envelope changes. The existing synthetic Attention/Arms harnesses still exercise their pre-ledger aggregate model; that does not activate population identity. A state with an initialized ledger is rejected by Simulation.Step, Preview and DelegatedTo and at direct aggregate population/resource producer boundaries before any mutation (PopulationLedger.RefuseAggregate). The guarded sites include Cities, PopulationSystem, Pools, starting forces, training, qualification/demobilisation, military/combat/prisoners, event mutation, the economy and objectives (the readers of GameState.TotalPopulation, which reads the ledger once it is initialized) and the turn resolver. Direct integration into Cities, PopulationSystem, Training, Combat, Prisoners, Pools and other systems remains held, except the step-7 Food settlement given a month's synthetic context: the internal Pools.Consume overload reads its need from the month's frozen opening snapshot (Gdd03SyntheticMonthContext.OpeningPeople), one ration per living own population id in it (R-FOOD-002, #2470). The public Pools.Consume and Harvest still refuse; Pools.Init, BuyArms and FoodTerm run only on a Historical ledger (#1725 PR 5 and PR 7; R-FOOD-003, #1704) and refuse a synthetic or Open one.
PopulationLedger.CreateFixture is internal (test assembly friend access), constructs a fresh GameState without Simulation.NewGame, validates explicit frozen location/target/captor/qualification bindings and builds inventory in source-key/ordinal order. It never converts census headcounts, historical formations, cohorts or events into people. Fixture rows are visibly synthetic, supplied in test code; no new files are loaded or hashed as content. Each reception tick is one whole reception turn, capped by the Agreed catalogue reception.turns; course limits are explicit synthetic target data, not production defaults.
The public read surface returns immutable records and a read-only snapshot list. Mutations require an initialized gdd-0.3 ledger. Get/count, move, explicit assignment release/change, atomic transition, replacement of history/progress/equipment, registered arrival and combat loss form the contract for later issues. Replacement cannot insert a new identity. Transition and move preserve reception, both experience tracks, profession/tier, qualification and issued-equipment facts. Capture must retain a bound home and captor and clear local assignment/location; return callers must supply a valid status/location/assignment. The helper chooses no destination, formation, exchange timing, prices or refunds.
Validation builds a candidate map first, including teacher resolution and unique issued-item ownership across both equipment categories. A referenced teacher cannot disappear or leave teaching while pupils still refer to it; future integrated operations must release/reassign references atomically before that loss/transition. No resources, RNG or cause log are involved. Explicit arrival provenance remains consumed after death. int.MaxValue is the allocator exhaustion sentinel; allocation refuses before changing anything. Reconcile checks the exact source/loss/living id relation. Fixture-only nextPopulationId allows boundary coverage without allocating billions of records.
GameState.Clone owns a copied ledger; frozen bindings and records can be shared. A location may name a city; CreateFixture refuses one that regions.yaml does not list in the location's region, or one that is neither a census city of cities.yaml nor a field host of that region (a locality, a sites.yaml id or a map location), naming both. Canonical output writes the city as |city= only when set, so a location without one keeps its text and hash, and covers the full binding inventory, all unit fields, source/loss records, initialization flag, scale/reception requirement and allocator in one shared Describe/Hash writer. Reference strings use invariant length-prefixed encoding with an explicit null marker; embedded delimiters cannot alias another record. All accepted reference/provenance strings reject malformed UTF-16 before admission, so UTF-8 hashing cannot collapse invalid surrogate sequences; valid supplementary characters remain lossless. Enum declaration order is never serialized. Older identities enter none of this writer. The new empty gdd-0.3 section changes unpublished schema-4 draft hashes only; no legacy/schema-3 migration or byte change is intended.
No save/reload round trip for population identity is claimed. The existing seed/content/command replay envelope is unchanged; step 3 must introduce actual identity-addressed replayable producers before population fixtures can be saved as campaigns. Captured Food selection and arrival meal timing, course/combat/prisoner integration, production initialization and all of #1704 remain held. The #2470 fixture counts a captured own record as one national ration, the reading of docs/gdd/balance.md population.food_per_turn ("Food per own population unit, every status") that the owner chose on 5 November 2026 (the recommended option, recorded on #2678 as "Captured own-population records do eat the national ration"); this is settled. This foundation does not close #1689.
Historical start inventory (R-POP-004)
HistoricalPopulation.Inventory is internal and reads the shipped content under exact gdd-0.3: one free-civilian row per census city start unit (R-CITY-007) and one active-soldier row per population unit of each Israeli starting formation of map/units_1948.yaml (R-UNIT-006), at rules.yaml's 1,000 people a unit (owner, 1 November 2026, D2). Rows carry a source key (census/<city id>, units_1948/<row id>) and a within-source ordinal, in R-POP-001's order. Enemy formations and dated arrivals (R-UNIT-009) are not in it: an own dated brigade is bound at the start with no record and arrives on its day as new active-soldier records (StartingForces.Arrive, #1725 PR 7, producer 08; see R-UNIT-009). It builds no PopulationUnit itself. HistoricalPopulation.LedgerFixture (internal, fixture-only) turns it into an initialized Historical ledger and binds each record to a region of content/regions.yaml: a census record takes the region whose member_locations hold its city, and its location names that city (PopulationLocation.City), a formation record the region whose member hexes hold its starting anchor hex (R-POP-004); a source with no region is refused. Census records start with their reception done (reception.turns), so R-VET-001's received-free-civilian work XP can apply to them. One census record, the last census/haifa ordinal, is the training centre's veteran pioneer teacher (#1689, start.pioneer_teachers 1): a pioneer at the veteran tier with work XP 0 and no assignment, since a teaching teacher with no pupil is refused (R-TRAIN-008); see R-POP-004. The 20 opening field farmers (#1725 PR 4) are records too, on top of the census: source field/<label>, ordinal 0, each a free civilian farmer working its field from turn 1 and living in the field's host, split 1:2:1 per host (HistoricalPopulation.FieldFarmerHosts; 1 / 18 / 1 in all), work XP 0 and reception done; the dark start adds one housing place per farmer in a census host (18 of 20; Nir Am and Nirim have no city record); see R-POP-004. Each formation record carries one issued military item (units_1948/<row id>/<ordinal>, recorded as paid), apart from the spare Arms (#1717). A formation record's military qualification is its type's unit_types.yaml class, and its combat XP is gdd03-start.yaml's formation_combat_xp (#1689 rows 5 to 8, R-POP-004). The public NewGame does not call it, because an initialized ledger refuses the aggregate systems a gdd-0.3 game still runs (R-POP-002). The dark start, NewGame's internal fixture-only overload (#1725 PR 5), initializes the same ledger in place (HistoricalPopulation.Initialize, all or nothing) before Pools.Init, which then starts Food at cover_months of the ledger's rations; it places the starting forces against the ledger's soldiers and fires no opening event, since EventSystem.Trigger still refuses a ledger. The test HistoricalPopulationTests checks it, city by city and formation by formation, against the aggregate start of the same content. The ledger also binds each start facility's Course target (military_camp/<city>, hakhshara/<city>, in the city's region) and each military track's unit class as a qualification, and PopulationLedger.BindTarget and Commit bind a built camp's course or a trained formation's formation/<unit id> at runtime, all or nothing (owner, 8 November 2026, "Start + runtime bind (Rec.)"; R-TRAIN-001, #1725 PR 7).