A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Civ-style movement: design spec
Status: APPROVED by the owner on 23 October 2026: "Approve, start building", for revision 2 (head 9a52b015) including the GDD edits of section 9.3 (recorded on #1402; tracking issue #1398). Every owner question is decided (section 10). Revision 2 (23 October 2026) folds in the owner's answers to the four open questions (recorded on #1402 and #1398, section 10) and an independent review of revision 1 (Codex cx142; each finding and its outcome in section 12).
Date: 23 October 2026. Base: origin/main de78253e (#1394 merged). Every file:line below was read on that commit.
Plan: docs/superpowers/plans/2026-10-23-civ-movement.md.
1. The request and the rulings
The owner (23 October 2026, verbatim): "we need the unit to be able to make a move inside the turn and not wait for the next turn for it to happen. the unit must have a limit to how much it can move in a turn. we need the same mechanisem as in civ. do a deep research on this"
The owner's answers to our four questions (23 October 2026, verbatim):
| Question | Ruling |
|---|---|
| Attacks | "Instant, like Civ" (an attack resolves the moment the player orders it) |
| Undo a move or attack before End turn | "No undo, like Civ" |
| Multi-turn go-to paths | "Now" (in this change) |
| End turn while units can still move | "Block like Civ" (End turn cycles to the next unit needing orders until every unit has moved, fortified or held, or been skipped) |
Already decided, and kept as they are (quoted, not reopened):
- Q-MOVE-1 to Q-MOVE-5 (owner, 15 October 2026, "Take all recommendations", #375;
docs/superpowers/plans/2026-10-15-gdd-phase-5.md:374, table:921-922): integer movement points per unit type and an integer cost per biome, lake and sea impassable (Q-MOVE-1); only the corridors Phase 4 builds lower the cost (Q-MOVE-2); a stack limit per hex (Q-MOVE-3); no zone of control (Q-MOVE-4); no transport (Q-MOVE-5). This spec changes no cost, no point value and no stacking rule. - D-A6 (owner, 14 October 2026;
docs/superpowers/specs/2026-10-12-gdd-v0.1-impact-and-plan.md:478): "The fixed order of §2.3. Actions are capped by Attention, with unit orders free." The resolver order (:257-268) is unchanged. One line of §2.3's command table, "An attack resolves in the resolution phase" (:251), is superseded by the owner's "Instant, like Civ"; section 9 lists the edit. - R-ENEMY-001: the enemy gets its orders in resolver step 1, after the player's orders (
docs/rules/mvp.md;TurnResolver.cs:18). Unchanged: the enemy still moves and attacks after End turn.
The owner then answered this spec's four questions (23 October 2026, recorded on #1402 and #1398, verbatim):
| Question | Ruling |
|---|---|
| OQ-1, attacks | "One unit per attack, Civ". Each attack is one unit; artillery fires alone from range. This replaces Q-COMBAT-2 (attackers adding strength) and Q-ARTY-1 (artillery never attacks alone) for the player's attacks |
| OQ-2, captures | "Instant". A town is captured the moment a unit takes it, not after End turn (against this spec's first recommendation) |
| OQ-3, last hex | "No, strict like Civ VI": a unit needs the full cost of the next hex (with full points it can always move one hex) |
| Old saves | "Refuse with a clear message (spec)": a schema 2 save that contains a player attack is refused as made under older rules |
And on revision 2 (23 October 2026, recorded on #1402, verbatim): OQ-A, forcing End turn: "No force"; the answer to a capture: "Yes, answer at End turn"; the spec and plan with the GDD edits of 9.3: "Approve, start building".
2. What Civ does, and what we already have
2.1 Civ V, VI and VII
The research summary (civ-movement-research.md, 23 October 2026, from the civilization.fandom.com Movement, Zone of control and Combat pages for Civ V, VI and VII, and the Firaxis Civ VI UI Lua) and the checks made for this spec:
- Each unit has movement points a turn; each tile costs points to enter. A move happens the moment the player clicks, the points left shrink, and the unit can keep moving until they run out.
- Selecting a unit lights its one-turn reach; hovering shows the path, with turn numbers for a multi-turn go-to.
- Partial points: in Civ V a unit with any points left may enter a tile that costs more, which ends its move (CivFanatics, "Unit movement in Civilization V"). In Civ VI a unit that cannot pay a tile's full cost cannot enter it ("if a unit has a single movement left and the Terrain costs more than 1, the unit will be unable to move there", Civ VI wiki as quoted on CivFanatics, "Movement in terrain", thread 612700). No source we found confirms a Civ VI rule that a unit with full points may always enter one tile; the owner's OQ-3 ruling adopts that exception for this game (section 5).
- Attacks resolve at once and normally end the unit's movement. There is no undo in V or VI.
- Units with no points left are dimmed. The game cycles to the next unit that needs orders, and End turn is blocked while one does: the button reads "A unit needs orders" and selecting it takes the player to that unit. A Civ VI player reports that Shift+Enter forces the turn to end (Steam, Civilization VI discussions, thread 340412122418074543), but no Firaxis or 2K source we could find confirms it; third-party key lists for Civ VI name Return for the next action and Space for skipping a unit's turn, and list Shift+Enter ("End Turn Immediately") only for Civilization III. So this spec does not treat a force-end shortcut as part of "Block like Civ" (section 7.3, OQ-A).
- The AI moves in its own phase, after the human ends the turn.
2.2 What main already does (verified)
- The sim already moves at command time.
Simulation.Step(sim/Statecraft.Sim/Simulation.cs:31-82) runs the turn's orders in order inRunOrders(:48,:100-116), and only thenTurnResolver.Resolve(:60): enemy orders (TurnResolver.cs:18), combat (:19), capture (:20), the order step (:21).Moveis applied inExecute(Simulation.cs:190-191) throughMovement.Move(Movement.cs:58-84). - Points per turn already exist.
content/unit_types.yaml: recruit 3, veteran soldier 3, artillery 2, armoured car 5, every Arab type 3; the halutz types none, so they cannot move (R-MOVE-001,docs/rules/mvp.md).RunOrderskeeps a localspentdictionary (Simulation.cs:103) andMovement.Movecharges each move against it (Movement.cs:69-72), so a unit can already split its points over several moves in one turn. - The preview ignores spent points.
Movement.Reachable(Movement.cs:30-38) andMovement.Path(:42-51) search with the unit's full points. - The wait is the Unity layer only.
SimBridgeholds the turn's orders until End turn ("Orders take effect at End Turn",unity/Assets/Scripts/UI/SimBridge.cs:10), allows one Move per unit (keymove:{unit},:65), and the map drawsbridge.State, the state at the turn's start (GameRoot.cs:344). The copy says so: "The unit moves when you end the turn" (unity/Assets/UI/strings.en.yaml:89), "Move ordered: the unit moves when you end the turn" (:453), "Attack ordered: the unit attacks when you end the turn" (:467). - Attacks are standing orders.
UnitOrder(unit, attack, q, r)sets the unit's order (Combat.Give,Combat.cs:118-126), and resolver step 2 resolves it every turn while the hex holds an enemy (Combat.Resolve,:197-240; R-COMBAT-001,mvp.md). Units of one side attacking one hex sum their strength (Q-COMBAT-2; R-COMBAT-002,mvp.md), and artillery fires only beside another attacker (R-COMBAT-007,mvp.md). - Saves are seed plus one command batch per turn (
SaveGame.cs:30-46,Record:82-89, schema 2:49), replayed on load (GameSession.Load,GameSession.cs:50-75). Unity writes the autosave only after End turn (GameStart.Autosave,GameStart.cs:64-90, subscribed toTurnEndedat:89). - A dry run already exists.
Simulation.DelegatedTorunsRunOrderson a clone (Simulation.cs:84-96). - The goldens.
docs/determinism.md:31-56andsim/Statecraft.Sim.Tests/golden/manifest.txt: hash1950, hash1952, smoke5, smoke-orders, four scenarios, mvp-end. A probe for this spec played the golden run to the end on main (a scratch console program callingGoldenRun.OrdersandSimulation.Step): the reference player orders 0 attacks and 0 moves in the whole run, and the run has 1 engagement, the Arab Legion's on 15 October 1948 (asdocs/determinism.md:374records). None of the four scenario files names amoveorunit_order(grepoversim/Statecraft.Sim.Tests/scenarios/*.yaml).
So the request is mostly a change to the Unity layer and the save, plus three real rule changes: instant attacks, go-to, and the "needs orders" rule.
3. Decision 1: the turn model
3.1 The choice
Two models were asked for:
- (A) Live state. Each move and attack changes
GameSession.Stateat once; End turn runs only the enemy phase and the rest of the resolver. - (B) Committed orders, replayed. The turn keeps an append-only list of the player's committed unit orders. What the screen shows is
Simulation.Preview(state at turn start, committed orders): the sameRunOrderscodeStepuses, on a clone. End turn sends the committed list, then the other orders, toSimulation.Stepas one batch.
Decision: (B). Reasons, ranked:
- The command log stays the single source of truth. A save is still seed plus command batches (
SaveGame.cs:30-46); every state, including the mid-turn one, is a pure function of the log. Model (A) would put a half-run turn intoGameSession.State, so a mid-turn save would need either a state snapshot (the save format has none) or a split ofSimulation.Stepinto two public calls that every golden, scenario and CLI path would have to call in the right order. - What the player saw is what End turn computes, by construction.
PreviewandStepshareRunOrders(asDelegatedToalready does,Simulation.cs:94). The committed list runs first, in click order, so nothing the player does later can change a result already shown (section 3.3). - No golden moves.
Step(commands)keeps its signature and meaning; the goldens and scenarios call it as today. - Cost is small. A preview re-runs the turn's committed orders on a clone: at most a few dozen searches on the 870-hex board per click.
3.2 Which orders are instant
An instant order is final the moment it is given: it changes the shown state at once, is appended to the turn's committed list, and cannot be withdrawn (the owner's "No undo, like Civ"). Instant orders:
Move(unit, q, r)and the new go-to (UnitOrder(unit, go_to, q, r), section 6): the owner's "No undo" covers moves;- the player's attack (
UnitOrder(unit, attack, q, r), section 4): the owner's "No undo" covers attacks; - fortify and hold (
UnitOrder(unit, fortify),UnitOrder(unit, hold)). These are not made irreversible: a later order replaces them at once, as in Civ, where fortifying is a unit action taken at once and any new order wakes the unit. They are committed in click order only so that they stay in order with the turn's moves. Deferred, a fortify given on one hex and followed by a move would run after the move at End turn and fortify the new hex, the opposite of R-MOVE-006's "lost on move".
All other orders stay deferred, as today: queued, replaceable by key and withdrawable until End turn (SimBridge.Key, SimBridge.cs:51-68). That covers policy, budget, event answers, appointments, workers, training, city projects, pioneer work and stop work (halutz orders; a halutz cannot move, R-MOVE-001), Arms purchases, Send home and the answer to a capture (ResolveCapture). Send home and the capture answers (Deport above all) cannot be taken back once done, and the owner's "No undo" ruled on moves and attacks only, so they keep today's chance to change one's mind before End turn. While a Send home is queued for a unit, the bridge refuses further moves and orders for that unit with a reason, so the unit cannot move after being sent home.
Why not more: the owner's rulings are about moving, attacking and capturing (the capture itself, section 4.4). Making Arms purchases instant would rewrite #1143's queued Arms purchase with no ruling asking for it. Every instant order costs 0 Attention (content/rules.yaml:20, :23: unit_order: 0, move: 0), so the split does not touch the Attention budget.
Simulation.IsInstant(Command) is the one definition the session and the bridge both read.
3.3 End turn's batch and the RNG order
End turn calls Simulation.Step(state, committed ++ deferred). Inside RunOrders the order is:
- Route step (new, section 6.3): units with a go-to order continue it, in ascending id. No RNG draw.
- The committed orders, in click order. Each player attack draws once (section 4).
- The deferred orders, in queue order. A legislature vote draws once (
Simulation.PassVote,Simulation.cs:208-214).
From slice S6, the capture check (section 4.4) runs after the route step and after each order. It draws nothing.
Then, as today, EventSystem.Delegate, resolver step 1 (the enemy's orders, no draw, R-ENEMY-001), step 2 (the enemy's attacks, one draw each), and the rest.
So the RNG stream is fixed by the log: replaying a save draws the same values in the same order. Because the committed orders run before every deferred one, a vote queued after an attack cannot shift the attack's draw, and withdrawing a deferred order never changes a result already on screen.
One consequence, stated so nobody is surprised: an event answer is deferred (it takes effect at End turn, as the card says, strings.en.yaml:91), so on the turn a truce card is answered, attacks made before End turn come before the acceptance. R-COMBAT-009 binds "from accepting the card" (mvp.md), and the acceptance happens at End turn, so this follows the ruling's own words.
3.4 Mid-turn save and reload
"No undo" means a move or attack that looks done must not vanish on reload. Today it would: the autosave is written only after End turn (GameStart.cs:89), so a reload goes back to the turn's start.
Decision:
- The save gains an open turn: the committed orders of the turn in progress, written after the last
turnblock asopenfollowed by one command per line. Save schema 2 becomes 3 (SaveGame.cs:49). Theendhash stays the hash after the last completed turn; the open orders are checked by replaying them. - Unity writes the autosave after every committed order as well as after End turn.
- On load, the turns replay as today, then the open orders are committed again in order. A refused one throws
SaveExceptionwhen the content is the same (the save was edited or the build has a bug), or is dropped with thereplay_differswarning when the content changed (GameSession.cs:41-43). - Deferred orders are not saved, as today: after a reload the player gives them again. Skips (section 7) are not saved either; they change nothing in the game.
- Reloading cannot re-roll an attack: the open turn replays the same orders on the same state, so the same draws come out.
Old saves (owner: "Refuse with a clear message (spec)"). A schema 2 GDD save that contains a player attack (order <unit> attack <q> <r>) is refused with the existing older_rules code (R-SAVE-001, mvp.md), which the UI already words: "Your saved game was made with an earlier version of the game's rules and cannot be continued. A new game has started." (save.refused.older_rules, strings.en.yaml:475). Its attacks were standing orders, so it would replay differently.
Two other rule changes can also make a schema 2 save replay differently, more rarely: instant capture (a unit that ended a move on a target and left it in the same turn now captures it) and the full-points step (a move the old rules refused now goes through). For the same clear message, a schema 2 GDD save whose replay does not end on its saved hash is refused as older_rules too, not as "damaged" (it was not damaged: the rules changed). Every other schema 2 save loads. A schema 3 save loaded by an older build is refused as newer_version (R-SAVE-002, mvp.md), as today.
4. Decision 2: instant combat
4.1 The attack
UnitOrder(unit, attack, q, r) resolves at once, inside RunOrders:
- Refused, with the state unchanged and a reason, for everything
Combat.Checkrefuses today (Combat.cs:96-113), less "That unit already has that order" (there is no standing attack any more), and also when the unit has no movement points left this turn: "That unit has no movement points left this turn". - The Arms check reads the stock as it is: an attack needs
mvp.arms_per_attack(artillery: itsarms_per_fire) and the stock must hold it. The "other attacks already ordered" part of Q-COMBAT-4's check (Combat.cs:109-112) goes, since no player attack waits for step 2. The Arms are paid at once. - One engagement is fought at once (section 4.2), with one RNG draw.
- The attack ends the unit's movement for the turn (its spent points become its full points) and clears its order (a fortify or hold is lost, as giving an attack replaces the order today, R-COMBAT-001).
- Losses, retreat and surrender follow R-COMBAT-003 unchanged (
mvp.md). The attackers never advance (Q-COMBAT-3).
4.2 Who fights in the engagement (decided: OQ-1)
Q-COMBAT-2 said "attacks from several directions add their strengths", and Q-ARTY-1 that artillery "adds its strength to an attack within its range and never attacks alone" (docs/gdd/military-combat.md:15, :17). Both assumed attacks that wait for one resolution step. The owner ruled (OQ-1): "One unit per attack, Civ".
So each attack is its own engagement: the attacking unit alone against the defenders. Artillery attacks alone from range, and since R-COMBAT-007 already spares artillery from the attackers' losses (Combat.cs:268-269), its attack takes no losses, which is what a Civ ranged attack does. The "holds its fire" clause of R-COMBAT-007 retires for the player.
The enemy phase is not changed: resolver step 2 keeps R-COMBAT-002 for the enemy's standing attacks, summed, as today (the owner: enemy attacks stay in the enemy phase). The owner's ruling names the player's attacks; making the enemy's one unit per attack too would be a separate change.
4.3 RNG and determinism
A player engagement draws Combat.DrawsPerEngagement (1) value at the moment its attack runs in RunOrders; the enemy's engagements draw in step 2 as today. docs/determinism.md gains the "Combat draws" section that Combat.cs:21 and CombatDrawCountTests.cs:4 already cite but that does not exist on main (a dangling reference this change closes), stating both orders.
4.4 Capture at the click (decided: OQ-2, "Instant")
Today a capture is recorded at End turn, in resolver step 3 (R-CTRL-004, mvp.md; SettlementControl.Capture, SettlementControl.cs:24-43, called at TurnResolver.cs:20). The owner ruled (OQ-2): "Instant": a town is captured the moment a unit takes it. This spec recommended the opposite; the design below follows the ruling.
When. The capture check (SettlementControl.Capture's player branch, unchanged in what it tests) runs after the route step and after each order of the turn, inside RunOrders, and still in resolver step 3. So a curated target on mvp.enemy_held_localities is captured as soon as one of the player's military units stands on its hex with no enemy military unit there: at the end of the Move, or of the go-to stop, that put it there. A halutz holds nothing (#796), as today.
Passing through does not capture. R-MOVE-005 lets a path pass through a target's hex (the owner's #793 ruling, #1304). Only where a move ends counts, as with stacking (R-MOVE-003). This keeps R-MOVE-005 and the paths, and so the smoke-orders golden, as they are. (In Civ a unit cannot pass through an enemy city; here no enemy unit is on the hex, so the town is undefended, and the rule that matters is where the unit stops.)
What it records. The record is the same as today's: owner israel, state awaiting_choice, and Since the turn's end date, as step 3 sets it now (SettlementControl.cs:34; CaptureTests.cs:72 pins it). The turn's end is known only once Step has run the orders (it reads the rung after them, Simulation.cs:51), so a capture made during the orders is written with no date, and Step stamps it with the turn's end as soon as it has computed it, before the resolver. Nothing reads Since during the turn (on main and in #1327 it is only copied and hashed), so the preview's undated record is safe, and the record after End turn is exactly what step 3 writes today. The occupation timer of #1324 counts down from the Occupy answer (its Turns field, R-CTRL-012, in #1327's diff of GddState.cs), and an answer runs inside RunOrders today as well, so the timer counts the same turns.
A unit that leaves. The record stays. A captured place no Israeli unit holds goes back to the enemy only as today: when enemy military units alone are on it, in step 3 (#796). A player who captures and walks away still has the decision to make.
The answer. The capture dialog opens at once, since it reads the shown state. The answer (ResolveCapture: Raid, Occupy or Deport) stays a deferred order, as today: it takes effect at End turn and can be changed until then (section 3.2). The owner ruled the capture instant and then the answer's timing: "Yes, answer at End turn" (23 October 2026); Deport cannot be undone. An unanswered capture waits, its units staying (R-CTRL-008); at the game's end it still counts as Raid (EndPending, R-CTRL-008, #797).
Enemy captures. Unchanged: they are not built (R-CTRL-006 is still the plan's), and the "under enemy control again" branch stays in step 3, after the enemy's phase.
RNG and determinism. The capture check draws nothing (as CaptureTests.NoRngDraw pins). It is a function of unit positions after each order, so the replay of the log gives the same records in the same order. The open turn (3.4) needs nothing new: the capture follows from the committed Move.
Goldens. None moves: no golden captures a place (docs/determinism.md:18-23: the reference player sends no Move, and the smoke-orders move skips Nazareth's hex). HistoricalAI answers captures (R-CTRL-009) through the same command, which it sends in its batch as today.
Sequencing with Beri's work. #1324 (Occupy and the timer, #798) and #1327 (Deport, #800) are being finished on Beri's branches now. Instant capture is a later slice, S6, that adapts their merged code; it does not rewrite their PRs. S6 calls the existing capture check from RunOrders and stamps the record's date in Step; U6 checks that the dialog opens right after the capturing move. #799 (annex or withdraw after the occupation, waiting on #798) is unaffected: its choice comes from the timer, which counts the same turns.
4.5 Truces
R-COMBAT-009 (mvp.md) keeps its refusal ("A truce is in force"), checked at the click. Its clause "Accepting a truce ends and clears every standing attack of the player's" has nothing left to act on, since the player has no standing attacks; Combat.EndAttacksForTruce (Combat.cs:75-84) and its call are removed. The enemy's truce guard (R-ENEMY-006) is untouched.
4.6 Other readers of a player attack order
Demobilization.Front(Demobilization.cs:27-42) finds a unit's front from the enemy it attacks (its standing attack's hex) or borders (R-UNIT-005, owner, #1309). With instant attacks the player's unit keeps no attack order, so the "attacks" half would never apply. That changes Send home for artillery, which attacks from up to two hexes away (Combat.cs:42-47) and need not border its target. So the turn keeps, beside the points spent, the hex each unit attacked this turn (PreviewResult.Attacked, a turn-local record likespent, not in the state or the hash), andDemobilization.CheckandFrontread it in place of the attack order: the front is that of the enemy the unit attacked this turn or borders. An infantry attacker whose defender retreats or dies keeps no front from it, as today (step 2 ends a standing attack whose hex is empty,Combat.cs:233-239). In a later turn the unit's front is again the one it borders until it attacks again, which follows #1309's "the enemy side it attacks". A regression test pins the artillery case.ReferencePlayer.Attack(Reference/ReferencePlayer.cs:44-63) issued standing attacks. It now issues its attacks each turn it wants them, counting this turn's Arms as it goes. It orders none in any golden run today (section 2.2), so no golden moves.
5. Decision 3: movement points
Movement.Reachable(c, s, unit, spent)andMovement.Path(c, s, unit, q, r, spent)search with the points left, the unit's points lessspent[unit]. The three-argument forms stay, as "nothing spent". The Codex draft on branchcodex/civ-move-reach-spent(cx135) has exactly these overloads and a read-onlySimulation.Preview; the plan starts from it.Simulation.Previewreturns the state, the points spent by unit, the turn's Why lines so far and the rejections.- The last hex (decided: OQ-3, "No, strict like Civ VI"). A unit needs the full cost of the next hex: Civ V's "enter one more hex with any points left" is not adopted. The ruling adds one exception: with full points a unit can always move one hex. So a unit that has not moved this turn may enter one neighbouring land hex whatever it costs, and that move spends all its points. Today this matters only for artillery (2 points) and mountains (cost 3), which a probe of every type against
mvp.move_costfound to be the only case: on main artillery can never enter mountains. No terrain cost changes.Reachable,PathandMovetake the exception from the same search (R-MOVE-001), so the preview and the move agree. No golden moves: every enemy type has 3 points and no hex costs more than 3, and the reference player sends no move.
6. Decision 4: multi-turn go-to
6.1 The order
UnitOrder(unit, go_to, q, r): a standing order, saved as order <unit> go_to <q> <r> (the save already writes a hex for a unit order, SaveGame.cs:127, :226-228; no new save syntax). It is stored in the unit's existing Order and OrderTarget fields (GddState.cs:110-140), so GameState gains no field and the hash changes only for a unit that has the order.
Given, it is refused with the state unchanged and a reason for an unknown or enemy unit, one that cannot move or is already there, water or off the board, a hex holding an enemy unit, a closed locality (R-MOVE-005), or a hex no route reaches. Otherwise it replaces the unit's order (a fortify is lost) and the unit moves at once as far as its points left reach along the route (section 6.2). If that reaches the hex, the order is done and cleared.
6.2 The route
Movement.Route(c, s, unit, q, r, spent) is the cheapest path to the hex with no points limit, over land, never through an enemy unit's hex or a closed locality. Each hex carries the turn it is reached on: turn 1 spends the points left now, every later turn the full points; a step that does not fit what is left of a turn starts the next turn, and a step that costs more than the full points is a turn of its own (the full-points exception, section 5). It is the same search as Movement.Search (Movement.cs:149-178), so its ties break the same way (R-MOVE-002). The path preview shows these turn numbers.
The per-turn stop is the last hex of that turn. If it is full of the unit's side (R-MOVE-003; a path may pass through a full hex), the unit stops at the last earlier hex of that turn with room; if none has room, it waits where it is and keeps the order.
6.3 Each turn
At the start of each player turn (step 0 of RunOrders, section 3.3), in ascending id, each player unit with a go-to order:
- stops (order cleared, a Why line, and it needs orders) when no route reaches the hex any more (the hex now holds an enemy unit, or the way is shut), or when the hex itself is full on the turn the unit would arrive. It does not stop because an enemy unit is next to it: there is no zone of control (Q-MOVE-4), and passing next to an enemy has no effect (R-MOVE-004,
mvp.md); - otherwise moves along a fresh route as far as its points reach (the route is recomputed each turn from where the unit is), and on arriving clears the order.
The move spends the unit's points for that turn as any move does, so the player can see and use what is left.
The preview shows the route as the board stands. Recomputing it each turn can change the arrival turn when units move in the meantime, or, rarely, when two paths of equal cost split their steps across turns differently (the rest of a cheapest path is itself a cheapest path, but the tie-break from the new hex may pick another one). A test pins that on a board with no such tie and no other change, the unit arrives on the turn the preview showed.
7. Decision 5: End turn waits for orders
7.1 Which units need orders
Movement.NeedsOrders(c, s, spent), in ascending id: the player's military units (side israel) with movement points (the type has some) that have not moved or attacked this turn (spent[unit] is 0) and have no order (Order is empty: fortify, fortifying, hold and go-to all count as orders). The bridge then leaves out the units the player skipped this turn and those with a Send home queued (they leave at End turn).
This follows the ruling's wording: End turn waits "until every unit has moved, fortified/held, or been skipped". Civ V and VI keep a unit with points left in the cycle even after it moved; players complain that this stalls the turn for units that cannot move with what they have left (the Steam thread cited in 2.1). The ruling's reading avoids that. If the owner wants Civ's stricter reading, NeedsOrders changes one condition.
Halutzim never need orders: they cannot move (R-MOVE-001). Enemy units never do.
7.2 Skip, fortify, hold, sleep
- Skip this turn (new, UI only): the unit is left as it is for this turn and drops out of the cycle. It is not an order and is not saved, so it changes nothing in the game or the goldens. It ends with the turn.
- Fortify and Hold are the existing standing orders (R-ORDER-001 to R-ORDER-003). They keep a unit out of the cycle on every turn until it is given another order or (fortify) moves.
- Sleep: not added. Civ's sleep is fortify for a unit that cannot fortify; ours can all fortify (artillery may fortify, R-COMBAT-007), so it would duplicate fortify.
- Go-to keeps the unit out of the cycle until it arrives or stops.
7.3 The cycle and the button
- While any unit needs orders, the End turn button reads "A unit needs orders" (Civ VI's wording). Pressing it selects the next such unit after the one selected (ascending id, wrapping), centres the camera on it and opens its card with Move ready, using the camera centring #1394 added for the guide (
GameRoot.cs:480-492). - After an order that finishes a unit for the turn (Skip, Fortify, Hold, Send home, an attack, or a move that spends all its points), the next unit that needs orders is selected the same way (Civ's automatic cycling). A move that leaves points does not move the camera.
- No force. While a unit needs orders, End turn only selects the next one; the way on is to give it an order or skip it. A force-end shortcut is not added: no primary source shows Civ VI has one (section 2.1), and the ruling is "Block". The owner ruled OQ-A: "No force" (23 October 2026).
- Spacebar is not taken for Skip, as third-party key lists say Civ VI does: in our keyboard map Enter and Space press the focused button (
docs/superpowers/plans/2026-10-14-a11y-keyboard-map.md:27). Skip is a button on the unit card.
8. Decision 6: the UI
All new strings follow docs/WRITING_UI.md and docs/WRITING_UI_HE.md (binding for new strings, #1395) and docs/UX_GLOSSARY.yaml: sentence case, "Label: value", a verb first on buttons, no directional words, matching keys and placeholders in both files. The Hebrew below is agent-drafted and needs the native reviewer, like strings.he.yaml:77's note.
8.1 What changes on screen
- The map shows the state after the turn's committed orders.
SimBridge.Statebecomes the preview's state;SimBridge.TurnStartis the state the turn began with. Tokens move at once (GameRoot.cs:344already redraws onChanged). - The lit reach shrinks. Move's lit hexes (
InfoPanelPresenter.MoveTargets,InfoPanelPresenter.cs:180-186) come fromReachable(..., spent), so after a move the next pick lights only what the points left reach. Several moves per unit per turn; the one-Move-per-unit key goes. - Points on the card: "Movement points: {0} of {1}".
- Dimmed tokens: a player unit with no points left this turn is drawn dimmed until the turn ends.
- Attack targets stay lit from
Combat.Check(InfoPanelPresenter.cs:192-204), now with the unit's spent points. The odds show the unit alone (OQ-1). After the click, the result shows at once in the toast: the engagement's Why lines (losses, retreat, surrender, destruction) in the player's language (8.4). - Go-to: in Move's pick, the lit hexes are this turn's moves; any other land hex a route reaches shows the route with a turn number on each turn's last hex, and a click on it gives the go-to. On touch, the first tap on such a hex shows the route and a second tap on it confirms.
- Turn start: a unit whose go-to arrived or stopped gets a toast line: the route step's Why line in the player's language (8.4).
- Capture (slice S6): the capture dialog opens as soon as a move captures a place; its answer still takes effect at End turn, as
capture.introsays (strings.en.yaml:172), so its copy does not change.
8.2 New and changed copy (EN, then the HE draft)
| Key | English | Hebrew draft |
|---|---|---|
guide.move.text (changed) |
Select one of your units, press Move, and choose a lit hex. The unit moves at once, and the lit area shrinks to the movement points it has left. | בחרו אחת מהיחידות שלכם, לחצו על "תנועה" ובחרו משושה מואר. היחידה זזה מיד, והאזור המואר מצטמצם לנקודות התנועה שנותרו לה. |
unit.move_pick (changed) |
Choose a lit hex to move to now, or another hex to send the unit there over several turns | בחרו משושה מואר כדי לנוע אליו עכשיו, או משושה אחר כדי לשלוח אליו את היחידה במשך כמה תורות |
unit.points (new) |
Movement points: {0} of {1} | נקודות תנועה: {0} מתוך {1} |
unit.route_turns (new) |
Turns to arrive: {0} | תורות עד ההגעה: {0} |
unit.go_to_given (new) |
On its way to the chosen hex. Turns to arrive: {0} | בדרך למשושה שנבחר. תורות עד ההגעה: {0} |
unit.order.skip (new) |
Skip this turn | דילוג על התור |
unit.hold_queued (changed) |
Holding its hex | מחזיקה במשושה שלה |
unit.move_queued |
removed: nothing waits for End turn | |
unit.attack_queued |
removed: the attack's result shows at once, through its Why lines (8.4) | |
hud.end_turn_needs_orders (new) |
A unit needs orders | יחידה ממתינה להוראות |
how_to_play.end_turn (changed) |
End turn moves to the next month. While one of your units still needs orders, the button selects it instead: move it, fortify it, hold or skip it. A card you leave unanswered, or have no Attention left to answer, goes to the responsible minister, who decides it for you. | סיום התור מעביר לחודש הבא. כל עוד אחת היחידות שלכם ממתינה להוראות, הכפתור בוחר בה במקום זאת: הזיזו אותה, בצרו אותה, החזיקו בה או דלגו עליה. כרטיס שלא עניתם עליו, או שלא נשארה לכם תשומת לב לענות עליו, עובר לשר האחראי, והוא מחליט במקומכם. |
Unchanged on purpose: unit.fortify_queued (fortify still sets at the end of the turn, R-ORDER-002), unit.send_home_queued (Send home stays deferred), capture.intro (the answer stays deferred), guide.event.text, guide.city.text and the budget lines (those orders stay deferred).
The Why lines that name units, the attack's result and the go-to lines among them, are listed with their keys in the plan (Tasks 4a and 10a); the surrender line keeps R-POW-001's tone: nothing celebrates a capture. "Movement points" is a new term: the glossary gets a movement-points entry (decision-needed, Hebrew "נקודות תנועה" for the native reviewer).
8.3 The first-turn guide and #1392
The guide's move step (FirstTurnGuidePresenter.cs:385-386, UnitToShow) keeps its unit choice. Its text changes (8.2). #1394 (the fix for #1392, merged as de78253e) centres the camera on that unit (GameRoot.cs:480-492); the cycle in 7.3 reuses the same centring: the cycle slice moves its few lines into one helper both call. The guide must not be blocked by End turn: the guide's own steps do not press End turn, and its move step's unit, once moved, is no longer in the cycle.
8.4 Units named in the Why lines (#1399)
The bug. Every Why line about a unit names it by its sim id, in English: "Unit 37 moved to hex ...", "The attack on hex ... (unit 3 against units 4, 9)". WhyPresenter shows Cause.Message as it is (unity/Assets/Scripts/UI/WhyPresenter.cs:55). A sweep (Codex cx137, raised-unit-sweep.md) found 18 message paths at 17 sites in five files: Movement.cs:78-82 (move, fortify lost), Orders.cs:55-57, :69-73 (fortifying, holds, fortify lost at settle), Combat.cs:75-82, :118-124, :210-238, :271-294, :299-300 (truce, attack ordered, attack ended, holds its fire, called off, the engagement's participants, destroyed, retreated, surrendered), Demobilization.cs:63-74 (sent home), SettlementControl.cs:107-120 (withdrawal refused, withdrew). One more path names enemy units the same way: EnemyAI.cs:59-60 (an enemy attack ended by a truce). A raised unit has no other name anywhere; removed units (destroyed, surrendered, sent home) are gone from the final state, so the UI cannot look them up afterwards. The turn report's enemy lines already name enemy units by their row (TurnReportPresenter.cs:112-128, #1293).
Why here. This change rewrites the move and combat messages (instant attacks, go-to lines). Fixing the naming in the same pass avoids writing those lines twice.
Decision.
- The sim records a structured line on each cause that names units:
Cause.Key(a stable line key from a fixed list,WhyKeys),Cause.Units(immutable snapshots,UnitRef: id, type, side, home city, taken when the line is written, so a removed unit keeps its identity) andCause.Args(the line's other values as invariant text: hexes, counts, a ratio).Messagestays as it is, the English developer line with the id, for logs and the sim's tests; the state hash never reads causes, so no golden moves. - Unity formats a keyed cause from
why.line.<key>in the player's language, with each unit named by one helper: a starting force by its row's name (Hebrewname_hewhere the row has one), as the turn report does; a raised unit by its type and home settlement, the identity #1396 gives it on the map (its type label andContentNames.Settlement).WhyPresenter, the turn report and this change's toasts all use it. A cause with no key showsMessageas today. - The withdrawal refusal (
SettlementControl.cs:112) is a refusal string, not a cause: it stops naming the unit ("A unit has no free hex next to {place} to withdraw to"), which the rule's wording allows (R-CTRL-010 fixes no text). - Every new line this change adds (the instant attack, the go-to lines) is keyed from the start.
- Scope is the unit-naming lines of #1399. Other Why lines stay English-only as today.
Sequencing. Right after S2, slice S5a adds the mechanism and converts the paths in Movement.cs, Orders.cs, Demobilization.cs and EnemyAI.cs, and S5b the combat lines in Combat.cs, before S3 and S4 write their new lines. SettlementControl.cs's two paths sit inside the region #1327 rewrites (its hunk at SettlementControl.cs:101-129), so S5c converts them after #1324 and #1327 land; nothing is asked of Beri. The Unity formatting (U5) ships with U1, and needs #1396's raised-unit label.
9. Decision 7: goldens, saves and the rule text
9.1 Goldens
| Golden | Expected | Why |
|---|---|---|
| hash1950, hash1952, mvp-end | hash unchanged | the reference player issues 0 Move and 0 player attacks in the run (probe, 2.2); the enemy phase is unchanged, and the enemy's march (Movement.Toward) is not touched: only the new Route uses the step-cost filter |
| the four scenarios | hash unchanged | no move or unit_order in their files |
| all, for instant capture (S6) and the full-points step | hash unchanged | no golden captures a place (docs/determinism.md:18-23); no enemy type has fewer points than a hex costs, and the reference player sends no move |
| smoke-orders | hash unchanged | GoldenRun.PlaySmokeOrders deliberately issues one Move (GoldenRun.cs:114-120), whose meaning is unchanged |
| smoke5 (browser) | unchanged hash, new path | the run must now skip every unit that needs orders before End turn; Skip changes nothing in the sim |
| smoke-orders (browser) | unchanged hash, new path | the Move is committed at the click (checked on Session.Committed, not Queued), then the run skips the other units |
Each slice proves this by running the golden tests unchanged. If one moves, it is re-recorded with STATECRAFT_UPDATE_GOLDEN=1, a history row in docs/determinism.md and the SMOKE lines in RELEASING.md, never by hand.
9.2 Rule edits (docs/rules/mvp.md), for the implementing PRs
- R-TURN-004 (new): the player's turn. Moves, go-to and attacks are instant and final; fortify and hold are instant and replaceable; the other orders, Send home and capture answers included, are deferred; End turn's batch is route step, committed orders, deferred orders (section 3).
- R-MOVE-001: add that the points left are the type's points less what the unit spent this turn, the route step's move included; and the full-points exception (OQ-3): a unit that has not moved this turn may enter one neighbouring land hex whatever it costs, spending all its points.
- R-MOVE-002:
ReachableandPathtake the points spent this turn; addRouteand its turn numbers. - R-MOVE-008 (new): go-to (6.1, 6.2). R-MOVE-009 (new): the route step (6.3). R-MOVE-010 (new): which units need orders (7.1).
- R-ORDER-001: fortify and hold take effect at once (R-TURN-004) and are replaced by any later order, a go-to included; Skip is not an order.
- R-COMBAT-001: rewritten for the instant attack (4.1). R-COMBAT-002: step 2 resolves the enemy's attacks; a player engagement is fought when its order runs. R-COMBAT-004: Arms paid at the order, no call-off. R-COMBAT-007: the player's artillery attacks alone from range and loses nothing (OQ-1); "holds its fire" stays only for the enemy's step 2. R-COMBAT-009: the standing-attack clause goes (4.5).
- R-SAVE-003 (new): schema 3 and the open turn (3.4). R-SAVE-004 (new): a schema 2 GDD save with a player attack, or whose replay does not end on its saved hash, is refused as
older_rules(3.4). - R-CTRL-004: rewritten (4.4): the capture check runs after the route step and after each order, and still in step 3; a move ending on the hex captures, passing through does not;
Sinceis the turn's end. R-CTRL-007: unchanged (the answer stays deferred). R-UNIT-005: a unit's front is that of the enemy it attacked this turn or borders (4.6). - Unchanged: R-MOVE-003 to R-MOVE-007, R-ORDER-002 and R-ORDER-003, R-COMBAT-003, -005, -006, -008, R-ENEMY-001 to R-ENEMY-006, R-CTRL-005, R-CTRL-008 to R-CTRL-010 and #1324/#1327's R-CTRL-011 onwards (the timers keep
Sinceon the turn's end), and Send home's timing (it still "acts at once" when its order runs at End turn,mvp.md:163).
9.3 GDD text to amend (approved by the owner, 23 October 2026: "Approve, start building"; applied in plan Task 14)
docs/GDD.md:38: "2. Move units, issue orders, start city projects and choose ministers." Add: "Moves and attacks happen at once; the other orders take effect at End turn."docs/GDD.md:42: "The order of resolution and the number of actions per turn are open." Stale since D-A6; replace with a pointer to D-A6 and R-TURN-004.docs/GDD.md:76: "The player can move units. Movement allowance, terrain costs, road and rail effects, stacking, transport and access to enemy territory are open." Replace with the decided Q-MOVE rulings and this spec's go-to and End turn rules.docs/gdd/military-combat.md:13: add Go-to to the standing orders (Move, Fortify, Hold, Attack).docs/gdd/military-combat.md:15and:17: Q-COMBAT-2 and Q-ARTY-1 for the player's attacks, as OQ-1 decided: one unit per attack, artillery fires alone from range.docs/gdd/military-combat.md:14: add the full-points exception (OQ-3).docs/gdd/settlement-control.md:13: "A target is captured at turn end when its hex contains no enemy combatant and a player unit holds it" becomes "... is captured the moment a player unit's move ends on its hex while no enemy combatant is there", while the answer still takes effect at End turn (OQ-2).docs/gdd/military-combat.md:18: "Enemy forces act in the first resolver step, before the player's planned actions" contradicts the code (the player's orders run first,Simulation.cs:48,:60) and R-ENEMY-001; correct to "after the player's orders".- Impact spec
docs/superpowers/specs/2026-10-12-gdd-v0.1-impact-and-plan.md:251: "An attack resolves in the resolution phase" becomes "A player's attack resolves at once; the enemy's in the resolution phase".
10. Owner questions (answered 23 October 2026)
| # | Question | Answer (verbatim, recorded on #1402 and #1398) | Where |
|---|---|---|---|
| OQ-1 | How do several units attack together, and how does artillery fire? | "One unit per attack, Civ" | 4.2 |
| OQ-2 | Captures at End turn or at once? | "Instant" | 4.4 |
| OQ-3 | Enter one more hex with any points left (Civ V)? | "No, strict like Civ VI": a unit needs the full cost of the next hex (with full points it can always move one hex) | 5, 6.2 |
| Old saves | "Refuse with a clear message (spec)" | 3.4 | |
| OQ-A | While units need orders, may the player force End turn (a key such as Shift+Enter)? | "No force" | 7.3 |
| Capture answer | Is the Raid / Occupy / Deport answer chosen and applied at End turn? | "Yes, answer at End turn" | 4.4 |
| GDD | Approve the GDD edits of 9.3 | "Approve, start building" | 9.3 |
| Approval | Approve this revised spec (revision 2) and the plan | "Approve, start building" | Status |
No question is open.
11. Conflicts and sequencing
| Item | Overlap | Handling |
|---|---|---|
| #1394 (fix for #1392, guide camera) | GameRoot.cs, FirstTurnGuidePresenter.cs |
merged (de78253e); U4b moves its centring into one helper |
| #1396 (raised units draw no token; Codex cx134) | UnitCard.SimUnit maps starting forces only (UnitCard.cs:25-30) |
must land before or with U1: a trained unit must be movable and cyclable; U5 reuses its raised-unit label |
| #1352 (Beri, Budget badge) | adds BudgetUnsubmitted to SimBridge.cs reading queue |
no ask of Beri; if it lands first, U1 passes the deferred list there; if U1 lands first, #1352's one line takes deferred |
| #1324, #1327 (Beri, Occupy and Deport; a lane is finishing their text fixes on Beri's branches) | Movement.Closed, TurnResolver.cs step 10, SettlementControl.cs |
their PRs are not rewritten. S1 and S4 touch Reachable, Path, Search and RunOrders, not Closed. Instant capture is slice S6, after both merge: it calls their merged capture check from RunOrders and stamps its date in Step; their answers (ResolveCapture) stay deferred, so their flows do not change. S5c's two withdrawal lines are inside #1327's SettlementControl.cs:101-129 hunk: converted after both land (8.4) |
| #1399 (units named by sim id in Why lines) | the cause messages of five sim files and EnemyAI.cs:59-60 |
S5a to S5c and U5 of this plan (8.4) |
| #1143 (avlco, HUD Arms, queued Arms purchase) | HudPresenter.cs, strings |
Arms purchase stays deferred; the HUD reading bridge.State now shows the Arms after attacks, which is wanted; text conflicts only |
| #1155, #1154 (hex-tile art) | map rendering | U3's route numbers and U4c's dimming are overlays on MapScene and UnitLayer; no shared files expected |
| #749 part 2 (Beri, enemy operation cards) | enemy phase | unchanged by this spec |
| #750 (Agam, R-WAR-004 slice) | docs/rules/mvp.md near R-COMBAT-009 |
S3 edits R-COMBAT-009's text; whichever lands second merges the paragraph |
| #752 (war objective, war goldens) | a war scenario with player attacks would be written for the old standing attack | S3 lands before #752 writes its scenario, or #752 orders its attacks each turn |
| #798 to #800, Phase 6 | ResolveCapture, the capture dialog |
#798 (#1324) and #800 (#1327) land as they are; S6 then makes the capture instant, and the answer stays deferred. #799 (annex or withdraw after the occupation) reads the timer, which counts the same turns, and needs no change |
Slice order (details, estimates and risks in the plan): S1 (preview, points left, needs-orders, the full-points hex), S2 (session and save), S5a and S5b (units named in Why lines, #1399), then U1 with U5 (instant moves on screen, the Why lines' unit names); S3 then U2 (instant attacks); S4 then U3 (go-to); U4a, U4b, U4c (End turn waits; the cycle; dimming and layout); S5c, S6 and U6 (withdrawal lines, instant capture) once #1324 and #1327 have merged, in any order with U2 to U4. The sim slices can be drafted by Codex workers; the Unity slices are Claude lanes.
12. Staff review of this spec (gaps found and closed)
- A replaced deferred order (a vote) placed before an attack would have shifted the attack's draw after the player saw it. Closed by running committed orders first (3.3).
- Reload would have undone moves (autosave only after End turn). Closed by the open turn and a per-order autosave (3.4).
- Old saves with standing attacks would replay differently and fail as "damaged". Closed by refusing exactly those as
older_rules(3.4). - The go-to search, with no points cap, would plan artillery through mountains it can never enter. Closed by the step-cost filter (5, 6.2), used only by the new
Route; the enemy'sTowardis untouched, so no golden can move from it. - Both smoke runs press End turn and would stall on the new block. Closed by a skip loop in both runs, with Skip kept out of the sim so their hashes stay (9.1).
- "Combat draws" is cited in code but missing from
docs/determinism.md. The combat slice adds it (4.3). military-combat.md:18says the enemy acts before the player; the code does the opposite. Listed for correction (9.3).- Q-COMBAT-2 and Q-ARTY-1 cannot hold as written under instant attacks. Raised as OQ-1 rather than decided silently; the owner ruled one unit per attack (4.2).
- Arms purchases and capture answers were candidates for "instant"; kept deferred, because no ruling asks for it and #1143, #1324 and #1327 build on the queued flow (3.2).
- The move and combat lines this change rewrites name units by sim id (#1399). Planned in the same pass, with unit snapshots on the cause so removed units keep their names (8.4).
- Revision 2: instant capture could have made a path through a target capture it, moving the smoke-orders path's meaning; decided that only where a move ends counts (4.4).
- Revision 2: an instant capture recorded on the turn's start date would have changed the record step 3 writes;
Sinceis stamped with the turn's end byStep, and #1324's timer (itsTurnscount from the answer) is unaffected (4.4). - Revision 2: instant capture and the full-points step can change the replay of an old save that has no attack in it; such a save now gets the same clear
older_rulesmessage instead of "damaged" (3.4). - Revision 2: the full-points exception makes the go-to's step-cost filter wrong (it would route artillery round mountains it may now enter); the route takes such a step as a turn of its own instead (6.2).
Independent review of revision 1 (Codex cx142, at 48059142; each finding checked against the code before acting):
| # | Finding | Outcome |
|---|---|---|
| 1 | The go-to's stop next to an enemy contradicts Q-MOVE-4 (no zone of control) | Accepted. mvp.md:195 says passing next to an enemy has no effect; the stop would keep a go-to from ever passing one. Removed (6.3) |
| 2 | Shift+Enter makes End turn non-blocking without a ruling | Accepted. No Firaxis or 2K source confirms Civ VI has it (2.1). Removed; OQ-A, owner: "No force" |
| 3 | Refusing every schema 2 save with an attack is avoidable | Not changed: the owner ruled "Refuse with a clear message (spec)" (3.4) |
| 4 | Without standing attacks, Send home's front changes (ranged artillery) | Accepted. Confirmed at Demobilization.cs:27-42 and Combat.cs:42-47. The turn keeps each unit's attacked hex for the front (4.6), with a regression test |
| 5 | "No undo" widened beyond moves and attacks | Accepted in part. Send home and capture answers stay deferred and changeable. Fortify and hold are instant but replaceable, as in Civ, because deferring them would put them after the turn's moves (3.2) |
| 6 | No direct test that the per-order autosave reloads | Accepted: AutosaveWritesEveryCommittedOrder (plan Task 9) |
| 7 | Placeholder tests in the plan | Accepted: every test body is now code |
| 8 | Slices too large, no estimates | Accepted: S5 and U4 split; every slice has an estimate and a risk note |
| 9 | "No golden moves" is ambiguous | Accepted: "no golden hash changes" (9.1) |
| 10 | The plan hard-codes commit identity | Accepted: the plan points to the repository's author identity and the lane rules |