A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
docs: GDD Phase 4 plan (pioneers, sites, corridors) with its PR 0 recommendations (refs #384, #375) (#593)
Eyal Golaned49f8fb8c6e
diff --git a/docs/superpowers/plans/2026-10-15-gdd-phase-4.md b/docs/superpowers/plans/2026-10-15-gdd-phase-4.mdnew file mode 100644index 000000000..2ffb9590c--- /dev/null+++ b/docs/superpowers/plans/2026-10-15-gdd-phase-4.md@@ -0,0 +1,488 @@+# GDD v0.1 Phase 4: pioneers, designated sites and corridors. Implementation plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans (one PR at a time, inline, as in Phases 1 to 3). Steps use checkbox (`- [ ]`) syntax for tracking. **The owner reviews this plan before any code.** Every PR below names the owner questions it waits on. A PR does not start until those questions are answered and the answers are recorded (PR 0).++**Status (15 October 2026):** a proposed plan, in review. PR 0 below holds a recommended answer for every open question, for the owner to decide.++**Goal:** All six of the GDD's pioneer actions, at designated sites and along designated corridors: build road, build railroad, plow fields, dry swamp, build yishuv and build a training camp. `sites.yaml` holds the MVP's sites and `corridors.yaml` its corridors, with progress per segment, and `RouteLayer` draws a corridor from that progress. A halutz unit becomes a veteran pioneer. Objective 3, "Establish key infrastructure", completes in three parts: the Tel Aviv to Haifa railway, the Burma Road corridor to Jerusalem (DECISIONS G1), and the new yishuvim. Each part fires its sourced card.++**Architecture:** Phase 1 PR 5 (#566, open) adds `content/sites.yaml` with one site (Mefalsim), the command `PioneerWork(unit, action, target)` with `StopWork(unit)`, and construction as step 5 of `TurnResolver` (`Projects.cs`, R-SITE-001 to R-SITE-003). Phase 3 PR 4 adds city projects to the same step. Phase 4 adds five more actions to the same command, and keeps one project per pioneer unit (D-D6). It adds a sim-read `content/corridors.yaml` (id, kind, segments, each an ordered list of hexes, sources) and a new `Corridors.cs`. The state holds only the progress of each segment (spec §2.2: `Corridor: segment progress[] (int)`). Route geometry stays map-only: it is traced by `tools/routes_1948.py` into `route_paths_1948.yaml`, baked into the ribbon file, and drawn by `RouteLayer` through the route index of #436. A plowed field adds Food in step 6 to Phase 2's national pool. After cutover every PR that changes an MVP rule moves the goldens, re-pins them in the same PR and says why (spec §3, "After cutover").++**Tech stack:** as Phases 1 to 3: C# netstandard2.1 sim (`sim/Statecraft.Sim`), xUnit on net10.0 (`sim/Statecraft.Sim.Tests`), YamlDotNet content, Unity 6000.3.25f1 UI Toolkit (`unity/`), Python tools and policy checks under `uv`.++**Spec:** [the impact plan](../specs/2026-10-12-gdd-v0.1-impact-and-plan.md): §1.5, §2.2, §2.3, §2.6 ("Routes", "Kits"), §4.4 and §6 "Phase 4"; its §5 rows D-D5, D-D6, D-D7, D-D9, D-D10, D-B3 and D-B4 (the yishuvim half). Design of record: [docs/GDD.md](../../GDD.md): "Pioneer work", the "Road and rail corridors" row of "Production decisions to resolve", and objective 3. Owner decision G1, the Burma Road in the MVP: [DECISIONS](../../oss/DECISIONS.md). Feature section: [docs/gdd/corridors.md](../../gdd/corridors.md) (#534). The format follows [the Phase 2 plan](2026-10-14-gdd-phase-2.md) and [the Phase 3 plan](2026-10-15-gdd-phase-3.md). Issue: #384 (part of #374). Owner decisions: #375. Research: [`research_notes/GDD phase 4/corridors-1948-51.md`](../../../research_notes/GDD%20phase%204/corridors-1948-51.md) (#410), [`research_notes/GDD objectives/objective-cards.md`](../../../research_notes/GDD%20objectives/objective-cards.md) (#413), [`settlements-1949-51.md`](../../../research_notes/GDD%20objectives/settlements-1949-51.md) and [`designated-site-1.md`](../../../research_notes/GDD%20objectives/designated-site-1.md).++## What is built, and what this phase waits for (read before a task)++On `main` (15 October 2026, `a8ae6d35`):+- **Phase 1 PRs 1 to 4** (#349, #364, #461, #468). Halutzim are movable units (`GddState.Unit`: `Id, Type, Q, R`). They train in a city that has a `hakhshara` facility, and recruits train in one with a `military_camp` (`Train(city, track, n)`, R-TRAIN-001). Facilities are a list on the city record (`cities.yaml`, `facilities:`; the loader accepts only those two). `TurnResolver.Resolve` holds step 5 as a comment: "Construction: PR 5".+- **The routes, as map data only.** `content/map/routes_1948.yaml` has 19 routes. Among them are `burma_road` (kind `track`, drawn from 14 June 1948), `eastern_railway` and `hadera_haifa_railway` (through Tulkarm) and `tel_aviv_haifa_road` (from 1937). The traced lines are in `route_paths_1948.yaml`. The runtime form `route_paths_1948.tsv` came with #547. The sim reads none of these files, so they are outside the content hash. The ribbon bake carries a route index (`RouteSpan` per route, #436; docs/routes.md, "Route index"): "Nothing reads it yet".+- **The `hula_drainage` event** (`content/events/hula_drainage.yaml`, soft, window 7 March to 18 May 1951, `fact-checked`). The drainage works reach the demilitarised zone with Syria, and the player decides whether to continue.+- **docs/gdd/corridors.md** (#534, merged). It states the decided rules for corridors and lists D-D7, D-B3, the segment values and D-G2 as open.+- The plans of record for Phases 2, 3 and 5 (#568, #573, and the Phase 5 plan). **The owner took every recommendation in those three tables** ("Take all recommendations", #375, comment of 14 October 2026, 23:16 UTC). Sensitive and owner-pick rows stay open.++In review or not started:+- **Phase 1 PR 5 (#566, open).** It holds `sites.yaml` (Mefalsim, 12 June 1949, hex (-10, 27)), `PioneerWork` and `StopWork`, `Projects.cs`, R-SITE-001 to R-SITE-003, and borrowing for training and pioneer work. Its 15 answered questions are the precedent for this phase. For example: a site is available from the game's start; the halutz works from where it stands; one unit per site; the work is paid in full at the start; progress is lost on `StopWork`; a built yishuv is not a city; pioneer orders cost 0 Attention.+- **Phase 1 PR 6 (#379, open, no PR):** `objectives.yaml`, the score and the timing bonus (R-OBJ-001 to R-OBJ-003), and the "first new yishuv" card.+- **Phase 2:** the cutover and the national Food pool (PR 3, proposed R-FOOD-001 to R-FOOD-003). **Phase 3:** city projects (PR 4) and the absorb objective (R-OBJ-004).++Facts found while writing this plan:+- **The GDD's railway opened after the MVP.** The new coastal line from Remez Junction to Tel Aviv North opened officially on 14 May 1953 (corroborated by *The Jerusalem Post* of 26 April and 14 May 1953, and by the *Jewish Chronicle* of 22 May 1953; corridors note, Corroboration row 1). Inside the window, Haifa to Tel Aviv passenger service by rail began on **20 September 1949**. The route ran over the old Eastern Railway, by a new bypass west of Tulkarm, reversed at Rosh HaAyin, and ran over a new 7 km link along the Yarkon to a new Tel Aviv North station. Agam confirmed the day in the press on #384: *Haboker*, 14 September 1949, and *Maariv*, 22 September 1949. Of that route, only the bypass and the 7 km link were new track. That is D-B3 (Q-RAIL-1 and Q-RAIL-2).+- **The Burma Road was finished on 14 June 1948, one turn after the start.** The decided card date, 7 December 1948 (#384, G1), is the opening of the Road of Valour (*Hayom*, 8 December 1948). The Road of Valour was a separate permanent road: 40.5 km, by Nahshon and Shimshon junctions to Sha'ar HaGai. `routes_1948.yaml` does not have it. docs/gdd/corridors.md already words the card as "the Road of Valour, which replaced the Burma Road track". Which line the player builds is Q-COR-1.+- **The corridors are short on this map.** Hex centres are about 8.7 km apart (docs/units.md). The Yarkon link is about one hex, and the Burma Road from Dayr Muhaysin to Saris is about two. The Tel Aviv to Netanya coastal road (26 km, *Jerusalem Post*, 30 July 1950) is about three. So segments follow the sources' named waypoints, not a count per hex (Q-COR-2).+- **No existing route is a new build.** Every route in `routes_1948.yaml` except the Burma Road was on the 1946 map. The impact plan's D-D7 recommendation, "2–3 roads, from `routes_1948.yaml` sources", can therefore only pick roads that were built from 1948 to 1951 and that the corridors note found missing from the file (its comparison table, rows 5, 6, 11, 12, 14 to 19).+- **The `hula_drainage` event and a "dry swamp" project can contradict each other.** If the player drained the Hula earlier, or never started, the event would describe works that are not there (impact plan §4.4). Q-SWAMP-2.+- **Training happens in cities, not at sites.** `Train(city, track, n)` reads a city's `facilities`. A camp built "at a designated site" (GDD) has to give some city that facility, or Train has to accept a site (Q-CAMP-1).+- **Two of the candidate sites have a 7 October 2023 association:** Mefalsim (#566, question 4) and Re'im (settlements note, row 25). #566 answered (a) for Mefalsim: the site covers only the founding.++## Decisions this phase builds on++Owner decisions already made (impact plan §5; #375; [DECISIONS](../../oss/DECISIONS.md)):+- D-A1: a unit is a group. D-A2: halutzim are individual movable units. D-A3: work takes several turns, and cancelling returns the people, not the Money.+- D-A6: the fixed resolution order (construction is step 5, production step 6), actions capped by Attention, and unit orders free. D-A7: the reference player is test code with a stated policy.+- D-B1 with D-E5: 15 May 1948 to 15 January 1952, monthly turns. D-B2: +5 points a month earlier than the historical date, capped at +60. D-B6: 100 points per completed objective.+- D-C2: a national Food pool. D-C3 with Q-MONEY-3: "Allow borrowing" for every GDD cost (R-MONEY-003). D-C6 with Q-CUT-1: "Labelled design values"; every balance number enters `content/` tagged as a design value, and a test lists them all.+- **D-D5:** "One of each exists at start (a design assumption, labelled). More are built by pioneers." **D-D6:** "Multi-turn; one project per pioneer unit."+- D-E3: "War of Independence". D-F1: cards may state displacement factually. D-F5: settlement control is a curated list (Phase 6).+- **G1** (owner, 14 October 2026): the Burma Road is in the MVP, in objective 3 beside the railway. Its sourced opening date, 7 December 1948, is in #384.+- Phase 1 PR 5's answers (#378, owner, 14 October 2026: "go with Mefalsim" and "Take the recommendations"), as #566 applies them.++Answers from the Phase 2, 3 and 5 tables ("Take all recommendations", 15 October 2026) that this phase relies on:+- Phase 2 Q-POOL-2: one unit of Food is one population unit's food for one month, with no storage cap. Q-POOL-5: a shortfall stops at 0 and lowers `food_supply`.+- Phase 3 Q-PROJ-1: projects are paid in full at the start, and borrowed if the Treasury is short. Q-PROJ-3: city projects need no workers ("Builders on the map are the pioneers (Phase 4)"). Q-PROJ-5: `start_project` costs 1 Attention. Q-SPEC-2: the winery adds job slots and no Food. Q-ABS-1 (owner pick): the absorb milestone is 1,000,000 people (20 December 1949).+- Phase 5 Q-MOVE-2: "Only the corridors Phase 4 builds count" for movement. So `corridors.yaml` must hold hexes the movement rule can read. Q-UNIT-2: veteran soldiers are promoted "after N turns of service (a design value)".++## Global constraints++- The GDD wins over every older spec (AGENTS.md). Anything the GDD marks Open, Proposal or TBD is built only as the owner's answer. **No PR in this plan decides an open D-row.** Where this plan states a recommendation, it is a recommendation; the owner decides.+- **Still open, and needed by this phase:** D-D7 (the corridor list, costs and operating requirements), D-D9 (veteran pioneers), D-D10 (field yield and labour), D-B3 (the railway and its date), and the yishuvim half of D-B4 (which yishuvim are required). D-D5's capacity half ("Capacity") was not answered with the rest of the row.+- Balance values are labelled design values in `content/` (Q-CUT-1), never invented. Each is the owner's number, with a comment saying it is a design value and which question set it. Sourced facts go in `content/` with `sources:` and a `checked:` date (CONTENT_POLICY §2.1). Dates show as "15 May 1948".+- **Every site, corridor and waypoint is sourced** (impact plan §4.4: "site names, founding dates and positions; corridor routes"). A route that did not exist on the 1946 map is traced between sourced waypoints and marked `status: draft` with a `to_verify` line, as the Burma Road entry already is. No alignment is invented. Where no source gives one, the PR says so and stops.+- Determinism (docs/determinism.md): one RNG, no trigonometry, no unordered iteration into state, invariant culture. **No PR in this phase adds an RNG draw.** Progress, Food yield and service are integers. Sites and corridors iterate in ordinal id order, and segments in index order.+- **Goldens.** After cutover every PR here that changes an MVP rule or the site and corridor data moves the goldens: `hash1950`, `hash1952`, `mvp-end`, `scenario-cautious`, `scenario-reckless`, `scenario-mvp-absorb-first`, `smoke5` if the first five turns change, and `mvp-slice` if Phase 2 kept it. Each re-pins in its own PR, with a rebaseline-history row in docs/determinism.md and the reason in the commit and the PR.+- **The population anchors hold** (`CalibrationTests`, 3%). No Phase 4 rule moves people between the national head count and the cities.+- Every new rule gets an `R-` ID in `docs/rules/mvp.md`, defined in the code PR together with its citing test (`rule_ids.py`). The IDs below are **proposed**. R-SITE continues from #566's R-SITE-003. The new area names (R-COR, R-CAMP, R-FIELD, R-SWAMP, R-VET) need the maintainer's sign-off. R-OBJ continues after Phase 3's R-OBJ-004; if Phase 5 takes R-OBJ-005 first, take the next free number. Rewording a rule keeps its ID, and a retired ID is not reused.+- Each feature gets a `docs/gdd/<feature>.md` section that passes `gdd_lint.py`. **docs/gdd/corridors.md exists (#534):** PR 2 updates it rather than adding a second one. The sites, fields and swamp, and veteran sections are new: `docs/gdd/sites.md` (unless #566 adds one), `docs/gdd/fields-and-swamps.md` and `docs/gdd/veteran-pioneer.md`.+- **Sensitivity** (CONTENT_POLICY §2 and §4; impact plan §4.1 item 4). No mechanic may turn a depopulated place into housing, jobs, Food or score. A site is designated only if it meets #378's Task 5.0 criterion 4 (it is not on the site of a depopulated Arab locality, unless the owner has seen that stated factually). Corridor segments are named on screen by the corridor's name and a number, not by the villages a source uses as waypoints; those names stay in the map data. Any text that names such a place goes through D-F1 review (Q-SENS-1).+- Each PR: a branch from current `origin/main` in `.worktrees/<branch>`; a claimed issue (Task form); a `CHANGELOG.md` line for `sim/`, `content/` or `unity/`; commits end with the session's `Co-Authored-By` line; the PR body ends with the session's attribution line; "Refs #384" (never "Fixes" until the last PR of the phase).+- Full checks before every PR (exact commands in the Phase 1 plan, Global constraints): `dotnet test sim/Statecraft.sln` (0 warnings), the tools and policy pytest runs, `check_repo.py`, `changelog_check.py --base origin/main`, `gdd_lint.py`, `rule_ids.py`, `md_links.py`.+- Unity: when `unity/` changes or the DLL's behaviour changes, run `tools/build_sim_for_unity.sh`, then EditMode under `machine_lock.py` (the Phase 1 plan's command). Never pass `-nographics` to the editor, and revert the settings churn. Every sim PR that moves a golden also needs the WebGL `web_check`, and a re-recorded `smoke5` if the first five turns change. A PR that cannot run Unity says so, and it is not merged until someone with Unity has run it (CI does not run Unity). A route-ribbon re-bake (docs/routes.md, "Re-bake") is a Unity run too.++## Review focus++1. **Building off a designated spot.** Every pioneer action names a site or a corridor segment from content. No command takes a free hex, and a site of one kind refuses another kind's action. (PRs 1 to 5.)+2. **A segment built twice, or a corridor complete with a gap.** A segment's progress reaches its turns once. A corridor is complete only when every segment is built, in any order. Two units never build the same segment. (PR 2.)+3. **The sim and the map disagree.** The hexes in `corridors.yaml` and the traced route agree (a CI test re-derives them). `RouteLayer` draws exactly the built segments, from sim progress, never from the date in the GDD loop. (PRs 2 and 8.)+4. **Food from nothing, or Food from a depopulated place.** A field yields only after it is plowed, by the stated amount, in step 6. No site is on a place §4.1 item 4 forbids. (PRs 1 and 4.)+5. **The Hula event describing works that do not exist.** The event fires only in a state where the player's works match its text. (PR 5.)+6. **The objective scoring twice, or a card that tells the wrong history.** Each part fires its card once. D-B6's 100 points are paid once. The railway card says what happened on 20 September 1949 (service restored), not that the coastal line was finished. (PR 7.)++## The PR list++| PR | Branch | Issue | What | Waits on (owner) |+|---|---|---|---|---|+| 0 | `docs/gdd-phase-4-answers` | #375, #384 | Record the owner's Phase 4 answers in the impact plan §5, #375 and this plan; rewrite each PR's tasks to them | the answers |+| 1 | `sim/gdd-p4-sites` | new Task issue | The MVP's designated sites in `sites.yaml`: the yishuv list, camp sites, the swamp site, field sites; site kinds and their validation | Q-SITE-1 to Q-SITE-4, Q-SENS-1 |+| 2 | `sim/gdd-p4-corridors` | new Task issue | `corridors.yaml` and `Corridors.cs`: segments, progress, `build_road` and `build_rail`; the new routes traced; hexes derived by a tool | Q-COR-1 to Q-COR-7, Q-RAIL-1 |+| 3 | `sim/gdd-p4-camps` | new Task issue | Build a training camp or a Hakhshara (D-D5): a built camp gives a city the facility | Q-CAMP-1 to Q-CAMP-3 |+| 4 | `sim/gdd-p4-fields` | new Task issue | Plow fields: a plowed field adds Food in step 6 (D-D10) | Q-FIELD-1 to Q-FIELD-3 |+| 5 | `sim/gdd-p4-swamp` | new Task issue | Dry swamp at the Hula, reconciled with `hula_drainage` | Q-SWAMP-1 to Q-SWAMP-3 |+| 6 | `sim/gdd-p4-veteran` | new Task issue | The veteran pioneer (D-D9) | Q-VET-1, Q-VET-2 |+| 7 | `sim/gdd-p4-infra-objective` | new Task issue | Objective 3 in three parts, its cards (D-B3, D-B4) and the score | Q-OBJ-1 to Q-OBJ-3, Q-RAIL-2, Q-CARD-1 |+| 8 | `unity/gdd-p4-map` | new Task issue | Unity: corridors drawn from progress, new yishuvim and camps as kits, the pioneer orders, Hebrew strings; the Roadmap | Q-UI-1, Q-UI-2 |++### Sequencing and parallelism++- **PR 0** goes first, and can be done in pieces as answers arrive (as #456 did for Phase 1).+- **PR 1** needs #566 merged (`sites.yaml`, `PioneerWork`, `Projects.cs`) and the Phase 2 cutover. It also needs Task 1.0's research for the camp sites, and the Q-SITE answers.+- **PR 2** needs #566 (the command and step 5). It can go beside PR 1, because it touches `corridors.yaml`, not `sites.yaml`. It also needs a Unity run for the ribbon re-bake of the new routes.+- **PR 3** needs PR 1 (camp sites). **PR 4** needs PR 1 (field sites) and Phase 2 PR 3 (the Food pool). **PR 5** needs PR 4 if a drained swamp becomes a field (Q-SWAMP-1).+- **PR 6** needs #566 only, and can go any time after it. It shares a `Unit` field with Phase 5 PR 3 (Q-VET-1). Whichever lands first adds the field.+- **PR 7** needs PRs 1 and 2 and Phase 1 PR 6 (#379, the objective machinery). Phase 3 PR 7 (R-OBJ-004) should land first, so that the IDs and the objective kinds are settled.+- **PR 8** (Unity) needs PRs 1 to 7 and Phase 1 PR 8 (#381, the site panel). Each sim PR still runs Unity EditMode for the DLL.+- PRs 1 to 7 all move the goldens once the reference player uses them, so they **merge one at a time**, each rebased on the last and re-pinned in its own PR.+- Phase 5 PR 6 (roads and rail in movement) waits for PR 2.++Critical path: #566, the cutover, then PR 1 and PR 2 (in parallel), then PR 7, then PR 8. PRs 3 to 6 sit beside PR 7.++## File map++| File | Responsibility | PRs |+|---|---|---|+| `content/sites.yaml` (from #566) | Designated sites: id, names, hex, kinds, founding date (yishuv), sources, status | 1, 3, 4, 5 |+| `content/corridors.yaml` (new) | Corridors: id, kind (`road`, `rail`), names, `route` (the map route id), segments (ordered hexes, the sourced waypoint each ends at), sources | 2 |+| `content/rules.yaml` (`mvp:`) | Turns and Money per action and per corridor kind, field yield, veteran service and benefit; all labelled design values | 2 to 6 |+| `content/map/routes_1948.yaml`, `route_paths_1948.yaml`, `route_paths_1948.tsv` | The new routes' waypoints and sources; their traced lines; the runtime bake (#547) | 2 |+| `content/objectives.yaml` (from #379), `content/events/<cards>.yaml` | The three parts of objective 3 and their cards | 7 |+| `content/events/hula_drainage.yaml` | The condition that ties the event to the player's works | 5 |+| `content/cities.yaml` | The start facilities stay (D-D5); a built camp adds one | 3 |+| `sim/Statecraft.Sim/Content.cs`, `ContentLoader.cs` | `SiteDef` kinds, `CorridorDef`, `SegmentDef`; validation naming file and field | 1, 2, 5 |+| `sim/Statecraft.Sim/GddState.cs`, `GameState.cs` | `Site` gains its kind's state; `Corridor` progress per segment (hashed `corr{}` only when set); the `Unit` service counter | 1, 2, 6 |+| `sim/Statecraft.Sim/Projects.cs` (from #566), `Corridors.cs` (new), `TurnResolver.cs` | The six actions in step 5; field Food in step 6 | 1 to 6 |+| `sim/Statecraft.Sim/Commands.cs`, `AttentionSystem.cs`, `SaveGame.cs`, `Scenario.cs` | `PioneerWork` accepts the new actions and targets (no new command kind unless Q-COR-4 needs one) | 2 to 5 |+| `sim/Statecraft.Sim/Training.cs`, `Cities.cs` | A built camp adds a facility; field Food | 3, 4 |+| `sim/Statecraft.Sim/EventSystem.cs`, `EventRules.cs` | The event condition on a site's state | 5 |+| `sim/Statecraft.Sim/Objectives.cs` (from #379) | The three parts' conditions; points once | 7 |+| `sim/Statecraft.Sim/Reference/ReferencePlayer.cs` | The stated pioneer policy, one rule per action (D-A7) | 1 to 6 |+| `sim/Statecraft.Sim.Tests/*`, `golden/*`, `scenarios/*` | Tests per task; snapshots and the manifest | 1 to 7 |+| `tools/routes_1948.py`, new `tools/corridor_hexes.py`, `tools/tests/*` | Trace the new routes; derive each segment's hexes from the traced line; the CI check | 2 |+| `docs/determinism.md`, `docs/RELEASING.md`, `tools/web_check.py`, `tools/tests/test_release_build.py` | Every place that pins a golden, per moved golden | 1 to 7 |+| `docs/rules/mvp.md`, `docs/gdd/*.md`, `docs/routes.md` | Rule IDs, feature sections, the corridor drawing | 1 to 8 |+| `unity/Assets/Scripts/Map/Routes/RouteLayer.cs`, `RouteRibbonFile.cs`, `unity/Assets/Scripts/Map/SettlementPlacer.cs`, `PlacementLayer.cs`, `unity/Assets/Scripts/UI/*`, `SimBridge.cs`, `strings.en.yaml`, `strings.he.yaml`, EditMode tests | Corridors by progress, the new kits, the orders, the strings | 2 (bake), 8 |+| `README.md`, `README.he.md` | The Roadmap table when Phase 4 is done (CONTRIBUTING rule 9) | 8 |++---++## PR 0: record the owner's Phase 4 answers++Docs only, like #456 for Phase 1.++- [ ] **Step 1.** For each answer the owner gives to a question below, append "**Decided (owner, <date>):** ..." to its D-row in the impact plan §5 (verbatim where the owner gave words). Move the row out of #375's "Open for later phases" list with a comment. Record D-B3's and D-D7's answers on #384 too, so the phase issue carries them, and update its status line.+- [ ] **Step 2.** In this plan, replace each PR's "Waits for the owner" banner with a "Decided by the owner" banner quoting the answers, and rewrite the PR's tasks to them. A PR whose questions are still open keeps its banner and does not start.+- [ ] **Step 3.** Update docs/gdd/corridors.md's "Open questions" with the answers (its rules stay as #534 wrote them). Checks: `md_links.py`, `check_repo.py`, `gdd_lint.py`. No CHANGELOG line (docs only). Refs #375, #384.++### Recommended answers for the owner (15 October 2026)++**These are recommendations, not decisions.** Each row gives one recommended answer and its reason. The reason rests on the GDD, the impact plan, a decided row, a history source, the research notes, #566's answered questions or the code on `main`. Where none of those supports a choice, the row lists the options and says **owner pick**. The rule throughout is the least surprising, smallest change, and the precedent #566 set for the first site. When the owner answers, Steps 1 and 2 above record the answer. A design value stays labelled as one (Q-CUT-1).++| Question | D-row | Recommended answer | Reason |+|---|---|---|---|+| Q-SITE-1 which yishuv sites | D-B4 (yishuvim) | Four sites: Mefalsim (12 June 1949, #566), Beit Kama (18 April 1949), Re'im (20 October 1949) and Gilat (4 December 1949). | They are the settlements note's rows that meet Task 5.0's criteria 1, 2 and 4, with the day verified [V] by two sources (Gvati and one more). Every other row fails criterion 2 or 4, or has a date conflict. |+| Q-SITE-2 which yishuvim are required | D-B4 | All four. The yishuvim part completes when the last of them is built. | D-B4's recommendation is "A short list of named sites". The four are that list, and requiring them all needs no extra count. |+| Q-SITE-3 one hex, two sites | none | Allowed, if the kinds differ (a yishuv and its field). Two yishuv sites in one hex are refused at load. | Gilat shares its hex with Tifrah (settlements note), and the plan's field sites (Q-FIELD-1) sit on their yishuv's hex. One yishuv per hex keeps `SettlementPlacer`'s one kit per hex. |+| Q-SITE-4 when a site is available | none | From the game's start, for every kind, as #566 decided for Mefalsim (its question 8). | It is the decided precedent, and the GDD says "The player chooses whether and when to develop an available site". |+| Q-COR-1 the Burma Road corridor's line | D-D7, G1 | The traced `burma_road` route (Dayr Muhaysin, Bayt Jiz, Bayt Susin, Bayt Mahsir, Saris), named "Burma Road" in the game. Its card tells the Road of Valour's opening on 7 December 1948 as the corridor's completion, as docs/gdd/corridors.md words it. | G1 names the Burma Road, and its line is already traced and sourced. The Road of Valour's line is not on the 1946 map; its start date conflicts in the sources; and its own route needs new waypoints (corridors note, D3). |+| Q-COR-2 segments | D-D7 | One segment between each pair of consecutive sourced waypoints. Each segment holds the hexes the traced line crosses between them. The Burma Road then has 4 segments. | No number is invented: the segments come from the sources' places. A count per hex would give 1 to 3 segments on a map with 8.7 km between hex centres. |+| Q-COR-3 which roads join the list | D-D7 | One road: the Tel Aviv to Netanya coastal road, from Tel Aviv by Herzliya to Netanya, opened 28 July 1950. With the Burma Road that makes two roads. | It is the only 1948 to 1951 road build with a day corroborated outside Wikipedia (*Jerusalem Post*, 28 and 30 July 1950; corridors note, row 6a). It lies between three MVP cities. D-D7 asks for "2–3 roads". |+| Q-COR-4 order and parallel work | D-D6 | Any unbuilt segment, in any order. One unit per segment, so several units can build one corridor at once. The corridor is complete when every segment is built. `PioneerWork(unit, build_road, corridor:segment)` uses the existing command. | The Tel Aviv to Netanya road was built "from November 1949 at both ends" (corridors note, D5). One unit per target is #566's rule (its question 15). No new command kind is needed. |+| Q-COR-5 must the unit stand on the segment | none | No. It works from where it stands until Phase 5 adds movement, as #566 decided for sites (its question 9). | It is the decided precedent. A range rule needs movement, which is Phase 5. |+| Q-COR-6 costs and turns per segment | D-D7, D-C6 | Paid in full at the start of each segment, and borrowed if the Treasury is short (Q-MONEY-3). Progress is lost on `StopWork`, and the Money is not returned (D-A3). **Owner pick:** the Money and turns per segment, for road and for rail. | One payment rule for every GDD cost (Phase 3 Q-PROJ-1, taken). The numbers are balance, and no source sets them. |+| Q-COR-7 operating requirements; what a built road does | D-D7 | None in the MVP. A built road or railway needs no upkeep, rolling stock or staff, and gives no Money or Food. It completes objective parts, draws on the map, and counts for movement in Phase 5 (Q-MOVE-2 (a), taken). | The GDD leaves operation open, and no MVP system reads it. Any effect would be a new rule without a source. |+| Q-RAIL-1 which railway the player builds | D-B3, D-D7 | The 1949 Haifa to Tel Aviv link: two rail segments, the Rosh HaAyin to Tel Aviv North link along the Yarkon (about 7 km) and the bypass west of Tulkarm. The rest of the route is existing track. If Task 2.0 finds no source for the bypass's alignment, the corridor is the Yarkon link alone. | Then what the player builds and what the card tells are the same history (20 September 1949). The coastal line (14 May 1953) was finished after the MVP. A card about it paired with a 1949 date would tell the player something false. |+| Q-RAIL-2 the railway card's reference date | D-B3 | 20 September 1949, worded "Haifa to Tel Aviv rail service restored", citing *Haboker*, 14 September 1949, and *Maariv*, 22 September 1949. | D-B3's own recommendation: "If it is after 1951, pick a sourced in-window milestone instead". The coastal line's date is after 1951. Agam confirmed this day in the press (#384). |+| Q-CAMP-1 where a built camp trains | D-D5 | A camp site belongs to one city, its nearest by hex distance, recorded in `sites.yaml`. Building it adds the facility to that city's `facilities`. `Train(city, track, n)` is unchanged. | Training is per city today (R-TRAIN-001). This keeps the command and the loader's facility list, and the site is still a designated spot. |+| Q-CAMP-2 which camp sites | D-D5 | Task 1.0 researches historical IDF training bases of 1948 to 1951 near MVP cities that have no camp at the start. Only those with a sourced place and date become sites. If none has a source, there are no camp sites, and the action waits. | §4.4 requires every site to be sourced. No research yet covers camps, so the plan names no site. |+| Q-CAMP-3 the Hakhshara; capacity | D-D5 | One action, `build_camp`, builds a military camp or a Hakhshara, as the site's kind says. A city's facility has no capacity limit. | D-D5 says more of both "are built by pioneers", and the GDD lists one camp action. Training today has no capacity rule, so a cap would be a new rule. |+| Q-FIELD-1 where fields are | D-D10 | Each built yishuv site gains one field site in its hex. The drained Hula becomes one (Q-SWAMP-1). | The GDD ties building to designated spots. A field at each new yishuv needs no new place and no new source. |+| Q-FIELD-2 ongoing labour | D-D10 | None. A plowed field yields every turn with no workers. | The GDD leaves it open, and D-A2 has no rural worker count. It is the smallest rule. |+| Q-FIELD-3 Food per field per turn | D-D10, D-C6 | **Owner pick:** the yield in Food units (one unit is one population unit's food for a month, Q-POOL-2) and the plowing turns and Money. | D-D10's recommendation is "Owner (balance)". No source fits a game unit. |+| Q-SWAMP-1 dry swamp: where, and what it does | none | One swamp site, the Hula, sourced to the existing event's sources. Drained, it becomes a field site (Q-FIELD-1) and does nothing else. **Owner pick:** the turns and Money. | The Hula is the 1948 to 1951 drainage the game already sources. "Later land uses" are open in the GDD, and plowing is the one land use in its list. |+| Q-SWAMP-2 the `hula_drainage` event | none (spec §4.4) | The event keeps its window and gains one condition: it fires only while the player's works at the Hula are in progress. A new `site:` key on the event, checked by the loader. | Then the event describes only works that exist. The text and its sources are unchanged, and the release review status holds. |+| Q-SWAMP-3 sensitivity at the Hula | D-F1 | Before PR 5, check the site against Task 5.0's criterion 4. The site text names only the drainage, as the event does today. | The Hula valley's 1948 history has not been checked for this use. §4.1 item 4 forbids turning a depopulated place into Food. |+| Q-VET-1 when a halutz becomes a veteran | D-D9 | After N turns of work. A turn counts when the unit's project progressed that turn, whatever it built. N is a labelled design value. **Owner pick:** N. | It is D-D9's recommendation, "After N turns of service", which the owner took for soldiers in Phase 5 (Q-UNIT-2). Only working turns count, so an idle unit does not gain service. |+| Q-VET-2 a veteran's benefit | D-D9 | A veteran's project advances 2 turns of progress each turn instead of 1. Labelled design value. | Speed needs no new resource or rule. A Money discount would interact with borrowing, and a second project would break D-D6. |+| Q-OBJ-1 objective 3's structure | D-B6, D-B2 | Three parts in `objectives.yaml` (`railway`, `burma_road`, `yishuvim`). Each fires its own card and earns its own timing bonus (D-B2). D-B6's 100 points are paid once, when the last part completes. | The GDD gives each completion a card and a date. D-B6 pays per objective, and the GDD has three objectives. |+| Q-OBJ-2 Phase 1's "first new yishuv" | D-A4 | It becomes the `yishuvim` part. Its card keeps the Mefalsim photograph. Its text covers the four foundings, and its reference date is the last required founding, 4 December 1949 (Gilat). It no longer completes at the first site. | That gives one card per part, and no fourth objective for 100 more points. It reuses the CC BY 4.0 photograph Phase 1 already cleared. |+| Q-OBJ-3 the Burma Road part's condition | G1 | Complete when every segment of the `burma_road` corridor is built. Its reference date is 7 December 1948 (G1, #384). | G1 decided the date. The condition is the same as for every corridor. |+| Q-CARD-1 the cards' photographs | event-image ruling | Railway: a Boris Carmi "Israel Railways" frame (Meitar Collection, NLI, 1949, CC BY 4.0), with the alt text "Israel Railways, 1949", not tied to the day. Yishuvim: Phase 1's Mefalsim photograph. Burma Road: Task 7.0 searches the Meitar Collection; if no CC BY 4.0 or public-domain photograph is found, no photograph. | The objective-cards note found the Carmi frames usable and refused the GPO and PD-Israel ones. No Burma Road photograph has been searched for. |+| Q-UI-1 drawing a corridor under construction | none | The built segments are drawn in full, and segments being built are drawn as a dashed outline. Unbuilt segments are not drawn. | Spec §2.6: "Corridors under construction draw only their built segments". The outline shows the player where work is going on. |+| Q-UI-2 Hebrew words | none | **Owner pick.** Candidates: סלילת כביש (build road), הנחת מסילה (build railroad), חריש שדות (plow fields), ייבוש ביצה (dry swamp), הקמת יישוב (build yishuv), הקמת מחנה אימונים (build training camp), חלוץ ותיק (veteran pioneer). | The GDD gives Hebrew only for Halutz and הכשרה. |+| Q-ATT-1 Attention for pioneer work | D-A6, D-C5 | 0 for every pioneer action and for `StopWork`, as #566 does. | Pioneer work is a unit order, and D-A6 makes unit orders free. #566 applied that reading, and the owner did not change it. |+| Q-SENS-1 names and places | D-F1 | Sites meet Task 5.0's criterion 4 (Q-SITE-1's four do). Segments are named by corridor and number on screen. The Mefalsim and Re'im site records cover only the founding, as #566 decided for Mefalsim (its question 4). Any text that names a depopulated place goes through D-F1 review. | §4.1 item 4 and #566's precedent. The Burma Road's waypoints include depopulated villages, which the map data names factually. |++Also for the owner, not a question: D-D5's capacity half was not part of the answer of 14 October 2026. Q-CAMP-3 recommends no capacity limit.++---++## PR 1: the MVP's designated sites++> **Waits for the owner:** Q-SITE-1 to Q-SITE-4, Q-SENS-1. **Waits for:** #566 merged; the Phase 2 cutover; Task 1.0 (camp sites, Q-CAMP-2).++**Goal:** `sites.yaml` holds every designated site of the MVP: the yishuv sites of D-B4, any camp sites, the swamp site and the field sites. Each site has kinds, and only the actions of its kinds are accepted (Review focus 1). `build_yishuv` works at every yishuv site exactly as #566 built it for Mefalsim.++### Task 1.0: research the camp sites and the Hula site (before any code)++Find historical IDF training bases of 1948 to 1951 near MVP cities that have no camp at the start, and check the Hula site against Task 5.0's criterion 4. Record the candidates, with links and checked dates, in the PR 1 issue. Candidates to check, not facts: bases named in the war research (`research_notes/M4 war mode/war-1948.md`) and in #570's unit anchors. **If a candidate has no source for its place and its date, it is not a site.** The research brief contains no owner email or other identifier in any request.++**Files:** `content/sites.yaml` (Beit Kama, Re'im and Gilat, sourced from the settlements note, rows 22, 25 and 23, re-checked; the field sites; the swamp site; the camp sites from Task 1.0), `Content.cs` (`SiteDef.Kinds`: `yishuv`, `field`, `swamp`, `military_camp`, `hakhshara`; `SiteDef.City` for camps), `ContentLoader.cs` (the kinds, the hex rule of Q-SITE-3, a camp's city), `GddState.cs` (`Site` keyed by id and kind), `Projects.cs` (refuse an action the site's kind does not allow), `ReferencePlayer.cs` (the stated policy: an idle halutz takes the lowest-id available yishuv site), tests `SitesContentTests.cs` and `ProjectsTests.cs`, `docs/rules/mvp.md`, `docs/gdd/sites.md`.++**Rule IDs (proposed):** **R-SITE-004**: every site has one or more kinds from a fixed list, and each pioneer action is accepted only at a site of its kind. **R-SITE-005**: at most one `yishuv` site per hex; sites of other kinds may share a hex (Q-SITE-3).++**Test-first steps:**+- [ ] `SitesContentTests.TheMvpYishuvSitesAreTheSourcedList` (R-SITE-004): the ids of the `yishuv` sites equal Q-SITE-1's list. Each has a founding date in the window and two sources with checked dates. Fails today (Mefalsim only).+- [ ] `[Theory] SitesContentTests.BadKindsFailLoad`: an unknown kind, a camp without a city, two yishuv sites in a hex. Each row names file and field.+- [ ] `ProjectsTests.AnActionIsRefusedAtASiteOfAnotherKind` (R-SITE-004, Review focus 1): `build_yishuv` at a field site is refused with the state unchanged and Attention refunded.+- [ ] `ProjectsTests.EveryYishuvSiteBuildsAsMefalsimDoes`: #566's tests, parametrised over the four sites.+- [ ] Mutations: drop the kind check (its test fails); allow two yishuv sites in one hex (the load test fails). Restore. Re-pin the goldens if the reference player builds the new sites (it does under the stated policy), with a history row.++**Golden impact:** every golden whose run has an idle halutz moves (more sites to build). The content hash moves.++**Unity:** EditMode run for the DLL. The site panel already lists `Content.Sites` (#566, Phase 1 PR 8).++### Owner questions for PR 1++- **Q-SITE-1. Which yishuv sites (D-B4, "which yishuvim are required"; impact plan recommendation: "A short list of named sites").** The settlements note lists 30 candidates and `designated-site-1.md` three more. Options: (a) the four that meet criteria 1, 2 and 4 with a verified day (Mefalsim, Beit Kama, Re'im, Gilat), all in the northern and western Negev; (b) a regional spread that accepts flagged rows (for example Sasa, Yas'ur or Ma'agan Michael), each needing the owner's sensitivity sign-off under criterion 4; (c) the owner's own list.+- **Q-SITE-2. Which of them the objective requires (D-B4).** All the sites, a number of them, or named ones?+- **Q-SITE-3. Two sites in one hex (settlements note: "The plan does not say whether a hex may hold two sites").** Gilat and Tifrah share hex (-10, 30), and Sasa and Meron share (11, 5).+- **Q-SITE-4. When each site is available.** From the start (#566's answer for Mefalsim), or from its historical founding year?++---++## PR 2: corridors, segments and progress++> **Waits for the owner:** Q-COR-1 to Q-COR-7, Q-RAIL-1 (D-D7, D-B3). **Waits for:** #566 merged; Task 2.0.++**Goal:** a sim-read `content/corridors.yaml` with the MVP's corridors. Each corridor has a kind (`road` or `rail`), a `route` id in `routes_1948.yaml` for drawing, and segments, each an ordered list of hexes ending at a sourced waypoint. `PioneerWork(unit, build_road | build_rail, corridor:segment)` builds a segment over several turns in step 5. The state holds progress per segment only. A corridor is complete when every segment is built.++### Task 2.0: the new routes' waypoints and geometry (before any code)++For each corridor that is not in `routes_1948.yaml` (by Q-RAIL-1 and Q-COR-3: the Yarkon link, the Tulkarm bypass and the Tel Aviv to Netanya road), add an entry with sourced waypoints. Use the corridors note's points (R1 and D5) and its sources, re-checked with today's date. Use `kind` with `trace: track` where the line is not on the 1946 map, `status: draft`, and a `to_verify` line saying the trace follows the 1946 map's tracks, not the built alignment, as the `burma_road` entry does. The `from` date is the opening date. **If no source gives the Tulkarm bypass's alignment (the corridors note: "not given by any source read [U]"), leave it out and record that in the issue.** Then trace with `tools/routes_1948.py --fetch --only <ids> --preview <dir>`, check the previews by eye, re-bake `route_paths_1948.tsv` (`tools/route_paths_bake.py`) and the ribbons (a Unity run, docs/routes.md "Re-bake").++**Files:** `content/corridors.yaml` (new; ids, kinds, names, `route`, segments, sources), `content/map/routes_1948.yaml`, `route_paths_1948.yaml`, `route_paths_1948.tsv`, `unity/Assets/Resources/Routes/RouteRibbons.bytes` (the re-bake), new `tools/corridor_hexes.py` (derives each segment's hexes from the traced line with `tools/hexgrid.py`, and writes them into `corridors.yaml`), `tools/tests/test_corridor_hexes.py` (CI: the committed hexes equal a fresh derivation, Review focus 3), `Content.cs` (`CorridorDef`, `SegmentDef`), `ContentLoader.cs` (every hex is land and on the map; segments are contiguous; a corridor's `route` exists; read only in the GDD loop), `GddState.cs` (`Corridor { Id, Progress[] }`, immutable), `GameState.cs` (`Corridors`, hashed as `corr{...}` only when set, `Clone`), new `Corridors.cs` (start, progress, complete), `Projects.cs` (step 5 calls it after sites, in ascending corridor id, then segment index), `Commands.cs` and `SaveGame.cs` (the target `corridor:segment` in the existing `pioneer UNIT ACTION TARGET` line), `ReferencePlayer.cs` (stated policy: after yishuv sites, an idle halutz takes the lowest unbuilt segment of the lowest-id corridor), tests `CorridorsTests.cs` and `CorridorsContentTests.cs`, `docs/rules/mvp.md`, `docs/gdd/corridors.md` (updated, not duplicated), `docs/routes.md`.++**Rule IDs (proposed):** **R-COR-001**: `PioneerWork(unit, build_road | build_rail, corridor:segment)` starts an unbuilt, unclaimed segment of a corridor of the matching kind. It pays the kind's cost (borrowed if short). It is refused, with the state unchanged and the Attention refunded, for a busy unit, an unknown or built segment, a segment another unit holds, a kind mismatch, or the legacy loop. **R-COR-002**: each turn, in step 5, in ascending corridor id and segment index, a segment being built gains one turn of progress; when its progress reaches the kind's turns, it is built on the turn's end date and its unit becomes idle. **R-COR-003**: a corridor is complete when every segment is built. `StopWork` loses the segment's progress and refunds no Money (R-SITE-002's rule).++**Test-first steps:**+- [ ] `CorridorsTests.ASegmentIsBuiltOnceAfterItsTurns` (R-COR-002, Review focus 2): fails to compile today (no corridors).+- [ ] `[Theory] CorridorsTests.TheRefusalsChangeNothing` (R-COR-001): one row per refusal. The state hash equals a step with no order.+- [ ] `CorridorsTests.TwoUnitsBuildOneCorridorInParallel` (Q-COR-4): the corridor completes when the last segment is built, in either order.+- [ ] `CorridorsTests.ACorridorWithAGapIsNotComplete` (R-COR-003).+- [ ] `CorridorsContentTests.SegmentsAreContiguousLandHexes` and `[Theory]` bad rows (unknown route, sea hex, a gap between segments, a corridor read in the legacy loop). Each names file and field.+- [ ] `test_corridor_hexes.py`: editing one traced point without re-deriving fails it.+- [ ] Save round trip of `pioneer 7 build_rail tlv_haifa_rail:1`. Clone independence of `Corridors`. Omit-when-empty hashing (R-LOOP-002's rule): with no corridor started, the hash text is unchanged.+- [ ] Mutations: progress counted twice in a turn; a corridor complete when any segment is built; a second unit accepted on a held segment. Each fails its test. Restore. Re-pin the goldens, with a history row.++**Golden impact:** every golden moves once the reference player builds segments. The content hash moves (`corridors.yaml`). The map files stay outside it.++**Unity:** a ribbon re-bake for the new routes (a Unity run under the lock). EditMode run. `SimBridge.Validate` accepts the new actions and targets. Drawing by progress is PR 8, so until then the new routes draw by their `from` date, as every route does today.++### Owner questions for PR 2++- **Q-COR-1. The Burma Road corridor's line (G1, D-D7).** Options: (a) the traced `burma_road` track (built May to June 1948, finished 14 June 1948); (b) the Road of Valour (built September to October 1948, opened 7 December 1948; not in `routes_1948.yaml`, and its start date conflicts in the sources, corridors note D3); (c) both, as two corridors. The card date is 7 December 1948 either way (G1).+- **Q-COR-2. How a corridor is split into segments (D-D7).** By the sources' named waypoints, by a fixed number of hexes, or a count the owner sets?+- **Q-COR-3. Which roads join the railway and the Burma Road (D-D7; impact plan recommendation: "Tel Aviv–Haifa rail plus 2–3 roads").** The corridors note's candidates with in-window dates: the Tel Aviv to Netanya road (28 July 1950, corroborated), the Ramla to Nahshon link (September 1950, corroborated), the Malachi to Kama road to Beersheba (July 1949 to mid-1951; dates Wikipedia only), and the Beersheba to Eilat track (conflicting dates).+- **Q-COR-4. Order and parallel work on one corridor (D-D6).** Segments in order from one end, or any order with one unit per segment?+- **Q-COR-5. Must the halutz stand on the segment?** #566 answered "no" for sites.+- **Q-COR-6. Costs, turns and payment (D-D7, D-C6).** The Money and turns per segment for each kind, and when it is paid.+- **Q-COR-7. Operating requirements, and what a built corridor does (D-D7; GDD "operating requirements remain open").**+- **Q-RAIL-1. Which railway the player builds (D-B3, D-D7).** Options: (a) the 1949 link (the Yarkon link and the Tulkarm bypass), which matches the 20 September 1949 service; (b) the coastal line from Remez Junction to Tel Aviv North (47 km, opened 14 May 1953, after the MVP; its line between the named places is not traced from any source); (c) the coastal line built in the game, with the card telling the 1949 service.++---++## PR 3: build a training camp++> **Waits for the owner:** Q-CAMP-1 to Q-CAMP-3 (D-D5's capacity half). **Waits for:** PR 1 (camp sites from Task 1.0).++**Goal:** D-D5's "More are built by pioneers": `PioneerWork(unit, build_camp, site)` at a site of kind `military_camp` or `hakhshara`. Built, it adds that facility to the site's city, and `Train` then accepts that city for the matching track.++**Files:** `Projects.cs` (the action, the completion adds the facility), `GddState.cs` (a city's facilities move from content into state once a camp is built; hashed only when changed), `Training.cs` (reads the city's facilities from state), `content/rules.yaml` (turns and Money: labelled design values), `ReferencePlayer.cs` (stated policy), tests `CampsTests.cs` and `TrainingTests.cs`, `docs/rules/mvp.md`, `docs/gdd/training.md` (updated).++**Rule IDs (proposed):** **R-CAMP-001**: `build_camp` at a camp site follows R-SITE-001's start, refusal and payment rules. When built, the site's city gains the site's facility on the turn's end date, and `Train` accepts that city from the next turn. R-TRAIN-001 is reworded to read the facilities from the state (same ID).++**Test-first steps:**+- [ ] `CampsTests.ABuiltCampLetsItsCityTrain` (R-CAMP-001): `Train(city, recruit, 1)` is refused before the camp is built and accepted the turn after. Fails today.+- [ ] `CampsTests.ACampSiteOfTheOtherKindIsRefused`: `build_camp` at a yishuv site is refused (R-SITE-004).+- [ ] `TrainingTests` still pass with the start facilities from content (D-D5).+- [ ] Mutation: the facility added on the start turn (the first test fails). Restore. Re-pin the goldens if the reference player builds a camp.++**Golden impact:** only if the reference player builds a camp (state either way).++### Owner questions for PR 3++- **Q-CAMP-1. Where a built camp trains (D-D5; GDD "Create a military training location at a designated site").** Training is per city today. Options: (a) the camp site belongs to a city and adds the facility to it; (b) `Train` accepts a site, and the trainees come from the nearest city; (c) a built camp is a new city-like place.+- **Q-CAMP-2. Which camp sites.** No research covers 1948 to 1951 training bases yet (Task 1.0).+- **Q-CAMP-3. Does the action build a Hakhshara too, and the capacity (D-D5: "Capacity"; GDD "Training capacity remains open").**++---++## PR 4: plow fields++> **Waits for the owner:** Q-FIELD-1 to Q-FIELD-3 (D-D10). **Waits for:** PR 1; Phase 2 PR 3 (the Food pool).++**Goal:** `PioneerWork(unit, plow_fields, site)` at a field site. Plowed, the field adds Food to the national pool in step 6 every turn, by a labelled design value.++**Files:** `Projects.cs`, `GddState.cs` (a field site's state: `plowed`), `TurnResolver.cs` (step 6: fields after `Cities.Produce`, in ascending site id), the Phase 2 `Pools.cs` (`Food` gains the yield), `content/rules.yaml` (yield, turns, Money: design values), `ReferencePlayer.cs`, tests `FieldsTests.cs`, `docs/rules/mvp.md`, `docs/gdd/fields-and-swamps.md`.++**Rule IDs (proposed):** **R-FIELD-001**: `plow_fields` at a field site follows R-SITE-001's rules; built, the site is `plowed`. A field site on a yishuv's hex is available only once that yishuv is built (Q-FIELD-1). **R-FIELD-002**: each turn in step 6, in ascending site id, every plowed field adds `field_food_per_turn` to the Food pool.++**Test-first steps:**+- [ ] `FieldsTests.APlowedFieldAddsFoodInStepSix` (R-FIELD-002, Review focus 4): two states that differ only by one plowed field differ in Food by exactly the yield. Fails today.+- [ ] `FieldsTests.AFieldBeforeItsYishuvIsRefused` (R-FIELD-001).+- [ ] An order test: field Food is added after production and before consumption (step 7), in the style of `CitiesTests.CohesionReadsTheCountsAfterThisTurnsHousing`.+- [ ] Mutations: yield added while plowing; yield added twice. Restore. Re-pin the goldens.++**Golden impact:** every golden whose reference run plows a field (Food moves).++### Owner questions for PR 4++- **Q-FIELD-1. Where fields are (D-D10; GDD "Prepare agricultural land").** At built yishuvim, at separate designated sites, or both?+- **Q-FIELD-2. Ongoing labour (GDD "required ongoing labor remain open").** Does a field need workers every turn, and from where?+- **Q-FIELD-3. Yield, turns and Money (D-D10: "Owner (balance)").**++---++## PR 5: dry swamp, and the Hula event++> **Waits for the owner:** Q-SWAMP-1 to Q-SWAMP-3. **Waits for:** PR 1 (the swamp site, its Task 1.0 check); PR 4 if a drained swamp becomes a field.++**Goal:** `PioneerWork(unit, dry_swamp, site)` at the swamp site. The `hula_drainage` event and the player's works never contradict each other (impact plan §4.4; #384's done-when: "'Dry swamp' and the `hula_drainage` event (window from 7 March 1951) do not contradict each other").++**Files:** `content/sites.yaml` (the swamp site), `content/events/hula_drainage.yaml` (the `site:` condition; text, options and sources unchanged), `content/schema/event.schema.json` and `docs/WRITING_EVENTS.md` (the new key), `Content.cs`, `ContentLoader.cs` (an event's `site:` must name a swamp site), `EventSystem.cs` (the condition), `Projects.cs`, tests `SwampTests.cs` and `EventTests.cs`, `docs/rules/mvp.md`, `docs/gdd/fields-and-swamps.md`.++**Rule IDs (proposed):** **R-SWAMP-001**: `dry_swamp` at a swamp site follows R-SITE-001's rules; drained, the site becomes a field site (Q-SWAMP-1). **R-SWAMP-002**: an event with `site: <id>` can fire only while that site is being worked. In the legacy loop the key is ignored, so the legacy goldens hold.++**Test-first steps:**+- [ ] `SwampTests.TheHulaEventNeedsWorksInProgress` (R-SWAMP-002, Review focus 5): in its window, with no works, the event does not fire; with works in progress, it can. Fails today.+- [ ] `SwampTests.ADrainedSwampBecomesAField` (R-SWAMP-001).+- [ ] `EventTests`: the release gate's status for `hula_drainage` is unchanged (only a condition was added; Phase 2 Q-CUT-4's rule).+- [ ] Mutation: ignore the condition (the first test fails). Restore. Re-pin the goldens: the event no longer fires in runs without works, so `hash1952` and the scenarios move.++**Golden impact:** every golden whose run reaches March 1951 moves (the event stops firing without works).++### Owner questions for PR 5++- **Q-SWAMP-1. Where, and what a drained swamp does (GDD "Completion effects and later land uses remain open").** The Hula only, or other sites too? Is a drained swamp a field, Food at once, something else, or nothing?+- **Q-SWAMP-2. Reconciling the event (impact plan §4.4).** Options: (a) the event fires only while the player's works are in progress; (b) the site opens only from the works' historical start (about February 1951), and the event fires as now; (c) no Hula site, and the event stays as history.+- **Q-SWAMP-3. Sensitivity at the Hula (D-F1; Task 5.0 criterion 4).** The site's check, and what the site text may say.++---++## PR 6: the veteran pioneer++> **Waits for the owner:** Q-VET-1, Q-VET-2 (D-D9). **Waits for:** #566.++**Goal:** the GDD's "Experienced pioneer unit": a halutz that has worked N turns becomes a `veteran_halutz` (impact plan §1.3's id, D-E3) with a stated benefit.++**Files:** `GddState.cs` (`Unit.Service`, written to the hash only when not 0, so a halutz hashes as before; Phase 5 Q-UNIT-2 needs the same counter for soldiers, and whichever PR lands first adds it), `content/unit_types.yaml` or the overlay (`veteran_halutz`), `Projects.cs` and `Corridors.cs` (service counted in step 5; the benefit), `content/rules.yaml` (N and the benefit: design values), tests `VeteranTests.cs`, `docs/rules/mvp.md`, `docs/gdd/veteran-pioneer.md`.++**Rule IDs (proposed):** **R-VET-001**: in step 5 a halutz whose project progressed gains one turn of service; at `veteran_halutz_service` turns it becomes a `veteran_halutz` at the end of that turn, keeping its id, hex and project. **R-VET-002**: a veteran's project gains `veteran_progress` turns of progress a turn.++**Test-first steps:**+- [ ] `VeteranTests.AHalutzBecomesAVeteranAfterNTurnsOfWork` (R-VET-001): an idle turn adds no service. Fails to compile today.+- [ ] `VeteranTests.AVeteranBuildsFaster` (R-VET-002): the same segment finishes sooner, by the stated amount.+- [ ] `GddStateTests`: a unit with 0 service hashes as before.+- [ ] Mutation: count idle turns (the first test fails). Restore. Re-pin the goldens.++**Golden impact:** every golden whose run has a halutz working N turns.++### Owner questions for PR 6++- **Q-VET-1. The promotion (D-D9: "After N turns of service. Values for the owner").** What counts as service (turns working, or turns as a unit), and N?+- **Q-VET-2. The benefit over a pioneer (GDD "Promotion requirement and benefit over a pioneer").** Faster work, cheaper work, or something else?++---++## PR 7: objective 3, "Establish key infrastructure"++> **Waits for the owner:** Q-OBJ-1 to Q-OBJ-3, Q-RAIL-2 (D-B3), Q-SITE-2 (D-B4), Q-CARD-1. **Decided:** G1 and its date, 7 December 1948. **Waits for:** PRs 1 and 2; Phase 1 PR 6 (#379); Phase 3 PR 7.++**Goal:** objective 3 completes in three parts: the railway (the corridor of Q-RAIL-1), the Burma Road (G1) and the yishuvim (Q-SITE-2). Each part fires its sourced card the turn after it completes (R-OBJ-003) and earns the timing bonus against its reference date (D-B2). The objective's 100 points (D-B6) are paid as Q-OBJ-1 says.++### Task 7.0: the cards' sources and photographs (before any content)++Write each card's account from sources already found, in the house tone, with no quotes and dates as "20 September 1949":+- the railway: *Haboker*, 14 September 1949, and *Maariv*, 22 September 1949 (#384; docs/gdd/corridors.md [S3]);+- the Burma Road: *Hayom*, 8 December 1948, *Haaretz*, 8 December 1948, and *Maariv*, 7 December 1948 (#384; corridors.md [S4]);+- the yishuvim: the four sites' sources (PR 1).++Search the Meitar Collection for a CC BY 4.0 photograph of the Burma Road or the Road of Valour. Record what is found or not found in the issue (Q-CARD-1). The JPress OCR caveat (Agam, #384) stands: a human reads each cited page before the card is `fact-checked`.++**Files:** `content/objectives.yaml` (three parts, each with its reference date, sources and card), `content/events/<three cards>.yaml` (one option each), `unity/Assets/UI/EventImages/` through `tools/event_images.py`, with rows in `event-images.yaml` and `ASSETS.yaml`, `Objectives.cs` (the corridor-complete and sites-built condition kinds; points once), `ContentLoader.cs`, tests `ObjectivesTests.cs`, `docs/rules/mvp.md`, `docs/gdd/objectives-and-score.md` (Phase 1 PR 6's section, extended), `docs/gdd/corridors.md`.++**Rule IDs (proposed):** **R-OBJ-005**: an objective part whose condition is "corridor complete" (R-COR-003) or "every listed site built" completes at the end of the first turn on which it holds, and earns its timing bonus once (R-OBJ-002's formula). **R-OBJ-006**: an objective with parts scores its points once, as Q-OBJ-1 sets.++**Test-first steps:**+- [ ] `ObjectivesTests.TheRailwayPartCompletesWithItsCorridor` (R-OBJ-005): one segment short, it is not complete; all built, it is. Fails until built.+- [ ] `ObjectivesTests.TheYishuvimPartNeedsEveryListedSite` (R-OBJ-005).+- [ ] `ObjectivesTests.ThePointsArePaidOnce` (R-OBJ-006, Review focus 6): with all three parts complete, the score holds 100 points plus the three bonuses (under Q-OBJ-1's recommendation).+- [ ] `ObjectivesTests.EachCardFiresOnceTheTurnAfter` (R-OBJ-003, already defined).+- [ ] `ObjectivesContentTests.EveryPartHasASourcedDate`: a part without sources, or with a date outside the MVP, fails load.+- [ ] Mutations: points per part; a part complete with a gap. Restore. Re-pin the goldens whose run completes a part, and `mvp-slice` if Q-OBJ-2 changes the Phase 1 card.++**Golden impact:** every golden whose run completes a part (score and cards). `mvp-slice` moves if the Phase 1 objective becomes the yishuvim part.++### Owner questions for PR 7++- **Q-OBJ-1. One objective or three parts (D-B6, D-B2).** The GDD's objective 3 names three things with three historical dates. One card for all three, or one card per part? Are the 100 points paid once, or per part?+- **Q-OBJ-2. Phase 1's "first new yishuv" objective (D-A4).** Does it stay a separate scored objective, or become the yishuvim part?+- **Q-OBJ-3. The Burma Road part's condition (G1).** The whole corridor, or a share of it?+- **Q-RAIL-2. The railway card's date (D-B3; impact plan: "If it is after 1951, pick a sourced in-window milestone instead").** Options from the research: (a) 20 September 1949, Haifa to Tel Aviv passenger service by Rosh HaAyin (press-confirmed); (b) 4 January 1949, the rail and bus service (Wikipedia only); (c) 14 May 1953, the coastal line, after the MVP ends, so the timing bonus would compare against a date the game never reaches.+- **Q-CARD-1. The photographs (event-image ruling, docs/event-images.md).**++---++## PR 8: Unity, the pioneers on the map++> **Waits for the owner:** Q-UI-1, Q-UI-2. **Waits for:** PRs 1 to 7; Phase 1 PR 8 (#381, the site panel).++**Goal:** in the GDD loop, `RouteLayer` draws each corridor's route by its segments' progress (spec §2.6, "Routes"); every other route keeps its dates. A built yishuv draws a rural kit at its site, and a built camp draws a camp kit (spec §2.6, "Kits"). The site panel and a corridor panel take the six actions. Every number comes from a sim helper.++**Files:** `RouteLayer.cs` (in the GDD loop, a route a corridor names is shown by segment progress, not by date), `RouteRibbonFile.cs` and the editor bake (the route index gains each segment's index range at its waypoint, with a version bump; docs/routes.md "Route index"), `SettlementPlacer.cs` and `PlacementLayer.cs` (kits for built sites), the panel presenters, `SimBridge.cs` (keys and validation for the new actions and targets; the reflection guard), `strings.en.yaml`, `strings.he.yaml`, EditMode tests, `docs/routes.md`; `README.md` and `README.he.md` Roadmap (Phase 4 done, CONTRIBUTING rule 9).++**Rule IDs:** none (presentation).++**Test-first steps:**+- [ ] EditMode `RouteLayerCorridorTests.OnlyBuiltSegmentsDraw` (Review focus 3): a state with segment 1 of 4 built shows that segment's index range and no other. Fails until built.+- [ ] EditMode `RouteLayerCorridorTests.TheLegacyLoopDrawsByDate`: unchanged behaviour outside the GDD loop.+- [ ] `RouteTests.TheBakedRibbonsMatchTheRoutes` still passes after the re-bake; `tools/tests/test_route_ribbon_bake.py` checks the segment ranges.+- [ ] EditMode `SettlementPlacerTests.ABuiltYishuvDrawsAKit`.+- [ ] EditMode Hebrew strings for every new key.+- [ ] WebGL build and `web_check` with the current values; screenshots in English and Hebrew in the PR.++**Golden impact:** none (presentation), unless the smoke path changes.++### Owner questions for PR 8++- **Q-UI-1. How a corridor under construction looks (spec §2.6: "Corridors under construction draw only their built segments").** Built segments only, or also a marker for segments in progress?+- **Q-UI-2. Hebrew words.** The GDD gives no Hebrew for the six actions or the veteran pioneer; the owner picks them.++---++## Not in Phase 4 (and why)++- **Roads and rail in movement** (D-G2): Phase 5 PR 6 reads `corridors.yaml` (Q-MOVE-2 (a), taken).+- **Settlement control and the front line.** Phase 4 has no control state. A site or a segment in a contested area (the Burma Road by Latrun, Re'im and Mefalsim by the Gaza lines) is buildable whatever the war state, until Phase 5 or 6 adds a rule. The PRs state this.+- **A built yishuv as a city** (#566, question 11: "only marked built"). New yishuvim take no people, housing or jobs in Phase 4.+- **Event effects on projects** (D-H2, Phase 7). The Hula condition (R-SWAMP-002) is a condition, not an effect.+- **Cut states for existing routes** (the corridors note, question 3: the Latrun road, the Eastern Railway through Tulkarm, Haifa to Nahariya). They are map dates, not pioneer work. A map-data PR under #35 can add them.+- **Ministers** (D-H3, Phase 7): no competence scales construction yet.++## All owner questions, by D-row++| Question | D-row | PR | Impact plan recommendation |+|---|---|---|---|+| Q-SITE-1 which yishuv sites | D-B4 | 1 | a short list of named sites |+| Q-SITE-2 which yishuvim are required | D-B4 | 1, 7 | a short list of named sites |+| Q-SITE-3 two sites in one hex | none | 1 | none |+| Q-SITE-4 when a site is available | none (#566 question 8) | 1 | none |+| Q-COR-1 the Burma Road corridor's line | D-D7, G1 (decided) | 2 | none |+| Q-COR-2 segments | D-D7 | 2 | none |+| Q-COR-3 which roads | D-D7 | 2 | Tel Aviv–Haifa rail plus 2–3 roads, from `routes_1948.yaml` sources |+| Q-COR-4 order and parallel work | D-D6 (decided) | 2 | one project per pioneer unit |+| Q-COR-5 must the unit stand on the segment | none (#566 question 9) | 2 | none |+| Q-COR-6 costs, turns, payment | D-D7, D-C6 | 2 | owner (balance); borrowing allowed |+| Q-COR-7 operating requirements; effects | D-D7 | 2 | none |+| Q-RAIL-1 which railway the player builds | D-B3, D-D7 | 2 | source the date first |+| Q-CAMP-1 where a built camp trains | D-D5 (decided in part) | 3 | more are built by pioneers |+| Q-CAMP-2 which camp sites | D-D5 | 3 | none |+| Q-CAMP-3 the Hakhshara; capacity | D-D5 | 3 | none on capacity |+| Q-FIELD-1 where fields are | D-D10 | 4 | none |+| Q-FIELD-2 ongoing labour | D-D10 | 4 | owner (balance) |+| Q-FIELD-3 yield, turns, Money | D-D10, D-C6 | 4 | owner (balance) |+| Q-SWAMP-1 where, and what drained land does | none | 5 | none |+| Q-SWAMP-2 the `hula_drainage` event | none (spec §4.4) | 5 | must not contradict |+| Q-SWAMP-3 sensitivity at the Hula | D-F1 (decided) | 5 | none |+| Q-VET-1 the promotion | D-D9 | 6 | after N turns of service; values for the owner |+| Q-VET-2 the benefit | D-D9 | 6 | none |+| Q-OBJ-1 one objective or three parts | D-B6, D-B2 (decided) | 7 | none |+| Q-OBJ-2 Phase 1's "first new yishuv" | D-A4 (decided) | 7 | none |+| Q-OBJ-3 the Burma Road part's condition | G1 (decided) | 7 | none |+| Q-RAIL-2 the railway card's date | D-B3 | 7 | if after 1951, a sourced in-window milestone |+| Q-CARD-1 the photographs | event-image ruling | 7 | none |+| Q-UI-1 a corridor under construction | none | 8 | built segments only |+| Q-UI-2 Hebrew words | none | 8 | none |+| Q-ATT-1 Attention for pioneer work | D-A6, D-C5 (decided) | 2 to 5 | unit orders free |+| Q-SENS-1 names and places | D-F1 (decided); spec §4.1 item 4 | 1 to 7 | no mechanic may turn a depopulated place into housing, jobs or score |++**Q-ATT-1. Attention for pioneer work (D-A6, D-C5).** D-A6 makes unit orders free, and D-C5 makes starting a project cost Attention. #566 read pioneer work as a unit order (0 Attention). Does that reading hold for the five new actions?++**Q-SENS-1. Names and places (D-F1; impact plan §4.1 item 4; CONTENT_POLICY).** Which sites pass criterion 4, how corridor segments are named on screen, and what the Mefalsim and Re'im records say about 7 October 2023. Sensitivity rules are left to the maintainer (AGENTS.md).++**Owner actions, not questions:** a human reads each JPress page cited for the cards before they are marked `fact-checked` (the OCR caveat on #384); the ribbon re-bake in PR 2 and the Unity runs in PRs 2 and 8 need a machine with Unity.++## Self-review notes++- Spec §6 Phase 4 scope maps to PRs: all six pioneer actions to PRs 1 (build yishuv at every site), 2 (road, railroad), 3 (camp), 4 (plow) and 5 (dry swamp); `sites.yaml` to PR 1; `corridors.yaml` with segment progress, the Tel Aviv–Haifa rail and the roads, drawn by `RouteLayer` from sim progress, to PRs 2 and 8; plow fields and Food to PR 4; dry swamp reconciled with `hula_drainage` to PR 5; the veteran pioneer to PR 6; the infrastructure objective to PR 7. Its touches: `Projects.cs` and the new `Corridors.cs` (PRs 1 to 6), `tools/routes_1948.py` (PR 2, Task 2.0), `RouteLayer`, `SettlementPlacer` and kits (PR 8). Its tests: corridor progress and completion (PR 2), sites only at designated spots (PR 1, R-SITE-004), an objective card with its date (PR 7). Its risks: sourcing corridors and sites (Tasks 1.0, 2.0 and 7.0) and geometry for corridors not on the 1946 map (Task 2.0, the `trace: track` precedent).+- #384's done-when: the tests above; the Hula event and dry swamp do not contradict (PR 5, R-SWAMP-002); the railway's reference date is sourced, and an in-window milestone is chosen because the coastal line is after 1951 (Q-RAIL-2).+- G1 is used as decided: the Burma Road is a corridor and an objective part, dated 7 December 1948.+- No rule value is set in this plan. Every R- ID above is proposed and lands with its test in its PR. The only facts written here come from the research notes, #384 and `routes_1948.yaml`, with their sources.