A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
sim: brigades that enter after 15 May arrive on their sourced date (refs #1241) (#1272)
Beri3ecef9626c64
diff --git a/changelog.d/1241.md b/changelog.d/1241.mdnew file mode 100644index 000000000..dbcd8bd89--- /dev/null+++ b/changelog.d/1241.md@@ -0,0 +1,4 @@+- The Etzioni Brigade starts a Historical game in Jerusalem with 3 units, from its 15 May 1948 strength of 3,166 in+ Ben-Gurion's diary (#1241).+- A brigade with no sourced place on 15 May 1948 enters on the day its row's strength is dated (R-UNIT-009): the 7th+ Brigade arrives at Hulda with 2 units (1,650 men, 24 May 1948) on the 15 June 1948 turn (#1241).diff --git a/content/map/units_1948.yaml b/content/map/units_1948.yamlindex 89778fb53..a0ea17699 100644--- a/content/map/units_1948.yaml+++ b/content/map/units_1948.yaml@@ -2,7 +2,8 @@# together with the sim's security level and reserve call-up, and draws one token per unit. The sim reads it too, for the# starting forces (StartingForces, docs/rules/mvp.md R-UNIT-006; Phase 5 PR 4): a Historical game starts with one unit per# army row that is not hidden, has a 15 May strength and an anchor window covering 15 May 1948, on the anchor's hex in-# unit_anchor_hexes.yaml (rerun tools/unit_anchor_hexes.py after changing an anchor). So the file is in the+# unit_anchor_hexes.yaml (rerun tools/unit_anchor_hexes.py after changing an anchor). A row whose strength is dated after+# 15 May, with an anchor window covering that day, arrives on that day instead (R-UNIT-009, #1241). So the file is in the# content hash, and a change to such a row moves the goldens. Those rows must be fact-checked before a shareable build# (the release gate; Q-START-3).#@@ -54,14 +55,17 @@# official or mainstream source where one gives it, otherwise the value two of the research note's sources agree on.# The note's other figures and its conflicts stay in the note (research_notes/GDD phase 5/arab-forces-1948.md,# sections 1 to 8), not here. Every row gives the 15 May strength only: no source found dates a strength on 11 June-# (the note, section 9; owner, 17 October 2026, #740: "15 May strength only ... Nothing is invented"). Every row of a+# (the note, section 9; owner, 17 October 2026, #740: "15 May strength only ... Nothing is invented"), except a brigade+# with no 15 May place, which gives its first sourced strength dated on its first anchor's day, the day it arrives+# (owner, 21 October 2026, #1241: "enters the game on that date with its sourced strength"). Every row of a# side other than israel gives it. An IDF brigade gives it where research_notes/M4 war mode/war-1948.md (section 1,# #906) has a size: no primary order of battle gives the 15 May strengths, so a secondary source may, the row cites it# and carries `status: to_verify`, and a primary source replaces it when one turns up (owner, 20 October 2026, #743).# Ben-Gurion's diary for 15 May 1948 is that primary source for Golani, Carmeli, Alexandroni, Kiryati, Givati, Harel# and Negev (owner, 21 October 2026, #1240); en.wiki's table stays as their second source. The owner checked them# against the diary page on 21 October 2026, with the five Arab-army starting rows (#1240): those twelve rows are-# fact-checked. A row added later is not covered by that check.+# fact-checked. A row added later is not covered by that check: Etzioni's 3,166 cites the same page (#1241) and+# keeps `status: to_verify` until a person checks it.# hidden: a unit the sources name but do not place; the map does not draw it (owner ruling, 2026-10-11).# status: draft = sourced and checked against the cited text, not yet by a historian. to_verify = as draft, with a# secondary-source strength that a primary source must replace, or a primary-source strength no person has checked@@ -339,7 +343,18 @@ units:first_commander: Yisrael Amirsector: The defence of Jerusalem and its surroundings.wikipedia_only: false- status: draft+ status: to_verify+ to_verify:+ - "The 15 May strength is Ben-Gurion's diary figure for 15 May 1948 (owner, 21 October 2026, #1240), read by an agent, not yet by a person. A person opens the diary page (strength.sources), confirms the figure, and only then marks the row fact-checked."+ strength:+ value: 3166+ as_of: '1948-05-15'+ note: "The Manpower Directorate's figure for the brigade, reported to Ben-Gurion on 15 May 1948 (research_notes/GDD phase 5/later-brigades-1241.md, section 1). en.wiki gives the same figure from the published diary (Rivlin and Oren, 1982, p. 428): one source, a primary one."+ sources:+ # Ben-Gurion Archive, diary, 15 May 1948 (item 221910), English transcription; the live page refuses connections, so the Wayback copy of 3 February 2024 is cited: "Givati 3,229; Etsiyyoni 3,166 – the total for all brigades is about 24,400."+ - {url: 'https://web.archive.org/web/20240203024717/https://bengurionarchive.bgu.ac.il/en/node/8733', checked: '2026-10-21'}+ # en.wiki, Etzioni Brigade: "Altogether, on May 15, Moshe Zadok of the Manpower Directorate reported the strength of the brigade to be 3,166."+ - {url: 'https://en.wikipedia.org/wiki/Etzioni_Brigade', checked: '2026-10-21'}anchors:- place: Jerusalemlon: 35.22556@@ -375,7 +390,17 @@ units:first_commander: Shlomo Shamirsector: "The battles of Latrun (Operation Bin Nun, 24 to 31 May 1948), from the headquarters at Hulda; in June 1948 it moved to the northern front, organising for a time at Ein Shemer."wikipedia_only: false- status: draft+ status: to_verify+ to_verify:+ - "The strength is a secondary-source figure (en.wiki, citing Morris, 1948, pp. 221-224, which was not opened), allowed until a primary source turns up (owner, 20 October 2026, on #743). Replace it from a primary source."+ # R-UNIT-009 (#1241, owner, 21 October 2026, answer 1(a)): the brigade has no sourced place or single strength on 15 May, so it arrives on its first anchor's day with its first sourced strength.+ strength:+ value: 1650+ as_of: '1948-05-24'+ note: "The brigade's men in Operation Bin Nun Alef (from 24 May 1948), its first single sourced figure (research_notes/GDD phase 5/later-brigades-1241.md, section 4). The 450 Alexandroni men who joined it on 23 May are counted apart. as_of is the first day of its Hulda window, the day it arrives (R-UNIT-009)."+ sources:+ # en.wiki, Battles of Latrun (1948), Operation Bin Nun Alef: "His force consisted of 450 men of the Alexandroni Brigade and 1,650 men of the 7th Brigade." (citing Morris, 1948, 2008, pp. 221-224).+ - {url: 'https://en.wikipedia.org/wiki/Battles_of_Latrun_(1948)', checked: '2026-10-21'}sources:# Ma'arachot 263-4 (June 1978), "קרבות לטרון", PDF p. 11 (a scan; read on the page image): "ב־14 במאי יצאה פקודה להקמת# חטיבת עתודה ... כמפקד החטיבה התמנה שלמה שמיר". The founding order's date (owner, 17 October 2026: "14 May (the order)").diff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 5240b20db..a8da8926f 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -28,10 +28,10 @@ macOS IL2CPP parity check is not an MVP release gate."$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression gzip -shareable -logFile "$PWD/unity-build-web-gz.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.assetgolden_expect=(); while read -r name hash; do [[ -z "$name" || "$name" == \#* ]] || golden_expect+=(--expect "GOLDEN OK $name $hash"); done < sim/Statecraft.Sim.Tests/golden/manifest.txt- # one GOLDEN OK line per manifest golden (#394), e.g. "GOLDEN OK hash1950 1392f3eb726172c284555b2bcacc0be3f8d9e33d19306dfc3baf0e2c63fe249b"- # and "GOLDEN OK hash1952 cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5"+ # one GOLDEN OK line per manifest golden (#394), e.g. "GOLDEN OK hash1950 d14a4899a1e068bf238f84f4e8fe06270b5164b2c6ba62f2fef399fd7eaada8e"+ # and "GOLDEN OK hash1952 3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85"uv run tools/web_check.py unity/Builds/Web-gzip --query "golden&smoke=5" "${golden_expect[@]}" \- --expect "SMOKE OK 5 turns 1948-10-15 11c41014a5ed74f783bc2fa0af99ee86830d162d5e71c883318e36f68f47b9b4"+ --expect "SMOKE OK 5 turns 1948-10-15 7559f30cc7649555cb369b729442d203fa0b42968679f870ac88f0e519a8b755"uv run tools/web_check.py unity/Builds/Web-gzip --startscreen new --timeout 300 --stall 90uv run tools/web_check.py unity/Builds/Web-gzip --startscreen recording --timeout 300 --stall 90uv run tools/web_check.py unity/Builds/Web-gzip --startscreen new --query lang=he --timeout 300 --stall 90@@ -61,7 +61,7 @@ macOS IL2CPP parity check is not an MVP release gate."$UNITY" -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression gzip -decompressionFallback -shareable -out Builds/Web-pages -logFile "$PWD/unity-build-web-pages.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.assetuv run tools/web_check.py unity/Builds/Web-pages --query "golden&smoke=5" "${golden_expect[@]}" \- --expect "SMOKE OK 5 turns 1948-10-15 11c41014a5ed74f783bc2fa0af99ee86830d162d5e71c883318e36f68f47b9b4"+ --expect "SMOKE OK 5 turns 1948-10-15 7559f30cc7649555cb369b729442d203fa0b42968679f870ac88f0e519a8b755"uv run tools/web_check.py unity/Builds/Web-pages --startscreen new --timeout 300 --stall 90uv run tools/web_check.py unity/Builds/Web-pages --startscreen recording --timeout 300 --stall 90uv run tools/web_check.py unity/Builds/Web-pages --startscreen new --query lang=he --timeout 300 --stall 90diff --git a/docs/determinism.md b/docs/determinism.mdindex 40443a015..e4df6599c 100644--- a/docs/determinism.md+++ b/docs/determinism.md@@ -39,9 +39,9 @@ final `GameState.Hash()` is pinned:| Run | Ends | Hash ||---|---|---|-| to 1950-01-01 (`Hash1950`) | 1950-01-15, turn 20 | `1392f3eb726172c284555b2bcacc0be3f8d9e33d19306dfc3baf0e2c63fe249b` |-| to 1952-01-01 (`Hash1952`) | 1952-01-15, turn 44 (the game's end) | `cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5` |-| to the game's end (`mvp-end`) | 1952-01-15, turn 44 | `cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5` |+| to 1950-01-01 (`Hash1950`) | 1950-01-15, turn 20 | `d14a4899a1e068bf238f84f4e8fe06270b5164b2c6ba62f2fef399fd7eaada8e` |+| to 1952-01-01 (`Hash1952`) | 1952-01-15, turn 44 (the game's end) | `3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85` |+| to the game's end (`mvp-end`) | 1952-01-15, turn 44 | `3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85` |`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@@ -50,7 +50,7 @@ player check enumerate the manifest, so it and every scenario are checked withouA further value is pinned for the browser smoke run (`?smoke=5`: the golden seed, five turns played through the UI's ownbuttons, answering each event with its first option while the turn's Attention pays for it, the rest left to their-ministers): `SMOKE OK 5 turns 1948-10-15 11c41014a5ed74f783bc2fa0af99ee86830d162d5e71c883318e36f68f47b9b4`.+ministers): `SMOKE OK 5 turns 1948-10-15 7559f30cc7649555cb369b729442d203fa0b42968679f870ac88f0e519a8b755`.It depends on the UI path as well as the sim (which option is first, the turn grid), so re-record it when either changes.Check every WebGL build with every manifest entry (plus the UI-path smoke line) with:@@ -61,7 +61,7 @@ while read -r name hash; dogolden_expect+=(--expect "GOLDEN OK $name $hash")done < sim/Statecraft.Sim.Tests/golden/manifest.txtuv run tools/web_check.py unity/Builds/Web-<compression> --query "golden&smoke=5" "${golden_expect[@]}" \- --expect "SMOKE OK 5 turns 1948-10-15 11c41014a5ed74f783bc2fa0af99ee86830d162d5e71c883318e36f68f47b9b4"+ --expect "SMOKE OK 5 turns 1948-10-15 7559f30cc7649555cb369b729442d203fa0b42968679f870ac88f0e519a8b755"```**When a golden moves.** The test fails with the lines that changed, grouped by section (`[ind]`, `[pol]`, `[bud]`,@@ -361,3 +361,11 @@ The hash reads the state keys, so it never sees a record outside its window. An| GDD Phase 5 PR 10: the enemy AI, part 1 (#749) | scenario-reckless | `d6fd9e89` | same as cautious (was `574c8a19`) || GDD Phase 5 PR 10: the enemy AI, part 1 (#749) | scenario-mvp-absorb-first | `de176931` | same as cautious (was `ac5f51bb`) || GDD Phase 5 PR 10: the enemy AI, part 1 (#749) | scenario-mvp-defeat | `7404295a` | the units as in cautious; the engagement's draw comes before the delegated events' draws, so a delegated `iraqi_exodus` resolves to `pace` (was `airlift`), and housing, international standing, morale and stability follow. The defeat is unchanged (was `f2ad1114`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | 1950 | `d14a4899` | Etzioni's sourced 15 May strength (3,166, Ben-Gurion's diary) starts it under R-UNIT-006 as unit 5 (strength 3, Jerusalem's 0,23), so Harel and every later starting force take the next id (Harel 6, Egypt 8, the Legion 9, Syria 10). The 7th Brigade's reserved id 13 is the first after the starting rows; it arrives on the 15 June 1948 turn (its row's 24 May 1948 strength, 1,650 = 2, at Hulda's -4,23) and stands there. Every later id moves up by two (`next=18`). Nothing else in the snapshot moves: the enemy's scripted marches, the fortify orders and the Legion's 15 October 1948 engagement that destroys Harel are as on main, and the RNG and the Arms are unchanged (was `1392f3eb`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | 1952 | `3bacd2b1` | same as 1950: the ids and the two units only (was `cc96cd0a`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | mvp-end | `3bacd2b1` | same as 1952 (was `cc96cd0a`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | smoke5 | `7559f30c` | same: the ids and the two units only (was `11c41014`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | scenario-reckless | `030817e3` | same: the ids and the two units only (was `d6fd9e89`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | scenario-cautious | `e45c5429` | same as reckless (was `230791a1`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | scenario-mvp-absorb-first | `64bdd93b` | same as reckless (was `de176931`) |+| #1241: Etzioni starts, the 7th Brigade arrives (R-UNIT-009), on the enemy AI (#1263) | scenario-mvp-defeat | `54ec7d6b` | same as reckless; the defeat is unchanged (was `7404295a`) |diff --git a/docs/rules/mvp.md b/docs/rules/mvp.mdindex a8b4a7046..1cf819087 100644--- a/docs/rules/mvp.md+++ b/docs/rules/mvp.md@@ -160,6 +160,8 @@ R-UNIT-006: A new Historical game places one military unit per row of `map/unitsR-UNIT-007: Open mode starts no forces (Q-START-2, owner, 15 October 2026); `Simulation.NewGame` refuses Open mode until milestone M4.+R-UNIT-009: A row of `map/units_1948.yaml` that meets R-UNIT-006 except that its `strength`'s `as_of` is after the start day arrives on that day (#1241, owner, 21 October 2026, answer 1(a): "enters the game on that date with its sourced strength, read from its row as a dated arrival"): in the GDD loop's resolution (step 9, after the immigrants' arrivals) of the turn that starts before that day and ends on or after it, once, on the hex of the anchor whose window covers that day, with that strength in population units and its side's type, as a starting force. Such rows follow the starting rows in `Content.StartingForces`, and their unit ids are reserved when the game starts, so unit i is still row i and the release gate names them too. An arrival ignores the stack limit and the hex's other units, as a starting force does. A row whose `as_of` is before the start starts nothing; the loader refuses an `as_of` that is not a `YYYY-MM-DD` date, naming the file and the row. Today the 7th Brigade arrives: 1,650 on 24 May 1948 at Hulda, 2 units from the 15 June 1948 turn.+## CorridorsCorridor work is step 5 too, after the sites (Phase 4 PR 2, #786; owner, 17 October 2026, #782: the plan's Q-COR-1 to Q-COR-7 and Q-RAIL-1). `content/corridors.yaml` holds each corridor's kind (`road` or `rail`), names, map route and segments; a segment's hexes are derived from the route's traced line by `tools/corridor_hexes.py`. The Money and turns per segment are labelled design values in `rules.yaml` `mvp:` (Q-COR-6). On screen a segment is its corridor's name and its number ("Burma Road, segment 2"), never a waypoint's name (Q-SENS-1). The MVP's corridors are the Burma Road (four segments), the 1949 Haifa–Tel Aviv rail link (one) and the Tel Aviv–Netanya road (four, on straight draft lines between its five sourced places; owner, 18 October 2026, #786, Q-COR-3 (b)). A segment point in a hex the grid counts as sea (the coast) counts in its nearest land neighbour, as a shore town does.diff --git a/docs/units.md b/docs/units.mdindex ccb12834e..8e21cfb4d 100644--- a/docs/units.md+++ b/docs/units.md@@ -191,8 +191,12 @@ source. The rows stay `to_verify` until a person checks the seven figures agains| Yiftach | 4,500 (the table counts some Golani men in it) || Negev | 1,300 (diary, the Palmach in the Negev; the table gave 2,400) |-- **No figure, no strength:** Etzioni, the 7th, the 8th and Oded have no size in the note, so their rows give none and- stay `status: draft`.+- **No figure, no strength:** the 8th and Oded have no size in the note, so their rows give none and stay `status: draft`.+- **Etzioni and the 7th (#1241):** Etzioni gives 3,166 on 15 May 1948 from Ben-Gurion's diary, the same page as the+ seven rows above, so like them it stays `status: to_verify` until a person checks the figure. The 7th gives 1,650,+ its men in Operation Bin Nun Alef, dated 24 May 1948, the day its Hulda window opens: a secondary figure, so+ `status: to_verify` (`research_notes/GDD phase 5/later-brigades-1241.md`).+ Yiftach's 4,500 stays until a person settles the note's conflict (4,500, about 2,000 or 1,200).- **The sim reads them** since Phase 5 PR 4: see "The starting forces" below.- Tests: `test_idf_brigade_strengths_are_secondary_and_to_verify` (Python) and `UnitsInPlayTests` (EditMode).@@ -208,12 +212,17 @@ defaults"). The unit stands on the hex holding the anchor's coordinates, by the`arab_liberation_army`. These ids are the sim's, not names shown to the player (Q-UI-2, Q-START-4).- **Strength** is the row's people in 1,000-person population units, the nearest unit with a half up, never below 1.- **Who starts:** Golani 4, Carmeli 2 (at Haifa, its sector seat), Alexandroni 4, Kiryati 3, Givati 3, Harel 1,- Negev 1 (#1240); Egypt 10, the Arab Legion 5, Syria 3, Iraq 3, the ALA 4. Nothing starts for Etzioni (no sourced strength),- the 7th and Yiftach (no window on 15 May), Oded, the 8th and the Lebanese row (hidden), or the squadron and the two- ships (tokens only, Q-UNIT-5).+ Etzioni 3 (Jerusalem), Negev 1 (#1240, #1241); Egypt 10, the Arab Legion 5, Syria 3, Iraq 3, the ALA 4. Nothing starts+ for Yiftach (no window on 15 May), Oded, the 8th and the Lebanese row (hidden), or the squadron and the two ships+ (tokens only, Q-UNIT-5).+- **Arrivals (R-UNIT-009, #1241):** a row whose strength is dated after 15 May, with an anchor window covering that day,+ arrives on that day: in the resolution of the monthly turn that reaches it, on that anchor's hex, with that strength. Its+ unit id is reserved at the start, after the starting rows, so unit i is still row i. Today that is the 7th: 2 units at+ Hulda from the 15 June 1948 turn.- **Release gate:** every row the sim starts a unit from must be `fact-checked` before a shareable build carries it(Q-START-3). `Statecraft.Cli --release-gate`, `Build -shareable` and `tools/package_release.py` refuse until then, and- name the rows; today that is all twelve.+ name the rows; today that is Etzioni and the 7th (#1241), since the owner checked the other twelve on 21 October 2026+ (#1240).- Tests: `StartingForcesTests` (dotnet) and `UnitsInPlayTests.TheStartMatchesTheMap` (EditMode).### Tokens from the state (Phase 5 PR 14, #753)@@ -234,9 +243,8 @@ deletes it.token's card has no national line, and the squadron's gives the security level alone ("Security level 5 of 5"), whichstill sets whether it flies.- **The squadron and the ships** are tokens only (Q-UNIT-5): they still come from their rows' windows.-- So from 15 May 1948 the map draws the twelve starting forces where the sim holds them. A row with no sim unit (Etzioni,- which has no sourced strength, and the brigades whose windows open later, such as Yiftach and the 7th) draws no token- in the GDD loop until a later Phase 5 PR raises it.+- So from 15 May 1948 the map draws the thirteen starting forces where the sim holds them, and the 7th from its arrival,+ on its arrival anchor. A row with no sim unit (Yiftach, whose window opens later) draws no token in the GDD loop.- Tests: `UnitsFromStateTests` (EditMode).### The 1948 Collection on the tokens (#665)diff --git a/sim/Statecraft.Sim.Tests/EnemyAITests.cs b/sim/Statecraft.Sim.Tests/EnemyAITests.csindex fb2b08045..20e923e5a 100644--- a/sim/Statecraft.Sim.Tests/EnemyAITests.cs+++ b/sim/Statecraft.Sim.Tests/EnemyAITests.cs@@ -292,8 +292,8 @@ public class EnemyAITests}// R-ENEMY-006: a standing attack ends on a truce turn even when the unit moves on its script (owner's repro, #1263). On- // the 15 May 1948 turn Givati (unit 4) goes to -7,24 and the Negev (unit 6) to -10,27, and Egypt (unit 7) attacks the- // Negev. On the 15 June turn Givati goes back to -5,23, Egypt marches on its script to -9,27, and without the guard its+ // the 15 May 1948 turn Givati goes to -7,24 and the Negev to -10,27, and Egypt attacks the Negev (ids looked up by row,+ // #1241). On the 15 June turn Givati goes back to -5,23, Egypt marches on its script to -9,27, and without the guard its// standing attack destroyed the Negev at 900% inside the first truce. The golden seed: the Negev survives the first turn// at 2, its start before #1240 (Ben-Gurion's diary gives it 1, which the first turn's attack destroys), so it is set here.[Fact]@@ -301,22 +301,23 @@ public class EnemyAITests{var s = Simulation.NewGame(Real, GoldenRun.Seed, Mode.Historical);Assert.Equal(new DateTime(1948, 5, 15), s.Date);- Assert.Equal(("givati", "negev", "egyptian_expeditionary_force"),- (Real.StartingForces[4].Row, Real.StartingForces[6].Row, Real.StartingForces[7].Row));- var negev = s.Units[6];+ int givati = Real.StartingForces.FindIndex(f => f.Row == "givati");+ int negevId = Real.StartingForces.FindIndex(f => f.Row == "negev");+ int egypt = Real.StartingForces.FindIndex(f => f.Row == "egyptian_expeditionary_force");+ var negev = s.Units[negevId];Assert.Equal(1, negev.Strength);- s.Units[6] = new Unit(negev.Id, negev.Type, negev.Q, negev.R, negev.Service, negev.Side, 2, negev.Order, negev.OrderTarget);- var first = Simulation.Step(Real, s, new Command[] { new Move(4, -7, 24), new Move(6, -10, 27) });- Assert.Contains(first.Why, x => x.Message == "Unit 7 will attack hex -10,27");+ s.Units[negevId] = new Unit(negev.Id, negev.Type, negev.Q, negev.R, negev.Service, negev.Side, 2, negev.Order, negev.OrderTarget);+ var first = Simulation.Step(Real, s, new Command[] { new Move(givati, -7, 24), new Move(negevId, -10, 27) });+ Assert.Contains(first.Why, x => x.Message == $"Unit {egypt} will attack hex -10,27");s = first.State;Assert.Equal(new DateTime(1948, 6, 15), s.Date);- Assert.True(s.Units.ContainsKey(6), "the Negev fell on the 15 May turn");- Assert.Equal((Combat.Attack, "-10,27"), (s.Units[7].Order, s.Units[7].OrderTarget)); // the attack stands- var strength = s.Units[6].Strength;- var step = Simulation.Step(Real, s, new Command[] { new Move(4, -5, 23) });- Assert.Equal((-9, 27), (step.State.Units[7].Q, step.State.Units[7].R)); // Egypt moved on its script- Assert.True(step.State.Units.ContainsKey(6), "the Negev was destroyed");- Assert.Equal(strength, step.State.Units[6].Strength);+ Assert.True(s.Units.ContainsKey(negevId), "the Negev fell on the 15 May turn");+ Assert.Equal((Combat.Attack, "-10,27"), (s.Units[egypt].Order, s.Units[egypt].OrderTarget)); // the attack stands+ var strength = s.Units[negevId].Strength;+ var step = Simulation.Step(Real, s, new Command[] { new Move(givati, -5, 23) });+ Assert.Equal((-9, 27), (step.State.Units[egypt].Q, step.State.Units[egypt].R)); // Egypt moved on its script+ Assert.True(step.State.Units.ContainsKey(negevId), "the Negev was destroyed");+ Assert.Equal(strength, step.State.Units[negevId].Strength);}// R-ENEMY-006: the truce windows are the sourced ones, half-open: the first truce from 11 June to 8 July 1948 and thediff --git a/sim/Statecraft.Sim.Tests/MovementTests.cs b/sim/Statecraft.Sim.Tests/MovementTests.csindex bcf46f4d6..f8530a7c2 100644--- a/sim/Statecraft.Sim.Tests/MovementTests.cs+++ b/sim/Statecraft.Sim.Tests/MovementTests.cs@@ -369,7 +369,7 @@ public class MovementTestsvar c = ContentLoader.Load(RealContentTests.ContentRoot());var s = Simulation.NewGame(c, 1, Mode.Historical);foreach (var h in c.SettlementHexes) { var id = s.NextId++; s.Units.Add(id, new Unit(id, "armoured_car", h.Q, h.R, side: "israel")); }- Assert.Equal(25 + c.StartingForces.Count, s.Units.Count); // with the starting forces (R-UNIT-006): the enemy's hexes block+ Assert.Equal(25 + c.StartingForces.Count(f => f.Arrives == null), s.Units.Count); // with the starting forces (R-UNIT-006): the enemy's hexes blockvar best = double.MaxValue;var listed = 0;for (int run = 0; run < 5; run++)diff --git a/sim/Statecraft.Sim.Tests/StartingForcesTests.cs b/sim/Statecraft.Sim.Tests/StartingForcesTests.csindex 21abac954..a40497803 100644--- a/sim/Statecraft.Sim.Tests/StartingForcesTests.cs+++ b/sim/Statecraft.Sim.Tests/StartingForcesTests.cs@@ -20,9 +20,9 @@ public class StartingForcesTests/// <summary>One units_1948.yaml row in the fixture's map (an army row with one anchor from 15 May 1948) and its anchor's/// unit_anchor_hexes.yaml row on hex (q, r). The anchor's coordinates are those of hex (1, 0); the sim never reads them.</summary>static (string row, string hex) Row(string id, string side, int? people, int q = 1, int r = 0, string extra = "", string from = "1948-05-15",- string service = "army", string status = "draft") =>+ string service = "army", string status = "draft", string asOf = "1948-05-15") =>(FormattableString.Invariant($"- id: {id}\n service: {service}\n side: {side}\n status: {status}\n{extra}")- + (people is int p ? FormattableString.Invariant($" strength: {{ value: {p}, as_of: '1948-05-15' }}\n") : "")+ + (people is int p ? FormattableString.Invariant($" strength: {{ value: {p}, as_of: '{asOf}' }}\n") : "")+ FormattableString.Invariant($" anchors:\n - {{ place: Here, lon: 34.29, lat: 33.35, from: '{from}', to: '1949-01-01' }}\n"),FormattableString.Invariant($" - {{ id: {id}, anchor: 0, q: {q}, r: {r} }}\n"));@@ -47,6 +47,7 @@ public class StartingForcesTests("alexandroni", "Netanya (Camp Dora)", "veteran_soldier", "israel", 4, 0, 15),("kiryati", "Tel Aviv", "veteran_soldier", "israel", 3, -3, 19),("givati", "Gedera", "veteran_soldier", "israel", 3, -5, 23),+ ("etzioni", "Jerusalem", "veteran_soldier", "israel", 3, 0, 23),("harel", "Sha'ar HaGai", "veteran_soldier", "israel", 1, -2, 23),("negev", "Nir Am (Mekorot camp)", "veteran_soldier", "israel", 1, -9, 27),("egyptian_expeditionary_force", "Gaza", "egyptian_army", "egypt", 10, -11, 27),@@ -54,10 +55,14 @@ public class StartingForcesTests("syrian_army", "South of Lake Tiberias, before Samakh", "syrian_army", "syria", 3, 10, 10),("iraqi_expeditionary_force", "The high ground over Gesher", "iraqi_army", "iraq", 3, 9, 11),("arab_liberation_army", "al-Malikiyya", "arab_liberation_army", "ala", 4, 12, 4),+ ("brigade_7", "Hulda (headquarters for the Latrun attacks)", "veteran_soldier", "israel", 2, -4, 23), // arrives (R-UNIT-009)}, Real.StartingForces.Select(f => (f.Row, f.Anchor, f.Type, f.Side, f.Strength, f.Q, f.R)));+ Assert.Equal(new DateTime?[] { new DateTime(1948, 5, 24) }, Real.StartingForces.Where(f => f.Arrives != null).Select(f => f.Arrives));var s = Simulation.NewGame(Real, GoldenRun.Seed, Mode.Historical);- Assert.Equal(Real.StartingForces.Count, s.Units.Count);- for (int i = 0; i < Real.StartingForces.Count; i++)+ var starting = Real.StartingForces.Count(f => f.Arrives == null);+ Assert.Equal(starting, s.Units.Count);+ Assert.Equal(Real.StartingForces.Count, s.NextId); // the arrivals' ids are reserved (R-UNIT-009)+ for (int i = 0; i < starting; i++){var (f, u) = (Real.StartingForces[i], s.Units[i]);Assert.Equal((f.Type, f.Side, f.Strength, f.Q, f.R, 0, "", ""), (u.Type, u.Side, u.Strength, u.Q, u.R, u.Service, u.Order, u.OrderTarget));@@ -71,8 +76,7 @@ public class StartingForcesTests{var rows = Real.StartingForces.Select(f => f.Row).ToList();foreach (var id in new[] { "oded", "brigade_8", "lebanese_army" }) Assert.DoesNotContain(id, rows); // hidden- Assert.DoesNotContain("etzioni", rows); // no strength- foreach (var id in new[] { "yiftach", "brigade_7" }) Assert.DoesNotContain(id, rows); // no 15 May window+ Assert.DoesNotContain("yiftach", rows); // no 15 May window// The real hidden rows have no anchor, so the fixture holds the case that would otherwise start a unit.var c = Load(Row("seen", "israel", 20), Row("unseen", "israel", 20, extra: " hidden: \"no sourced place\"\n"),Row("unsized", "israel", null), Row("nobody", "israel", 0), Row("later", "israel", 20, from: "1948-06-01"));@@ -141,9 +145,9 @@ public class StartingForcesTestspublic void TheRealStartingHexesArePinned() =>Assert.Equal(new[]{- ("golani", 10, 9), ("carmeli", 5, 8), ("alexandroni", 0, 15), ("kiryati", -3, 19), ("givati", -5, 23), ("harel", -2, 23),+ ("golani", 10, 9), ("carmeli", 5, 8), ("alexandroni", 0, 15), ("kiryati", -3, 19), ("givati", -5, 23), ("etzioni", 0, 23), ("harel", -2, 23),("negev", -9, 27), ("egyptian_expeditionary_force", -11, 27), ("arab_legion", 0, 22), ("syrian_army", 10, 10),- ("iraqi_expeditionary_force", 9, 11), ("arab_liberation_army", 12, 4),+ ("iraqi_expeditionary_force", 9, 11), ("arab_liberation_army", 12, 4), ("brigade_7", -4, 23),}, Real.StartingForces.Select(f => (f.Row, f.Q, f.R)));// A starting anchor with no hex row, a row for an anchor that does not exist, a repeated row and a q that is not a whole@@ -163,18 +167,55 @@ public class StartingForcesTestsAssert.Contains(message, ex.Message);}+ // R-UNIT-009 (#1241, owner, 21 October 2026, answer 1(a)): a row whose strength is dated after the start, with an anchor+ // window covering that day, arrives on that day's anchor hex with that strength. Its id is reserved at the start (after the+ // starting rows, whatever the file order), so unit i is still row i, and it enters in the resolution of the turn whose+ // end reaches its date, once. A later row with no window on its day, and a row dated before the start, arrive never.+ [Fact]+ public void ARowDatedAfterTheStartArrivesOnItsDate()+ {+ var c = Load(Row("late", "israel", 20, q: 2, from: "1948-06-20", asOf: "1948-06-20"), Row("first", "israel", 30),+ Row("never", "israel", 20, q: 3, from: "1948-07-20", asOf: "1948-06-20"),+ Row("before", "israel", 20, q: 3, from: "1948-05-01", asOf: "1948-05-01")); // dated before the start: nothing+ Assert.Equal(new[] { ("first", (DateTime?)null), ("late", new DateTime(1948, 6, 20)) }, c.StartingForces.Select(f => (f.Row, f.Arrives)));+ var s = Simulation.NewGame(c, GoldenRun.Seed, Mode.Historical);+ Assert.Equal(new[] { 0 }, s.Units.Keys);+ Assert.Equal(2, s.NextId);+ while (s.Date < new DateTime(1948, 6, 20))+ {+ Assert.False(s.Units.ContainsKey(1), $"not before its date ({s.Date:yyyy-MM-dd})");+ s = Simulation.Step(c, s, Array.Empty<Command>()).State;+ }+ var u = s.Units[1];+ Assert.Equal(("veteran_soldier", "israel", 2, 2, 0), (u.Type, u.Side, u.Strength, u.Q, u.R));+ Assert.Equal(2, s.Units.Count);+ s.Units.Remove(1); // lost in play: it does not arrive again+ s = Simulation.Step(c, s, Array.Empty<Command>()).State;+ Assert.False(s.Units.ContainsKey(1));+ }++ // R-UNIT-009: a strength's as_of that is not a 'YYYY-MM-DD' date is a load error naming the file and the row.+ [Fact]+ public void AStrengthDateMustBeADate()+ {+ var ex = Assert.Throws<ContentException>(() => Load(Row("x", "israel", 20, asOf: "June 1948")));+ Assert.Equal("map/units_1948.yaml", ex.File);+ Assert.Equal("units[x].strength.as_of", ex.Field);+ }+// R-UNIT-007, Q-START-2 (owner, 15 October 2026): Open mode starts no forces; it cannot start a game yet at all.[Fact]public void OpenModeStartsNoForces() =>Assert.Throws<NotSupportedException>(() => Simulation.NewGame(Real, GoldenRun.Seed, Mode.Open));// R-UNIT-006, Q-START-3 (#743, owner, 20 October 2026): a shareable build waits until every row the sim starts a unit- // from is fact-checked. The owner person-checked the twelve real ones on 21 October 2026 (#1240), so none waits.+ // from is fact-checked. The owner person-checked the twelve real ones on 21 October 2026 (#1240); Etzioni and the 7th+ // (#1241) came later, so those two wait.[Fact]public void TheReleaseGateWaitsForEveryStartingRowToBeFactChecked(){- Assert.Equal(12, Real.StartingForces.Count);- Assert.Empty(ReleaseGate.StartingForcesUnchecked(Real));+ Assert.Equal(14, Real.StartingForces.Count);+ Assert.Equal(new[] { "brigade_7", "etzioni" }, ReleaseGate.StartingForcesUnchecked(Real));var c = Load(Row("b", "israel", 20), Row("a", "israel", 20, q: 2, status: "fact-checked"));Assert.Equal(new[] { "b" }, ReleaseGate.StartingForcesUnchecked(c));}diff --git a/sim/Statecraft.Sim.Tests/golden/hash1950.txt b/sim/Statecraft.Sim.Tests/golden/hash1950.txtindex b04e7307b..2d4810c63 100644--- a/sim/Statecraft.Sim.Tests/golden/hash1950.txt+++ b/sim/Statecraft.Sim.Tests/golden/hash1950.txt@@ -119,20 +119,22 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4- 13:veteran_halutz@-3,19/6+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+ 15:veteran_halutz@-3,19/6site{beit_kama=done,1949-06-15beit_shemesh=done,1949-11-15- gilat=b,13,4,3FE4DD2F1A9FBE78+ gilat=b,15,4,3FE4DD2F1A9FBE78cproj[- 14:housing@tel_aviv,-4,20/done,1949-10-15- 15:housing@tel_aviv,-3,19/4,3FDB851EB851EB88-next=16+ 16:housing@tel_aviv,-4,20/done,1949-10-15+ 17:housing@tel_aviv,-3,19/4,3FDB851EB851EB88+next=18food=3003,1001,0arms=12\ No newline at end of filediff --git a/sim/Statecraft.Sim.Tests/golden/hash1952.txt b/sim/Statecraft.Sim.Tests/golden/hash1952.txtindex bb766a88c..c37047ce6 100644--- a/sim/Statecraft.Sim.Tests/golden/hash1952.txt+++ b/sim/Statecraft.Sim.Tests/golden/hash1952.txt@@ -140,13 +140,15 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4- 13:veteran_halutz@-3,19/6+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+ 15:veteran_halutz@-3,19/6site{beit_kama=done,1949-06-15beit_kama_field=done,1951-10-15@@ -157,12 +159,12 @@ site{mefalsim=done,1951-02-15reim=done,1951-07-15cproj[- 14:housing@tel_aviv,-4,20/done,1949-10-15- 15:housing@tel_aviv,-3,19/done,1950-06-15- 16:housing@tel_aviv,-3,20/done,1951-02-15- 17:housing@tel_aviv,-2,18/done,1951-10-15- 18:housing@tel_aviv,-2,19/4,3FDB851EB851EB88-next=19+ 16:housing@tel_aviv,-4,20/done,1949-10-15+ 17:housing@tel_aviv,-3,19/done,1950-06-15+ 18:housing@tel_aviv,-3,20/done,1951-02-15+ 19:housing@tel_aviv,-2,18/done,1951-10-15+ 20:housing@tel_aviv,-2,19/4,3FDB851EB851EB88+next=21obj{yishuvim=1951-07-15food=2734,1390,0diff --git a/sim/Statecraft.Sim.Tests/golden/manifest.txt b/sim/Statecraft.Sim.Tests/golden/manifest.txtindex 938d00183..bece00341 100644--- a/sim/Statecraft.Sim.Tests/golden/manifest.txt+++ b/sim/Statecraft.Sim.Tests/golden/manifest.txt@@ -2,11 +2,11 @@# 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 1392f3eb726172c284555b2bcacc0be3f8d9e33d19306dfc3baf0e2c63fe249b-hash1952 cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5-smoke5 11c41014a5ed74f783bc2fa0af99ee86830d162d5e71c883318e36f68f47b9b4-scenario-reckless d6fd9e89518bc31d43816bca87d71665a56643f835749b2d4f093cbdb3870239-scenario-cautious 230791a17b8085ce7f2f5f80ca52d13b74df4d55432ff573dc0b1cf20c328c84-scenario-mvp-absorb-first de1769316d1268baab0baad253b2b263bc816e51e7999cea3b3641ab434a0904-mvp-end cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5-scenario-mvp-defeat 7404295a585197d155809a6d7b32c3c863152fe9c82c182a5528be86f7a231b2+hash1950 d14a4899a1e068bf238f84f4e8fe06270b5164b2c6ba62f2fef399fd7eaada8e+hash1952 3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85+smoke5 7559f30cc7649555cb369b729442d203fa0b42968679f870ac88f0e519a8b755+scenario-reckless 030817e35956616c848df451c02fbb1b4e981d0971100f49121cb83c01220586+scenario-cautious e45c542996b94c73242f276acc0f1d6301e3f1cc1a55a919bdc7cc3788894d33+scenario-mvp-absorb-first 64bdd93b3003158e9504d4d1e4581d214ffd52a992ccf9035d81b56c312eb6ae+mvp-end 3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85+scenario-mvp-defeat 54ec7d6bcdf977017f7b0bc0a06c256f40198f2d2338e515e351451f9f46d75ddiff --git a/sim/Statecraft.Sim.Tests/golden/mvp-end.txt b/sim/Statecraft.Sim.Tests/golden/mvp-end.txtindex bb766a88c..c37047ce6 100644--- a/sim/Statecraft.Sim.Tests/golden/mvp-end.txt+++ b/sim/Statecraft.Sim.Tests/golden/mvp-end.txt@@ -140,13 +140,15 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4- 13:veteran_halutz@-3,19/6+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+ 15:veteran_halutz@-3,19/6site{beit_kama=done,1949-06-15beit_kama_field=done,1951-10-15@@ -157,12 +159,12 @@ site{mefalsim=done,1951-02-15reim=done,1951-07-15cproj[- 14:housing@tel_aviv,-4,20/done,1949-10-15- 15:housing@tel_aviv,-3,19/done,1950-06-15- 16:housing@tel_aviv,-3,20/done,1951-02-15- 17:housing@tel_aviv,-2,18/done,1951-10-15- 18:housing@tel_aviv,-2,19/4,3FDB851EB851EB88-next=19+ 16:housing@tel_aviv,-4,20/done,1949-10-15+ 17:housing@tel_aviv,-3,19/done,1950-06-15+ 18:housing@tel_aviv,-3,20/done,1951-02-15+ 19:housing@tel_aviv,-2,18/done,1951-10-15+ 20:housing@tel_aviv,-2,19/4,3FDB851EB851EB88+next=21obj{yishuvim=1951-07-15food=2734,1390,0diff --git a/sim/Statecraft.Sim.Tests/golden/scenario-cautious.txt b/sim/Statecraft.Sim.Tests/golden/scenario-cautious.txtindex 408da87f8..4a80029ce 100644--- a/sim/Statecraft.Sim.Tests/golden/scenario-cautious.txt+++ b/sim/Statecraft.Sim.Tests/golden/scenario-cautious.txt@@ -106,12 +106,14 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4-next=12+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+next=14food=2253,751,0arms=12\ No newline at end of filediff --git a/sim/Statecraft.Sim.Tests/golden/scenario-mvp-absorb-first.txt b/sim/Statecraft.Sim.Tests/golden/scenario-mvp-absorb-first.txtindex 60d31bf9b..a085e05dc 100644--- a/sim/Statecraft.Sim.Tests/golden/scenario-mvp-absorb-first.txt+++ b/sim/Statecraft.Sim.Tests/golden/scenario-mvp-absorb-first.txt@@ -120,14 +120,14 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4- 19:halutz@-3,19- 20:halutz@-3,19+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=221:halutz@-3,1922:halutz@-3,1923:halutz@-3,19@@ -284,8 +284,8 @@ units[174:halutz@-3,19175:halutz@-3,19176:halutz@-3,19- 188:halutz@-3,19- 189:halutz@-3,19+ 177:halutz@-3,19+ 178:halutz@-3,19190:halutz@-3,19191:halutz@-3,19192:halutz@-3,19@@ -367,24 +367,26 @@ units[268:halutz@-3,19269:halutz@-3,19270:halutz@-3,19+ 271:halutz@-3,19+ 272:halutz@-3,19cproj[- 13:housing@haifa,5,8/done,1949-02-15- 14:housing@haifa,4,9/done,1949-02-15- 15:housing@haifa,5,9/done,1949-03-15- 16:industry@haifa,6,8/done,1949-03-15- 17:housing@jerusalem,0,22/done,1949-04-15- 18:housing@jerusalem,1,22/done,1949-04-15- 177:housing@jerusalem,-1,23/done,1949-05-15- 178:housing@jerusalem,1,23/done,1949-06-15- 179:industry@jerusalem,-1,24/done,1949-06-15- 180:housing@petah_tikva,-2,18/done,1949-07-15- 181:housing@petah_tikva,-1,18/done,1949-07-15- 182:housing@rehovot,-4,20/done,1949-08-15- 183:housing@hadera,2,12/done,1949-08-15- 184:housing@netanya,0,15/done,1949-09-15- 185:housing@jerusalem,0,23/done,1949-09-15- 186:housing@rishon_lezion,-4,21/done,1949-10-15-next=271+ 15:housing@haifa,5,8/done,1949-02-15+ 16:housing@haifa,4,9/done,1949-02-15+ 17:housing@haifa,5,9/done,1949-03-15+ 18:industry@haifa,6,8/done,1949-03-15+ 19:housing@jerusalem,0,22/done,1949-04-15+ 20:housing@jerusalem,1,22/done,1949-04-15+ 179:housing@jerusalem,-1,23/done,1949-05-15+ 180:housing@jerusalem,1,23/done,1949-06-15+ 181:industry@jerusalem,-1,24/done,1949-06-15+ 182:housing@petah_tikva,-2,18/done,1949-07-15+ 183:housing@petah_tikva,-1,18/done,1949-07-15+ 184:housing@rehovot,-4,20/done,1949-08-15+ 185:housing@hadera,2,12/done,1949-08-15+ 186:housing@netanya,0,15/done,1949-09-15+ 187:housing@jerusalem,0,23/done,1949-09-15+ 188:housing@rishon_lezion,-4,21/done,1949-10-15+next=273obj{absorb_immigrants=1950-01-15score=100diff --git a/sim/Statecraft.Sim.Tests/golden/scenario-mvp-defeat.txt b/sim/Statecraft.Sim.Tests/golden/scenario-mvp-defeat.txtindex 65a641b82..904c027c1 100644--- a/sim/Statecraft.Sim.Tests/golden/scenario-mvp-defeat.txt+++ b/sim/Statecraft.Sim.Tests/golden/scenario-mvp-defeat.txt@@ -139,13 +139,15 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4-next=12+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+next=14food=0,1390,1390exhausted=3arms=12\ No newline at end of filediff --git a/sim/Statecraft.Sim.Tests/golden/scenario-reckless.txt b/sim/Statecraft.Sim.Tests/golden/scenario-reckless.txtindex 207afebbd..f9c2003e3 100644--- a/sim/Statecraft.Sim.Tests/golden/scenario-reckless.txt+++ b/sim/Statecraft.Sim.Tests/golden/scenario-reckless.txt@@ -104,12 +104,14 @@ units[2:veteran_soldier@0,15|side=israel|strength=43:veteran_soldier@-3,19|side=israel|strength=34:veteran_soldier@-5,23|side=israel|strength=3- 6:veteran_soldier@-9,27|side=israel|strength=1- 7:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25- 8:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22- 9:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6- 10:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13- 11:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4-next=12+ 5:veteran_soldier@0,23|side=israel|strength=3+ 7:veteran_soldier@-9,27|side=israel|strength=1+ 8:egyptian_army@-8,25|side=egypt|strength=10|order=fortify|target=-8,25+ 9:arab_legion@-2,22|side=jordan|strength=4|order=fortify|target=-2,22+ 10:syrian_army@13,6|side=syria|strength=3|order=fortify|target=13,6+ 11:iraqi_army@6,13|side=iraq|strength=3|order=fortify|target=6,13+ 12:arab_liberation_army@12,4|side=ala|strength=4|order=fortify|target=12,4+ 13:veteran_soldier@-4,23|side=israel|strength=2+next=14food=2253,751,0arms=12\ No newline at end of filediff --git a/sim/Statecraft.Sim/GoldenRun.cs b/sim/Statecraft.Sim/GoldenRun.csindex 7e80c0c73..0b2913bc4 100644--- a/sim/Statecraft.Sim/GoldenRun.cs+++ b/sim/Statecraft.Sim/GoldenRun.cs@@ -16,13 +16,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 = "1392f3eb726172c284555b2bcacc0be3f8d9e33d19306dfc3baf0e2c63fe249b";+ public const string Hash1950 = "d14a4899a1e068bf238f84f4e8fe06270b5164b2c6ba62f2fef399fd7eaada8e";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 = "cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5";+ public const string Hash1952 = "3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85";public static readonly DateTime Until1952 = new DateTime(1952, 1, 1);diff --git a/sim/Statecraft.Sim/StartingForces.cs b/sim/Statecraft.Sim/StartingForces.csindex e642aa636..414dcf360 100644--- a/sim/Statecraft.Sim/StartingForces.cs+++ b/sim/Statecraft.Sim/StartingForces.cs@@ -21,6 +21,9 @@ namespace Statecraft.Simpublic int R { get; set; }/// <summary>The row's review status (draft, to_verify, fact-checked); the release gate reads it (Q-START-3).</summary>public string Status { get; set; } = "";+ /// <summary>R-UNIT-009 (#1241): the day a row dated after the start arrives (its strength's as_of), or null for a row+ /// that starts the game. Its unit's id is reserved at the start and the resolver adds it on that day's turn.</summary>+ public DateTime? Arrives { get; set; }/// <summary>The hex of the row's 11 June 1948 anchor that the enemy AI marches on (R-ENEMY-002; Q-ENEMY-1), or null/// when the row has none on two sources.</summary>public (int Q, int R)? Script { get; set; }@@ -53,6 +56,7 @@ namespace Statecraft.Simvar start = c.Rules.Start.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);var ppu = c.RulesAt(c.Rules.Start).Mvp!.PeoplePerUnit; // the start day's rules, as Cities.Init reads themvar list = new List<StartingForce>();+ var arrivals = new List<StartingForce>(); // R-UNIT-009: after every starting row, so unit i is still row ifor (int i = 0; i < rows.Count; i++){var row = rows[i] ?? throw new ContentException(FileName, $"units[{i}]", "empty row");@@ -60,10 +64,15 @@ namespace Statecraft.Simif (id == "") throw new ContentException(FileName, $"units[{i}].id", "required");var at = $"units[{id}]";if (row.ContainsKey("hidden") || Text(row, "service") != "army") continue;- if (!(row.TryGetValue("strength", out var so) && so is Dictionary<object, object> strength) || Text(strength, "as_of") != start) continue;+ if (!(row.TryGetValue("strength", out var so) && so is Dictionary<object, object> strength)) continue;+ // R-UNIT-009: a strength dated after the start is the row's arrival day; one dated before starts nothing.+ var day = Text(strength, "as_of");+ if (!DateTime.TryParseExact(day, "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.None, out var asOf))+ throw new ContentException(FileName, $"{at}.strength.as_of", "required, a date 'YYYY-MM-DD'");+ if (asOf < c.Rules.Start) continue;if (!(row.TryGetValue("anchors", out var ao) && ao is List<object> anchors)) continue;int k = anchors.FindIndex(a => a is Dictionary<object, object> m- && string.CompareOrdinal(Text(m, "from"), start) <= 0 && string.CompareOrdinal(start, Text(m, "to")) < 0);+ && string.CompareOrdinal(Text(m, "from"), day) <= 0 && string.CompareOrdinal(day, Text(m, "to")) < 0);if (k < 0) continue;var anchor = (Dictionary<object, object>)anchors[k];var side = Text(row, "side");@@ -80,11 +89,12 @@ namespace Statecraft.Simvar force = new StartingForce{Row = id, Anchor = Text(anchor, "place"), Type = TypeFor(c, side, at), Side = side,- Strength = units, Q = q, R = r, Status = Text(row, "status"),+ Strength = units, Q = q, R = r, Status = Text(row, "status"), Arrives = day == start ? (DateTime?)null : asOf,};if (side != Movement.PlayerSide) Script(c, force, anchors, id, at, hexes);- list.Add(force);+ (day == start ? list : arrivals).Add(force);}+ list.AddRange(arrivals);return list;}@@ -115,13 +125,28 @@ namespace Statecraft.Sim}/// <summary>Adds the starting forces to a new game, in the content's order, taking the next ids: the unit with id i- /// of a new game is <c>c.StartingForces[i]</c>.</summary>+ /// of a new game is <c>c.StartingForces[i]</c>. An arriving row's id is taken too, so it is free when it arrives+ /// (R-UNIT-009).</summary>public static void Init(Content c, GameState s){foreach (var f in c.StartingForces){var id = s.NextId++;- s.Units.Add(id, new Unit(id, f.Type, f.Q, f.R, side: f.Side, strength: f.Strength));+ if (f.Arrives == null) s.Units.Add(id, new Unit(id, f.Type, f.Q, f.R, side: f.Side, strength: f.Strength));+ }+ }++ /// <summary>R-UNIT-009 (#1241, owner, 21 October 2026, answer 1(a)): resolver step 9b. A row dated after the start+ /// arrives in the resolution of the turn from s.Date to <paramref name="next"/> that reaches its day, once, as unit+ /// <c>c.StartingForces[i]</c>'s id i, on its anchor's hex with its strength. Like a starting force it ignores the stack+ /// limit and what else stands on the hex.</summary>+ public static void Arrive(Content c, GameState s, DateTime next)+ {+ for (int i = 0; i < c.StartingForces.Count; i++)+ {+ var f = c.StartingForces[i];+ if (f.Arrives is DateTime day && s.Date < day && day <= next)+ s.Units.Add(i, new Unit(i, f.Type, f.Q, f.R, side: f.Side, strength: f.Strength));}}diff --git a/sim/Statecraft.Sim/TurnResolver.cs b/sim/Statecraft.Sim/TurnResolver.csindex b6d59379c..90c640f5b 100644--- a/sim/Statecraft.Sim/TurnResolver.cs+++ b/sim/Statecraft.Sim/TurnResolver.cs@@ -30,6 +30,7 @@ namespace Statecraft.SimCities.House(c, s, r, why); // 8. housing, then the housing condition; Social cohesion is morale, which the effects web moves after the resolutionCities.UpdateCondition(c, s, r, why);Cities.Arrive(c, s, r, next, why); // 9. arrivals+ StartingForces.Arrive(c, s, next); // and the brigades dated after the start (R-UNIT-009)// 10. Occupation timers: Phase 6 PR 6. On the turn that reaches the game's end, a capture still awaiting the choice// counts as Raid (R-CTRL-008, #797).if (next >= c.End) SettlementControl.EndPending(c, s, why);diff --git a/tools/tests/test_units_1948.py b/tools/tests/test_units_1948.pyindex bd635cdef..f9bda40fb 100644--- a/tools/tests/test_units_1948.py+++ b/tools/tests/test_units_1948.py@@ -194,6 +194,11 @@ IDF_STRENGTH = {'golani': 4095, 'carmeli': 2289, 'alexandroni': 3588, 'kiryati':'yiftach': 4500, 'negev': 1300}+# #1241 (owner, 21 October 2026): Etzioni's 15 May strength from Ben-Gurion's diary (to_verify until a person checks it,+# as the #1240 rows), and the 7th's first sourced strength, dated on its first anchor's day, the day it arrives+# (secondary, so to_verify). The figures are research_notes/GDD phase 5/later-brigades-1241.md, sections 1 and 4.+LATER_STRENGTH = {'etzioni': (3166, '1948-05-15', 'to_verify'), 'brigade_7': (1650, '1948-05-24', 'to_verify')}+# The twelve starting rows the owner person-checked on 21 October 2026 (#1240,# https://github.com/eyalgolan/statecraft-israel/issues/1240#issuecomment-6323448250). A row added later is not covered.PERSON_CHECKED = {'alexandroni', 'arab_legion', 'arab_liberation_army', 'carmeli', 'egyptian_expeditionary_force', 'givati',@@ -222,8 +227,20 @@ def test_idf_brigade_strengths_are_secondary_and_to_verify():continueassert u.get('status') == 'to_verify', f"{uid}: a secondary-source strength carries status: to_verify"assert u.get('to_verify'), f"{uid}: to_verify says what a primary source must replace"+ for uid, (value, as_of, status) in LATER_STRENGTH.items():+ u = israel[uid]+ st = u.get('strength')+ assert isinstance(st, dict), f"{uid}: no strength"+ assert set(st) <= {'value', 'as_of', 'note', 'sources'}, (uid, sorted(st))+ assert (st.get('value'), st.get('as_of')) == (value, as_of), f"{uid}: strength {st!r}"+ assert st.get('sources'), f"{uid}: the strength cites no source"+ assert not RANGE.search(str(st.get('note', ''))), f"{uid}: the strength note copies a range"+ assert u.get('status') == status, uid+ assert u.get('to_verify'), f"{uid}: to_verify says what a person or a primary source must settle"+ # R-UNIT-009: a strength dated after the start is the arrival day, so an anchor window opens on it.+ assert as_of == '1948-05-15' or any(a['from'] == as_of for a in u['anchors']), f"{uid}: no anchor opens on {as_of}"for uid, u in israel.items():- if uid not in IDF_STRENGTH:+ if uid not in IDF_STRENGTH and uid not in LATER_STRENGTH:assert 'strength' not in u, f"{uid}: no figure in the note, so none in the file"assert u.get('status') == 'draft', uiddiff --git a/tools/web_check.py b/tools/web_check.pyindex c08e72fbe..7124e3053 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 hash1950 1392f3eb726172c284555b2bcacc0be3f8d9e33d19306dfc3baf0e2c63fe249b" --expect "GOLDEN OK hash1952 cc96cd0a8d50a7693300ef887673c7ccfc18dac6d4dcaa9f52ed2ed09062eda5"+ uv run tools/web_check.py unity/Builds/Web-disabled --query "golden" --expect "GOLDEN OK hash1950 d14a4899a1e068bf238f84f4e8fe06270b5164b2c6ba62f2fef399fd7eaada8e" --expect "GOLDEN OK hash1952 3bacd2b10340aa95ec130d84aedfb560828dae6b0ed35323f64410f9ac8eee85"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'sdiff --git a/unity/Assets/Scripts/Map/Units/UnitRoster.cs b/unity/Assets/Scripts/Map/Units/UnitRoster.csindex 6f211750f..5f05e8c7e 100644--- a/unity/Assets/Scripts/Map/Units/UnitRoster.cs+++ b/unity/Assets/Scripts/Map/Units/UnitRoster.cs@@ -136,7 +136,7 @@ namespace Statecraft.Game.Map.Unitsvar force = content.StartingForces[unit.Id];var row = units.FirstOrDefault(u => u.Id == force.Row);if (row == null || !OnMap(row) || row.Service != UnitData.Army) continue;- var start = AnchorAt(row, content.Rules.Start);+ var start = AnchorAt(row, force.Arrives ?? content.Rules.Start); // an arriving row stands on its arrival day's anchor (R-UNIT-009)if (start == null) continue; // the map's copy of the file disagrees with the sim's; nothing to stand onvar anchor = unit.Q == force.Q && unit.R == force.R ? start : moved(row, start, unit.Q, unit.R);int figures = FiguresForStrength(unit.Strength, force.Strength);diff --git a/unity/Assets/Tests/EditMode/BuildGateTests.cs b/unity/Assets/Tests/EditMode/BuildGateTests.csindex 6c0a6414e..4dbc155e4 100644--- a/unity/Assets/Tests/EditMode/BuildGateTests.cs+++ b/unity/Assets/Tests/EditMode/BuildGateTests.cs@@ -31,7 +31,7 @@ public class BuildGateTestspublic void AShareableBuildWaitsForTheStartingForcesRows(){var c = ContentLoader.Load(Paths.Content);- CollectionAssert.IsEmpty(ReleaseGate.StartingForcesUnchecked(c), "the owner person-checked the real rows (21 October 2026, #1240)");+ CollectionAssert.AreEqual(new[] { "brigade_7", "etzioni" }, ReleaseGate.StartingForcesUnchecked(c), "the owner person-checked the real rows (21 October 2026, #1240); the later brigades' new rows wait for his check (#1241, Q-START-3)");foreach (var f in c.StartingForces) f.Status = "to_verify"; // in memory only: the rows as they were before that checkvar refusal = Refusal(c);Assert.IsNotNull(refusal, "a row that is not fact-checked blocks a shareable build");diff --git a/unity/Assets/Tests/EditMode/UnitOrdersTests.cs b/unity/Assets/Tests/EditMode/UnitOrdersTests.csindex 2b593bc28..4c9e13be1 100644--- a/unity/Assets/Tests/EditMode/UnitOrdersTests.cs+++ b/unity/Assets/Tests/EditMode/UnitOrdersTests.cs@@ -46,7 +46,7 @@ public class UnitOrdersTestsvar id = C.StartingForces.ToList().FindIndex(f => f.Row == "golani");Assert.GreaterOrEqual(id, 0, "precondition: Golani is a starting force");Assert.AreEqual(id, UnitCard.SimUnit(C, s, golani));- Assert.IsNull(UnitCard.SimUnit(C, s, Units.Single(u => u.Id == "etzioni")), "Etzioni has no starting force (#1205)");+ Assert.IsNull(UnitCard.SimUnit(C, s, Units.Single(u => u.Id == "yiftach")), "Yiftach has no starting force (its window does not cover the start, #1241)");s.Units.Remove(id);Assert.IsNull(UnitCard.SimUnit(C, s, golani), "a unit no longer in the state");Assert.IsNull(UnitCard.SimUnit(SimBridgeGddTests.Legacy, s, golani), "the legacy loop has no starting forces");diff --git a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs b/unity/Assets/Tests/EditMode/UnitsInPlayTests.csindex eb385f9f4..588bc7f30 100644--- a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs+++ b/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs@@ -69,10 +69,10 @@ public class UnitsInPlayTestspublic void TheStartMatchesTheMap(){var hexes = MapBuilder.LoadHexes(Path.Combine(Paths.Content, "map", "hexes.json"));- var start = C.Rules.Start.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);- Assert.AreEqual(12, C.StartingForces.Count, "the twelve sourced forces of 15 May 1948 (#743)");+ Assert.AreEqual(14, C.StartingForces.Count, "the thirteen sourced forces of 15 May 1948 (#743, #1241) and the 7th's arrival (R-UNIT-009)");foreach (var f in C.StartingForces){+ var start = (f.Arrives ?? C.Rules.Start).ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);var row = Units.Single(u => u.Id == f.Row);Assert.IsNull(row.Hidden, f.Row);Assert.AreEqual(UnitData.Army, row.Service, f.Row);@@ -808,10 +808,10 @@ public class UnitsInPlayTestsAssert.IsTrue(layer.Show(C, session.State));Assert.AreEqual(before, session.State.Hash(), "drawing the units changed the state");Assert.IsFalse(layer.Show(C, session.State), "the same roster draws nothing new");- // The GDD loop draws the sim's units (GDD Phase 5 PR 14): seven brigades and the two ships; Etzioni has no sim unit.- Assert.AreEqual(9, layer.Tokens.Count);+ // The GDD loop draws the sim's units (GDD Phase 5 PR 14): eight brigades and the two ships; the 7th arrives from the 15 June turn (R-UNIT-009).+ Assert.AreEqual(10, layer.Tokens.Count);var tokens = map.Terrain.transform.Find(UnitLayer.RootName).Find("Tokens");- Assert.AreEqual(9, tokens.childCount);+ Assert.AreEqual(10, tokens.childCount);var kiryati = tokens.Find("kiryati");Assert.AreEqual(3, kiryati.Cast<Transform>().Count(t => t.name.StartsWith("Rifleman")), "three riflemen at full strength (Q-UI-3)");var badge = kiryati.Find("Badge");