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.

docs(gdd): the military and combat section (refs #532) (#691)

agamrafaeli-instinctec525da7115b
diff --git a/docs/gdd/military-combat.md b/docs/gdd/military-combat.md
new file mode 100644
index 000000000..c6e5322d3
--- /dev/null
+++ b/docs/gdd/military-combat.md
@@ -0,0 +1,62 @@
+# Military and combat (war of 1948)
+
+## Player story
+
+On 15 May 1948, with the Provisional government declared, the player takes command of the Haganah, which became the IDF at the end of May 1948 [S10]. The armies of Egypt, Iraq, Lebanon, Trans-Jordan and Syria enter [S10], and the question the whole run has been building toward arrives at once: hold the country. The player moves battalion-size units across the map they already know, trains fresh soldiers at the military camps they built in the struggle years, and spends the Arms their sourced arms deals brought in. Every front fight is decided by a strength table and one draw of fate, and the goal is never to destroy the enemy — it is to hold until the armistices are signed, one front at a time, until Syria signs last on 20 July 1949 [S2].
+
+## Rules
+
+- A unit is a formation of hundreds of fighters, never a single soldier (impact spec §2.2 [S8]; `Q-UNIT-1`, decided 15 October 2026 [S3]). A finished recruit cohort becomes one unit at its city's settlement hex. Unit types on screen are Recruit (טירון), Veteran soldier (חייל ותיק), Artillery (ארטילריה) and Armoured car (שריונית) — names approved in English and Hebrew (`Q-UI-2`, decided 15 October 2026 [S7]). A recruit promotes to veteran after a number of turns of service (labelled design value); combat does not count toward it (`Q-UNIT-2`, decided 15 October 2026 [S3]). A unit's Strength counts its population units and drives movement allowance and combat strength (`Q-UNIT-1`); where a side's historical strength is sourced, the record enters the content as one value per CONTENT_POLICY §1 (`Q-UNIT-4`, decided 15 October 2026 [S3]).
+- Historical mode seeds the player's starting units from `content/map/units_1948.yaml`, each keyed to a sourced anchor (`Q-START-1`, decided 15 October 2026 [S3]). The Arab armies, the Arab Liberation Army and local Arab forces take part under their own names, with their 15 May 1948 positions seeded from the Phase five research file [S9] (`Q-START-4`, the owner's pick, 15 October 2026 [S4]; `D-G1`). Every row is fact-checked against its source before the `-shareable` tag (`Q-START-3`, decided 15 October 2026 [S3]). There are no air or naval units; where a phase needs them they are presentation-only (`Q-UNIT-5`, decided 15 October 2026 [S3]). Open mode starts with no units (`Q-START-2`, decided 15 October 2026 [S3]).
+- Orders are free and spend no Attention (`D-A6`). The standing orders are Move (תנועה), Fortify (ביצור), Hold (החזקה) and Attack (התקפה) (`Q-UI-2`, decided 15 October 2026 [S7]). Fortify takes one turn, costs nothing, and grants a defence bonus (value: open (owner)); the bonus is lost the moment the unit moves (`Q-HOLD-1`, decided 15 October 2026 [S7]). Hold can be given only on the player's own hex and grants no interception; its effect is a value: open (owner) (`Q-HOLD-2`, decided 15 October 2026 [S7]).
+- Movement costs integer movement points per unit type against an integer cost per biome; lakes and the sea are impassable (`Q-MOVE-1`, decided 15 October 2026 [S3]). A built corridor road lowers its hex's movement cost, since roads mattered (`D-G2`; `Q-MOVE-2`, decided 15 October 2026 [S3]). A stacking limit caps units of a side per hex; entering a hex an enemy unit holds is an attack (`Q-MOVE-3`, decided 15 October 2026 [S3]). There is no zone of control — a unit may enter any land hex it can pay for (`Q-MOVE-4`, decided 15 October 2026 [S3]). A unit may not enter an enemy-held locality: entering would be a capture action, and the MVP records no rule for civilians under capture, so this is refused until Phase six (`Q-CIV-1`, the owner's pick, 15 October 2026 [S4]). There is no transport or embarkation (`Q-MOVE-5`, decided 15 October 2026 [S3]).
+- Combat follows the GDD: a deterministic table on the strength ratio, plus one RNG draw per engagement (`Q-COMBAT-1`, decided 15 October 2026 [S3]). A unit attacks an adjacent enemy unit; attacks from several directions add their strengths; the defender's biome and fortify state modify the ratio (`Q-COMBAT-2`, decided 15 October 2026 [S3]). Outcomes take losses from the table by population units; a losing defender retreats one hex; at strength zero a unit is removed; a defender with no retreat hex surrenders; the attacker does not advance into the empty hex in the MVP (`Q-COMBAT-3`, decided 15 October 2026 [S3]). Combat acts on combatant units only: enemy units on a hex with a locality's residents may be attacked, with no effect on the residents, and artillery is not excluded (`Q-CIV-2`, the owner's pick, 15 October 2026 [S4]; R-COMBAT-005; CONTENT_POLICY §4).
+- Recruits arrive only through `Train` at a military camp (`docs/gdd/training.md` [S11]). Artillery and the armoured car become `Train` tracks at a military camp: a crew of civilians, plus an Arms and Money cost as design values; event grants are left to Phase seven (`Q-ARTY-3`, decided 15 October 2026 [S3]; `D-H2`). Training a recruit costs Arms (a design value); an attack spends Arms per attacking unit, and a shortfall refuses with a reason (`D-G6`; `Q-UNIT-3` and `Q-COMBAT-4`, decided 15 October 2026 [S3]). There is no Arms upkeep; a unit costs Money upkeep each month (a design value) (`Q-UNIT-3`).
+- Artillery adds its strength to an attack within its range and never attacks alone or holds ground; firing it spends Arms (`Q-ARTY-1`, decided 15 October 2026 [S3]). The armoured car carries more movement points and its own combat factor (`Q-ARTY-2`, decided 15 October 2026 [S3]). Artillery's on-screen name is Artillery (ארטילריה) until a sourced gun type arrives (`Q-ARTY-4`, decided 15 October 2026 [S3]); which vehicles and guns are modelled stays open (`Q-ART-2`).
+- Enemy forces act in the first resolver step, before the player's planned actions (impact spec §2.3 [S8]). In Historical mode they follow a script from two-source positions at 15 May and 11 June 1948 [S9], then act on simple goals; in Open mode goals only (`Q-ENEMY-1`, decided 15 October 2026 [S3]). A goal is: hold a fortified position, or attack an adjacent enemy unit when the strength ratio meets a threshold; no RNG (`Q-ENEMY-2`, decided 15 October 2026 [S3]). Enemy armies receive no reinforcements until a dated per-army figure is sourced (`Q-ENEMY-3`, decided 15 October 2026 [S3]). Enemy units need no supply (`Q-ENEMY-4`, decided 15 October 2026 [S3]). The four operation cards — `ten_days`, `operation_yoav`, `operation_hiram`, `operation_horev` — give orders to units already on the board, and that resets their sensitivity review; which units, whose, and which orders: value: open (owner) (`Q-ENEMY-5`, the owner's pick, 15 October 2026 [S4]).
+- The war state is what war events set; in the GDD game loop the security order and call-up are refused with their reason (`Q-WAR-1`, decided 15 October 2026 [S3]; `D-C4`). The clock that forced war after fifty-two weeks from March 1948 is retired (`Q-WAR-2`, decided 15 October 2026 [S3]). During a truce attacks are refused with "a truce is in force"; movement is allowed. The refusal lasts from the first_truce acceptance until the turn covering 8 July 1948, and from the second_truce acceptance until the turn covering 15 October 1948 — the dates the fighting resumed in the MFA chronology [S10] (`Q-WAR-3`, decided 15 October 2026 [S3]). The `set_rung` command keeps acting outside the GDD loop (`Q-WAR-4`, decided 15 October 2026 [S3]). A war loss is enemy units holding a player's GDD city hex at the end of a turn (`Q-WAR-5`, decided 15 October 2026 [S3]); Phase 7 turns it into the defeat ending.
+- Prisoners are the only captives, under the impact plan's §4.3 as written (`Q-POW-1`, the owner's pick, 15 October 2026 [S4]; impact spec §4.3 [S8]): only enemy combatant units can be captured, when an attack forces a surrender; residents can never be captured. Kills and enemy casualties never score (impact spec §4.3 [S8]). The bonus comes at the return, not the capture: prisoners are held with Food upkeep, are never labour, Money or a bargaining resource, and any loss while they are held is a cost; the wording frames the bonus as ending fighting with fewer lives lost, and nothing on screen celebrates the capture. A returned population unit scores a fixed number of points (points per unit: value: open (owner)) (`Q-POW-2`, the owner's pick, 15 October 2026 [S4]). The return happens on a sourced event card, one per front — the Egypt card's start point still needs a source — and the prisoners' return is never the player's action (`Q-POW-3`, decided 15 October 2026 [S5]). The player's captured soldiers are counted, are returned at the exchanges, and cost while held (kind and amount: value: open (owner)), with no score effect (`Q-POW-4`, decided 15 October 2026 [S5]). Each prisoner costs Food per turn (value: open (owner)); a shortfall costs Social cohesion (cost: value: open (owner)) and never reduces the number of prisoners (`Q-POW-5`, decided 15 October 2026 [S5]; R-POW-002).
+- The war objective completes on the last armistice (`D-B2`): one hundred points, plus five points for every month earlier than the last armistice's historical date, capped at sixty points (`D-B2` and `D-B6`; impact plan §5 [S8]). The fronts follow the agreements' parties: Egypt, Lebanon, Syria, and Jordan with Iraq (the Jordan agreement takes over the Iraqi sector, Art. VI); the Arab Liberation Army and the local forces belong to no front (`Q-OBJ-1`, decided 15 October 2026 [S3]). Each front's armistice card has its hard anchor at the agreement's date; it may open early as a soft event once the first turn on or after 16 November 1948 is reached on which that front has been quiet for a number of turns (labelled design value; the Security Council resolution of 16 November 1948 [S2]). A refused card returns when the front is quiet again (`Q-OBJ-2`, decided 15 October 2026 [S3]). The completion card's event is the Syria armistice of 20 July 1949 [S2]; if no suitably licensed archival photograph is found, the card shows no photograph; the card's losses line reports the Israeli total only (the total: value: open (owner) — one sourced Israeli value, checked by a human before it is marked fact-checked, CONTENT_POLICY §1 and §2.6; no other side's total) (`Q-OBJ-3`, decided 15 October 2026 [S3]; `Q-CIV-4` as re-ruled, 15 October 2026 [S6]). On a front's armistice, that front's units leave the board, the player's units are free to move, and the armistice lines stay display-only (`Q-OBJ-4`, decided 15 October 2026 [S3]). Losses are shown as people per engagement, in the Why line, in the same words for both sides (`Q-CIV-4`, the owner's first ruling, 15 October 2026 [S4]). In Phase five no military action moves International Support or Social cohesion (`Q-CIV-3`, the owner's pick, 15 October 2026 [S4]); the prisoners' Food-shortfall cost to Social cohesion is the one exemption (`Q-POW-5`; R-POW-002, exempted under R-WAR-004 [S2]). Kills are never a score or a resource (impact spec §4.3 [S8]; CONTENT_POLICY §2).
+- The attack preview shows the strength ratio and the table's outcome bands for it, from a sim helper (`Q-UI-1`, decided 15 October 2026 [S3]). A token shows three figures at two thirds or more of full strength, two at a third or more, one below that (`Q-UI-3`, decided 15 October 2026 [S3]). A side with no sourced flag draws a neutral pennant until a sourced emblem is found (`Q-ART-1`, the owner's pick, 15 October 2026 [S5]).
+
+## Data touched
+
+- `content/unit_types.yaml` — recruit and veteran soldier with training turns; artillery and armoured car as unit kinds with their factors (labelled design values).
+- `content/rules.yaml` — `mvp:` terrain costs, stacking limit, the combat table, fortify and hold values, Money upkeep, prisoner values (all labelled design values per `Q-GEN-1`, listed in `DesignValuesTests`).
+- `content/map/units_1948.yaml` — the Arab-force rows from the research file (enters the content hash).
+- `content/events/*.yaml` — the per-front prisoner-return cards, the war objective card, and the `front_quiet` gating key.
+- Sim — `Movement.cs`, `Combat.cs`, `Orders.cs`, `EnemyAI.cs`, `Prisoners.cs`, `StartingForces.cs`; `GddState.cs` unit fields; `GameState` prisoners and war/truce state; `TurnResolver` steps one and two and upkeep inside step seven; `Commands`, `Attention`, `SaveGame`, `Scenario`.
+- `docs/rules/mvp.md` — the plan's proposed rule IDs for this phase are `R-UNIT`, `R-MOVE`, `R-ORDER`, `R-COMBAT`, `R-ARMS`, `R-TRAIN`, `R-ENEMY`, `R-WAR`, `R-POW` and `R-OBJ` (the plan [S2]).
+- Unity — `UnitRoster`, `UnitCard`, `DefencePresenter`, strings.
+
+## Done when
+
+- `gdd_lint` passes on this file, and every rule above cites a decided #375 row, the GDD, the impact plan, or a sourced date.
+
+## Out of scope
+
+- Settlement capture and control — Phase 6 (`Q-CIV-1` refuses entry until then).
+- Which vehicles and guns are modelled — `Q-ART-2`, open; PR 17's sourcing.
+- Open mode beyond its starting forces (`Q-START-2`).
+- Demobilisation and return to civilian life — Phase 7 (`Q-UNIT-6`).
+- Enemy reinforcements — `Q-ENEMY-3`.
+- The defeat ending itself — Phase 7 (`D-B5`); this phase produces only the war-loss signal.
+- Unit and card art, and the sensitivity review of it — PR 17; the review is a named reviewer plus the owner's sign-off (`Q-ART-3`, decided 15 October 2026 [S5]).
+
+## Sources
+
+- [S1] GDD — `docs/GDD.md` (the "Military actions and settlement control" section).
+- [S2] Phase 5 plan — `docs/superpowers/plans/2026-10-15-gdd-phase-5.md`, whose "Recommended answers" table records every decided row used here.
+- [S3] [#375](https://github.com/eyalgolan/statecraft-israel/issues/375#issuecomment-6180592337) — owner, 15 Oct 2026: "Take all recommendations" for the Phase 2, 3 and 5 plan tables. Checked 2026-10-16.
+- [S4] [#375](https://github.com/eyalgolan/statecraft-israel/issues/375#issuecomment-6183538544) — owner, 15 Oct 2026: Q-START-4, Q-CIV-1 to Q-CIV-4, Q-ENEMY-5, Q-POW-1 and Q-POW-2. Checked 2026-10-16.
+- [S5] [#375](https://github.com/eyalgolan/statecraft-israel/issues/375#issuecomment-6183586870) — owner, 15 Oct 2026: Q-POW-3 to Q-POW-5, Q-ART-1, Q-ART-3. Checked 2026-10-16.
+- [S6] [#375](https://github.com/eyalgolan/statecraft-israel/issues/375#issuecomment-6183762894) — owner, 15 Oct 2026: Q-CIV-4 re-ruled "A: Israeli total only". Checked 2026-10-16.
+- [S7] [#375](https://github.com/eyalgolan/statecraft-israel/issues/375#issuecomment-6184081266) — owner, 15 Oct 2026: Q-HOLD-1, Q-HOLD-2, Q-UI-2. Checked 2026-10-16.
+- [S8] Impact plan — `docs/superpowers/specs/2026-10-12-gdd-v0.1-impact-and-plan.md` (§2.2 units, §2.3 resolver, §4.3 prisoners, §5 the D-rows).
+- [S9] `research_notes/GDD phase 5/arab-forces-1948.md` — Arab-force positions and §10 sourcing notes (research file; per-row fact-check before `-shareable`).
+- [S10] `research_notes/M4 war mode/war-1948.md` — the MFA chronology (the armies entering on 15 May 1948; the truce and fighting-resumed dates), and the note's contested IDF-order date (signed 26 or 28 May, published 31 May 1948).
+- [S11] `docs/gdd/training.md` — recruits come from `Train` at a military camp.
+
+## Open questions
+
+The amounts the rows leave open are proposed as labelled design values in each implementing PR and accepted there (`Q-GEN-1`): the combat table values, movement points per type, the fortify and hold effects, the points per returned prisoner unit, the kind and amount of the cost of the player's held soldiers, Food per prisoner and the cohesion cost of a shortfall, the completion card's Israeli total, and the quiet-turn count before an armistice card may open early. The Egypt prisoner card's start point needs a source. `Q-ART-2` (which vehicles and guns) stays open for PR 17's sourcing; the `Q-ART-3` reviewer is unnamed (owner).