Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Opening field hosts as data under exact gdd-0.3 (Refs #1717, Refs #1689) (#2924)

Eyal Golan36393cc30652
diff --git a/changelog.d/1717-opening-field-hosts.md b/changelog.d/1717-opening-field-hosts.md
new file mode 100644
index 000000000..043b823cf
--- /dev/null
+++ b/changelog.d/1717-opening-field-hosts.md
@@ -0,0 +1,4 @@
+- GDD 0.3 opening fields (Refs #1717, Refs #1689): each of the 20 opening fields now names the place that hosts its farmer,
+ as data under exact `gdd-0.3` only, with its evidence basis, and the loader refuses a settlement host outside F19 and F20
+ or a census-city host outside its field's region. Nirim joins the Negev's member locations. F13, F14 and F17 are design
+ choices, not sourced. No farmer records and no new-game wiring, so there is no change in the game.
diff --git a/content/regions.yaml b/content/regions.yaml
index 760605fe8..38af9d084 100644
--- a/content/regions.yaml
+++ b/content/regions.yaml
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=schema/regions.schema.json
-# The nine gdd-0.3 player regions (#1691). Exact gdd-0.3 only: legacy and gdd-0.1 never read this file. Geography and
-# the approved opening field hexes only: no capacities, residents or other opening allocation, and nothing initializes
-# regions in a new game yet (#1689).
+# The nine gdd-0.3 player regions (#1691). Exact gdd-0.3 only: legacy and gdd-0.1 never read this file. Geography, the
+# approved opening field hexes and each field's host only: no capacities, residents or other opening allocation, and
+# nothing initializes regions in a new game yet (#1689).
# Built from research_notes/gdd03-regions.schema-input.yaml (the owner-approved 27 October 2026 draft, extents from
# sub-districts: "C: sub-district, then Amir adjusts", 30 October 2026) with these owner rulings of 2 November 2026:
# - Q1 "Accept localities": a member may be a locality (map/localities_1948.yaml), placed by map/locality_hexes.yaml.
@@ -20,6 +20,12 @@
# Agent proposal, approved by the owner; a person's check pending. Data only: nothing farms them yet (#1689, #1690).
# Q2 (owner, 2 November 2026: "Add (10,4) to Galilee (Recommended)"): hex (10,4), Hanita's own hex after the 4.4 km
# regrid, joins galilee.
+# Field hosts (#1717, R-POP-004): field, host, host_basis and host_source on a field_hexes row name the place that hosts
+# that field's farmer. Data only: no farmer record exists and NewGame reads none of it. F01 to F20 are the field's place in
+# this file's order, as in research_notes/GDD phase 4/opening-field-farmer-cities-1717.md, whose field table gives the
+# class and the sources W1 to W19 cited in each host_source. host_basis: sourced (class H), administrative (A), forced (R),
+# inference (I, an owner-approved default with no source), design_choice (F13, F14, F17: the owner's choice, not sourced)
+# and decision_a (F19, F20: Decision A, a settlement in the field's own region, "These two only (Recommended)").
# Deferred, not a member here: rosh_haayin_camp (tel_aviv_jaffa in the evidence). No sourced position for the camp was
# found and it opened in 1950 (map/region_places_1948.yaml header); it stays in research_notes for Amir.
# Every hex below is land and in at most one region; a land hex in no region is allowed (docs/rules/mvp.md R-CITY-006).
@@ -62,8 +68,8 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: 9, r: 5 } # coastal_plain; I on 15 May (map/control_hexes_1948_49.yaml:36); on Nahariya, next to Hanita (map/localities_1948.yaml:4260; map/settlements_1948.yaml:331, founded 1938, en.wiki Hanita)
- - { q: 14, r: 7 } # lowland; I (map/control_hexes_1948_49.yaml:55); next to Rosh Pinna (map/settlements_1948.yaml:233, founded 1878, en.wiki Rosh Pinna)
+ - { q: 9, r: 5, field: F01, host: rosh_pinna, host_basis: inference, host_source: 'opening-field-farmer-cities-1717.md F01: class I, [GAP], no source ties the city to the field; owner 7 Nov 2026 on #1689' } # coastal_plain; I on 15 May (map/control_hexes_1948_49.yaml:36); on Nahariya, next to Hanita (map/localities_1948.yaml:4260; map/settlements_1948.yaml:331, founded 1938, en.wiki Hanita)
+ - { q: 14, r: 7, field: F02, host: rosh_pinna, host_basis: inference, host_source: 'opening-field-farmer-cities-1717.md F02: class I, [GAP], no source ties the city to the field; owner 7 Nov 2026 on #1689' } # lowland; I (map/control_hexes_1948_49.yaml:55); next to Rosh Pinna (map/settlements_1948.yaml:233, founded 1878, en.wiki Rosh Pinna)
member_locations:
- acre
- safed
@@ -147,12 +153,12 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: 7, r: 11 } # coastal_plain; I (map/control_hexes_1948_49.yaml:79); on Nahalal (map/settlements_1948.yaml:317)
- - { q: 7, r: 12 } # lowland; I (map/control_hexes_1948_49.yaml:89); next to Nahalal and Mishmar HaEmek (map/settlements_1948.yaml:317; map/region_places_1948.yaml:40)
- - { q: 8, r: 13 } # lowland; I (map/control_hexes_1948_49.yaml:99); on Ein Harod (map/settlements_1948.yaml:303)
- - { q: 9, r: 13 } # lowland; I (map/control_hexes_1948_49.yaml:100); next to Ein Harod (map/settlements_1948.yaml:303)
- - { q: 11, r: 12 } # valley; I (map/control_hexes_1948_49.yaml:93); on Ashdot Ya'akov and Gesher (map/localities_1948.yaml:6591; map/region_places_1948.yaml:21, he.wiki rev 43461554, en.wiki rev 1374530453)
- - { q: 12, r: 11 } # valley; I (map/control_hexes_1948_49.yaml:84); on Degania Alef (map/settlements_1948.yaml:289)
+ - { q: 7, r: 11, field: F03, host: tiberias, host_basis: forced, host_source: 'opening-field-farmer-cities-1717.md F03: class R, [GAP], the only eligible census city; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:79); on Nahalal (map/settlements_1948.yaml:317)
+ - { q: 7, r: 12, field: F04, host: tiberias, host_basis: forced, host_source: 'opening-field-farmer-cities-1717.md F04: class R, [GAP], the only eligible census city; owner 7 Nov 2026 on #1689' } # lowland; I (map/control_hexes_1948_49.yaml:89); next to Nahalal and Mishmar HaEmek (map/settlements_1948.yaml:317; map/region_places_1948.yaml:40)
+ - { q: 8, r: 13, field: F05, host: tiberias, host_basis: forced, host_source: 'opening-field-farmer-cities-1717.md F05: class R, [GAP], the only eligible census city; owner 7 Nov 2026 on #1689' } # lowland; I (map/control_hexes_1948_49.yaml:99); on Ein Harod (map/settlements_1948.yaml:303)
+ - { q: 9, r: 13, field: F06, host: tiberias, host_basis: forced, host_source: 'opening-field-farmer-cities-1717.md F06: class R, [GAP], the only eligible census city; owner 7 Nov 2026 on #1689' } # lowland; I (map/control_hexes_1948_49.yaml:100); next to Ein Harod (map/settlements_1948.yaml:303)
+ - { q: 11, r: 12, field: F07, host: tiberias, host_basis: administrative, host_source: 'opening-field-farmer-cities-1717.md F07: class A, [V] [S], Tiberias Sub-District, Hadawi p. 72, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # valley; I (map/control_hexes_1948_49.yaml:93); on Ashdot Ya'akov and Gesher (map/localities_1948.yaml:6591; map/region_places_1948.yaml:21, he.wiki rev 43461554, en.wiki rev 1374530453)
+ - { q: 12, r: 11, field: F08, host: tiberias, host_basis: administrative, host_source: 'opening-field-farmer-cities-1717.md F08: class A, [V] [S], Tiberias Sub-District, Hadawi p. 72, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # valley; I (map/control_hexes_1948_49.yaml:84); on Degania Alef (map/settlements_1948.yaml:289)
member_locations:
- tiberias
- nazareth
@@ -231,12 +237,12 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: 1, r: 15 } # coastal_plain; I (map/control_hexes_1948_49.yaml:111); on Hadera, a game city (map/settlements_1948.yaml:261)
- - { q: 2, r: 14 } # coastal_plain; I (map/control_hexes_1948_49.yaml:102); on Binyamina (map/localities_1948.yaml:3900)
- - { q: 2, r: 15 } # coastal_plain; I (map/control_hexes_1948_49.yaml:112); on Pardes Hanna (map/localities_1948.yaml:471)
- - { q: 3, r: 13 } # coastal_plain; I (map/control_hexes_1948_49.yaml:94); on Zikhron Ya'akov (map/settlements_1948.yaml:219)
- - { q: 6, r: 10 } # coastal_plain; I (map/control_hexes_1948_49.yaml:69); on Yagur (map/localities_1948.yaml:5434)
- - { q: 6, r: 12 } # coastal_plain; I (map/control_hexes_1948_49.yaml:88); on Mishmar HaEmek (map/region_places_1948.yaml:40, en.wiki rev 1378097624)
+ - { q: 1, r: 15, field: F09, host: hadera, host_basis: sourced, host_source: 'opening-field-farmer-cities-1717.md F09: class H, [V] [S], W2, Hadawi pp. 90, 48, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:111); on Hadera, a game city (map/settlements_1948.yaml:261)
+ - { q: 2, r: 14, field: F10, host: zikhron_yaakov, host_basis: sourced, host_source: 'opening-field-farmer-cities-1717.md F10: class H, [S] [V], W3, Hadawi p. 89, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:102); on Binyamina (map/localities_1948.yaml:3900)
+ - { q: 2, r: 15, field: F11, host: hadera, host_basis: inference, host_source: 'opening-field-farmer-cities-1717.md F11: class I, [GAP], no source ties the city to the field; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:112); on Pardes Hanna (map/localities_1948.yaml:471)
+ - { q: 3, r: 13, field: F12, host: zikhron_yaakov, host_basis: sourced, host_source: 'opening-field-farmer-cities-1717.md F12: class H, [V] [S], W5, Hadawi p. 92, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:94); on Zikhron Ya'akov (map/settlements_1948.yaml:219)
+ - { q: 6, r: 10, field: F13, host: haifa, host_basis: design_choice, host_source: 'owner 7 Nov 2026 on #1689: "Haifa, Haifa, Rehovot (Recommended)", F13 is Haifa; a design choice, not sourced' } # coastal_plain; I (map/control_hexes_1948_49.yaml:69); on Yagur (map/localities_1948.yaml:5434)
+ - { q: 6, r: 12, field: F14, host: haifa, host_basis: design_choice, host_source: 'owner 7 Nov 2026 on #1689: "Haifa, Haifa, Rehovot (Recommended)", F14 is Haifa; a design choice, not sourced' } # coastal_plain; I (map/control_hexes_1948_49.yaml:88); on Mishmar HaEmek (map/region_places_1948.yaml:40, en.wiki rev 1378097624)
member_locations:
- haifa
- zikhron_yaakov
@@ -306,8 +312,8 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: -2, r: 21 } # coastal_plain; I (map/control_hexes_1948_49.yaml:166); on Petah Tikva, a game city (map/settlements_1948.yaml:191, founded 1878)
- - { q: -1, r: 20 } # coastal_plain; I (map/control_hexes_1948_49.yaml:157); on Kfar Saba (map/localities_1948.yaml:720)
+ - { q: -2, r: 21, field: F15, host: petah_tikva, host_basis: sourced, host_source: 'opening-field-farmer-cities-1717.md F15: class H, [V] [S], W14, Hadawi pp. 96, 53, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:166); on Petah Tikva, a game city (map/settlements_1948.yaml:191, founded 1878)
+ - { q: -1, r: 20, field: F16, host: petah_tikva, host_basis: sourced, host_source: 'opening-field-farmer-cities-1717.md F16: class H, [S] [V], W15, Hadawi pp. 52, 96, checked 2026-11-04; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:157); on Kfar Saba (map/localities_1948.yaml:720)
member_locations:
- tel_aviv
- jaffa
@@ -368,8 +374,8 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: -5, r: 25 } # coastal_plain; I (map/control_hexes_1948_49.yaml:206); on Givat Brenner (map/localities_1948.yaml:6668)
- - { q: -4, r: 25 } # coastal_plain; I (map/control_hexes_1948_49.yaml:207); on Hulda (map/locations_1948.yaml:25, Wikidata, checked 2026-10-18)
+ - { q: -5, r: 25, field: F17, host: rehovot, host_basis: design_choice, host_source: 'owner 7 Nov 2026 on #1689: "Haifa, Haifa, Rehovot (Recommended)", F17 is Rehovot; a design choice, not sourced' } # coastal_plain; I (map/control_hexes_1948_49.yaml:206); on Givat Brenner (map/localities_1948.yaml:6668)
+ - { q: -4, r: 25, field: F18, host: rishon_lezion, host_basis: inference, host_source: 'opening-field-farmer-cities-1717.md F18: class I, [GAP], no source ties the city to the field; owner 7 Nov 2026 on #1689' } # coastal_plain; I (map/control_hexes_1948_49.yaml:207); on Hulda (map/locations_1948.yaml:25, Wikidata, checked 2026-10-18)
member_locations:
- lod
- ramla
@@ -702,7 +708,7 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: -11, r: 31 } # coastal_plain; I (map/control_hexes_1948_49.yaml:272); on Nir Am, the D5 housing place (map/locations_1948.yaml:45, Wikidata Q2891278; map/control_1948_49.geojson pin, en.wiki Nir_Am)
+ - { q: -11, r: 31, field: F19, host: nir_am, host_basis: decision_a, host_source: 'opening-field-farmer-cities-1717.md F19: Decision A option 1; owner 7 Nov 2026 on #1689: "These two only (Recommended)"' } # coastal_plain; I (map/control_hexes_1948_49.yaml:272); on Nir Am, the D5 housing place (map/locations_1948.yaml:45, Wikidata Q2891278; map/control_1948_49.geojson pin, en.wiki Nir_Am)
member_locations:
- gaza
- yad_mordechai
@@ -995,7 +1001,7 @@ player_regions:
# Opening field hexes (#1691 Q4), by the 27 October 2026 split ("Approve as proposed"). Agent proposal, approved by the
# owner 2 Nov 2026 ("Approve as drafted (Recommended)"); a person's check pending. Data only: nothing farms them yet.
field_hexes:
- - { q: -10, r: 33 } # lowland; I (map/control_hexes_1948_49.yaml:301); on Mishmar HaNegev, founded 6 Oct 1946 (map/control_1948_49.geojson:223 pin; en.wiki rev 1375580227); hex by nearest centre, no roster record
+ - { q: -10, r: 33, field: F20, host: nirim, host_basis: decision_a, host_source: 'opening-field-farmer-cities-1717.md F20: Decision A option 1; owner 7 Nov 2026 on #1689: "These two only (Recommended)"' } # lowland; I (map/control_hexes_1948_49.yaml:301); on Mishmar HaNegev, founded 6 Oct 1946 (map/control_1948_49.geojson:223 pin; en.wiki rev 1375580227); hex by nearest centre, no roster record
member_locations:
- beersheba
- revivim
@@ -1006,6 +1012,7 @@ player_regions:
- gilat
- gilat_field
- umm_rashrash
+ - nirim # owner 7 Nov 2026 on #1689: "Add Nirim to Negev (Recommended)"; F20's host, on (-16,36) (map/locations_1948.yaml)
design_note: 'design value, not a historical boundary'
sources: ['research_notes/gdd03-regions-capitals-fields.yaml: negev', 'owner 2 Nov 2026: capital_location APPROVED as a label, "Approve all nine as labels (Recommended)"']
binding_status: NEEDS-RESEARCH
diff --git a/content/schema/regions.schema.json b/content/schema/regions.schema.json
index 9c1544671..e11855400 100644
--- a/content/schema/regions.schema.json
+++ b/content/schema/regions.schema.json
@@ -22,6 +22,25 @@
"r": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 }
}
},
+ "field_hex": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["q", "r"],
+ "dependentRequired": {
+ "field": ["host", "host_basis", "host_source"],
+ "host": ["field"],
+ "host_basis": ["field"],
+ "host_source": ["field"]
+ },
+ "properties": {
+ "q": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 },
+ "r": { "type": "integer", "minimum": -2147483648, "maximum": 2147483647 },
+ "field": { "type": "string", "pattern": "^F[0-9]{2}$", "description": "This field's place in the file's order." },
+ "host": { "$ref": "#/$defs/id", "description": "A census city of this region, or for F19 and F20 only a settlement of this region (R-POP-004)." },
+ "host_basis": { "enum": ["sourced", "administrative", "forced", "inference", "design_choice", "decision_a"] },
+ "host_source": { "type": "string", "minLength": 1 }
+ }
+ },
"control": {
"type": "object",
"additionalProperties": false,
@@ -43,7 +62,7 @@
"capital_location": { "$ref": "#/$defs/id" },
"member_hexes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/hex" } },
"member_locations": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" }, "description": "Each location's effective hex (after map overrides) must be one of this region's member_hexes, and a location may belong to at most one region." },
- "field_hexes": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/hex" }, "description": "Optional opening field hexes (#1691 Q4), each one of this region's member_hexes. Data only." },
+ "field_hexes": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/field_hex" }, "description": "Optional opening field hexes (#1691 Q4), each one of this region's member_hexes, with an optional host (#1717). Data only." },
"design_note": { "type": "string", "minLength": 1 },
"sources": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
"capital_approval": { "enum": ["APPROVED", "NEEDS-RESEARCH"] },
diff --git a/docs/GDD.md b/docs/GDD.md
index 01b41f902..d533db90e 100644
--- a/docs/GDD.md
+++ b/docs/GDD.md
@@ -386,7 +386,7 @@ Later on 1 November 2026 the owner answered the questions the approved answers l
| Reception in the MVP | "No reception-bed layer (Recommended)" | The reception camps are map records, the training centre is an ordinary facility in Kiryat Shmuel, Haifa, and reception beds with their six-turn progress are post-MVP ([#1696](https://github.com/eyalgolan/statecraft-israel/issues/1696#issuecomment-6554002672)). |
| Send home under `gdd-0.3` | "Keep R-UNIT-005 (Recommended)" | Send home stays the only way home, after the front's armistice (`R-UNIT-005`); Amir's demobilisation at a camp is post-MVP ([#1699](https://github.com/eyalgolan/statecraft-israel/issues/1699#issuecomment-6554003735)). |
| Housing repair price | "Fixed price 0.5 Money + 1 work" | A repair costs 0.5 Money and 1 work and raises the city's housing condition by 10 percentage points. The price is a labelled design value ([#1700](https://github.com/eyalgolan/statecraft-israel/issues/1700#issuecomment-6554004118), [#1703](https://github.com/eyalgolan/statecraft-israel/issues/1703#issuecomment-6554005317)). |
-| Historical starting farmer tiers | "Amir's 1:2:1 ratio per city (Recommended)"; the rounding rule: "all approved" | Each census city's starting farmers are a quarter novice, half trained and a quarter veteran, a labelled design value. When a city's count is not a multiple of 4, the split uses the largest remainder with ties to trained (5 farmers: 1 / 3 / 1); at 2 more than a multiple of 4 the leftover unit ties between novice and veteran, and it goes to trained (6 farmers: 1 / 4 / 1; owner, 6 November 2026, "Trained: 1/4/1 (Recommended)", [#2465](https://github.com/eyalgolan/statecraft-israel/issues/2465#issuecomment-6676926351)), and every city's total stays exact ([#1717](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6554155751), [rounding](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6555212806)). Amir's 5 / 10 / 5 stays for Open mode (D2). |
+| Historical starting farmer tiers | "Amir's 1:2:1 ratio per city (Recommended)"; the rounding rule: "all approved"; 7 November 2026, "Per host, 1/18/1 (Recommended)" | Each host's starting farmers are a quarter novice, half trained and a quarter veteran, a labelled design value. The split runs per host, not per census city, which gives 1 / 18 / 1 nationally across the 20 opening fields' hosts ([#1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704985642)). When a host's count is not a multiple of 4, the split uses the largest remainder with ties to trained (5 farmers: 1 / 3 / 1); at 2 more than a multiple of 4 the leftover unit ties between novice and veteran, and it goes to trained (6 farmers: 1 / 4 / 1; owner, 6 November 2026, "Trained: 1/4/1 (Recommended)", [#2465](https://github.com/eyalgolan/statecraft-israel/issues/2465#issuecomment-6676926351)), and every host's total stays exact ([#1717](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6554155751), [rounding](https://github.com/eyalgolan/statecraft-israel/issues/1717#issuecomment-6555212806)). Amir's 5 / 10 / 5 stays for Open mode (D2). |
| D5 places | Southern Coast: "Nir Am (Recommended)"; Negev: "Nirim, add it to the map (Recommended)"; for Nirim: "Optional (Recommended)", "Israeli at the start (Recommended)" and "Agent checks are enough" | Nir Am is the Southern Coast's opening housing place and Nirim, at its 1948 site at Dangur (today's Nir Yitzhak), is the Negev's. Nirim is an optional location, Israeli-held at the start. Agent checks of the sources replace D5's person's check for these places ([#2113](https://github.com/eyalgolan/statecraft-israel/issues/2113#issuecomment-6554685727), [#2136](https://github.com/eyalgolan/statecraft-israel/pull/2136)). |
| Operation-card orders | "military openrations must have unit orders"; Latrun: "Harel at Sha'ar HaGai (Recommended)"; Dani: "Kiryati to Ramle (Recommended)" | Every military-operation card gives unit orders, each from a sourced, dated anchor (owner, 31 October 2026, #749): `ten_days`, `operation_yoav`, `operation_hiram`, `operation_horev` and the attack option of `latrun_proposal`. Latrun orders Harel from its Sha'ar HaGai anchor to Latrun; Dani orders Kiryati to Ramle ([#2087](https://github.com/eyalgolan/statecraft-israel/pull/2087#issuecomment-6555753104), [Latrun and Dani](https://github.com/eyalgolan/statecraft-israel/pull/2087#issuecomment-6555857468)). |
| Movement preview | "I am talking about an arrow showing which tiles the unit is going to move to. this needs to be for israeli units only" | Choosing where an Israeli unit moves shows an animated arrow over the tiles it will move through. Enemy units get no arrow ([#2134](https://github.com/eyalgolan/statecraft-israel/issues/2134)). |
diff --git a/docs/gdd/balance.md b/docs/gdd/balance.md
index e1d8ba0c2..4a929a2ba 100644
--- a/docs/gdd/balance.md
+++ b/docs/gdd/balance.md
@@ -27,14 +27,14 @@ Every value below is a game design value, not a historical estimate. **Agreed**
| `start.money` / `start.food` | `20` / `cover_months` (3 months of need) | Money / Food | Owner, 1 November 2026, D2 [S12]: the Historical MVP keeps main's `treasury_start` and a Food stock at `cover_months` of the start's need (`R-FOOD-001`) [S10]; Amir's `25 / 10`, sized for 10,000 people per population unit, is the Open-mode start |
| `start.arms` | `12` | Arms in the national pool | Retained `arms_start` value (`R-ARMS-001`, `docs/rules/mvp.md`) [S10]; Amir's `3` spare Arms is Agreed as `start.spare_arms` in `content/gdd03-balance.yaml`, and the 30 October 2026 conflict review did not rule on it [S11] |
| `start.army` | sourced seed in Historical mode; `A` otherwise | military population units | Historical mode keeps `content/map/units_1948.yaml` (`Q-START-1`, decided 15 October 2026); `A` applies only to non-Historical modes and remains deferred (owner, 30 Oct 2026) [S1] |
-| `start.farmers` | not used in the Historical MVP | novice / trained / veteran units | Owner, 1 November 2026, D2 [S12]: Historical cities start from the census; Amir's `5 / 10 / 5`, sized for 10,000 people per unit, is the Open-mode start. Each census city's starting farmers split 1:2:1 novice / trained / veteran, largest remainder with ties to trained (owner, 1 November 2026, "Amir's 1:2:1 ratio per city (Recommended)" and "all approved") [S12]; at 2 more than a multiple of 4 the leftover unit goes to trained, so 6 farmers split 1 / 4 / 1 (owner, 6 November 2026, "Trained: 1/4/1 (Recommended)", [#2465](https://github.com/eyalgolan/statecraft-israel/issues/2465#issuecomment-6676926351)) (unitless) |
+| `start.farmers` | not used in the Historical MVP | novice / trained / veteran units | Owner, 1 November 2026, D2 [S12]: Historical cities start from the census; Amir's `5 / 10 / 5`, sized for 10,000 people per unit, is the Open-mode start. Each host's starting farmers split 1:2:1 novice / trained / veteran, largest remainder with ties to trained (owner, 1 November 2026, "Amir's 1:2:1 ratio per city (Recommended)" and "all approved" [S12]; per host, which gives 1 / 18 / 1 nationally, owner, 7 November 2026, "Per host, 1/18/1 (Recommended)", [#1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704985642)); at 2 more than a multiple of 4 the leftover unit goes to trained, so 6 farmers split 1 / 4 / 1 (owner, 6 November 2026, "Trained: 1/4/1 (Recommended)", [#2465](https://github.com/eyalgolan/statecraft-israel/issues/2465#issuecomment-6676926351)) (unitless) |
| `start.prepared_fields` | `20` | staffed farming slots, across multiple friendly regions | Owner, 1 November 2026, Q36 and MAN-1 [S12]: the authored list from the owner-approved per-region split of 27 October 2026 (20 farmer units and 8 Industry units), kept as symbolic weighting; Southern Coast and Negev get one housing place each for their farmer once a source confirms a settlement there on 15 May 1948 (D5). Amir's regional-capital staffing was declined on 30 October 2026 [S1] (unitless) |
| `start.pioneer_teachers` | `1` | veteran pioneer unit, included in population total | Retained owner-decided inventory [S1] |
| `start.military_camps` | `2` | operating camps at the already approved locations | Retained owner ruling, historical `Q-CAMP-2` |
| `start.training_centres` | `1` | operating centre, with that teacher | Retained owner-decided inventory [S1]; hosted at Kiryat Shmuel, Haifa (owner, 1 November 2026, O8) [S12] |
| `start.food_production` / `start.food_consumption` | `65 / 65` | Food per turn, initially breaking even | Amir's no-refill derivation; the 30 October 2026 conflict review did not rule on it [S11]; on 1 November 2026 the owner kept the monthly import of `R-FOOD-002` (`docs/rules/mvp.md`) and the census start for the MVP (D1, D2), so this break-even is post-MVP [S12] |
-All operative starting roles but the farmers partition the retained census-derived population total, and army and teachers are not added on top. The farmers' 20 units are added to the census total (owner, 7 November 2026: "On top, change the rule (Recommended)", which reverses "army, teachers and farmers are not added on top", [recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704565066)), and the training centre's one veteran pioneer teacher is a Haifa census unit ("Yes to all three (Recommended)"). Neither is wired into `Simulation.NewGame` yet. Starting professions, tools and completed buildings are already owned: do not deduct their entry/construction costs again from starting Money. Historical mode keeps the sourced army seed from `content/map/units_1948.yaml`; starting-army parameter `A` applies only to non-Historical modes and remains an owner question pending (owner, 30 Oct 2026). This catalogue does not choose `A`. Amir's proposed absolute population/farmer counts, spare-equipment inventory, regional prepared-slot allocation and no-refill Food break-even model are non-operative [S1][S4]; under the owner's 1 November 2026 answers the counts and spare equipment are the Open-mode start (D2) and the no-refill model is post-MVP (D1) [S12].
+All operative starting roles but the farmers and the army partition the retained census-derived population total, and teachers are not added on top. The army stands beside that total: under R-POP-004 each Israeli starting formation gives its strength as active soldiers, beside the census cities' free civilians (owner, 7 November 2026: "Say the army is beside it (Recommended)", [#1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704985642)). This is wording only and changes no game value. The farmers' 20 units are added to the census total (owner, 7 November 2026: "On top, change the rule (Recommended)", which reverses "army, teachers and farmers are not added on top", [recorded on #1689](https://github.com/eyalgolan/statecraft-israel/issues/1689#issuecomment-6704565066)), and the training centre's one veteran pioneer teacher is a Haifa census unit ("Yes to all three (Recommended)"). Neither is wired into `Simulation.NewGame` yet. Starting professions, tools and completed buildings are already owned: do not deduct their entry/construction costs again from starting Money. Historical mode keeps the sourced army seed from `content/map/units_1948.yaml`; starting-army parameter `A` applies only to non-Historical modes and remains an owner question pending (owner, 30 Oct 2026). This catalogue does not choose `A`. Amir's proposed absolute population/farmer counts, spare-equipment inventory, regional prepared-slot allocation and no-refill Food break-even model are non-operative [S1][S4]; under the owner's 1 November 2026 answers the counts and spare equipment are the Open-mode start (D2) and the no-refill model is post-MVP (D1) [S12].
### Work, professions and training
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 1817799cd..50efd28cb 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -624,6 +624,8 @@ Owner answers, 7 November 2026, on the start's population rules ([recorded on #1
No item of either draft is open. These values are not yet wired into `Simulation.NewGame`: a new `gdd-0.3` game keeps the aggregate start.
+The opening field hosts are data under exact `gdd-0.3` (#1717): `regions.yaml`'s `field_hexes` rows carry `field`, `host`, `host_basis` and `host_source`, and `PlayerRegionGeography.FieldHosts` reads them. F01 to F20 are the fields' places in the file's order, as in the research note, and the loader refuses any other label. Hosts: F01 and F02 Rosh Pinna; F03 to F08 Tiberias; F09 and F11 Hadera; F10 and F12 Zikhron Ya'akov; F13 and F14 Haifa; F15 and F16 Petah Tikva; F17 Rehovot; F18 Rishon LeZion; F19 Nir Am; F20 Nirim. `host_basis` keeps the note's evidence apart: `sourced` (F09, F10, F12, F15, F16), `administrative` (F07, F08), `forced` (F03 to F06), `inference` (F01, F02, F11, F18), `design_choice` (F13, F14, F17, the owner's choice, not sourced) and `decision_a` (F19, F20). The loader refuses a settlement host on any field but F19 and F20, a census-city host outside its field's region, a settlement that is not a member of the field's region, an unknown basis and a host with no `host_source`, naming the file and field. Nirim is a member location of the Negev; the legacy and `gdd-0.1` identities read none of this. Nothing else reads the hosts: there is no farmer record and no `NewGame` wiring.
+
#1706 slices 0/1 (coordinator decision, 26 Oct 2026, Q5): the synthetic combat catalogue foundation is inactive in the actual game. R-COMBAT-001 through R-COMBAT-008 retain their current runtime meanings. See [the catalogue foundation](../gdd03-catalogue.md#1706-slices-01-inactive-combat-catalogue-foundation) for its data contract and sources.
## Map editor infrastructure (gdd-0.3 authoring only)
diff --git a/sim/Statecraft.Sim.Tests/Gdd03FieldHostTests.cs b/sim/Statecraft.Sim.Tests/Gdd03FieldHostTests.cs
new file mode 100644
index 000000000..a7ca1ea61
--- /dev/null
+++ b/sim/Statecraft.Sim.Tests/Gdd03FieldHostTests.cs
@@ -0,0 +1,133 @@
+using Statecraft.Sim;
+
+/// <summary>R-POP-004 (#1717, #1689; owner, 7 November 2026): the host of each opening field, data under exact gdd-0.3 only.</summary>
+public class Gdd03FieldHostTests
+{
+ static string Real => File.ReadAllText(Path.Combine(RealContentTests.ContentRoot(), "regions.yaml"));
+
+ // Each row against research_notes/GDD phase 4/opening-field-farmer-cities-1717.md, whose F numbers follow the file's
+ // order, and the owner's comments on #1689. Basis: the note's class (H sourced, A administrative, R forced, I inference),
+ // the owner's "Haifa, Haifa, Rehovot (Recommended)" (design choices, not sourced), and Decision A for the two settlements.
+ static readonly (string Field, int Q, int R, string Region, string Host, string Basis)[] Approved =
+ {
+ ("F01", 9, 5, "galilee", "rosh_pinna", "inference"),
+ ("F02", 14, 7, "galilee", "rosh_pinna", "inference"),
+ ("F03", 7, 11, "valleys", "tiberias", "forced"),
+ ("F04", 7, 12, "valleys", "tiberias", "forced"),
+ ("F05", 8, 13, "valleys", "tiberias", "forced"),
+ ("F06", 9, 13, "valleys", "tiberias", "forced"),
+ ("F07", 11, 12, "valleys", "tiberias", "administrative"),
+ ("F08", 12, 11, "valleys", "tiberias", "administrative"),
+ ("F09", 1, 15, "haifa_sharon", "hadera", "sourced"),
+ ("F10", 2, 14, "haifa_sharon", "zikhron_yaakov", "sourced"),
+ ("F11", 2, 15, "haifa_sharon", "hadera", "inference"),
+ ("F12", 3, 13, "haifa_sharon", "zikhron_yaakov", "sourced"),
+ ("F13", 6, 10, "haifa_sharon", "haifa", "design_choice"),
+ ("F14", 6, 12, "haifa_sharon", "haifa", "design_choice"),
+ ("F15", -2, 21, "tel_aviv_jaffa", "petah_tikva", "sourced"),
+ ("F16", -1, 20, "tel_aviv_jaffa", "petah_tikva", "sourced"),
+ ("F17", -5, 25, "central_plain", "rehovot", "design_choice"),
+ ("F18", -4, 25, "central_plain", "rishon_lezion", "inference"),
+ ("F19", -11, 31, "southern_coast", "nir_am", "decision_a"),
+ ("F20", -10, 33, "negev", "nirim", "decision_a"),
+ };
+
+ [Fact]
+ public void EveryOpeningFieldHasItsApprovedHostInItsOwnRegion()
+ {
+ var c = PlayerRegionsContentTests.Load(Real);
+ var shipped = c.PlayerRegions.Regions.Values.SelectMany(r => r.FieldHosts.Select(h => (r.Id, h))).OrderBy(x => x.h.Field, StringComparer.Ordinal).ToArray();
+ Assert.Equal(Approved, shipped.Select(x => (x.h.Field, x.h.Q, x.h.R, x.Id, x.h.Host, x.h.Basis)));
+ Assert.All(shipped, x => Assert.False(string.IsNullOrWhiteSpace(x.h.Source)));
+ Assert.All(shipped, x => Assert.Equal(x.Id, c.PlayerRegions.AtLocation(x.h.Host)!.Id));
+ Assert.All(shipped, x => Assert.Contains((x.h.Q, x.h.R), c.PlayerRegions.Regions[x.Id].FieldHexes));
+ }
+
+ [Fact]
+ public void OnlyF19AndF20AreHostedOutsideTheCensusCities()
+ {
+ var c = PlayerRegionsContentTests.Load(Real);
+ var census = c.Cities.Select(x => x.Id).ToHashSet(StringComparer.Ordinal);
+ var outside = c.PlayerRegions.Regions.Values.SelectMany(r => r.FieldHosts).Where(h => !census.Contains(h.Host)).Select(h => h.Field);
+ Assert.Equal(new[] { "F19", "F20" }, outside.OrderBy(x => x, StringComparer.Ordinal));
+ }
+
+ [Fact]
+ public void TheThreeDesignChoicesSayTheyAreNotSourced()
+ {
+ var c = PlayerRegionsContentTests.Load(Real);
+ var design = c.PlayerRegions.Regions.Values.SelectMany(r => r.FieldHosts).Where(h => h.Basis == "design_choice").OrderBy(h => h.Field, StringComparer.Ordinal).ToArray();
+ Assert.Equal(new[] { "F13", "F14", "F17" }, design.Select(h => h.Field));
+ Assert.All(design, h => Assert.Contains("not sourced", h.Source));
+ }
+
+ // Owner, 7 November 2026: "Add Nirim to Negev (Recommended)". Its record is map/locations_1948.yaml's (#2113), on (-16,36).
+ [Fact]
+ public void NirimIsAMemberOfTheNegevAndTheLabelStays()
+ {
+ var c = PlayerRegionsContentTests.Load(Real);
+ var negev = c.PlayerRegions.Regions["negev"];
+ Assert.Same(negev, c.PlayerRegions.AtLocation("nirim"));
+ Assert.Same(negev, c.PlayerRegions.AtHex(-16, 36));
+ Assert.Equal("beersheba", negev.CapitalLocation);
+ Assert.Equal(10, negev.MemberLocations.Count);
+ }
+
+ // Data only, under exact gdd-0.3 only: a new game initializes nothing, and the old identities never read the file.
+ [Fact]
+ public void HostsAreDataOnlyAndOldIdentitiesNeverReadThem()
+ {
+ var c = PlayerRegionsContentTests.Load(Real);
+ var state = Simulation.NewGame(c, 1, Mode.Historical);
+ Assert.Empty(state.PlayerRegions);
+ Assert.False(state.PopulationLedger.IsInitialized);
+ var reads = new List<string>();
+ var old = PlayerRegionsContentTests.Load(Real, modern: false, onRead: reads.Add);
+ Assert.Equal(SaveGame.GddRuleset, old.Ruleset);
+ Assert.DoesNotContain(PlayerRegionCatalogue.FileName, reads);
+ Assert.Empty(old.PlayerRegions.Regions);
+ }
+
+ [Theory]
+ // A settlement hosts only for F19 and F20 ("These two only (Recommended)"), even a member of the field's own region.
+ [InlineData("field: F01, host: rosh_pinna", "field: F01, host: hanita", "player_regions[0].field_hexes[0].host", "F01: a settlement may host only for F19 and F20, not hanita")]
+ [InlineData("field: F18, host: rishon_lezion", "field: F18, host: hulda", "player_regions[4].field_hexes[1].host", "F18: a settlement may host only for F19 and F20, not hulda")]
+ // A census city hosts only in its field's own region.
+ [InlineData("field: F03, host: tiberias", "field: F03, host: safed", "player_regions[1].field_hexes[0].host", "F03: census city safed is outside this field's region valleys")]
+ [InlineData("field: F15, host: petah_tikva", "field: F15, host: rehovot", "player_regions[3].field_hexes[0].host", "F15: census city rehovot is outside this field's region tel_aviv_jaffa")]
+ [InlineData("field: F19, host: nir_am", "field: F19, host: haifa", "player_regions[7].field_hexes[0].host", "F19: census city haifa is outside this field's region southern_coast")]
+ // F19 and F20 keep the same-region rule (Decision A, option 1).
+ [InlineData("field: F19, host: nir_am", "field: F19, host: nirim", "player_regions[7].field_hexes[0].host", "F19: nirim is not a member location of southern_coast")]
+ [InlineData("field: F20, host: nirim", "field: F20, host: nir_am", "player_regions[8].field_hexes[0].host", "F20: nir_am is not a member location of negev")]
+ // The label is the field's place in the file: the permission above must not move with a typed label.
+ [InlineData("field: F05, host: tiberias", "field: F19, host: tiberias", "player_regions[1].field_hexes[2].field", "must be F05, this field's place in the file's order")]
+ [InlineData("host_basis: design_choice, host_source: 'owner 7 Nov 2026 on #1689: \"Haifa, Haifa, Rehovot (Recommended)\", F13", "host_basis: guess, host_source: 'owner 7 Nov 2026 on #1689: \"Haifa, Haifa, Rehovot (Recommended)\", F13", "player_regions[2].field_hexes[4].host_basis", "F13: unknown basis guess")]
+ public void TheLoaderRefusesABadHostNamingTheFileAndField(string from, string to, string field, string reason)
+ {
+ Assert.Contains(from, Real);
+ var e = Assert.Throws<ContentException>(() => PlayerRegionsContentTests.Load(Real.Replace(from, to)));
+ Assert.Equal("regions.yaml", e.File);
+ Assert.Equal(field, e.Field);
+ Assert.Contains(reason, e.Message);
+ }
+
+ [Fact]
+ public void AHostNeedsItsProvenance()
+ {
+ const string From = "field: F02, host: rosh_pinna, host_basis: inference, host_source: '";
+ var row = Real.Split('\n').Single(l => l.Contains(From));
+ var bare = row.Substring(0, row.IndexOf(", host_source: '", StringComparison.Ordinal)) + " }";
+ var e = Assert.Throws<ContentException>(() => PlayerRegionsContentTests.Load(Real.Replace(row, bare)));
+ Assert.Equal("regions.yaml", e.File);
+ Assert.Equal("player_regions[0].field_hexes[1].host_source", e.Field);
+ Assert.Contains("F02: explicit provenance required", e.Message);
+ }
+
+ [Fact]
+ public void AFieldMayHaveNoHostInASyntheticRegion()
+ {
+ var c = PlayerRegionsContentTests.Load("player_regions:\n" + PlayerRegionsContentTests.RamlaRehovot
+ .Replace(" member_locations:", " field_hexes: [{ q: -4, r: 24 }]\n member_locations:"));
+ Assert.Empty(Assert.Single(c.PlayerRegions.Regions).Value.FieldHosts);
+ }
+}
diff --git a/sim/Statecraft.Sim.Tests/Gdd03RegionAuthoringTests.cs b/sim/Statecraft.Sim.Tests/Gdd03RegionAuthoringTests.cs
index 26b62e6f7..3eeedcd12 100644
--- a/sim/Statecraft.Sim.Tests/Gdd03RegionAuthoringTests.cs
+++ b/sim/Statecraft.Sim.Tests/Gdd03RegionAuthoringTests.cs
@@ -140,8 +140,9 @@ public class Gdd03RegionAuthoringTests
Assert.Same(region, c.PlayerRegions.AtLocation(m));
}
}
- // 326 approved members, less rosh_haayin_camp (deferred: no sourced position), each in exactly one region.
- Assert.Equal(325, c.PlayerRegions.Regions.Values.Sum(r => r.MemberLocations.Count));
+ // 326 approved members, less rosh_haayin_camp (deferred: no sourced position), plus nirim (owner, 7 November 2026:
+ // "Add Nirim to Negev (Recommended)"), each in exactly one region.
+ Assert.Equal(326, c.PlayerRegions.Regions.Values.Sum(r => r.MemberLocations.Count));
Assert.Null(c.PlayerRegions.AtLocation("rosh_haayin_camp"));
foreach (var (member, from, to) in Moved)
{
@@ -365,7 +366,8 @@ public class Gdd03RegionAuthoringTests
Assert.Equal("APPROVED", region.CapitalApproval);
Assert.Equal(Text(original, "binding_status"), region.BindingStatus);
Assert.Null(region.OpeningController);
- foreach (var member in region.MemberLocations)
+ // nirim joined after these evidence rows (owner, 7 November 2026: "Add Nirim to Negev (Recommended)").
+ foreach (var member in region.MemberLocations.Where(m => m != "nirim"))
{
var source = Rows(original, "members").Single(r => Text(r, "id") == member);
var hex = Map(source, "hex");
diff --git a/sim/Statecraft.Sim/PlayerRegions.cs b/sim/Statecraft.Sim/PlayerRegions.cs
index 143fb2b59..5919b797e 100644
--- a/sim/Statecraft.Sim/PlayerRegions.cs
+++ b/sim/Statecraft.Sim/PlayerRegions.cs
@@ -12,7 +12,7 @@ namespace Statecraft.Sim
public string CapitalLocation { get; set; } = "";
public List<PlayerRegionHex> MemberHexes { get; set; } = new List<PlayerRegionHex>();
public List<string> MemberLocations { get; set; } = new List<string>();
- public List<PlayerRegionHex> FieldHexes { get; set; } = new List<PlayerRegionHex>();
+ public List<PlayerRegionFieldHex> FieldHexes { get; set; } = new List<PlayerRegionFieldHex>();
public string DesignNote { get; set; } = "";
public List<string> Sources { get; set; } = new List<string>();
public string CapitalApproval { get; set; } = "";
@@ -26,6 +26,32 @@ namespace Statecraft.Sim
public int? R { get; set; }
}
+ /// <summary>A `field_hexes` row: the hex and, optionally, the place that hosts its farmer (R-POP-004, #1717).</summary>
+ public sealed class PlayerRegionFieldHex
+ {
+ public int? Q { get; set; }
+ public int? R { get; set; }
+ public string Field { get; set; } = "";
+ public string Host { get; set; } = "";
+ public string HostBasis { get; set; } = "";
+ public string HostSource { get; set; } = "";
+ }
+
+ /// <summary>A field's approved host. Data only: no farmer record exists and NewGame does not read it.</summary>
+ public sealed class PlayerRegionFieldHost
+ {
+ public string Field { get; }
+ public int Q { get; }
+ public int R { get; }
+ public string Host { get; }
+ public string Basis { get; }
+ public string Source { get; }
+ internal PlayerRegionFieldHost(PlayerRegionFieldHex row)
+ {
+ Field = row.Field; Q = row.Q!.Value; R = row.R!.Value; Host = row.Host; Basis = row.HostBasis; Source = row.HostSource;
+ }
+ }
+
/// <summary>Evidence metadata, never an operational permission or inherited member control.</summary>
public sealed class PlayerRegionControl
{
@@ -42,6 +68,7 @@ namespace Statecraft.Sim
public IReadOnlyList<(int Q, int R)> MemberHexes { get; }
public IReadOnlyList<string> MemberLocations { get; }
public IReadOnlyList<(int Q, int R)> FieldHexes { get; }
+ public IReadOnlyList<PlayerRegionFieldHost> FieldHosts { get; }
public string DesignNote { get; }
public IReadOnlyList<string> Sources { get; }
public string CapitalApproval { get; }
@@ -56,6 +83,8 @@ namespace Statecraft.Sim
MemberLocations = Array.AsReadOnly(row.MemberLocations.OrderBy(x => x, StringComparer.Ordinal).ToArray());
FieldHexes = Array.AsReadOnly(row.FieldHexes.Select(h => (h.Q!.Value, h.R!.Value))
.OrderBy(h => h.Item1).ThenBy(h => h.Item2).ToArray());
+ FieldHosts = Array.AsReadOnly(row.FieldHexes.Where(h => h.Field.Length > 0).Select(h => new PlayerRegionFieldHost(h))
+ .OrderBy(h => h.Field, StringComparer.Ordinal).ToArray());
DesignNote = row.DesignNote; Sources = Array.AsReadOnly(row.Sources.OrderBy(x => x, StringComparer.Ordinal).ToArray());
CapitalApproval = row.CapitalApproval; BindingStatus = row.BindingStatus;
ControlStatus = row.OpeningControl.Status;
@@ -81,6 +110,9 @@ namespace Statecraft.Sim
/// <summary>Each locality's hex, written by tools/locality_hexes.py with the map's projection and rounding, so the
/// sim needs no trigonometry (docs/determinism.md). Read only under exact gdd-0.3, with regions.yaml.</summary>
public const string LocalityHexesFileName = "map/locality_hexes.yaml";
+ /// <summary>Owner, 7 November 2026, #1689: "These two only (Recommended)". The only fields a settlement may host.</summary>
+ static readonly string[] SettlementHostFields = { "F19", "F20" };
+ static readonly string[] HostBases = { "sourced", "administrative", "forced", "inference", "design_choice", "decision_a" };
readonly SortedDictionary<string, PlayerRegionGeography> regions = new SortedDictionary<string, PlayerRegionGeography>(StringComparer.Ordinal);
readonly Dictionary<string, string> places = new Dictionary<string, string>(StringComparer.Ordinal);
readonly Dictionary<string, string> capitals = new Dictionary<string, string>(StringComparer.Ordinal);
@@ -107,7 +139,8 @@ namespace Statecraft.Sim
foreach (var p in c.MapLocations) Place(p.Id, p.Q, p.R);
foreach (var p in c.Sites) Place(p.Id, p.Q, p.R);
foreach (var p in localities ?? Enumerable.Empty<SettlementHex>()) Place(p.Id, p.Q, p.R);
- int index = 0;
+ var census = new HashSet<string>(c.Cities.Select(city => city.Id), StringComparer.Ordinal);
+ int index = 0, fieldNumber = 0;
foreach (var row in rows)
{
var at = FormattableString.Invariant($"player_regions[{index++}]");
@@ -164,6 +197,23 @@ namespace Statecraft.Sim
if (result.places.ContainsKey(id)) Fail(field, "location already belongs to another region");
if (!ownHexes.Contains(hex)) Fail(field, "effective location lies outside member_hexes");
}
+ // R-POP-004 (#1717): a field's host is data only. F01 to F20 are the fields' places in the file's order, so a
+ // typed label cannot move the permission below. A row with no host keys has no host (synthetic regions).
+ for (int i = 0; i < row.FieldHexes.Count; i++)
+ {
+ var h = row.FieldHexes[i]; var field = FormattableString.Invariant($"field_hexes[{i}]");
+ var label = FormattableString.Invariant($"F{++fieldNumber:00}");
+ if (h.Field.Length + h.Host.Length + h.HostBasis.Length + h.HostSource.Length == 0) continue;
+ if (h.Field != label) Fail(field + ".field", $"must be {label}, this field's place in the file's order");
+ if (!HostBases.Contains(h.HostBasis)) Fail(field + ".host_basis", $"{label}: unknown basis {h.HostBasis}");
+ if (string.IsNullOrWhiteSpace(h.HostSource)) Fail(field + ".host_source", $"{label}: explicit provenance required");
+ if (census.Contains(h.Host))
+ {
+ if (!ownPlaces.Contains(h.Host)) Fail(field + ".host", $"{label}: census city {h.Host} is outside this field's region {row.Id}");
+ }
+ else if (!SettlementHostFields.Contains(label)) Fail(field + ".host", $"{label}: a settlement may host only for F19 and F20, not {h.Host}");
+ else if (!ownPlaces.Contains(h.Host)) Fail(field + ".host", $"{label}: {h.Host} is not a member location of {row.Id}");
+ }
if (string.IsNullOrWhiteSpace(row.CapitalLocation) || !ownPlaces.Contains(row.CapitalLocation)) Fail("capital_location", "must name a member location on a member hex");
var frozen = new PlayerRegionGeography(row);
result.regions.Add(row.Id, frozen); result.capitals.Add(row.CapitalLocation, row.Id);