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.

GDD 0.3 absorption: the population target is reached at or above it (Refs #1714) (#2992)

Eyal Golan6b226cfd7409
diff --git a/changelog.d/e21-1714-at-or-above.md b/changelog.d/e21-1714-at-or-above.md
new file mode 100644
index 000000000..859b2e57f
--- /dev/null
+++ b/changelog.d/e21-1714-at-or-above.md
@@ -0,0 +1,6 @@
+### Changed
+
+- GDD 0.3 absorption objective (Refs #1714): the inactive synthetic absorption check now counts the population target
+ as reached at exactly the target, as the live check in both rulesets already does (owner, 9 November 2026: "At or
+ above, both (Recommended)"). The GDD 0.3 notes say "reached" instead of "exceeded" or "above". No turn uses the
+ synthetic check, so there is no change in the game.
diff --git a/content/gdd03-balance.yaml b/content/gdd03-balance.yaml
index 2ac356c9c..6be2c1588 100644
--- a/content/gdd03-balance.yaml
+++ b/content/gdd03-balance.yaml
@@ -511,7 +511,7 @@
"values": [60]
"absorption.population_target":
"basis": "Agreed"
- "note": "Objectives: people, not population units (about 1,000 units at D2's 1,000 people a unit); threshold must be exceeded. Owner, 1 November 2026: \"Main's base x 0.3's tiers (Recommended)\". Retained approved baseline, a labelled design value. Source: #1668 balance.md at 605277df."
+ "note": "Objectives: people, not population units (about 1,000 units at D2's 1,000 people a unit); the target is reached at or above it (owner, 9 November 2026, #1714: \"At or above, both (Recommended)\"). Owner, 1 November 2026: \"Main's base x 0.3's tiers (Recommended)\". Retained approved baseline, a labelled design value. Source: #1668 balance.md at 605277df."
"values": [1000000]
"absorption.max_overflow":
"basis": "Agreed"
diff --git a/docs/gdd/balance.md b/docs/gdd/balance.md
index 4a929a2ba..0a548956a 100644
--- a/docs/gdd/balance.md
+++ b/docs/gdd/balance.md
@@ -169,7 +169,7 @@ Retreat without a legal destination becomes surrender. Result bands and loss gra
| --- | --- | --- | --- |
| `objective.base_points` | `100` | points per completed core objective group | Retained approved baseline |
| `objective.early_per_month` / `objective.early_cap` | `5 / 60` | points per calendar month early / maximum per dated group or part | Retained approved baseline |
-| `absorption.population_target` | `1000000` | people represented; threshold must be exceeded | Retained approved baseline |
+| `absorption.population_target` | `1000000` | people represented; reached at or above it (owner ruling on #1714: "At or above, both (Recommended)") | Retained approved baseline |
| `absorption.max_overflow` / `absorption.min_employment` | `10 / 40` | percent ordinary-housing overflow / eligible civilian employment | Retained approved baseline; apply per the retained city objective |
diff --git a/docs/gdd/objective-card.md b/docs/gdd/objective-card.md
index bdf4ccdba..8d5595f55 100644
--- a/docs/gdd/objective-card.md
+++ b/docs/gdd/objective-card.md
@@ -30,7 +30,7 @@ Required sites are **Mefalsim, Beit Kama, Re'im, Gilat, Kiryat Shmona and Beit S
Railway completes after every authored buildable segment; reference is restored Haifa–Tel Aviv service on 20 September 1949 [S17]. Burma completes after all `burma_road` segments, with 7 December 1948 as the separate Road of Valour card reference [S18]. [Corridors](corridors.md) owns alignments.
-The "absorb immigrants" objective completes when represented own population is above `absorption.population_target`, no refugees wait for housing, city overflow is no higher than `absorption.max_overflow`, and city employment is no lower than `absorption.min_employment`. The retained milestone reference date is **20 December 1949**, chosen in `Q-ABS-1` [S8][S12].
+The "absorb immigrants" objective completes when represented own population has reached `absorption.population_target` (at or above it; owner, 9 November 2026, [#1714](https://github.com/eyalgolan/statecraft-israel/issues/1714#issuecomment-6740570608): "At or above, both (Recommended)"), no refugees wait for housing, city overflow is no higher than `absorption.max_overflow`, and city employment is no lower than `absorption.min_employment`. The retained milestone reference date is **20 December 1949**, chosen in `Q-ABS-1` [S8][S12].
Amir's refugee-awaiting-legal-bed absorption predicate agrees with main's `gdd-0.3` rule (`R-OBJ-004`, inactive synthetic boundary at `docs/rules/mvp.md`); the 30 October 2026 review lists Absorption as not a conflict [S1]. For Amir's port/transit queue system, the review did not rule, and main has no live port queue; it is post-MVP (owner, 1 November 2026: "30 Oct wins for the MVP (Recommended)") [S19]. The overflow limit is national, the overflow summed over the cities divided by the housed summed, and employment counts at turn end as `R-CITY-005` counts it (owner, 1 November 2026, 27M-21 and 27M-22) [S19]. (unitless)
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 4f67d98eb..aa2116137 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -422,9 +422,9 @@ R-OBJ-003: An event with `objective:` is that objective's card. It is eligible o
R-OBJ-004: An objective may instead name `completes_when: { absorbed: { population_at_least, overflow_at_most, employed_at_least } }` (D-B4; owner, 18 October 2026, #738, option (a)). It holds at step 11 once the population (`GameState.TotalPopulation`, the national count as step 11 reads it, before the turn's population step, annexed residents included, R-CITY-008) is at or above `population_at_least`, and then the cities' overflow (R-HOUSE-002), summed, is at most `overflow_at_most` of their housed people (R-HOUSE-003), summed, and their employed, summed, are at least `employed_at_least` of their civilians and craftsmen, summed (as R-CITY-005 counts them; owner, 3 November 2026, #1714: "Both rulesets (Recommended)", so gdd-0.1 and gdd-0.3 alike). Refugees waiting do not count: each turn's arrivals (step 9) wait at step 11, after housing (step 8). The gate keeps the census start values (41% employed, no overflow) from completing it on the first turn. Sums are integers, compared with the decimal share, so city order cannot change the result. An objective names exactly one kind; all three keys are required (a missing key is never read as 0), the shares are from 0 to 1 and the population above 0 (the loader). Recorded and scored as R-OBJ-001 and R-OBJ-002 say; its card follows R-OBJ-003. The shipped milestone, 1,000,000, stays Q-ABS-1's sourced number for the Jewish population; since the total counts annexed residents (owner, 4 November 2026, "Count them everywhere", #2620), a game that annexes a stayed town may reach it earlier.
-For R-OBJ-004, the preceding active gdd-0.1 rule remains unchanged. The gdd-0.3 addition is an inactive, synthetic-only boundary: `Gdd03SyntheticAbsorptionBoundary.HoldsForSyntheticSettledFacts` accepts supplied represented own units, a canonical refugee-awaiting-legal-bed flag, ordinary-housing overflow/demand and employed/all-free-civilian counts; it neither produces nor classifies them (`sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs:6-25@1e4b8a248`). Source: `docs/gdd/objective-card.md:19@605277dfa511dc512562ececeb273b8393b21d35`, "Empty denominators mean no overflow/full employment." and "Reference remains 20 December 1949"; `docs/gdd/balance.md:195-196` at that source revision gives the exceeded population target and inclusive percentage limits.
+For R-OBJ-004, the preceding active gdd-0.1 rule remains unchanged. The gdd-0.3 addition is an inactive, synthetic-only boundary: `Gdd03SyntheticAbsorptionBoundary.HoldsForSyntheticSettledFacts` accepts supplied represented own units, a canonical refugee-awaiting-legal-bed flag, ordinary-housing overflow/demand and employed/all-free-civilian counts; it neither produces nor classifies them (`sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs:6-25@1e4b8a248`). Source: `docs/gdd/objective-card.md:19@605277dfa511dc512562ececeb273b8393b21d35`, "Empty denominators mean no overflow/full employment." and "Reference remains 20 December 1949"; `docs/gdd/balance.md:195-196` at that source revision gives the exceeded population target (superseded below: at or above, #1714) and inclusive percentage limits.
-The synthetic boundary reads the supplied catalogue's Agreed population scale, target and percentages. With the current scale and thresholds, 100 units fail and 101 pass; overflow exactly 10% and employment exactly 40% pass. The waiting flag does not block the result (see the change below); the tests supply false for a legal reception bed and true for a port queue or refugee evacuation transit, and both pass when the other gates pass, without implementing that classification. Each valid 0/0 pair passes its ratio subcondition, but cannot bypass population. Exact BigInteger cross-products avoid rounded shares. Null/wrong-identity catalogues, missing, Deferred, non-Agreed or malformed quantities and negative/non-subset counts throw before any failing gate can hide them; the population scale retains the positive Int32 bound, the target must be positive and whole, and percentage limits must be whole numbers in 0..100 (`sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs:27-65@1e4b8a248`; `sim/Statecraft.Sim/Content.cs:1270-1278@1e4b8a248`; boundary tests in `sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs:12-108@1e4b8a248`, scale/threshold/exact-product fixtures at `:114-190` at the same head).
+The synthetic boundary reads the supplied catalogue's Agreed population scale, target and percentages. With the current scale and thresholds, 99 units fail and 100 (exactly the target) pass: the target is reached at or above it, in both rulesets (owner, 9 November 2026, [#1714](https://github.com/eyalgolan/statecraft-israel/issues/1714#issuecomment-6740570608): "At or above, both (Recommended)"); overflow exactly 10% and employment exactly 40% pass. The waiting flag does not block the result (see the change below); the tests supply false for a legal reception bed and true for a port queue or refugee evacuation transit, and both pass when the other gates pass, without implementing that classification. Each valid 0/0 pair passes its ratio subcondition, but cannot bypass population. Exact BigInteger cross-products avoid rounded shares. Null/wrong-identity catalogues, missing, Deferred, non-Agreed or malformed quantities and negative/non-subset counts throw before any failing gate can hide them; the population scale retains the positive Int32 bound, the target must be positive and whole, and percentage limits must be whole numbers in 0..100 (`sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs:27-65@1e4b8a248`; `sim/Statecraft.Sim/Content.cs:1270-1278@1e4b8a248`; boundary tests in `sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs:12-108@1e4b8a248`, scale/threshold/exact-product fixtures at `:114-190` at the same head).
Then changed (1 Nov 2026, [#1696](https://github.com/eyalgolan/statecraft-israel/issues/1696#issuecomment-6554002672)): the owner chose the option labelled "No reception-bed layer (Recommended)", so in the MVP a waiting flag does not block the result; option (a) ([#738](https://github.com/eyalgolan/statecraft-israel/issues/738#issuecomment-6249499957)) has no waiting clause, and the live R-OBJ-004 check reads population, overflow and employment only (`docs/gdd/objective-card.md`). Since #2514 `Gdd03SyntheticAbsorptionBoundary` keeps the flag as a parameter and ignores it.
diff --git a/sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs b/sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs
index 81af2618a..ff9a7ab89 100644
--- a/sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs
+++ b/sim/Statecraft.Sim.Tests/Gdd03SyntheticAbsorptionBoundaryTests.cs
@@ -8,11 +8,13 @@ public class Gdd03SyntheticAbsorptionBoundaryTests
ContentLoader.Load(RealContentTests.ContentRoot()).Gdd03Balance!;
// All counts here are test-only synthetic settled facts, not population/region initialization.
- // 100/101 follows the strict target/scale in gdd03-balance.yaml `population.people_per_unit` and `absorption.population_target`.
+ // 99/100/101 follow the target/scale in gdd03-balance.yaml `population.people_per_unit` and `absorption.population_target`:
+ // exactly the target reaches it (owner, 9 November 2026, #1714: "At or above, both (Recommended)").
[Theory]
- [InlineData(100, false)]
+ [InlineData(99, false)]
+ [InlineData(100, true)]
[InlineData(101, true)]
- public void RepresentedOwnPopulationMustExceedTheTarget(long own, bool expected)
+ public void RepresentedOwnPopulationMustReachTheTarget(long own, bool expected)
{
Assert.Equal(expected, Gdd03SyntheticAbsorptionBoundary.HoldsForSyntheticSettledFacts(
Catalogue(), own, false, 0, 0, 0, 0));
@@ -28,7 +30,7 @@ public class Gdd03SyntheticAbsorptionBoundaryTests
Assert.True(Gdd03SyntheticAbsorptionBoundary.HoldsForSyntheticSettledFacts(
Catalogue(), 101, waiting, 0, 0, 0, 0));
Assert.False(Gdd03SyntheticAbsorptionBoundary.HoldsForSyntheticSettledFacts(
- Catalogue(), 100, waiting, 0, 0, 0, 0)); // the population gate still decides
+ Catalogue(), 99, waiting, 0, 0, 0, 0)); // the population gate still decides
}
// Synthetic demand 100 and free civilians 10; source percentages are 10 and 40.
diff --git a/sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs b/sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs
index 407f53982..b529323a8 100644
--- a/sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs
+++ b/sim/Statecraft.Sim/Gdd03SyntheticAbsorptionBoundary.cs
@@ -43,7 +43,7 @@ namespace Statecraft.Sim
// Exact unbounded integer products; 100 is the definition of percent, not a balance default.
// No rounded shares, binary floating point, text formatting, RNG or state mutation.
- return new BigInteger(representedOwnUnits) * peoplePerUnit > populationTarget
+ return new BigInteger(representedOwnUnits) * peoplePerUnit >= populationTarget
&& new BigInteger(ordinaryOverflow) * 100 <= new BigInteger(ordinaryDemand) * maxOverflow
&& new BigInteger(employedFreeCivilians) * 100 >= new BigInteger(allFreeCivilians) * minEmployment;
}