A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
sim: GDD Phase 4 PR 1, the MVP's four yishuv sites and their fields, with site kinds (refs #785) (#866)
Berif9e143bb32bb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c6881feae..3dfc9e85b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -26,6 +26,11 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB- People audit batch 1 (#457): shazar's name_he now cites the Knesset's member page instead of en.wiki; thebatch's source-coverage findings (some MK pages - Kaplan, Pinkas - carry the birth year only, so those exactbirth dates keep their citations pending a JPress pass; the Zisling spelling conflict) are recorded in the PR. No values changed.+- The MVP has four designated yishuv sites, where it had Mefalsim alone (refs #785, #384; Q-SITE-1, owner, #782):+ Beit Kama (18 April 1949), Re'im (20 October 1949) and Gilat (4 December 1949) join it in `content/sites.yaml`, each+ with a field site in its hex. A site now has kinds (`yishuv`, `field`, `swamp`, `military_camp`, `hakhshara`); an+ action is accepted only at a site of its kind (R-SITE-004), and a hex holds at most one yishuv site (R-SITE-005). The+ reference player builds the four in id order, so `hash1950`, `hash1952` and `mvp-end` move (docs/determinism.md).- Tel Aviv's White City is plastered a warm cream, as in promo 03, where it was a cooler lime white (refs #658). Walls,parapets and roof terraces change in Tel Aviv only. Haifa's Hadar and every other town keep their colours, and TelAviv stays clearly lighter than Jaffa's sandstone (`TownCensusTests.TelAvivsPlasterIsWarmCreamAndStillWhiterThanJaffa`).diff --git a/content/sites.yaml b/content/sites.yamlindex 17d7e60e2..2b542e952 100644--- a/content/sites.yaml+++ b/content/sites.yaml@@ -1,8 +1,13 @@# GDD v0.1 designated sites (docs/GDD.md "Pioneer work": building is allowed only at designated spots, and a new yishuv-# takes its site's name). Phase 1 has one site (owner decision D-A4; the owner chose Mefalsim on #378, 14 October 2026).-# Sourced facts only: the build turns and cost are labelled design values in rules.yaml mvp: (Q-CUT-1, owner, 15 October-# 2026; R-LOOP-005). The loader reads this file only when eras.yaml systems.loop is gdd. Research: #459,-# research_notes/GDD objectives/designated-site-1.md.+# takes its site's name). Phase 1 had one site (owner decision D-A4; the owner chose Mefalsim on #378, 14 October 2026).+# Phase 4 PR 1 (#785) adds the MVP's other yishuv sites, Beit Kama, Re'im and Gilat (Q-SITE-1, owner, 17 October 2026, #782:+# "take all of the plan's recommendations"), and a field site in each yishuv's hex (Q-FIELD-1). The Hula swamp site and the+# camp sites wait for the owner (#785). Research for the three: research_notes/GDD objectives/settlements-1949-51.md, rows+# 22, 23 and 25. Their sources carry that note's checked date (14 October 2026); no person has re-read them since, so the+# rows stay draft.+# The yishuv rows are sourced facts. The field rows are design placements, not facts (Q-FIELD-1). The build turns and cost+# are labelled design values in rules.yaml mvp: (Q-CUT-1, owner, 15 October 2026; R-LOOP-005). The loader reads this file+# only when eras.yaml systems.loop is gdd. Research: #459, research_notes/GDD objectives/designated-site-1.md.sites:- id: mefalsimname: Mefalsim@@ -29,3 +34,118 @@ sites:# Wikidata Q2890190: the names (Mefalsim, מפלסים) and the coordinates the hex is computed from (tools/hexgrid.py).- { url: "https://www.wikidata.org/wiki/Q2890190", checked: 2026-10-14 }status: fact-checked+ - id: mefalsim_field+ name: Mefalsim fields+ # For the native reviewer (#564): "the fields of Mefalsim".+ name_he: שדות מפלסים+ # Design placement (Q-FIELD-1, owner, #782), not a historical field: the hex is the yishuv's. No new place and no new+ # fact: the source is Mefalsim's hex.+ q: -10+ r: 27+ kinds: [field]+ sources:+ - { url: "https://www.wikidata.org/wiki/Q2890190", checked: 2026-10-14 }+ status: draft+ - id: beit_kama+ name: Beit Kama+ name_he: בית קמה+ # Hex from the Central Bureau of Statistics point 31.44853 N, 34.76108 E (tools/hexgrid.py; Hebrew Wikipedia 39 m away).+ # No 1948 settlement, line hex or 1948 locality within one hex (settlements note, row 22).+ q: -8+ r: 28+ kinds: [yishuv]+ # Going onto the land of Tel Maliha on 19 Nisan 5709, 18 April 1949, by the Hashomer Hatzair group then called Sefiah+ # (renamed Beit Kama in June 1951, per the Beit Kama archive page). Gvati gives 18.4.49, and English Wikipedia agrees.+ # Hebrew Wikipedia gives 19 April 1949 [conflict, one day], citing an Al HaMishmar item of 19 April 1949 that no one has+ # read yet.+ founded: 1949-04-18+ sources:+ # Gvati, 100 Years of Settlement, vol. 2, list of all Jewish rural settlements: Beit Kama, 18.4.49.+ - { url: "https://benyehuda.org/read/14684", checked: 2026-10-14 }+ # Kibbutz mynet: the founding scroll, "onto the land of Tel Maliha on 19 Nisan 5709".+ - { url: "https://kibbutz.mynet.co.il/local_news/article/m_154712", checked: 2026-10-14 }+ # Beit Kama heritage archive page (israeliana.org): the first name Sefiah, renamed Beit Kama in June 1951.+ - { url: "https://www.israeliana.org/post/%D7%90%D7%A8%D7%9B%D7%99%D7%95%D7%9F-%D7%A7%D7%99%D7%91%D7%95%D7%A5-%D7%91%D7%99%D7%AA-%D7%A7%D7%9E%D7%94", checked: 2026-10-14 }+ # Hebrew Wikipedia, the revision read for the note: 19 April 1949, citing an Al HaMishmar item (not read).+ - { url: "https://he.wikipedia.org/w/index.php?oldid=43790184", checked: 2026-10-14 }+ # English Wikipedia, the revision read for the note: 18 April 1949.+ - { url: "https://en.wikipedia.org/w/index.php?oldid=1375255214", checked: 2026-10-14 }+ # Central Bureau of Statistics, localities file 2024: the founding year (1949) and the coordinates of the hex.+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draft+ - id: beit_kama_field+ name: Beit Kama fields+ # For the native reviewer (#564): "the fields of Beit Kama".+ name_he: שדות בית קמה+ # Design placement (Q-FIELD-1, owner, #782), not a historical field: the hex is the yishuv's.+ q: -8+ r: 28+ kinds: [field]+ sources:+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draft+ - id: reim+ name: Re'im+ name_he: רעים+ # Hex from the Central Bureau of Statistics point 31.38552 N, 34.45932 E (tools/hexgrid.py; Hebrew Wikipedia 7 m away).+ # Next to the Egypt line hexes shown from 22 February 1950 in map/armistice_hexes_1949.yaml (display only; a site may sit+ # by a line, #378, question 2). No 1948 locality within one hex (settlements note, row 25).+ q: -12+ r: 29+ kinds: [yishuv]+ # Founded 20 October 1949 as a lookout settlement on Tel Jemmeh, by the Hebrew Scouts garin Vav from the Na'an hachshara,+ # first called Tel Re'im. Gvati gives 20.10.49, and two Palmach database entries the same day. The record covers the+ # founding only (owner, 17 October 2026, #782, Q-SENS-1), as Mefalsim's does (#378, question 4).+ founded: 1949-10-20+ sources:+ # Gvati, 100 Years of Settlement, vol. 2: Re'im, 20.10.49.+ - { url: "https://benyehuda.org/read/14684", checked: 2026-10-14 }+ # Palmach database: founded on 20 October 1949 by the Na'an-Schiller hachshara, a lookout settlement on Tel Jemmeh.+ - { url: "https://palmach.org.il/history/database/?itemId=7953", checked: 2026-10-14 }+ - { url: "https://palmach.org.il/history/database/?itemId=5312", checked: 2026-10-14 }+ # Yad Ben-Zvi, "Israel Revealed to the Eye", Kibbutz Re'im: founded 1949 by a Scouts garin Vav, first called Tel Re'im.+ - { url: "https://israelalbum.org.il/mercazim/%D7%A7%D7%99%D7%91%D7%95%D7%A5-%D7%A8%D7%A2%D7%99%D7%9D/", checked: 2026-10-14 }+ # Central Bureau of Statistics, localities file 2024: the founding year (1949) and the coordinates of the hex.+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draft+ - id: reim_field+ name: Re'im fields+ # For the native reviewer (#564): "the fields of Re'im".+ name_he: שדות רעים+ # Design placement (Q-FIELD-1, owner, #782), not a historical field: the hex is the yishuv's.+ q: -12+ r: 29+ kinds: [field]+ sources:+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draft+ - id: gilat+ name: Gilat+ name_he: גילת+ # Hex from the Central Bureau of Statistics point 31.32798 N, 34.65203 E (tools/hexgrid.py; Hebrew Wikipedia 3 m away).+ # Tifrah's hex too (designated-site-1.md), which is not a site; no line hex or 1948 locality within one hex (row 23).+ q: -10+ r: 30+ kinds: [yishuv]+ # Going onto the land on 13 Kislev 5710, 4 December 1949, by immigrants from Tunisia (a moshav of Tnuat HaMoshavim).+ # Gvati gives 4.12.49, and Hebrew Wikipedia the Hebrew date.+ founded: 1949-12-04+ sources:+ # Gvati, 100 Years of Settlement, vol. 2: Gilat, 4.12.49.+ - { url: "https://benyehuda.org/read/14684", checked: 2026-10-14 }+ # Hebrew Wikipedia, the revision read for the note: going onto the land on 13 Kislev 5710.+ - { url: "https://he.wikipedia.org/w/index.php?oldid=43560845", checked: 2026-10-14 }+ # Central Bureau of Statistics, localities file 2024: the founding year (1949) and the coordinates of the hex.+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draft+ - id: gilat_field+ name: Gilat fields+ # For the native reviewer (#564): "the fields of Gilat".+ name_he: שדות גילת+ # Design placement (Q-FIELD-1, owner, #782), not a historical field: the hex is the yishuv's.+ q: -10+ r: 30+ kinds: [field]+ sources:+ - { url: "https://www.cbs.gov.il/he/publications/doclib/2019/ishuvim/bycode2024.xlsx", checked: 2026-10-14 }+ status: draftdiff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 88ce84868..4b4d73b47 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -19,8 +19,8 @@ GitHub Releases page (and, from M4, on itch.io). Steps 1–3 are a normal pull r"$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -shareable -logFile "$PWD/unity-build-web-br.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.assetuv run tools/web_check.py unity/Builds/Web-brotli --query "golden&smoke=5" \- --expect "GOLDEN OK 1950 2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be" \- --expect "GOLDEN OK 1952 f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59" \+ --expect "GOLDEN OK 1950 37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b" \+ --expect "GOLDEN OK 1952 7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa" \--expect "SMOKE OK 5 turns 1948-10-15 2436927c8b24f28c42be0e7b5a6fe30900f2f6c6a3ba77e4be943c1f50db57cc"bash scripts/oss/package_web.sh unity/Builds/Web-brotli unity/Builds/statecraft-israel-vX.Y.Z-web.zip```diff --git a/docs/determinism.md b/docs/determinism.mdindex b982a1591..77991c30e 100644--- a/docs/determinism.md+++ b/docs/determinism.md@@ -28,9 +28,9 @@ final `GameState.Hash()` is pinned:| Run | Ends | Hash ||---|---|---|-| to 1950-01-01 (`Hash1950`) | 1950-01-15, turn 20 | `2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be` |-| to 1952-01-01 (`Hash1952`) | 1952-01-15, turn 44 (the game's end) | `f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59` |-| to the game's end (`mvp-end`) | 1952-01-15, turn 44 | `f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59` |+| to 1950-01-01 (`Hash1950`) | 1950-01-15, turn 20 | `37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b` |+| to 1952-01-01 (`Hash1952`) | 1952-01-15, turn 44 (the game's end) | `7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa` |+| to the game's end (`mvp-end`) | 1952-01-15, turn 44 | `7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa` |`hash1952` stops at the first turn on or after 1 January 1952, which is the game's last turn, so it is the same run as`mvp-end` (`DeterminismTests.TheWholeGameToItsEndIsFixed`). Both names are kept (spec 2026-10-12 section 3 step 6): a@@ -45,8 +45,8 @@ Check every build with:```uv run tools/web_check.py unity/Builds/Web-<compression> --query "golden&smoke=5" \- --expect "GOLDEN OK 1950 2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be" \- --expect "GOLDEN OK 1952 f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59" \+ --expect "GOLDEN OK 1950 37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b" \+ --expect "GOLDEN OK 1952 7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa" \--expect "SMOKE OK 5 turns 1948-10-15 2436927c8b24f28c42be0e7b5a6fe30900f2f6c6a3ba77e4be943c1f50db57cc"```@@ -252,3 +252,6 @@ The hash reads the state keys, so it never sees a record outside its window. An| GDD Phase 2 PR 4 | scenario-cautious | `28fd1405` | same; `morale` ends at 0.6183 (was 0.5296) (was `a9afb0ad`) || GDD Phase 2 PR 4 | scenario-reckless | `af7b2abd` | same (was `8f209d56`) || GDD Phase 2 PR 4 | scenario-mvp-absorb-first | `b16a8740` | same (was `8601da93`) |+| GDD Phase 4 PR 1 | 1950 | `37c51050` | the MVP's four yishuv sites (R-SITE-004, Q-SITE-1, #785): the reference player builds them in ordinal id order, so Beit Kama is built on 1949-03-15 and Gilat on 1949-09-15, and Mefalsim is still being built on 1 January 1950. The first-new-yishuv objective and its card leave the run (score 0, was 115), and the debt is IL 4m higher for the extra builds (was `2766b45b`) |+| GDD Phase 4 PR 1 | 1952 | `7745031b` | same; Mefalsim is built on 1950-03-15 and Re'im on 1950-09-15, so the objective completes nine months after its reference date with no timing bonus (score 100, was 115); the debt is IL 6m higher (was `f8cd22d7`) |+| GDD Phase 4 PR 1 | mvp-end | `7745031b` | same; the same run as hash1952 (was `f8cd22d7`) |diff --git a/docs/gdd/build-yishuv.md b/docs/gdd/build-yishuv.mdindex 23021d5d3..7e87168eb 100644--- a/docs/gdd/build-yishuv.md+++ b/docs/gdd/build-yishuv.md@@ -6,7 +6,9 @@ As a player of the MVP, I want to send a group of halutzim to build a new yishuv## Rules-- Building is allowed only at designated sites, listed with their sources in `content/sites.yaml`. The slice has one: Mefalsim, founded on 12 June 1949, the day of the ceremony of going onto the land [S4][S5]. The owner chose it on #378 [S3].+- Building is allowed only at designated sites, listed with their sources in `content/sites.yaml`. The first slice had one: Mefalsim, founded on 12 June 1949, the day of the ceremony of going onto the land [S4][S5]. The owner chose it on #378 [S3].+- Since the GDD phase of pioneer sites (#785) the MVP has four yishuv sites: Mefalsim, Beit Kama (18 April 1949), Re'im (20 October 1949) and Gilat (4 December 1949) [S4][S6]. The owner took the plan's recommendation on #782 [S7]. The Re'im and Mefalsim records cover the founding only.+- Each site has one or more kinds: `yishuv`, `field`, `swamp`, `military_camp` or `hakhshara`. A pioneer action is accepted only at a site of its kind, so `build_yishuv` is refused at a field site (R-SITE-004). A camp site names the city it trains for. At most one `yishuv` site sits in a hex; a site of another kind may share it, as each yishuv's field site does (R-SITE-005). Plowing, draining and building camps come with later PRs of that phase.- A site is available from the game's start. It may sit on an armistice line hex, as Mefalsim's hex does [S3].- `PioneerWork(unit, build_yishuv, site)` sends an idle halutz unit to build. It costs IL 2m, a placeholder paid in full at once, borrowing what the Treasury lacks (owner decision on #378 [S3]), and no Attention, because unit orders are free (D-A6). The unit works from where it stands (R-SITE-001).- It is refused, with the state unchanged, for an unknown unit, a unit that is not a halutz or already has a project (one project per unit, D-D6), an unknown action or site, a site being built or built (one unit per site), or the legacy loop (R-SITE-001).@@ -37,6 +39,8 @@ As a player of the MVP, I want to send a group of halutzim to build a new yishuv- [S3] GDD Phase 1 plan for PR 5 and the owner's decisions, https://github.com/eyalgolan/statecraft-israel/issues/378, checked 2026-10-14- [S4] Haim Gvati, 100 Years of Settlement, vol. 2, list of all Jewish rural settlements, https://benyehuda.org/read/14684, checked 2026-10-14- [S5] Yad Ben-Zvi, "Israel Revealed to the Eye", Kibbutz Mefalsim, https://israelalbum.org.il/mercazim/%D7%A7%D7%99%D7%91%D7%95%D7%A5-%D7%9E%D7%A4%D7%9C%D7%A1%D7%99%D7%9D/, checked 2026-10-14+- [S6] Settlements founded in 1949-1951, rows 22, 23 and 25, research_notes/GDD objectives/settlements-1949-51.md+- [S7] GDD Phase 4 owner answers, https://github.com/eyalgolan/statecraft-israel/issues/782, checked 2026-10-17## Open questionsdiff --git a/docs/rules/mvp.md b/docs/rules/mvp.mdindex de3a576d7..41a8e84ce 100644--- a/docs/rules/mvp.md+++ b/docs/rules/mvp.md@@ -74,6 +74,10 @@ R-SITE-002: `StopWork(unit)` ends the unit's build: the site is available again,R-SITE-003: Each turn, in ordinal site id order, every site being built has one turn less to go. A site that reaches 0 is built, on the turn's end date, and its unit is idle again. The unit stays a halutz unit, and no city, housing, job, population or Social cohesion changes. Sites being built or built are written into the state hash only when there are some.+R-SITE-004: Every designated site has one or more kinds from a fixed list: `yishuv`, `field`, `swamp`, `military_camp` and `hakhshara` (Phase 4, Q-FIELD-1, Q-SWAMP-1, Q-CAMP-3). A pioneer action is accepted only at a site of its kind; any other is refused with the state unchanged and the Attention refunded. A yishuv site has a founding date inside the MVP's years and no other kind has one. A camp site (`military_camp` or `hakhshara`) names a city of `cities.yaml`, the city it trains for (Q-CAMP-1), and no other kind names one. The loader refuses any other row, naming the file and field.++R-SITE-005: At most one `yishuv` site sits in a hex, so a hex shows at most one new yishuv. A site of another kind may share a hex with a yishuv site, as a yishuv's field site does (Q-SITE-3).+## ObjectivesR-OBJ-001: An objective (`objectives.yaml`) names its condition, `completes_when: { site_built: <site> }`, a designated site of kind yishuv whose `founded` date must equal the objective's `reference_date`. In the last step of each GDD turn (spec §2.3, step 11; D-A6), in id order, an objective whose site is built and that is not yet recorded is recorded once, with the turn's end date (the site's `BuiltOn`). Recording it again, or in the legacy loop, changes nothing; a stopped build completes nothing.diff --git a/sim/Statecraft.Sim.Tests/EventRetimingTests.cs b/sim/Statecraft.Sim.Tests/EventRetimingTests.csindex cd3871823..5a8c87bcd 100644--- a/sim/Statecraft.Sim.Tests/EventRetimingTests.cs+++ b/sim/Statecraft.Sim.Tests/EventRetimingTests.cs@@ -62,7 +62,7 @@ public class EventRetimingTests[InlineData("armistice_lebanon", "1949-04-15")][InlineData("armistice_jordan", "1949-04-15")][InlineData("austerity_1949", "1949-05-15")]- [InlineData("first_new_yishuv", "1949-03-15")] // R-OBJ-003: the turn the reference player builds Mefalsim (1949-06-15 before GDD Phase 3 PR 1)+ [InlineData("first_new_yishuv", "1950-03-15")] // R-OBJ-003: the turn the reference player builds Mefalsim (1949-03-15 before GDD Phase 4 PR 1, when it was the only site; 1949-06-15 before GDD Phase 3 PR 1)[InlineData("armistice_syria", "1949-08-15")][InlineData("frumkin_commission", "1950-01-15")][InlineData("maabarot_policy", "1950-04-15")]diff --git a/sim/Statecraft.Sim.Tests/ObjectivesTests.cs b/sim/Statecraft.Sim.Tests/ObjectivesTests.csindex 3d7ecf449..add8a772e 100644--- a/sim/Statecraft.Sim.Tests/ObjectivesTests.cs+++ b/sim/Statecraft.Sim.Tests/ObjectivesTests.cs@@ -264,11 +264,13 @@ eras:[Fact]public void TheGoldenRunCompletesTheFirstNewYishuvOnTheBuildDate(){- var s = GoldenRun.Play(Real, GoldenRun.Until1950);+ var s = GoldenRun.Play(Real, GoldenRun.Until1952); // to 1952: Mefalsim is built in 1950 since #785var built = s.Sites["mefalsim"].BuiltOn!.Value;- Assert.Equal(new DateTime(1949, 3, 15), built);+ // Since Phase 4 PR 1 (#785) the reference player builds the yishuv sites in id order, one after another as its halutzim+ // come free: Beit Kama and Gilat first, so Mefalsim is built in March 1950, nine months after its founding date (12 June 1949).+ Assert.Equal(new DateTime(1950, 3, 15), built);Assert.Equal(built, s.Objectives["first_new_yishuv"]);- Assert.Equal(100 + 3 * 5, s.Score); // D-B6 and D-B2: +5 a month for three months early+ Assert.Equal(100, s.Score); // D-B6; no D-B2 bonus, as it is built after the reference dateAssert.Equal("continue", s.ChosenOptions["first_new_yishuv"]);}@@ -323,7 +325,7 @@ eras:new object[] { "objectives.yaml", "objectives: []\n", Card, "events/first_card.yaml", "events[first_card].objective", "unknown objective 'first_goal'" },new object[] { "objectives.yaml", Objective("site_built: site_a", "site_built: nowhere"), Card, "objectives.yaml", "objectives[first_goal].completes_when.site_built", "unknown site 'nowhere'" },new object[] { "objectives.yaml", Objective("reference_date: 1949-06-12", "reference_date: 1949-06-08"), Card, "objectives.yaml", "objectives[first_goal].reference_date", "must be 1949-06-12, the founding date of site 'site_a'" },- new object[] { "sites.yaml", Fixture.GddSites.Replace("kinds: [yishuv]", "kinds: []"), Card, "objectives.yaml", "objectives[first_goal].completes_when.site_built", "cannot be built as a yishuv" },+ new object[] { "sites.yaml", Fixture.GddSites.Replace("kinds: [yishuv]", "kinds: [field]").Replace(" founded: 1949-06-12\n", ""), Card, "objectives.yaml", "objectives[first_goal].completes_when.site_built", "cannot be built as a yishuv" },new object[] { "rules.yaml", GddRules(" objective_points: 100\n", ""), Card, "rules.yaml", "mvp.objective_points", "required when eras.yaml systems.loop is gdd" },new object[] { "rules.yaml", GddRules("objective_bonus_per_month: 5", "objective_bonus_per_month: -5"), Card, "rules.yaml", "mvp.objective_bonus_per_month", "must be >= 0" },new object[] { "rules.yaml", GddRules("objective_bonus_cap: 60", "objective_bonus_cap: -1"), Card, "rules.yaml", "mvp.objective_bonus_cap", "must be >= 0" },diff --git a/sim/Statecraft.Sim.Tests/ProjectsTests.cs b/sim/Statecraft.Sim.Tests/ProjectsTests.csindex 12020bbe9..aa8eee36e 100644--- a/sim/Statecraft.Sim.Tests/ProjectsTests.cs+++ b/sim/Statecraft.Sim.Tests/ProjectsTests.cs@@ -56,14 +56,16 @@ public class ProjectsTests/// <summary>Site B, on (3, 0), for the refusals that need a second site; <paramref name="kinds"/> its kinds.</summary>static string TwoSites(string kinds = "[yishuv]") => Fixture.GddSites + Fixture.GddSites.Replace("sites:\n", "")- .Replace("site_a", "site_b").Replace("Site A", "Site B").Replace("q: 2", "q: 3").Replace("kinds: [yishuv]", "kinds: " + kinds);+ .Replace("site_a", "site_b").Replace("Site A", "Site B").Replace("q: 2", "q: 3").Replace("kinds: [yishuv]", "kinds: " + kinds)+ .Replace(" founded: 1949-06-12\n", kinds == "[yishuv]" ? " founded: 1949-06-12\n" : ""); // only a yishuv has a founding date- // R-SITE-001: each refusal leaves the state as a step with no order would, so Attention is refunded too.+ // R-SITE-001: each refusal leaves the state as a step with no order would, so Attention is refunded too. R-SITE-004:+ // "not a yishuv site" is build_yishuv at a field site.[Theory][MemberData(nameof(Refusals))]public void TheLimitsAreRefusedAndChangeNothing(string limit, string reason){- var c = Town(new Dictionary<string, string> { ["sites.yaml"] = TwoSites(limit == "not a yishuv site" ? "[]" : "[yishuv]") });+ var c = Town(new Dictionary<string, string> { ["sites.yaml"] = TwoSites(limit == "not a yishuv site" ? "[field]" : "[yishuv]") });var s = WithHalutz(c, out var id, limit == "not a halutz" ? "recruit" : "halutz");var other = s.NextId++;s.Units.Add(other, new Unit(other, "halutz", 1, 0));@@ -212,6 +214,27 @@ public class ProjectsTestsAssert.Equal(built.Date, built.Sites["mefalsim"].BuiltOn);}+ /// <summary>Q-SITE-1 (#782): every MVP yishuv site builds as Mefalsim does, in build_yishuv_turns from the order.</summary>+ // R-SITE-001, R-SITE-003, R-SITE-004+ [Theory]+ [InlineData("beit_kama")]+ [InlineData("gilat")]+ [InlineData("mefalsim")]+ [InlineData("reim")]+ public void EveryYishuvSiteBuildsAsMefalsimDoes(string site)+ {+ var s = Simulation.NewGame(Mvp, GoldenRun.Seed, Mode.Historical);+ var id = s.NextId++;+ s.Units.Add(id, new Unit(id, "halutz", -3, 19));+ var r = Step(Mvp, s, Build(id, site));+ Assert.Empty(r.Rejected);+ s = r.State;+ for (int turn = 1; turn <= 4; turn++) s = Step(Mvp, s).State;+ Assert.Null(s.Sites[site].BuiltOn);+ var built = Step(Mvp, s).State;+ Assert.Equal(built.Date, built.Sites[site].BuiltOn);+ }+// R-SITE-003, R-TRAIN-003: training (step 4) runs in the resolver, after the orders, so a halutz group that finishes// training on turn T is a unit from the end of T and can be ordered on T+1, not on T.[Fact]diff --git a/sim/Statecraft.Sim.Tests/ReferencePlayerTests.cs b/sim/Statecraft.Sim.Tests/ReferencePlayerTests.csindex 931beebfc..1986853f3 100644--- a/sim/Statecraft.Sim.Tests/ReferencePlayerTests.cs+++ b/sim/Statecraft.Sim.Tests/ReferencePlayerTests.cs@@ -98,16 +98,20 @@ public class ReferencePlayerTestss.Units.Add(8, new Unit(8, "halutz", -3, 19));s.NextId = 9;s.Treasury = 10;- var build = Assert.Single(ReferencePlayer.Commands(Mvp, s).OfType<PioneerWork>()); // one site: the second group waits- Assert.Equal((7, "build_yishuv", "mefalsim"), (build.Unit, build.Action, build.Site));+ // Two groups, four yishuv sites (Q-SITE-1, #785): each group takes the next free site in ordinal id order.+ var builds = ReferencePlayer.Commands(Mvp, s).OfType<PioneerWork>().ToList();+ Assert.Equal(new[] { (7, "build_yishuv", "beit_kama"), (8, "build_yishuv", "gilat") }, builds.Select(b => (b.Unit, b.Action, b.Site)));Assert.Empty(Simulation.Step(Mvp, s, ReferencePlayer.Commands(Mvp, s)).Rejected);- var building = s.Clone();- building.Sites["mefalsim"] = new SiteWork("mefalsim", 7, 3, null);- Assert.DoesNotContain(ReferencePlayer.Commands(Mvp, building), x => x is PioneerWork);- var built = s.Clone();- built.Sites["mefalsim"] = SiteWork.Built("mefalsim", new DateTime(1949, 6, 15));- Assert.DoesNotContain(ReferencePlayer.Commands(Mvp, built), x => x is PioneerWork);+ var oneLeft = s.Clone();+ oneLeft.Sites["beit_kama"] = new SiteWork("beit_kama", 9, 3, null);+ oneLeft.Sites["gilat"] = SiteWork.Built("gilat", new DateTime(1949, 6, 15));+ oneLeft.Sites["mefalsim"] = SiteWork.Built("mefalsim", new DateTime(1949, 6, 15));+ var last = Assert.Single(ReferencePlayer.Commands(Mvp, oneLeft).OfType<PioneerWork>()); // one site left: the second group waits+ Assert.Equal((7, "reim"), (last.Unit, last.Site));+ var none = oneLeft.Clone();+ none.Sites["reim"] = new SiteWork("reim", 7, 3, null);+ Assert.DoesNotContain(ReferencePlayer.Commands(Mvp, none), x => x is PioneerWork);var poor = s.Clone();poor.Treasury = 0;Assert.Contains(ReferencePlayer.Commands(Mvp, poor), x => x is PioneerWork);diff --git a/sim/Statecraft.Sim.Tests/SitesContentTests.cs b/sim/Statecraft.Sim.Tests/SitesContentTests.csindex 2fc0dccd6..05d2185c2 100644--- a/sim/Statecraft.Sim.Tests/SitesContentTests.cs+++ b/sim/Statecraft.Sim.Tests/SitesContentTests.cs@@ -41,7 +41,7 @@ public class SitesContentTestspublic void TheSliceHasMefalsimFromContent(){var c = ContentLoader.Load(RealContentTests.ContentRoot());- var site = Assert.Single(c.Sites);+ var site = Assert.Single(c.Sites, x => x.Id == "mefalsim");Assert.Equal(("mefalsim", "Mefalsim", "מפלסים", -10, 27), (site.Id, site.Name, site.NameHe, site.Q, site.R));Assert.Equal(new[] { "yishuv" }, site.Kinds);Assert.Equal(new DateTime(1949, 6, 12), site.Founded);@@ -64,10 +64,41 @@ public class SitesContentTestsvar root = RealContentTests.ContentRoot();var map = new DeserializerBuilder().Build().Deserialize<Dictionary<string, object>>(File.ReadAllText(Path.Combine(root, "map", "armistice_hexes_1949.yaml")));var lineHexes = ((List<object>)map["line_hexes"]).Cast<List<object>>().Select(x => (int.Parse((string)x[0], CultureInfo.InvariantCulture), int.Parse((string)x[1], CultureInfo.InvariantCulture)));- var site = Assert.Single(ContentLoader.Load(root).Sites);+ var site = Assert.Single(ContentLoader.Load(root).Sites, x => x.Id == "mefalsim");Assert.Contains((site.Q, site.R), lineHexes);}+ /// <summary>R-SITE-004, Q-SITE-1 and Q-SITE-2 (owner, 17 October 2026, #782: "take all of the plan's recommendations"): the+ /// MVP's yishuv sites are the four of the settlements note whose founding day two sources agree on (criteria 1, 2 and 4 of+ /// Task 5.0). Each is founded inside the MVP's years and cites at least two sources with a checked date.</summary>+ [Fact]+ public void TheMvpYishuvSitesAreTheSourcedList()+ {+ var c = ContentLoader.Load(RealContentTests.ContentRoot());+ var yishuvim = c.Sites.Where(x => x.Kinds.Contains("yishuv")).ToList();+ Assert.Equal(new[] { "beit_kama", "gilat", "mefalsim", "reim" }, yishuvim.Select(x => x.Id).OrderBy(x => x, StringComparer.Ordinal));+ var founded = yishuvim.ToDictionary(x => x.Id, x => x.Founded);+ Assert.Equal(new DateTime(1949, 4, 18), founded["beit_kama"]);+ Assert.Equal(new DateTime(1949, 12, 4), founded["gilat"]);+ Assert.Equal(new DateTime(1949, 6, 12), founded["mefalsim"]);+ Assert.Equal(new DateTime(1949, 10, 20), founded["reim"]);+ Assert.All(yishuvim, x => Assert.True(x.Sources.Count(s => s.Checked != default) >= 2, x.Id));+ }++ /// <summary>Q-FIELD-1 and Q-SITE-3 (#782): each yishuv site has one field site in its own hex, and no other site shares a+ /// yishuv's hex (R-SITE-005 allows it only for another kind).</summary>+ [Fact]+ public void EachYishuvSiteHasOneFieldSiteInItsHex()+ {+ var c = ContentLoader.Load(RealContentTests.ContentRoot());+ foreach (var y in c.Sites.Where(x => x.Kinds.Contains("yishuv")))+ {+ var others = c.Sites.Where(x => x != y && x.Q == y.Q && x.R == y.R).ToList();+ var field = Assert.Single(others);+ Assert.Equal(new[] { "field" }, field.Kinds);+ }+ }+[Fact]public void TheSitesFileHoldsNoBalanceValue(){@@ -103,6 +134,39 @@ public class SitesContentTestsnew object[] { "rules.yaml", Rules(Fixture.GddRules).Replace(", stop_work: 0", ""), "attention_cost.stop_work", "missing cost" },};+ /// <summary>A second fixture site, site_b, at site_a's hex (2, 0); <paramref name="row"/> replaces its founding line.</summary>+ static string Second(string kinds, string row) => Fixture.GddSites + Fixture.GddSites.Replace("sites:\n", "")+ .Replace("site_a", "site_b").Replace("Site A", "Site B").Replace("kinds: [yishuv]", "kinds: " + kinds)+ .Replace(" founded: 1949-06-12\n", row);++ // R-SITE-004, R-SITE-005+ public static IEnumerable<object[]> BadKinds() => new List<object[]>+ {+ new object[] { Site("kinds: [yishuv]", "kinds: [airfield]"), "sites[site_a].kinds", "unknown kind 'airfield'" },+ new object[] { Site("kinds: [yishuv]", "kinds: []"), "sites[site_a].kinds", "required" },+ new object[] { Second("[yishuv]", " founded: 1949-06-12\n"), "sites[site_b].q", "hex q=2 r=0 already holds the yishuv site site_a" },+ new object[] { Second("[military_camp]", ""), "sites[site_b].city", "required for a camp site" },+ new object[] { Second("[hakhshara]", " city: nowhere\n"), "sites[site_b].city", "unknown city 'nowhere'" },+ new object[] { Second("[field]", " city: town_a\n"), "sites[site_b].city", "only a camp site has a city" },+ new object[] { Second("[field]", " founded: 1949-06-12\n"), "sites[site_b].founded", "only a yishuv site has a founding date" },+ };++ [Theory]+ [MemberData(nameof(BadKinds))]+ public void BadKindsFailLoad(string text, string field, string message)+ => ABadValueFailsNamingTheFileAndField("sites.yaml", text, field, message);++ /// <summary>Sites of other kinds may share a yishuv's hex (Q-SITE-3), and a camp names a city of cities.yaml (Q-CAMP-1).</summary>+ [Fact]+ public void AFieldAndACampMayShareAYishuvsHex()+ {+ var text = Second("[field]", "") + Second("[military_camp]", " city: town_a\n").Replace(Fixture.GddSites, "").Replace("site_b", "site_c").Replace("Site B", "Site C");+ var c = Load(new Dictionary<string, string> { ["sites.yaml"] = text });+ Assert.Equal(new[] { "site_a", "site_b", "site_c" }, c.Sites.Select(x => x.Id));+ Assert.Equal("town_a", c.Sites[2].City);+ Assert.Equal(default, c.Sites[1].Founded);+ }+[Theory][MemberData(nameof(BadRows))]public void ABadValueFailsNamingTheFileAndField(string file, string text, string field, string message)diff --git a/sim/Statecraft.Sim.Tests/golden/hash1950.txt b/sim/Statecraft.Sim.Tests/golden/hash1950.txtindex cb9517a4e..e9e68002e 100644--- a/sim/Statecraft.Sim.Tests/golden/hash1950.txt+++ b/sim/Statecraft.Sim.Tests/golden/hash1950.txt@@ -43,7 +43,7 @@ pop{veterans=667938.2378207468 [4124624479C3A414]sit[treasury=0 [0000000000000000]-debt=71.50032828298673 [4051E00560EB2C47]+debt=75.50032828298673 [4052E00560EB2C47]fx=94.52989672613671 [4057A1E9D3F540F0]rung=2;cf=0;mob=0.05 [3FA999999999999A]@@ -58,7 +58,6 @@ fired[austerity_1949bernadotte_assassinationelections_1949- first_new_yishuvfirst_trucefrumkin_commissionidf_founding@@ -83,7 +82,6 @@ chosen{austerity_1949=imposebernadotte_assassination=outlawelections_1949=hold- first_new_yishuv=continuefirst_truce=acceptidf_founding=one_armyjerusalem_ceasefire=keep@@ -117,9 +115,8 @@ city{units[1:halutz@-3,19site{- mefalsim=done,1949-03-15+ beit_kama=done,1949-03-15+ gilat=done,1949-09-15+ mefalsim=b,1,2next=2-obj{- first_new_yishuv=1949-03-15-score=115food=3003,1001,0\ No newline at end of filediff --git a/sim/Statecraft.Sim.Tests/golden/hash1952.txt b/sim/Statecraft.Sim.Tests/golden/hash1952.txtindex 52f986e0d..97d9283a6 100644--- a/sim/Statecraft.Sim.Tests/golden/hash1952.txt+++ b/sim/Statecraft.Sim.Tests/golden/hash1952.txt@@ -44,7 +44,7 @@ pop{sit[fx_crisistreasury=0 [0000000000000000]-debt=170.89012071283815 [40655C7BDE6EE43A]+debt=176.89012071283815 [40661C7BDE6EE43A]fx=-12.990431328096559 [C029FB19D0A63796]rung=2;cf=0;mob=0.05 [3FA999999999999A]@@ -138,9 +138,12 @@ city{units[1:halutz@-3,19site{- mefalsim=done,1949-03-15+ beit_kama=done,1949-03-15+ gilat=done,1949-09-15+ mefalsim=done,1950-03-15+ reim=done,1950-09-15next=2obj{- first_new_yishuv=1949-03-15-score=115+ first_new_yishuv=1950-03-15+score=100food=2732,1390,0\ No newline at end of filediff --git a/sim/Statecraft.Sim.Tests/golden/manifest.txt b/sim/Statecraft.Sim.Tests/golden/manifest.txtindex 00ae5aeb1..eab96a17c 100644--- a/sim/Statecraft.Sim.Tests/golden/manifest.txt+++ b/sim/Statecraft.Sim.Tests/golden/manifest.txt@@ -2,10 +2,10 @@# Tests read this file. To accept a deliberate change: STATECRAFT_UPDATE_GOLDEN=1 dotnet test sim/Statecraft.sln# rewrites this file, the snapshots and the GoldenRun.cs constants; then update docs/determinism.md and tools/web_check.py# (GoldenManifestTests names any place that is out of date) and add a row to the rebaseline history.-hash1950 2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be-hash1952 f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59+hash1950 37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b+hash1952 7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaasmoke5 2436927c8b24f28c42be0e7b5a6fe30900f2f6c6a3ba77e4be943c1f50db57ccscenario-reckless af7b2abd4c6e477cc78555700b09822030773e9fc6b856ffc0a7109bedc1e7ddscenario-cautious 28fd140536e326922fadf21571b64bdaae5125f97f2609b44b4baa5ca9bceda3scenario-mvp-absorb-first b16a87402c03324f6260b57b915a0b7767f12cc166420ace257a21b54b341dd4-mvp-end f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59+mvp-end 7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaadiff --git a/sim/Statecraft.Sim.Tests/golden/mvp-end.txt b/sim/Statecraft.Sim.Tests/golden/mvp-end.txtindex 52f986e0d..97d9283a6 100644--- a/sim/Statecraft.Sim.Tests/golden/mvp-end.txt+++ b/sim/Statecraft.Sim.Tests/golden/mvp-end.txt@@ -44,7 +44,7 @@ pop{sit[fx_crisistreasury=0 [0000000000000000]-debt=170.89012071283815 [40655C7BDE6EE43A]+debt=176.89012071283815 [40661C7BDE6EE43A]fx=-12.990431328096559 [C029FB19D0A63796]rung=2;cf=0;mob=0.05 [3FA999999999999A]@@ -138,9 +138,12 @@ city{units[1:halutz@-3,19site{- mefalsim=done,1949-03-15+ beit_kama=done,1949-03-15+ gilat=done,1949-09-15+ mefalsim=done,1950-03-15+ reim=done,1950-09-15next=2obj{- first_new_yishuv=1949-03-15-score=115+ first_new_yishuv=1950-03-15+score=100food=2732,1390,0\ No newline at end of filediff --git a/sim/Statecraft.Sim/Content.cs b/sim/Statecraft.Sim/Content.csindex 91cd5bf22..e6ecbe72c 100644--- a/sim/Statecraft.Sim/Content.cs+++ b/sim/Statecraft.Sim/Content.cs@@ -498,10 +498,13 @@ namespace Statecraft.Simpublic string NameHe { get; set; } = "";public int Q { get; set; }public int R { get; set; }- /// <summary>What pioneers may build here (yishuv).</summary>+ /// <summary>What pioneers may build here: one or more of yishuv, field, swamp, military_camp, hakhshara (R-SITE-004).</summary>public List<string> Kinds { get; set; } = new List<string>();- /// <summary>The historical founding date: the objective card's reference date (PR 6).</summary>+ /// <summary>A yishuv site's historical founding date: the objective card's reference date (PR 6). Unset for other kinds.</summary>public DateTime Founded { get; set; }+ /// <summary>A camp site's city (cities.yaml id), the city a built camp gives the facility to (Q-CAMP-1, Phase 4 PR 3).+ /// Empty for other kinds.</summary>+ public string City { get; set; } = "";public List<Source> Sources { get; set; } = new List<Source>();public string Status { get; set; } = "";/// <summary>The person who signed this row off: a GitHub handle, written only by that person (owner, 15 October 2026,diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.csindex 905b9270b..1c77af6f0 100644--- a/sim/Statecraft.Sim/ContentLoader.cs+++ b/sim/Statecraft.Sim/ContentLoader.cs@@ -1105,8 +1105,10 @@ namespace Statecraft.Sim}}- /// <summary>What a designated site may be built as (sites.yaml kinds). Phase 1 has "build yishuv" only.</summary>- static readonly string[] SiteKinds = { Projects.YishuvKind };+ /// <summary>What a designated site may be built as (sites.yaml kinds; R-SITE-004, the GDD's pioneer actions and D-D5's two+ /// facilities). A camp site is a military_camp or a hakhshara (Q-CAMP-3).</summary>+ static readonly string[] SiteKinds = { Projects.YishuvKind, "field", "swamp", "military_camp", "hakhshara" };+ static readonly string[] CampKinds = { "military_camp", "hakhshara" };/// <summary>The designated sites (sites.yaml, Phase 1 PR 5): sourced facts on a land hex that holds no 1948 settlement,/// founded inside the MVP's years (D-B1). The armistice line hexes are not checked: that file is display only, and a@@ -1117,6 +1119,7 @@ namespace Statecraft.SimUnique(sf, "sites", c.Sites.Select(x => x.Id));var from = new DateTime(1948, 5, 15);var to = new DateTime(1952, 1, 1);+ var yishuvAt = new Dictionary<(int, int), string>();foreach (var x in c.Sites){var at = $"sites[{x.Id}]";@@ -1128,10 +1131,28 @@ namespace Statecraft.Simvar settled = c.SettlementHexes.FirstOrDefault(h => h.Q == x.Q && h.R == x.R);if (settled != null)throw new ContentException(sf, at + ".q", FormattableString.Invariant($"hex q={x.Q} r={x.R} holds the 1948 settlement {settled.Id} ({SettlementHexesFileName})"));+ if (x.Kinds.Count == 0) throw new ContentException(sf, at + ".kinds", "required: one or more of " + string.Join(", ", SiteKinds));foreach (var k in x.Kinds)- if (!SiteKinds.Contains(k)) throw new ContentException(sf, at + ".kinds", $"unknown kind '{k}' (yishuv)");- if (x.Founded < from || x.Founded >= to)- throw new ContentException(sf, at + ".founded", "required, between 15 May 1948 and 31 December 1951 (the MVP's years, D-B1)");+ if (!SiteKinds.Contains(k)) throw new ContentException(sf, at + ".kinds", $"unknown kind '{k}' ({string.Join(", ", SiteKinds)})");+ if (x.Kinds.Contains(Projects.YishuvKind))+ {+ // R-SITE-005 (Q-SITE-3): one yishuv per hex, so SettlementPlacer keeps one kit per hex; other kinds may share it.+ if (yishuvAt.TryGetValue((x.Q, x.R), out var first))+ throw new ContentException(sf, at + ".q", FormattableString.Invariant($"hex q={x.Q} r={x.R} already holds the yishuv site {first}"));+ yishuvAt[(x.Q, x.R)] = x.Id;+ if (x.Founded < from || x.Founded >= to)+ throw new ContentException(sf, at + ".founded", "required, between 15 May 1948 and 31 December 1951 (the MVP's years, D-B1)");+ }+ else if (x.Founded != default)+ throw new ContentException(sf, at + ".founded", "only a yishuv site has a founding date");+ // Q-CAMP-1: a camp belongs to one city, which a built camp gives the facility to.+ if (x.Kinds.Any(k => CampKinds.Contains(k)))+ {+ if (string.IsNullOrWhiteSpace(x.City)) throw new ContentException(sf, at + ".city", "required for a camp site (military_camp, hakhshara)");+ if (!c.Cities.Any(y => y.Id == x.City)) throw new ContentException(sf, at + ".city", $"unknown city '{x.City}' (cities.yaml)");+ }+ else if (x.City != "")+ throw new ContentException(sf, at + ".city", "only a camp site has a city");if (x.Sources.Count == 0) throw new ContentException(sf, at + ".sources", "required: a designated site is a historical fact");for (int i = 0; i < x.Sources.Count; i++)if (x.Sources[i] == null || string.IsNullOrWhiteSpace(x.Sources[i].Url) || x.Sources[i].Checked == default)diff --git a/sim/Statecraft.Sim/GoldenRun.cs b/sim/Statecraft.Sim/GoldenRun.csindex ec4b5bf7e..a9da5c07f 100644--- a/sim/Statecraft.Sim/GoldenRun.cs+++ b/sim/Statecraft.Sim/GoldenRun.cs@@ -15,13 +15,13 @@ namespace Statecraft.Sim/// <summary>Final hash of Play(content, Until1950). Changing it is a deliberate rules or content change: the value/// is pinned in sim/Statecraft.Sim.Tests/golden/manifest.txt, and STATECRAFT_UPDATE_GOLDEN=1 dotnet test rewrites/// both (docs/determinism.md). Say why in the commit message.</summary>- public const string Hash1950 = "2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be";+ public const string Hash1950 = "37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b";public static readonly DateTime Until1950 = new DateTime(1950, 1, 1);/// <summary>Final hash of Play(content, Until1952): the M3 content range (to 31 December 1951). The GDD game ends on/// 15 January 1952 (R-LOOP-004), the first turn on or after Until1952, so this is also the mvp-end run.</summary>- public const string Hash1952 = "f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59";+ public const string Hash1952 = "7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa";public static readonly DateTime Until1952 = new DateTime(1952, 1, 1);diff --git a/tools/web_check.py b/tools/web_check.pyindex 3c05810a5..3b5a9c44a 100644--- a/tools/web_check.py+++ b/tools/web_check.py@@ -8,7 +8,7 @@ fail on a failure line or a timeout. Uses Chrome for Testing from the Playwright--enable-logging=stderr --v=1 as INFO:CONSOLE... "text", source: ...Usage (from the repo root):- uv run tools/web_check.py unity/Builds/Web-disabled --query "golden" --expect "GOLDEN OK 1950 2766b45b13c63daa7b6a71bfa8b40a8c52f542a6d6ddcf70ac0810fa27d952be" --expect "GOLDEN OK 1952 f8cd22d7b754d5f7d5cc24b9b4576cedd4940fdb28d987ad86cd7004bead9e59"+ uv run tools/web_check.py unity/Builds/Web-disabled --query "golden" --expect "GOLDEN OK 1950 37c510500b6524af0d033bf31824ac33c3b6f14e1afeb68b4a18c7bf774dca2b" --expect "GOLDEN OK 1952 7745031b2096354784178b4e7c7ea80777afbe8968cb52eeb12122ce5e55cfaa"Options: --query Q (page URL query, without '?'), --expect TEXT (repeatable), --fail REGEX (default: GOLDEN FAIL|SMOKE FAIL|BOOT FAIL),--timeout SECONDS (default 300), --stall SECONDS (fail when no console message arrives for that long; 0 = off),--swiftshader (software WebGL when there is no GPU), --dpr N (default 1), --shots DIR (reassemble the player's