A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Farmer work XP from staffed-field months, fixture-only (Fixes #2468) (#2627)
Beri7ab11d99eaee
diff --git a/changelog.d/2468-farmer-work-xp.md b/changelog.d/2468-farmer-work-xp.mdnew file mode 100644index 000000000..c832b8ee0--- /dev/null+++ b/changelog.d/2468-farmer-work-xp.md@@ -0,0 +1,6 @@+### Added++- Under gdd-0.3, in synthetic ledger fixtures only, a farmer who works a field for the month, on a field still+ Israeli-held, gains one work XP, and becomes veteran at the ninth such month with the same record (R-VET-001,+ R-VET-002). A month with more farmers on a field than its one slot is refused. The farmer counterpart of the+ pioneer work-XP producer. No game-loop caller yet, so no change in the game.diff --git a/docs/mvp-checklist.md b/docs/mvp-checklist.mdindex dc0e7b3b1..bddee146b 100644--- a/docs/mvp-checklist.md+++ b/docs/mvp-checklist.md@@ -127,7 +127,7 @@ The owner adopted GDD 0.3 on 26 October 2026 and set its MVP scope on 1 November- [ ] **Open: #2483 (pull request #2505).** Turning on austerity_1949, forex_crisis_1951, iraqi_exodus and maabarot_policy under gdd-0.3 with their Food-supply and housing effects.- [ ] **Open: #1687.** The ruleset, save schema and balance catalogue; parts 1 to 3 are on `main` (#1732, #1742, #1745).- [ ] **Open: #1689, #1691 and #1717.** The population ledger, the authored regions and prepared fields, and the Historical start.-- [ ] **Open: #1692, #1693, #1694 and #1713.** Work by tier, professions, farming and pioneer work; #1693's fixture-only pioneer work-XP producer is on `main` (#2421), and #1694's field fixture cites the farmer-only field ruling (#2509).+- [ ] **Open: #1692, #1693, #1694 and #1713.** Work by tier, professions, farming and pioneer work; #1693's fixture-only pioneer work-XP producer is on `main` (#2421), its farmer counterpart is `Gdd03FieldFixture.ResolveWorkXp` (#2468), and #1694's field fixture cites the farmer-only field ruling (#2509).- [ ] **Open: #1697, #1698 and #1699.** Courses, the craftsman and basic training; a slice of each is on `main` (#2461, #2416 and #2439), and the Hakhshara stays the gdd-0.3 pioneer path (#2507).- [x] **Done: #1703 and #1701.** Housing condition and repair (#2291, #2409, #2415) and arms workshops (#2270, #2289).- [ ] **Open: #1700.** City projects by builders; the housing-repair project is on `main` (#2409, #2415).diff --git a/docs/rules/mvp.md b/docs/rules/mvp.mdindex d1551a353..5c6b95583 100644--- a/docs/rules/mvp.md+++ b/docs/rules/mvp.md@@ -206,7 +206,7 @@ R-SITE-003: Each turn, in ordinal site id order, every site being built has one## Veteran pioneers-R-VET-001: Under legacy/gdd-0.1, in step 5, after its site's or segment's progress (R-COR-002), a halutz unit whose site or corridor segment is being built gains one turn of service, the turn it is built included; an idle unit gains none. At `veteran_halutz_service` turns of service it becomes a `veteran_halutz` at the end of that turn, keeping its id, hex, service and project, and a cause says so. A veteran gains no more service. A unit's service is written into the state hash only when it is not 0 (D-D9; Q-VET-1, owner, 17 October 2026, #782). A halutz or veteran can return to civilian life and keep its service or its status (R-QUAL-003). In gdd-0.3 synthetic fixtures only, the pure profession helper proposes one actual-work XP increment for a received free civilian with a matching Work assignment and completed staffed-farming evidence regardless of output or advancement, or evidence of advancing an on-site pioneer project. Adopted sources at `605277dfa511dc512562ececeb273b8393b21d35`: `docs/gdd/training.md:17`, "Farmers earn work XP only on staffed farming turns. Pioneers earn it only while advancing an on-site pioneer project."; `docs/gdd/balance.md:70`, "Work XP counts actual qualifying turns, not output or work quantity." Multiple matching results count once per evaluation; zero pioneer advancement, wrong profession/target, generic work, travel, idle, teaching and courses give none. Both novice and trained farmer/pioneer become veteran at the Agreed catalogue `profession.work_to_veteran` threshold (currently 9). Craftsmen do not use this path. The caller must use one turn-start snapshot and commit at most once at turn end; turn scheduling, authoritative evidence production and cross-call deduplication remain held. No game-loop caller is added. The fixture-only pioneer producer (`Gdd03PioneerWorkFixture.ResolveTurnEnd`, #1693) is that caller for pioneers on initialized gdd-0.3 ledger fixtures: from one turn-start state and the pioneer projects being built that turn (yishuv sites and corridor segments alike; owner, 3 November 2026, #1693 answer 5), each pioneer record at Work on one of them gives advancement evidence and its result is committed once, in ascending id, into a new state, except that a veteran's work XP is not advanced (maintainer call, not a ruling, matching the legacy veteran that gains no more service; it still works at its rate); the turn-start state is unchanged, so resolving the same snapshot twice gives one tick. Records off the job (idle, travel, course, teaching) earn nothing and keep their tier and work XP (answer 4). MVP pioneers are course-trained (answer 2). Farmer evidence waits for #1694. It has no game-loop caller until #1689's integration slice.+R-VET-001: Under legacy/gdd-0.1, in step 5, after its site's or segment's progress (R-COR-002), a halutz unit whose site or corridor segment is being built gains one turn of service, the turn it is built included; an idle unit gains none. At `veteran_halutz_service` turns of service it becomes a `veteran_halutz` at the end of that turn, keeping its id, hex, service and project, and a cause says so. A veteran gains no more service. A unit's service is written into the state hash only when it is not 0 (D-D9; Q-VET-1, owner, 17 October 2026, #782). A halutz or veteran can return to civilian life and keep its service or its status (R-QUAL-003). In gdd-0.3 synthetic fixtures only, the pure profession helper proposes one actual-work XP increment for a received free civilian with a matching Work assignment and completed staffed-farming evidence regardless of output or advancement, or evidence of advancing an on-site pioneer project. Adopted sources at `605277dfa511dc512562ececeb273b8393b21d35`: `docs/gdd/training.md:17`, "Farmers earn work XP only on staffed farming turns. Pioneers earn it only while advancing an on-site pioneer project."; `docs/gdd/balance.md:70`, "Work XP counts actual qualifying turns, not output or work quantity." Multiple matching results count once per evaluation; zero pioneer advancement, wrong profession/target, generic work, travel, idle, teaching and courses give none. Both novice and trained farmer/pioneer become veteran at the Agreed catalogue `profession.work_to_veteran` threshold (currently 9). Craftsmen do not use this path. The caller must use one turn-start snapshot and commit at most once at turn end; turn scheduling, authoritative evidence production and cross-call deduplication remain held. No game-loop caller is added. The fixture-only pioneer producer (`Gdd03PioneerWorkFixture.ResolveTurnEnd`, #1693) is that caller for pioneers on initialized gdd-0.3 ledger fixtures: from one turn-start state and the pioneer projects being built that turn (yishuv sites and corridor segments alike; owner, 3 November 2026, #1693 answer 5), each pioneer record at Work on one of them gives advancement evidence and its result is committed once, in ascending id, into a new state, except that a veteran's work XP is not advanced (maintainer call, not a ruling, matching the legacy veteran that gains no more service; it still works at its rate); the turn-start state is unchanged, so resolving the same snapshot twice gives one tick. Records off the job (idle, travel, course, teaching) earn nothing and keep their tier and work XP (answer 4). MVP pioneers are course-trained (answer 2). The fixture-only farmer producer (`Gdd03FieldFixture.ResolveWorkXp`, #2468) is the same caller for farmers: from one turn-start state and the month's snapshot (27M-2), each farmer the snapshot has working a field that is still Israeli-held (Q37, the fields R-FIELD-002 pays) gives one staffed-farming receipt, committed the same way, with the same veteran exception; a farmer whose turn-start record is no longer on that field, idle, travelling, teaching or in a course earns nothing. It has no game-loop caller until #1689's integration slice.R-VET-002: Under legacy/gdd-0.1, a veteran's site or corridor segment being built has `veteran_progress` turns less to go each turn, against a halutz's 1; one with that many or fewer left is built that turn. A veteran does the same pioneer work as a halutz (R-SITE-001) (D-D9; Q-VET-2, owner, 17 October 2026, #782). In gdd-0.3 synthetic fixtures only, output quotes read the turn-start tier from Agreed catalogue `pioneer.work_rate` (novice/trained/veteran: 0.75/1/1.5) or `farmer.output` (2/3/5, multiples of `field_food_per_turn`, R-FIELD-002 (owner, 1 November 2026: "Main's base x 0.3's tiers (Recommended)"; #2112); the farmer quote here and in the synthetic field evaluator is that multiple, which equals Food only while `field_food_per_turn` is 1, and `Gdd03FieldRates.FoodPerTurn` converts it). Promotion returns a separate record for the next turn, preserving identity, assignment, placement, equipment and independent military history. No project progress or farming yield is applied by the helper; absent, Deferred or malformed values fail closed without legacy fallback. The #1693 pioneer producer quotes each record's work with this turn-start `pioneer.work_rate`, never `veteran_progress`, and returns the quote per target, summed over the records at Work on an advancing target, without applying it to any project.diff --git a/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs b/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.csindex 9cd8564b3..2b4f62e70 100644--- a/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs+++ b/sim/Statecraft.Sim.Tests/Gdd03FieldFixtureTests.cs@@ -216,6 +216,107 @@ public class Gdd03FieldFixtureTestsRefused(s, () => f.Staff(0, V1, israeliHeld: true));}+ // #2468, R-VET-001 and R-VET-002: farmer work XP from the month's staffed fields, the farmer counterpart of #2421's+ // pioneer producer. A received farmer (reception.turns done) on a field worked in the snapshot and still Israeli-held.+ static PopulationUnit Farmer(Content c, CivilianTier tier = CivilianTier.Trained, int tools = 0) =>+ new(0, PopulationStatus.FreeCivilian, c.RequirePopulationInteger("reception.turns"), InValleys, PopulationAssignment.Unassigned,+ CivilianProfession.Farmer, tier, 0, "infantry", 4, new PopulationEquipment(toolsId: "tools/" + tools, toolsPaid: true));+ const string Course = "course-c", Road = "road-t";+ // The field fixture's targets plus a valleys course, a road and an Industry slot, so a farmer can be on each.+ static GameState WorkState(Content c, Gdd03FixtureSlot industry, params PopulationUnit[] people)+ {+ var pools = c.PlayerRegions.Regions.Keys.Select(id =>+ new PlayerRegionPool(id, 0, 0m, id == Valleys ? 1 : 0, 0, Array.Empty<PlayerRegionFacility>()));+ var targets = Gdd03FieldFixture.Targets(c).Concat(new[] {+ new PopulationTarget(industry.Id, PopulationAssignmentKind.Work, Valleys),+ new PopulationTarget(Course, PopulationAssignmentKind.Course, Valleys, 3),+ new PopulationTarget(Road, PopulationAssignmentKind.Travel, Valleys) });+ return PlayerRegions.CreateFixture(c, pools, people.Select((p, i) => new PopulationInventoryRow("synthetic", i, p)),+ targets, new[] { Captor }, new[] { "infantry" });+ }+ static Gdd03SyntheticMonthContext WorkMonth(Content c, GameState s, string industry, params string[] notHeldAtFreeze) =>+ Gdd03SyntheticMonthContext.CreateSynthetic(SaveGame.Gdd03Ruleset, 0, s.PopulationLedger.Units,+ Gdd03FieldFixture.Fields(c).Select(f => new Gdd03SyntheticFacilitySnapshot(f.Id, !notHeldAtFreeze.Contains(f.Id), 1))+ .Concat(new[] { new Gdd03SyntheticFacilitySnapshot(industry, true, 1), new Gdd03SyntheticFacilitySnapshot(Course, true, 3) }),+ Array.Empty<int>(), Array.Empty<Gdd03SyntheticHousingSnapshot>(), Array.Empty<Gdd03SyntheticPendingEntry>());++ // R-VET-001, R-VET-002 (#2468): one worked, still-held field month gives its farmer exactly one work XP. A field lost+ // after the freeze, one not held at the freeze, a farmer moved to another field after the freeze (the wrong target), an+ // Industry worker, idle, travelling, teaching and training farmers, and every unstaffed field give none. The turn-start+ // state is not changed, and the same snapshot resolved twice from it gives the same single tick (no double credit).+ [Fact] public void AWorkedFieldMonthGivesItsFarmerOneWorkXp()+ {+ var c = Real();+ var valleys = Gdd03FieldFixture.Fields(c).Where(f => f.Region == Valleys).Select(f => f.Id).ToArray();+ var industry = new Gdd03FixtureSlot("synthetic-industry", Gdd03FixtureWork.Industry, 1, "winery");+ var s = WorkState(c, industry, Enumerable.Range(0, 9).Select(i => Farmer(c, tools: i)).ToArray());+ var f = new Gdd03FieldFixture(c, s, new[] { industry });+ f.Staff(0, valleys[0], israeliHeld: true); // worked and held: the one tick+ f.Staff(1, valleys[1], israeliHeld: true); // lost after the freeze+ f.Staff(2, valleys[2], israeliHeld: true); // not held at the freeze+ f.Staff(3, valleys[3], israeliHeld: true); // moved to another field after the freeze+ s.PopulationLedger.ChangeAssignment(4, new PopulationAssignment(PopulationAssignmentKind.Work, industry.Id));+ s.PopulationLedger.ChangeAssignment(5, new PopulationAssignment(PopulationAssignmentKind.Teaching, Course));+ s.PopulationLedger.Transition(6, PopulationStatus.Trainee, InValleys, new PopulationAssignment(PopulationAssignmentKind.Course, Course));+ s.PopulationLedger.Transition(7, PopulationStatus.CivilianInTransit, InValleys, new PopulationAssignment(PopulationAssignmentKind.Travel, Road));+ // 8 stays idle.+ var month = WorkMonth(c, s, industry.Id, valleys[2]);+ f.Release(3); f.Staff(3, valleys[4], israeliHeld: true);+ var held = AllHeld(c); held.Remove(valleys[1]);+ var before = s.Describe();++ var once = Gdd03FieldFixture.ResolveWorkXp(c, s, month, held);+ Assert.Equal(new[] { 1, 0, 0, 0, 0, 0, 0, 0, 0 }, once.PopulationLedger.Units.Select(p => p.WorkXp));+ Assert.All(once.PopulationLedger.Units, p => Assert.Equal(CivilianTier.Trained, p.Tier));+ Assert.Equal(before, s.Describe());+ Assert.Equal(once.Describe(), Gdd03FieldFixture.ResolveWorkXp(c, s, month, held).Describe());+ }++ // R-VET-001 (#2468): novice and trained farmers become veteran at profession.work_to_veteran (9) worked months. The+ // ninth month's Food is quoted at its snapshot tier (R-VET-002); the record is veteran from the next month, with the+ // same id, assignment, placement, tools and military history.+ [Theory] [InlineData(CivilianTier.Novice)] [InlineData(CivilianTier.Trained)]+ public void TheNinthWorkedMonthPromotesTheSameFarmerToVeteran(CivilianTier tier)+ {+ var c = Real(); var r = Rules(c);+ Assert.Equal(9, c.RequirePopulationInteger("profession.work_to_veteran"));+ var industry = new Gdd03FixtureSlot("synthetic-industry", Gdd03FixtureWork.Industry, 1, "winery");+ var s = WorkState(c, industry, Farmer(c, tier));+ var f = new Gdd03FieldFixture(c, s, new[] { industry });+ f.Staff(0, V1, israeliHeld: true);+ var start = s.PopulationLedger.Get(0);+ for (int i = 0; i < 8; i++) s = Gdd03FieldFixture.ResolveWorkXp(c, s, WorkMonth(c, s, industry.Id), AllHeld(c));+ Assert.Equal((8, tier), (s.PopulationLedger.Get(0).WorkXp, s.PopulationLedger.Get(0).Tier));+ var ninth = WorkMonth(c, s, industry.Id);+ Assert.Equal(tier == CivilianTier.Novice ? 2 : 3, f.Yield(r, ninth, AllHeld(c)).Fields[V1]);+ s = Gdd03FieldFixture.ResolveWorkXp(c, s, ninth, AllHeld(c));+ var vet = s.PopulationLedger.Get(0);+ Assert.Equal((9, CivilianTier.Veteran), (vet.WorkXp, vet.Tier));+ Assert.Equal(start.Id, vet.Id); Assert.Equal(start.Status, vet.Status);+ Assert.Equal(start.Assignment.Canonical(), vet.Assignment.Canonical());+ Assert.Equal(start.Location!.Canonical(), vet.Location!.Canonical());+ Assert.Equal(start.Equipment.Canonical(), vet.Equipment.Canonical());+ Assert.Equal((start.Qualification, start.CombatXp), (vet.Qualification, vet.CombatXp));+ Assert.Equal(5, f.Yield(r, WorkMonth(c, s, industry.Id), AllHeld(c)).Fields[V1]);+ }++ // #2468 review: a snapshot with more working farmers on a field than its `field.slots` (1) is refused whole, as+ // Yield refuses it, so no farmer is credited for a slot another farmer holds; the turn-start state is unchanged.+ [Fact] public void AnOverOccupiedFieldMonthIsRefused()+ {+ var c = Real();+ var industry = new Gdd03FixtureSlot("synthetic-industry", Gdd03FixtureWork.Industry, 1, "winery");+ var s = WorkState(c, industry, Farmer(c, tools: 0), Farmer(c, tools: 1), Farmer(c, tools: 2));+ var f = new Gdd03FieldFixture(c, s, new[] { industry });+ f.Staff(0, V1, israeliHeld: true);+ f.Staff(2, V2, israeliHeld: true);+ // The fixture refuses a second farmer (ASecondFarmerOnAFieldIsRefused), so the over-occupied record is written+ // straight to the ledger, as a malformed synthetic month would carry it.+ s.PopulationLedger.ChangeAssignment(1, new PopulationAssignment(PopulationAssignmentKind.Work, V1));+ var month = WorkMonth(c, s, industry.Id);+ Refused(s, () => Gdd03FieldFixture.ResolveWorkXp(c, s, month, AllHeld(c)), "more than one farmer");+ }+// R-FIELD-002 under gdd-0.1 is unchanged: fields need no workers there, and this fixture refuses that ruleset.[Fact] public void Gdd01FieldsAreUnchanged(){@@ -224,6 +325,10 @@ public class Gdd03FieldFixtureTestsvar s = new GameState(c); var before = s.Describe();Assert.Throws<InvalidOperationException>(() => Gdd03FieldFixture.Fields(c));Assert.Throws<InvalidOperationException>(() => new Gdd03FieldFixture(c, s, Array.Empty<Gdd03FixtureSlot>()));+ Assert.Throws<InvalidOperationException>(() => Gdd03FieldFixture.ResolveWorkXp(c, s,+ Gdd03SyntheticMonthContext.CreateSynthetic(SaveGame.Gdd03Ruleset, 0, Array.Empty<PopulationUnit>(),+ Array.Empty<Gdd03SyntheticFacilitySnapshot>(), Array.Empty<int>(), Array.Empty<Gdd03SyntheticHousingSnapshot>(),+ Array.Empty<Gdd03SyntheticPendingEntry>()), new HashSet<string>()));Assert.Equal(before, s.Describe());}}diff --git a/sim/Statecraft.Sim/Gdd03FieldFixture.cs b/sim/Statecraft.Sim/Gdd03FieldFixture.csindex 0f4757f46..1efd936f6 100644--- a/sim/Statecraft.Sim/Gdd03FieldFixture.cs+++ b/sim/Statecraft.Sim/Gdd03FieldFixture.cs@@ -37,7 +37,7 @@ namespace Statecraft.Sim/// field takes one farmer; an unworked field produces nothing." Each authored field (Q36) is one Farm slot of/// `field.slots` (1) in the shared <see cref="Gdd03AssignmentFixture"/>, which stays the single writer and whose/// ledger refuses a farmer living outside the field's region (Q27). Loss and retake (27M-1), preparation (#1713),- /// XP and Food demand are not here.</summary>+ /// and Food demand are not here; farmer work XP is <see cref="ResolveWorkXp"/> (#2468).</summary>internal sealed class Gdd03FieldFixture{readonly GameState state;@@ -129,5 +129,48 @@ namespace Statecraft.Sim}return new Gdd03FieldYield(result);}++ /// <summary>#2468, R-VET-001 and R-VET-002: the farmer counterpart of <see cref="Gdd03PioneerWorkFixture"/>, on+ /// initialized gdd-0.3 ledger fixtures only, with no game-loop caller. Each farmer the month's snapshot has working a+ /// field that is still Israeli-held (the fields <see cref="Yield"/> pays) gives one staffed-farming receipt, and its+ /// <see cref="CivilianProfessionRules.AfterWork"/> result is committed once into a copy, in ascending id. The+ /// turn-start state is not changed, so the same snapshot resolved twice gives the same single tick. A farmer whose+ /// turn-start record is no longer on that field, idle, travelling, teaching or in a course gets nothing. A snapshot+ /// with more working people on a field than `field.slots` is refused unchanged.</summary>+ internal static GameState ResolveWorkXp(Content content, GameState turnStart, Gdd03SyntheticMonthContext month,+ IReadOnlyCollection<string> israeliHeldNow)+ {+ if (content == null) throw new ArgumentNullException(nameof(content));+ if (turnStart == null) throw new ArgumentNullException(nameof(turnStart));+ if (month == null) throw new ArgumentNullException(nameof(month));+ if (israeliHeldNow == null) throw new ArgumentNullException(nameof(israeliHeldNow));+ if (!content.UsesPopulationLedger || !turnStart.UsesPopulationLedger || !turnStart.PopulationLedger.IsInitialized)+ throw new InvalidOperationException("Farmer work XP requires an initialized gdd-0.3 ledger fixture.");+ var fields = new HashSet<string>(Fields(content).Select(f => f.Id), StringComparer.Ordinal);+ var working = new HashSet<int>(month.WorkEligibleIds);+ // #2468 review: a field credits at most its `field.slots` (1) farmers, so an over-occupied snapshot is refused+ // whole before any change, as Yield refuses it.+ var slots = Gdd03FieldRates.FromCatalogue(content.Gdd03Balance!).SlotsPerField;+ if (month.OpeningPeople.Where(p => working.Contains(p.Id) && p.Assignment.Target != null && fields.Contains(p.Assignment.Target))+ .GroupBy(p => p.Assignment.Target).Any(g => g.Count() > slots))+ throw new ArgumentException("A field's snapshot holds more than one farmer.");+ turnStart.PopulationLedger.Reconcile();++ var candidate = turnStart.Clone();+ foreach (var p in month.OpeningPeople) // ascending id, one record per id+ {+ var field = p.Assignment.Target;+ if (!working.Contains(p.Id) || p.Profession != CivilianProfession.Farmer || field == null+ || !fields.Contains(field) || !israeliHeldNow.Contains(field)) continue;+ // R-VET-001: staffed farming counts regardless of output, so the receipt carries no amount.+ var next = CivilianProfessionRules.AfterWork(content, turnStart, p.Id,+ new[] { new CivilianWorkEvidence(p.Id, field, CivilianWorkKind.StaffedFarming, 0m) });+ // The same maintainer call as the pioneer producer's, not a rule: a veteran's work XP stops at promotion.+ if (!ReferenceEquals(next, turnStart.PopulationLedger.Get(p.Id)) && turnStart.PopulationLedger.Get(p.Id).Tier != CivilianTier.Veteran)+ candidate.PopulationLedger.Replace(next);+ }+ candidate.PopulationLedger.Reconcile();+ return candidate;+ }}}diff --git a/sim/Statecraft.Sim/Gdd03PioneerWorkFixture.cs b/sim/Statecraft.Sim/Gdd03PioneerWorkFixture.csindex 8f37a942e..dcd8d3561 100644--- a/sim/Statecraft.Sim/Gdd03PioneerWorkFixture.cs+++ b/sim/Statecraft.Sim/Gdd03PioneerWorkFixture.cs@@ -20,7 +20,7 @@ namespace Statecraft.Sim/// <summary>#1693 pioneer slice: the turn-end producer R-VET-001 holds, on initialized gdd-0.3 ledger fixtures only./// No game-loop caller: an initialized ledger refuses the aggregate systems (R-POP-002), and the switch is #1689's last- /// slice. Farmer work XP follows #1694; the tools charge is post-MVP (owner, 3 November 2026, answer 1).</summary>+ /// slice. Farmer work XP is Gdd03FieldFixture.ResolveWorkXp (#2468); the tools charge is post-MVP (owner, 3 November 2026, answer 1).</summary>internal static class Gdd03PioneerWorkFixture{/// <summary>The caller supplies the turn-start state and the pioneer projects being built this turn, yishuv sites