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.

Portraits: Knesset Archives CC BY-SA 4.0 photos for Maimon and Bentov, a Meitar CC BY 4.0 photo for Shapira, and a CC BY-SA path in commons_licences (refs #30) (#572)

Eyal Golan51cb974c7e17
diff --git a/ASSETS.portraits.yaml b/ASSETS.portraits.yaml
index b04633555..96e2d910d 100644
--- a/ASSETS.portraits.yaml
+++ b/ASSETS.portraits.yaml
@@ -1,6 +1,6 @@
# GENERATED by scripts/oss/commons_licences.py from content/people.yaml and Wikimedia Commons. Do not edit
# by hand: re-run the script. A PD or CC0 row is 'verified' only with an explicit US-status template; a CC BY 4.0
-# row only with a Cc-by-4.0 template, a named artist and a NOTICE entry.
+# or CC BY-SA 4.0 row only with its Cc-by-4.0 or Cc-by-sa-4.0 template, a named artist and a NOTICE entry.
rules:
- glob: promo/ref/people/David_Ben-Gurion_NARA_1951.jpg
licence: Public-Domain
@@ -54,20 +54,18 @@ rules:
status: verified
commons: CC0; CC-zero, Cc-zero
artist: Willem van de Poll
-- glob: promo/ref/people/Haim-Moshe_Shapira.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:Moshe_Shapira.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: Théodore Brauner
- note: no explicit US status template on the Commons page
+- glob: promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg
+ licence: CC-BY-4.0
+ source: https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg
+ status: verified
+ commons: CC BY 4.0; Cc-by-4.0, Cc-by-layout
+ artist: Benno Rothenberg
- glob: unity/Assets/UI/Portraits/shapira.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:Moshe_Shapira.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: Théodore Brauner
- note: no explicit US status template on the Commons page
+ licence: CC-BY-4.0
+ source: https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg
+ status: verified
+ commons: CC BY 4.0; Cc-by-4.0, Cc-by-layout
+ artist: Benno Rothenberg
- glob: promo/ref/people/Yitzhak_Gruenbaum.jpg
licence: Public-Domain
source: https://commons.wikimedia.org/wiki/File:Yitzhak_Gruenbaum_1948.jpg
@@ -96,20 +94,20 @@ rules:
commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
artist: Théodore Brauner
note: no explicit US status template on the Commons page
-- glob: promo/ref/people/Mordechai_Bentov.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:MordechaiBentov.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: Théodore Brauner
- note: no explicit US status template on the Commons page
+- glob: promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg
+ licence: CC-BY-SA-4.0
+ source: https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg
+ status: verified
+ commons: CC BY-SA 4.0; Cc-by-sa-4.0, Cc-by-sa-layout
+ artist: Knesset photographer
+ note: 'share-alike: this cropped portrait is an adaptation, released under CC BY-SA 4.0 like its source (LICENSING.md, NOTICE)'
- glob: unity/Assets/UI/Portraits/bentov.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:MordechaiBentov.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: Théodore Brauner
- note: no explicit US status template on the Commons page
+ licence: CC-BY-SA-4.0
+ source: https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg
+ status: verified
+ commons: CC BY-SA 4.0; Cc-by-sa-4.0, Cc-by-sa-layout
+ artist: Knesset photographer
+ note: 'share-alike: this cropped portrait is an adaptation, released under CC BY-SA 4.0 like its source (LICENSING.md, NOTICE)'
- glob: promo/ref/people/Bechor-Shalom_Sheetrit.jpg
licence: Public-Domain
source: https://commons.wikimedia.org/wiki/File:Bechor-Shalom_Shitreet.jpg
@@ -124,20 +122,20 @@ rules:
commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
artist: David Eldan
note: no explicit US status template on the Commons page
-- glob: promo/ref/people/Yehuda_Leib_Maimon.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: David Eldan
- note: no explicit US status template on the Commons page
+- glob: promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg
+ licence: CC-BY-SA-4.0
+ source: https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg
+ status: verified
+ commons: CC BY-SA 4.0; Cc-by-sa-4.0, Cc-by-sa-layout
+ artist: Knesset photographer
+ note: 'share-alike: this cropped portrait is an adaptation, released under CC BY-SA 4.0 like its source (LICENSING.md, NOTICE)'
- glob: unity/Assets/UI/Portraits/maimon.jpg
- licence: Public-Domain
- source: https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon.jpg
- status: owner-verify
- commons: Public domain; PD-Israel, PD-Israel/en, PD-Israel/layout, PD-Layout, PD-old-warning-text
- artist: David Eldan
- note: no explicit US status template on the Commons page
+ licence: CC-BY-SA-4.0
+ source: https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg
+ status: verified
+ commons: CC BY-SA 4.0; Cc-by-sa-4.0, Cc-by-sa-layout
+ artist: Knesset photographer
+ note: 'share-alike: this cropped portrait is an adaptation, released under CC BY-SA 4.0 like its source (LICENSING.md, NOTICE)'
- glob: promo/ref/people/Peretz_Bernstein.jpg
licence: Public-Domain
source: https://commons.wikimedia.org/wiki/File:Peretz_Bernstein.jpg
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6e937f23f..8ccfab32f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,13 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
unchanged. New data `content/map/control_1948_49.geojson` and `control_hexes_1948_49.yaml` (draft, owner-verify; licence
basis decision D-C), tools `control_digitise.py` and `control_bake.py`, a third (neutral, dashed) border style in the
shader. Presentation only: no golden moves.
+- Portraits for Maimon, Bentov and Shapira (refs #30, D-P): their Government Press Office photographs, which Commons
+ marks PD-Israel only, are replaced by Knesset Archives portraits under CC BY-SA 4.0 (Maimon, Bentov) and a Meitar
+ Collection photograph by Benno Rothenberg, 23 October 1952, under CC BY 4.0 (Shapira, cropped from a group shot), each
+ cropped and downscaled to 512 px tall with no upscaling, credited in `NOTICE`. `scripts/oss/commons_licences.py` now
+ records an explicit Cc-by-sa-4.0 file as `CC-BY-SA-4.0`, verified only with a named artist and a `NOTICE` entry, with a
+ share-alike note; `PortraitImport` accepts CC BY-SA 4.0. Kaplan, Gruenbaum, Bernstein, Zisling, Rosen and Sheetrit stay
+ on GPO photographs for now.
- Desktop release builds from the Mac (refs #54; Phases 0-1 of the plan in PR #482): `Build.LinuxMono` and
`Build.WindowsMono` build the Linux and Windows x64 players on Mono (decisions O7, O8) and put the committed IL2CPP
setting back afterwards, and
diff --git a/LICENSING.md b/LICENSING.md
index 7bdb18d2b..1cad3e1c6 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -12,7 +12,7 @@ Different parts of this repository are under different licences. Where a file is
| AI-generated images | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg`, `promo/start-screen/*.png`, `unity/Assets/UI/StartScreen/declaration-hall.jpg` | Marked [CC0 1.0](LICENSES/CC0-1.0.txt). No rights are claimed. Purely AI-generated output may not be copyrightable. Made with the ElevenLabs Image API (see `promo/CREDITS.md`), except the start screen's option images, made with Dreamina; the start screen's painting was made on ElevenLabs from a Dreamina option (`ASSETS.yaml`). |
| Quoted public-domain text | `docs/sources/declaration-1948/` | The Declaration of the Establishment of the State of Israel (1948): the Hebrew of the Official Gazette and the English translation. Public domain; sources in each file and in `ASSETS.yaml`. |
| In-engine captures | `promo/final/09`, `10`, `docs/images/build-*.jpg`, `docs/images/social-preview.jpg`, `spikes/m0/evidence/*.jpg`, `spikes/m0/evidence/*.txt` (logs) | CC BY 4.0. They show the Copernicus-derived terrain; see below. |
-| Portraits | `unity/Assets/UI/Portraits/`, `promo/ref/people/`, `promo/ref/*-sheet.jpg` | Public-domain photographs from Wikimedia Commons, CC0 files, and Meitar Collection photographs under CC BY 4.0 (credits in [NOTICE](NOTICE)). Per-file sources are in `content/people.yaml` and `promo/CREDITS.md`. |
+| Portraits | `unity/Assets/UI/Portraits/`, `promo/ref/people/`, `promo/ref/*-sheet.jpg` | Public-domain photographs from Wikimedia Commons, CC0 files, Meitar Collection photographs under CC BY 4.0, and Knesset Archives photographs under [CC BY-SA 4.0](LICENSES/CC-BY-SA-4.0.txt) (credits in [NOTICE](NOTICE)); share-alike: a portrait cropped from a CC BY-SA 4.0 photograph (`maimon.jpg`, `bentov.jpg` and their `promo/ref/people/*_CCBYSA_*.jpg` sources) is an adaptation and is itself under CC BY-SA 4.0. Per-file sources are in `content/people.yaml` and `promo/CREDITS.md`; per-file licences in `ASSETS.portraits.yaml`. |
| Event-card photographs | `unity/Assets/UI/EventImages/*.jpg` | Archival photographs from Wikimedia Commons, each under its own licence: CC BY 4.0 (Meitar Collection, National Library of Israel; credits in [NOTICE](NOTICE)), CC0 1.0 (Nationaal Archief) or public domain (US National Archives). All are adapted (graded and cropped). Per-file records in `ASSETS.yaml`; the mapping `event-images.yaml` beside them is CC BY 4.0 like the other UI assets. |
| Ben-Gurion's 1948 recording | `unity/Assets/StreamingAssets/audio/declaration-1948-isa-00113hj.wav` | An excerpt of the recording of the ceremony of 14 May 1948, Israel State Archives item ISA-Collections-Recordings-00113hj, under the Israel State Archives terms of use. It is a stream-copy cut of the archive's upload, decoded to PCM WAV with no other processing. Credit "Recording: Ralph Hellinger, Israel State Archives" ([NOTICE](NOTICE)). Its open questions are decision D-R in `docs/oss/DECISIONS.md` (`ASSETS.yaml`, owner-verify). |
| Decision-card and outcome clips | `unity/Assets/StreamingAssets/video/*.mp4` | AI-generated (Veo 3.1 through ElevenLabs; Seedance 2.0 through Dreamina), cut and re-encoded, with no burned-in caption (owner ruling of 14 October 2026); CC0 1.0 under decision D1, used under the owner's ruling D-V in `docs/oss/DECISIONS.md`. Per-file records in `ASSETS.yaml` and `docs/ai-disclosure.md`; the mapping `unity/Assets/Resources/EventVideos/event-videos.yaml` is CC BY 4.0 like the other UI assets. |
diff --git a/NOTICE b/NOTICE
index b810718fd..e3bb94978 100644
--- a/NOTICE
+++ b/NOTICE
@@ -43,7 +43,7 @@ and the Lebanon line the sub-district data's Mandate frontier; the Jordan map is
(only the agreements' line positions are taken); town coordinates for georeferencing from Wikidata (CC0)
and Wikipedia. Decision D-A.
-Portraits: public-domain, CC0 and CC BY 4.0 photographs from Wikimedia Commons; per-file records in
+Portraits: public-domain, CC0, CC BY 4.0 and CC BY-SA 4.0 photographs from Wikimedia Commons; per-file records in
ASSETS.portraits.yaml. CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), Meitar Collection / National Library of
Israel / The Pritzker Family National Photography Collection, via Wikimedia Commons; each is cropped and resized, nothing
else changed:
@@ -53,6 +53,16 @@ else changed:
https://commons.wikimedia.org/wiki/File:Yitzhak-Meir_Levin_(997008137163805171).jpg
- dov_yosef.jpg: Benno Rothenberg, 1949, CC BY 4.0, cropped.
https://commons.wikimedia.org/wiki/File:Dov_Yosef_(997008137381905171).jpg
+- shapira.jpg: Benno Rothenberg, 23 October 1952, CC BY 4.0, cropped.
+ https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg
+CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/), Knesset photographer / Knesset Archives, via Wikimedia
+Commons (Knesset Archives donation, VRTS ticket 2024112910006311); each is cropped and resized, nothing else changed.
+Share-alike: these cropped portraits, and the matching files in promo/ref/people/, are adaptations and are released
+under CC BY-SA 4.0:
+- maimon.jpg: Knesset photographer / Knesset Archives, 1949-1951, CC BY-SA 4.0, cropped.
+ https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg
+- bentov.jpg: Knesset photographer / Knesset Archives, 1949-1965, CC BY-SA 4.0, cropped.
+ https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg
Event-card photographs (unity/Assets/UI/EventImages/; per-file records in ASSETS.yaml). Each is adapted: graded and
cropped (shown in black and white with a navy-sepia tone, cropped and resized; nothing else changed).
diff --git a/content/people.yaml b/content/people.yaml
index 207bd64c1..f73455f2e 100644
--- a/content/people.yaml
+++ b/content/people.yaml
@@ -246,7 +246,7 @@ people:
party: hapoel_hamizrachi
competence: 7
loyalty: 7
- portrait: { file: promo/ref/people/Haim-Moshe_Shapira.jpg, license: Public domain, source: "https://commons.wikimedia.org/wiki/File:Moshe_Shapira.jpg", focus_y: 0.42 }
+ portrait: { file: promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg, license: CC BY 4.0, source: "https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg", focus_y: 0.37 }
offices:
- { office: health_minister, from: 1948-05-14, to: 1949-03-10, sources: *prov }
- { office: immigration_minister, from: 1948-05-14, to: 1949-03-10, sources: *prov }
@@ -344,7 +344,7 @@ people:
party: mapam
competence: 7
loyalty: 5
- portrait: { file: promo/ref/people/Mordechai_Bentov.jpg, license: Public domain, source: "https://commons.wikimedia.org/wiki/File:MordechaiBentov.jpg", focus_y: 0.28 }
+ portrait: { file: promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg, license: CC BY-SA 4.0, source: "https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg", focus_y: 0.5 }
offices:
- { office: labour_minister, from: 1948-05-14, to: 1949-03-10, sources: *prov }
- { office: development_minister, from: 1955-11-03, sources: *gov7 }
@@ -394,7 +394,7 @@ people:
party: mizrachi
competence: 6
loyalty: 7
- portrait: { file: promo/ref/people/Yehuda_Leib_Maimon.jpg, license: Public domain, source: "https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon.jpg", focus_y: 0.26 }
+ portrait: { file: promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg, license: CC BY-SA 4.0, source: "https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg", focus_y: 0.6 }
offices:
- { office: religions_minister, from: 1948-05-14, to: 1949-03-10, sources: *prov }
- { office: war_victims_minister, from: 1948-05-14, to: 1949-03-10, sources: *prov }
diff --git a/docs/CONTENT_POLICY.md b/docs/CONTENT_POLICY.md
index e66492753..63e82ffe6 100644
--- a/docs/CONTENT_POLICY.md
+++ b/docs/CONTENT_POLICY.md
@@ -33,8 +33,10 @@ These rules protect the game and the people in it. They are not a viewpoint:
4. **The Holocaust is an event the player reacts to, never one the player plays.** It is shown without swastikas.
5. **Real people.** People appear in their public roles and documented acts. Competence and loyalty values are game
balance, not judgements of the person, and `content/people.yaml` labels them so. The maintainer does not add living
- people, and records a legal review before any release that includes one. Portraits are public-domain or CC0
- photographs only; the maintainer refuses share-alike portraits at review.
+ people, and records a legal review before any release that includes one. Portraits are public-domain, CC0, CC BY 4.0
+ (owner ruling on #30, 13 October 2026) or CC BY-SA 4.0 photographs (owner, 14 October 2026, `docs/oss/DECISIONS.md`
+ D-P: "yes" to CC BY-SA 4.0 for portraits); share-alike applies, so a portrait cropped from a CC BY-SA 4.0 photograph
+ is itself released under CC BY-SA 4.0 and credited in `NOTICE`. The maintainer refuses any other licence at review.
6. **AI-assisted writing** is a draft. A human checks every factual claim in it against its sources, one by one,
before the entry is marked `fact-checked`; the maintainer applies this rule at review.
diff --git a/docs/oss/DECISIONS.md b/docs/oss/DECISIONS.md
index 5b698252a..4b2c81825 100644
--- a/docs/oss/DECISIONS.md
+++ b/docs/oss/DECISIONS.md
@@ -24,7 +24,7 @@ are already public. If a check fails, the file is removed from the tip with the
- [x] D11 The seven sensitive events (altalena, ten_days, operation_yoav, operation_hiram, operation_horev, bernadotte_assassination, reparations_claim) are sensitivity-reviewed: each event's YAML says `status: sensitivity-reviewed` (docs/m3-release.md, "OWNER STEP: sensitivity review"). The release gate also runs the sim's own check. Decided: the owner signed off all seven on 2026-10-10 for the itch.io build.
- [x] D12 Ruleset bypass. Recommended: the repository admin role bypasses `protect-main` always (you keep merging locally and pushing); everyone else needs review and green checks. Alternative: admins bypass only through a pull request. Decided (owner, 2026-10-10): the recommended admin bypass (`scripts/oss/github/ruleset-main-review.json`).
- [x] D13 Licence of the derived land-use texture `unity/Assets/Textures/Map/landuse.png` (`tools/land_bake.py`, issue #33; `ASSETS.yaml` row `owner-verify`). Owner answers four questions. (1) The 1948 settlement coordinates (`content/map/settlements_1948.yaml`, taken from the Wikipedia API, CC BY-SA 4.0) are facts, used only to place the citrus belt near the towns: does share-alike, or the EU database right for about 25 points taken from one source, reach a texture computed from them? (2) D6 found that the data.gov.il licence allows derivatives of the IMS station normals: confirm it covers landuse.png, whose rainfall is CHELSA corrected by them. (3) The Copernicus DEM licence allows redistributing derived products with its attribution (NOTICE carries it), and CHELSA V2.1 is CC0: confirm. (4) Which single `licence:` value does the row take: `Copernicus-DEM` (as now), or the most restrictive input (CC-BY-SA-4.0 if (1) says share-alike applies)? The same questions cover two derived map bakes, both recorded as `CC-BY-SA-4.0` and `owner-verify` until then: `unity/Assets/Resources/Map/BiomeColours.bytes` (biome colours from `content/map/hexes.json`, whose biomes come from the DEM, CHELSA and the IMS normals; #529) and `unity/Assets/Resources/Routes/RouteRibbons.bytes` (route ribbons on the DEM-derived heightmap; #436). Decided: (owner, 2026-10-14, given to personal2 directly, after "Tick all three" to the coordinator): on the licence, "CC BY-SA 4.0 (Recommended)"; on the other inputs, "Accept as recorded (Recommended)". So (1) and (4): share-alike is taken to reach the bakes, and `landuse.png`, `BiomeColours.bytes` and `RouteRibbons.bytes` are all `CC-BY-SA-4.0`, the most restrictive input; (2) and (3): the IMS/data.gov.il (D6), Copernicus DEM and CHELSA V2.1 findings above are confirmed as written. The three `ASSETS.yaml` rows are verified.
-- [ ] D-P Portraits: every `owner-verify` row in `ASSETS.portraits.yaml` checked on Commons for its US status, and the `promo/ref/*-src.jpg` and `*-sheet.jpg` provenance confirmed. Check on 2026-10-10: all 26 `owner-verify` rows (13 Government Press Office photos, 1948-1960, each used twice) carry only {{PD-Israel}}/{{PD-IsraelGov}} on Commons, with no US public-domain rationale; the URAA likely restored their US copyright (Israel protected them on 1996-01-01). Verdict: risk in the US. The promo/ref sheets and the AI likenesses in promo/final 04 and 08 derive from them. Needs the owner's call (replace with US-safe sources, see the issue for it). Decided:
+- [ ] D-P Portraits: every `owner-verify` row in `ASSETS.portraits.yaml` checked on Commons for its US status, and the `promo/ref/*-src.jpg` and `*-sheet.jpg` provenance confirmed. Check on 2026-10-10: all 26 `owner-verify` rows (13 Government Press Office photos, 1948-1960, each used twice) carry only {{PD-Israel}}/{{PD-IsraelGov}} on Commons, with no US public-domain rationale; the URAA likely restored their US copyright (Israel protected them on 1996-01-01). Verdict: risk in the US. The promo/ref sheets and the AI likenesses in promo/final 04 and 08 derive from them. Needs the owner's call (replace with US-safe sources, see the issue for it). Partial progress, 2026-10-14 (refs #30): owner rulings of 2026-10-14, given to personal2 directly ("Replace the 3 now" relayed by the coordinator): CC BY-SA 4.0 is accepted for portraits ("yes"; attribution in NOTICE, and a crop of a CC BY-SA 4.0 photograph is itself CC BY-SA 4.0); small photos that would need upscaling are not approved ("small photos not approved"); Shapira is the seated man on the right of the Meitar photograph of 23 October 1952; "Replace the 3 now". 3 replaced: Maimon and Bentov (Knesset Archives, CC BY-SA 4.0) and Shapira (Meitar Collection, Benno Rothenberg, CC BY 4.0), each cropped and downscaled to 512 px tall, never upscaled; `commons_licences.py` now records an explicit Cc-by-sa-4.0 file with a named artist and a NOTICE entry as verified. With the 4 done earlier (Ben-Gurion #172, Sharett #220, Remez and Levin #438), 7 of the 13 GPO photographs are replaced in the game. Kaplan, Gruenbaum, Bernstein and Zisling remain on GPO photographs pending larger sources (their known candidates are too small); Rosen and Sheetrit also remain, pending the owner's likeness check. The promo/ref sheets and the AI likenesses in promo/final 04 and 08 still derive from the GPO photographs. The line stays open. Decided:
- [x] D-B Region border data (`content/map/subdistrict*`, `ASSETS.yaml` row verified). The 1948 sub-districts are digitised from the Survey of Palestine map "Administrative Divisions" (1946, overprinted May 1947) and defined by the Administrative Divisions (Amendment) Proclamation, 1947 (Palestine Gazette No. 1552); area check from Village Statistics 1945. Check on 2026-10-11 (factual, not legal advice): Government of Palestine works got 50 years from publication (Copyright Act 1911, extended to Palestine in 1924), so they are public domain in Israel and the UK since the end of 1997 at the latest; Commons tags scan (a) `06_Palestine-_Administrative_divisions.jpg` {{PD-UK-Gov}} (in the Map template's permission field; NLI accession per Commons "Pal 1143; Pal 1143b; Pal 1196?") and scan (b), the Eran Laor copy (FL147392105), {{PD-UKGov}}{{PD-IsraelGov}}; but, as for D-P, they were protected on 1996-01-01, so a URAA-restored US copyright in the map's drawing (to about 2041-42) is possible. What the repository holds is facts (where legally defined lines run), redrawn by our own method; no image is copied. Also for the owner: the Hebrew and Arabic names (from Wikipedia), the sub-district names as shown (official Gazette English), outlining the Mandate frontier, the Arabic for Samaria District ("لواء السامرة"; "لواء نابلس" is also common), the near-frontier shore hexes (Taba, west of Rafah, the Dead Sea by the Lisan: each follows its nearest land), and moving the entries from `draft` to reviewed. Owner ruling (2026-10-11) on when the layer shows: from the 1948 start until the 1949 armistice lines replace it, each front switching to its armistice line on that agreement's date (Feb-Jul 1949) once that data is built; until then the layer stays, labelled "Mandate sub-districts, 1947" (`content/map/subdistrict_hexes_1948.yaml` `label`, `shown_from`, `shown_until`). Decided (owner-delegated, 2026-10-11): allowed; facts redrawn, no image copied. The repository holds facts (where legally defined lines run), redrawn by our own method from cited sources; no image or drawing is copied or committed, and US copyright does not protect facts (Feist), so a possible URAA copyright in the map's drawing does not reach the data. Further rulings (owner-delegated to the controller, 2026-10-11): the near-frontier shore hexes stay as built (each follows its nearest land); the Mandate frontier outline stays; Samaria District in Arabic stays "لواء السامرة" (no official Arabic Mandate text was reachable online; "لواء نابلس" is the common usage; unverified); the Hebrew and Arabic names from Wikipedia are accepted for now, the source noted per row; the sensitivity review is done (the entries are `sensitivity-reviewed`), while the 1947-48 amendment check stays open. Display rule (controller ruling, owner-delegated, 2026-10-11): the hex that holds a Gazette-listed town always takes that town's sub-district, never `outside` (`tools/borders_bake.py` rule 5; Rafah town's hex is Gaza, Metulla's Safad).
- [x] D-A The 1949 armistice lines (`content/map/armistice*`, `ASSETS.yaml` row owner-verify). Sources: the four General Armistice Agreements (UNTS vol. 42) and their annexed maps, which are UN documents with symbols and so not copyrighted (UN Administrative Instruction ST/AI/189/Add.9/Rev.2, para. 2; Commons {{PD-UN-doc}}, {{PD-UN-map}}); the Syria map is drawn on a 1:50,000 base of the Service Geographique des FFL, of which nothing is taken but the agreement's own line and zone (drawn by the parties and the UN); the Egypt line uses the Survey of Palestine sheet "Gaza" for three positions (the Wadi Hasi mouth, Deir Suneid, the highway), a Government of Palestine work under D-B; the Lebanon line is the D-B Mandate frontier. Check on 2026-10-11 (factual, not legal advice). Rulings (controller, owner-delegated, and the owner, 2026-10-11): (1) the source plan as built is approved: the agreements and their annexed maps; IBS 46 (1965) only as a named cross-check; (2) Jordan is traced from the low-resolution UNISPAL copy of the signed map 1 (3119 x 8630 px), every feature `source_quality: low_res_scan` and labelled low-accuracy, to be replaced from a full-resolution scan; the Commons "own work" copy ("File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg") is never used without established provenance; Jerusalem (map 2), the no-man's-lands and Mount Scopus are recorded gaps; (3) the 1950 modus vivendi line (S/1471, a signed UN document; sheet 2 from the UN Treaty Collection) is its own feature from 22 Feb 1950, and the 1949 Egypt line south of Gaza stays undrawn; (4) the DMZ part names stand; (5) the sensitivity review is the controller's, after the staff review: entries stay `draft`; (6) the true-polyline overlay is #237, not built now; (7) the Sinai frontier beyond Gaza is not labelled as the Egypt line. Open for the owner: whether a full-resolution Jordan scan is requested from the archives (an outward action). Display, as built: each front switches on its agreement's date (recorded per front in the sub-district layer, `Subdistricts1948.FrontReplaced`); from then its zones are drawn over the sub-districts and the label and info panel name its lines, while the sub-district bands stay as the base (the lines leave gaps). Conventions recorded here: the Jordan line A stages are Art. VI.3 deadlines ('within five / seven / fifteen weeks') and each stretch is shown from its deadline, the actual handover dates not researched; the agreements' own titles ('Egyptian-Israeli', 'Lebanese-Israeli', 'Hashemite Jordan Kingdom-Israel', 'Israeli-Syrian' General Armistice Agreement) are shown in the 'Egypt-Israel' style, a paraphrase; the DMZ part names mix Arabic and Hebrew forms (Tell el Qadi and El Hamma beside Mishmar HaYarden and Ein Gev). Map bases (only the agreements' lines are taken, positions redrawn, no image copied; US copyright does not reach facts): the Syria map's 1:50,000 Service Geographique des FFL base; Jordan map 1's Survey of Palestine 1:250,000 (1946) base, a Government of Palestine work (D-B); the Gaza sheet (D-B); S/1471's base sheets, Survey of Palestine 1:20,000 (rev. 1946) reprinted with a Survey of Israel imprint, an Israeli government reprint of about 1949-50, outside D-B, with a possible US URAA term in the drawing. The Jordan control points' coordinates (Wikidata, CC0; Wikipedia, CC BY-SA) are facts used only to georeference, kept in the MIT tool source. Decided (owner, 2026-10-14, given to personal2 directly, after "Tick all three" to the coordinator): "Tick it, no request now (Recommended)". The rulings above are accepted as recorded, and no archive request for a full-resolution Jordan scan is made now; it can be requested later, and the Jordan features stay `low_res_scan` until then. The `ASSETS.yaml` row is verified.
- [x] D-C Control areas, who held which areas in 1948-49 (`content/map/control*`, `ASSETS.yaml` row owner-verify). Source: Israel State Archives map 6158/1 ('Palestine: the partition lines and the front lines', 1949, ISA-PMO-GovernmentSecretary-R0005czg), the NYU Faculty Digital Archive copy (2368 x 4078 px; the ISA viewer refused a plain client and Commons has no copy, checked 2026-10-14; no outward request to the archives), about +-1-2 km. Check on 2026-10-14 (factual, not legal advice): a 1949 Israeli state work, out of copyright in Israel (Copyright Act 2007 s. 42; the 50-year term for state works), so the D-A basis (UN documents) does not apply; as for D-B, a work still protected in Israel on 1996-01-01 may carry a URAA-restored US copyright in its drawing, which does not reach the facts taken (where a front line ran on a date: Feist); its base is a Survey of Palestine sheet (D-B). The repository holds facts redrawn by our own method; no image is copied or committed. From each 1949 agreement's date the sides follow D-A's lines. Decided (owner, 2026-10-14, given in the coordinator's session): 'Allow it'. The owner's answers on #555 the same day: the ground east of the Beersheba-Hebron front kept as is; the staleness (Isdud, Majdal, Yad Mordechai until 24 February 1949) and the pins (Mishmar HaYarden, Qalqilya, Huleiqat, by Wikipedia's reading) accepted; the legend, captions, info-panel strings and six-line label approved, in English and Hebrew.
diff --git a/docs/superpowers/specs/2026-10-09-statecraft-israel-design.md b/docs/superpowers/specs/2026-10-09-statecraft-israel-design.md
index 59daef814..713c1ed0f 100644
--- a/docs/superpowers/specs/2026-10-09-statecraft-israel-design.md
+++ b/docs/superpowers/specs/2026-10-09-statecraft-israel-design.md
@@ -227,7 +227,7 @@ Each turn runs in six steps:
6. **Geography and portraits** reuse the pipelines proven in `promo/`:
- The map comes from Copernicus elevation data, with attribution.
- Settlement coordinates and founding dates are sourced for each era.
- - Portraits use **public-domain or CC0 photos only**. The licence is recorded automatically, a human checks the likeness, and share-alike sources are rejected.
+ - Portraits use **public-domain or CC0 photos only**. The licence is recorded automatically, a human checks the likeness, and share-alike sources are rejected. *Amended: CC BY 4.0 is accepted (owner ruling on #30, 13 October 2026), and so is CC BY-SA 4.0 (owner, 14 October 2026, `docs/oss/DECISIONS.md` D-P), whose crops are themselves CC BY-SA 4.0.*
7. **Automated content tests** run in `dotnet test` and check that:
- every file matches its schema;
- every reference resolves;
diff --git a/promo/CREDITS.md b/promo/CREDITS.md
index 24b9a1d38..01b0b703d 100644
--- a/promo/CREDITS.md
+++ b/promo/CREDITS.md
@@ -9,8 +9,8 @@ not final game art. Steam requires disclosure of AI-generated marketing assets.
Public domain: David Ben-Gurion (D597-087), Eliezer Kaplan, Moshe Sharett (Portrait), Haim-Moshe Shapira
(Moshe_Shapira.jpg), Yitzhak Gruenbaum (1948), Pinchas Rosen, Aharon Zisling, Mordechai Bentov,
Bechor-Shalom Sheetrit (Shitreet), Yehuda Leib Maimon, Peretz Bernstein, David Remez (cropped),
-Yitzhak Meir Levin. The GPO photographs of Remez and Levin are still in promo/ref/cabinet-1948-sheet.jpg; their
-in-game portraits are replaced below.
+Yitzhak Meir Levin. The GPO photographs of Remez, Levin, Shapira, Bentov and Maimon are still in
+promo/ref/cabinet-1948-sheet.jpg; their in-game portraits are replaced below.
CC0: "Moshe Dayan met mgr. A.C. Ramselaar (cropped).jpg" (1962).
## In-game portraits from US-safe sources (licence checked on 2026-10-11)
@@ -61,6 +61,34 @@ CC0: "Moshe Dayan met mgr. A.C. Ramselaar (cropped).jpg" (1962).
Identity: NLI record 997008137381905171, «דב יוסף, שר האספקה והקיצוב». Single-subject photograph. Likeness check by
the maintainer still needed.
+### D-P replacements, 14 October 2026 (licence and artist re-checked on Commons that day; owner rulings in D-P)
+Each crop is taken from the full-resolution Commons original, downscaled to 512 px tall and never upscaled
+(crop box in the original's pixels; x, y is the top-left corner).
+- Haim-Moshe Shapira: crop of Benno Rothenberg / Meitar Collection / National Library of Israel, 23 October 1952,
+ CC BY 4.0 (attribution in NOTICE):
+ https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg
+ Identity: NLI record 997008137213005171 (archive ARC. 4* 2068 / 8979), «בתצלום: טקס חלוקת פרס יעול ע"י משרד הפנים.
+ בימת הנואמים וביניהם שר הפנים משה שפירא.» The seated, moustached man on the right of the frame; not the standing
+ speaker in glasses (the box starts right of his sleeve), and not the men on the far left. Identity confirmed by the
+ owner (D-P, 14 October 2026).
+ Original 1330 x 1889; crop box x=730, y=900, w=540, h=684; output 404 x 512 (scale 0.749).
+- Mordechai Bentov: crop of Knesset photographer / Knesset Archives, between 14 February 1949 and 22 November 1965 (the
+ file's date range, his Knesset membership), CC BY-SA 4.0 (attribution in NOTICE; share-alike, so this crop is
+ CC BY-SA 4.0 too):
+ https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg
+ Identity: Knesset Archives member portrait (Knesset member code 305), donated to Commons, VRTS ticket
+ 2024112910006311. Studio profile in round glasses. Original 736 x 995 (a scanned print with a white border);
+ crop box x=30, y=26, w=684, h=918, the print inside its border; output 381 x 512 (scale 0.558).
+- Yehuda Leib Maimon: crop of Knesset photographer / Knesset Archives, between 14 February 1949 and 20 August 1951 (the
+ file's date range, his Knesset membership), CC BY-SA 4.0 (attribution in NOTICE; share-alike, so this crop is
+ CC BY-SA 4.0 too):
+ https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg
+ Identity: Knesset Archives member portrait (Knesset member code 503), donated to Commons, VRTS ticket
+ 2024112910006311. Frontal head portrait in a hat and round glasses. Original 1059 x 1393 (a scanned print with a
+ white border); crop box x=32, y=60, w=956, h=1290, the print inside its border; output 379 x 512 (scale 0.397).
+Each replaces a Government Press Office photograph (PD-Israel only, no US status). Likeness check by the maintainer
+still needed for Bentov and Maimon.
+
## Facts shown (verified 2026-10-09)
- Provisional Government (May 1948): 13 ministers and portfolios; Provisional State Council 37 members,
coalition 30 / opposition 7, Mapai 10, president Chaim Weizmann (Wikipedia: Provisional government of
diff --git a/promo/ref/people/Haim-Moshe_Shapira.jpg b/promo/ref/people/Haim-Moshe_Shapira.jpg
deleted file mode 100644
index 38ea080d4..000000000
Binary files a/promo/ref/people/Haim-Moshe_Shapira.jpg and /dev/null differ
diff --git a/promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg b/promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg
new file mode 100644
index 000000000..403f63d21
Binary files /dev/null and b/promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg differ
diff --git a/promo/ref/people/Mordechai_Bentov.jpg b/promo/ref/people/Mordechai_Bentov.jpg
deleted file mode 100644
index a497667c9..000000000
Binary files a/promo/ref/people/Mordechai_Bentov.jpg and /dev/null differ
diff --git a/promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg b/promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg
new file mode 100644
index 000000000..47c96477c
Binary files /dev/null and b/promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg differ
diff --git a/promo/ref/people/Yehuda_Leib_Maimon.jpg b/promo/ref/people/Yehuda_Leib_Maimon.jpg
deleted file mode 100644
index 20233971d..000000000
Binary files a/promo/ref/people/Yehuda_Leib_Maimon.jpg and /dev/null differ
diff --git a/promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg b/promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg
new file mode 100644
index 000000000..33d0cb730
Binary files /dev/null and b/promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg differ
diff --git a/scripts/oss/commons_licences.py b/scripts/oss/commons_licences.py
index 072236951..d53cb6b1c 100644
--- a/scripts/oss/commons_licences.py
+++ b/scripts/oss/commons_licences.py
@@ -6,8 +6,10 @@
the licence templates on the file page, and the artist). A portrait is 'verified' only when it is public domain or
CC0 AND its page carries an explicit US-status template (PD-Israel alone does not settle US copyright). A file whose page
carries an explicit Cc-by-4.0 template and a named artist is recorded as CC-BY-4.0, 'verified' only when NOTICE also
-has an attribution entry for its Commons page (owner ruling, #30). Anything else is 'owner-verify'; a licence that is
-none of these is recorded as licence 'unknown', which the release gate refuses outright.
+has an attribution entry for its Commons page (owner ruling, #30). CC BY-SA 4.0 follows the same rule with an explicit
+Cc-by-sa-4.0 template (owner ruling, 2026-10-14, D-P); its row also notes that the cropped portrait is an adaptation and
+so is itself released under CC BY-SA 4.0 (share-alike). Anything else is 'owner-verify'; a licence that is none of these
+is recorded as licence 'unknown', which the release gate refuses outright.
Usage: uv run scripts/oss/commons_licences.py (network: commons.wikimedia.org, read-only)"""
from __future__ import annotations
@@ -25,6 +27,9 @@ UA = {"User-Agent": "statecraft-israel-licence-audit/1.0 (https://github.com/eya
US_1996_TEMPLATES = {"PD-1996"}
# The dated composite tags on the Weizmann source explicitly include US expiry.
US_EXPIRED_COMPOSITES = {"PD-old-70-expired", "PD-old-70-1923"}
+# Commons artist values that name nobody: a CC BY or CC BY-SA attribution needs a named author.
+UNNAMED_ARTISTS = {"unknown", "unknown author", "author unknown", "unknown photographer", "anonymous",
+ "anonymous photographer"}
# Portrait files with no people.yaml record (promo/CREDITS.md lists Dayan as CC0).
EXTRA = [("promo/ref/people/Moshe_Dayan_1962_CC0.jpg",
"https://commons.wikimedia.org/wiki/File:Moshe_Dayan_met_mgr._A.C._Ramselaar_(cropped).jpg")]
@@ -42,18 +47,24 @@ def rule_for(path: str, source: str, licence_short: str, templates: list[str], a
names = [t.removeprefix("Template:") for t in templates]
low = licence_short.lower()
cc_by = low == "cc by 4.0" and "Cc-by-4.0" in names
+ cc_by_sa = low == "cc by-sa 4.0" and "Cc-by-sa-4.0" in names
licence = "CC0-1.0" if low.startswith("cc0") else "Public-Domain" if low.startswith(("public domain", "pd")) \
- else "CC-BY-4.0" if cc_by else "unknown"
+ else "CC-BY-4.0" if cc_by else "CC-BY-SA-4.0" if cc_by_sa else "unknown"
rule = {"glob": path, "licence": licence, "source": source, "status": "verified",
"commons": f"{licence_short}; {', '.join(names)}",
"artist": re.sub(r"<[^>]+>", "", html.unescape(artist)).strip()}
if licence == "unknown":
- rule.update(status="owner-verify", note=f"Commons licence '{licence_short}' is not public domain, CC0 or CC BY 4.0")
- elif cc_by:
- if not rule["artist"]:
- rule.update(status="owner-verify", note="CC BY 4.0 needs a named artist for the attribution")
+ rule.update(status="owner-verify", note=f"Commons licence '{licence_short}' is not public domain, CC0, CC BY 4.0 or "
+ "CC BY-SA 4.0")
+ elif cc_by or cc_by_sa:
+ name = "CC BY 4.0" if cc_by else "CC BY-SA 4.0"
+ if not rule["artist"] or rule["artist"].lower() in UNNAMED_ARTISTS:
+ rule.update(status="owner-verify", note=f"{name} needs a named artist for the attribution")
elif not attributed:
- rule.update(status="owner-verify", note="CC BY 4.0 needs an attribution entry for this file in NOTICE")
+ rule.update(status="owner-verify", note=f"{name} needs an attribution entry for this file in NOTICE")
+ elif cc_by_sa:
+ rule["note"] = ("share-alike: this cropped portrait is an adaptation, released under CC BY-SA 4.0 like its "
+ "source (LICENSING.md, NOTICE)")
elif any(n == "Not-PD-US-URAA" or n.startswith("Not-PD-US-URAA/") for n in names):
rule.update(status="owner-verify", note="Commons explicitly warns Not-PD-US-URAA: US copyright restored")
elif not any(_has_us_status(n) for n in names):
@@ -97,7 +108,7 @@ def main() -> int:
print(f"{rules[-1]['status']:13} {path} [{rules[-1]['commons']}]")
header = ("# GENERATED by scripts/oss/commons_licences.py from content/people.yaml and Wikimedia Commons. Do not edit\n"
"# by hand: re-run the script. A PD or CC0 row is 'verified' only with an explicit US-status template; a CC BY 4.0\n"
- "# row only with a Cc-by-4.0 template, a named artist and a NOTICE entry.\n")
+ "# or CC BY-SA 4.0 row only with its Cc-by-4.0 or Cc-by-sa-4.0 template, a named artist and a NOTICE entry.\n")
(ROOT / "ASSETS.portraits.yaml").write_text(
header + yaml.safe_dump({"rules": rules}, sort_keys=False, allow_unicode=True, width=120), encoding="utf-8")
return 0
diff --git a/scripts/oss/tests/test_commons_licences.py b/scripts/oss/tests/test_commons_licences.py
index 5773a923f..7703d5b99 100644
--- a/scripts/oss/tests/test_commons_licences.py
+++ b/scripts/oss/tests/test_commons_licences.py
@@ -18,10 +18,10 @@ def test_cc0_is_verified():
assert r["licence"] == "CC0-1.0" and r["status"] == "verified"
-def test_share_alike_is_recorded_as_unknown_licence():
- r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 4.0", ["Template:Cc-by-sa-4.0"], "")
+def test_an_older_share_alike_version_is_recorded_as_unknown_licence():
+ r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 3.0", ["Template:Cc-by-sa-3.0"], "Knesset photographer", attributed=True)
assert r["licence"] == "unknown" and r["status"] == "owner-verify"
- assert "not public domain, CC0 or CC BY 4.0" in r["note"]
+ assert "not public domain, CC0, CC BY 4.0 or CC BY-SA 4.0" in r["note"]
def test_explicit_us_restoration_warning_cannot_be_verified_by_nested_pd_text():
@@ -119,3 +119,43 @@ def test_cc_by_4_0_is_not_an_older_or_share_alike_version():
for short in ("CC BY 3.0", "CC BY-SA 4.0"):
r = cl.rule_for("p/a.jpg", "s", short, CC_BY, "Boris Carmi", attributed=True)
assert r["licence"] == "unknown"
+
+
+CC_BY_SA = ["Template:Cc-by-sa-4.0", "Template:Cc-by-sa-layout"]
+
+
+def test_cc_by_sa_with_artist_and_notice_entry_is_verified_with_a_share_alike_note():
+ # Owner ruling (2026-10-14, D-P): CC BY-SA 4.0 is accepted for portraits on the CC BY 4.0 terms, plus share-alike.
+ r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 4.0", CC_BY_SA, "Knesset photographer", attributed=True)
+ assert r["licence"] == "CC-BY-SA-4.0" and r["status"] == "verified" and r["artist"] == "Knesset photographer"
+ assert "share-alike" in r["note"] and "CC BY-SA 4.0" in r["note"]
+
+
+def test_cc_by_sa_without_notice_entry_needs_the_owner():
+ r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 4.0", CC_BY_SA, "Knesset photographer")
+ assert r["licence"] == "CC-BY-SA-4.0" and r["status"] == "owner-verify" and "NOTICE" in r["note"]
+
+
+def test_cc_by_sa_without_artist_needs_the_owner():
+ r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 4.0", CC_BY_SA, "", attributed=True)
+ assert r["status"] == "owner-verify" and "artist" in r["note"]
+
+
+def test_cc_by_sa_text_without_the_template_is_unknown():
+ for templates in ([], CC_BY, ["Template:Cc-by-sa-3.0"], ["Template:Cc-by-sa-layout"]):
+ r = cl.rule_for("p/a.jpg", "s", "CC BY-SA 4.0", templates, "Knesset photographer", attributed=True)
+ assert r["licence"] == "unknown" and r["status"] == "owner-verify"
+
+
+def test_cc_by_sa_template_does_not_make_a_cc_by_or_older_file_share_alike():
+ for short in ("CC BY 4.0", "CC BY-SA 3.0"):
+ r = cl.rule_for("p/a.jpg", "s", short, CC_BY_SA, "Knesset photographer", attributed=True)
+ assert r["licence"] == "unknown"
+
+
+def test_unknown_or_anonymous_is_not_a_named_artist():
+ for short, templates in (("CC BY 4.0", CC_BY), ("CC BY-SA 4.0", CC_BY_SA)):
+ for artist in ("Unknown author", "unknown", "<span>Unknown author</span>", "Anonymous", "anonymous photographer",
+ "Unknown photographer", "Author unknown"):
+ r = cl.rule_for("p/a.jpg", "s", short, templates, artist, attributed=True)
+ assert r["status"] == "owner-verify" and "artist" in r["note"], (short, artist)
diff --git a/tools/tests/test_dp_portraits.py b/tools/tests/test_dp_portraits.py
new file mode 100644
index 000000000..35ca4f5db
--- /dev/null
+++ b/tools/tests/test_dp_portraits.py
@@ -0,0 +1,107 @@
+"""D-P, 14 October 2026 (refs #30): Maimon and Bentov (Knesset Archives, CC BY-SA 4.0) and Shapira (Meitar Collection,
+CC BY 4.0) replace their Government Press Office portraits. Source, runtime crop, credit and licence record stay together,
+and each crop box is recorded and was only ever downscaled."""
+from pathlib import Path
+import re
+
+from PIL import Image
+import yaml
+
+ROOT = Path(__file__).resolve().parents[2]
+# person id: (Commons file, promo/ref source crop, focus_y, artist, people.yaml licence, ASSETS licence, Commons template,
+# crop box (x, y, w, h) in the Commons original)
+BATCH = {
+ "maimon": ("Yehuda_Leib_Maimon_(00320507).jpg", "promo/ref/people/Yehuda_Leib_Maimon_CCBYSA_Knesset.jpg", 0.6,
+ "Knesset photographer", "CC BY-SA 4.0", "CC-BY-SA-4.0", "Cc-by-sa-4.0", (32, 60, 956, 1290)),
+ "bentov": ("Mordechai_Bentov_(00330019).jpg", "promo/ref/people/Mordechai_Bentov_CCBYSA_Knesset.jpg", 0.5,
+ "Knesset photographer", "CC BY-SA 4.0", "CC-BY-SA-4.0", "Cc-by-sa-4.0", (30, 26, 684, 918)),
+ "shapira": ("Haim-Moshe_Shapira_(997008137213005171).jpg", "promo/ref/people/Haim-Moshe_Shapira_CCBY_1952.jpg", 0.37,
+ "Benno Rothenberg", "CC BY 4.0", "CC-BY-4.0", "Cc-by-4.0", (730, 900, 540, 684)),
+}
+OLD_GPO = {"promo/ref/people/Yehuda_Leib_Maimon.jpg", "promo/ref/people/Mordechai_Bentov.jpg",
+ "promo/ref/people/Haim-Moshe_Shapira.jpg"}
+PEOPLE = {p["id"]: p for p in yaml.safe_load((ROOT / "content/people.yaml").read_text(encoding="utf-8"))["people"]}
+RULES = yaml.safe_load((ROOT / "ASSETS.portraits.yaml").read_text(encoding="utf-8"))["rules"]
+
+
+def source(name):
+ return "https://commons.wikimedia.org/wiki/File:" + name
+
+
+def test_people_record_the_new_source_file_licence_and_focus():
+ for pid, (name, file, focus, _artist, licence, *_rest) in BATCH.items():
+ p = PEOPLE[pid]["portrait"]
+ assert (p["license"], p["source"], p["file"], p["focus_y"]) == (licence, source(name), file, focus)
+
+
+def test_licence_rows_are_verified_for_source_and_runtime():
+ for pid, (name, file, _focus, artist, _licence, asset_licence, template, _box) in BATCH.items():
+ for path in (file, f"unity/Assets/UI/Portraits/{pid}.jpg"):
+ r = next(r for r in RULES if r["glob"] == path)
+ assert r["licence"] == asset_licence and r["status"] == "verified" and r["source"] == source(name)
+ assert r["artist"] == artist and template in r["commons"].split("; ", 1)[1].split(", ")
+
+
+def test_share_alike_rows_say_the_crop_is_itself_cc_by_sa():
+ for pid, (_name, file, *_rest) in BATCH.items():
+ if BATCH[pid][5] != "CC-BY-SA-4.0":
+ continue
+ for path in (file, f"unity/Assets/UI/Portraits/{pid}.jpg"):
+ note = next(r for r in RULES if r["glob"] == path)["note"]
+ assert "share-alike" in note and "CC BY-SA 4.0" in note
+
+
+def test_the_old_government_press_office_files_are_gone():
+ assert not OLD_GPO & {r["glob"] for r in RULES}
+ assert not any((ROOT / g).exists() for g in OLD_GPO)
+
+
+def test_runtime_is_the_source_crop_at_512_and_never_upscaled():
+ credits = (ROOT / "promo/CREDITS.md").read_text(encoding="utf-8")
+ for pid, (_name, file, *_rest, box) in BATCH.items():
+ runtime = ROOT / f"unity/Assets/UI/Portraits/{pid}.jpg"
+ assert runtime.read_bytes() == (ROOT / file).read_bytes()
+ x, y, w, h = box
+ assert f"crop box x={x}, y={y}, w={w}, h={h}" in credits, pid
+ assert h >= 512, f"{pid}: a {h} px tall crop would be upscaled"
+ with Image.open(runtime) as image:
+ assert image.format == "JPEG" and image.height == 512 and image.width == round(w * 512 / h)
+ assert 370 <= image.width <= 420
+
+
+def test_notice_credits_each_file_and_listing_and_catalog_match():
+ notice = (ROOT / "NOTICE").read_text(encoding="utf-8")
+ catalog = (ROOT / "unity/Assets/UI/Portraits/PortraitCatalog.asset").read_text()
+ listing = (ROOT / "unity/Assets/UI/Portraits/PORTRAITS.txt").read_text()
+ for pid, (name, _file, focus, artist, licence, *_rest) in BATCH.items():
+ entry = re.search(rf"^- {pid}\.jpg: (.*?)\n (\S+)$", notice, re.M | re.S)
+ assert entry and entry.group(2) == source(name), pid
+ assert artist in entry.group(1) and licence in entry.group(1), pid
+ assert f"{pid} | {licence} | {source(name)}\n" in listing
+ block = re.search(rf" - personId: {pid}\n(.*?)(?= - personId:|\Z)", catalog, re.S).group(1)
+ assert f"focusY: {focus}" in block
+
+
+def test_licensing_and_importer_accept_cc_by_sa_portraits():
+ licensing = (ROOT / "LICENSING.md").read_text(encoding="utf-8")
+ row = next(l for l in licensing.splitlines() if l.startswith("| Portraits |"))
+ assert "CC BY-SA 4.0" in row and "share-alike" in row
+ importer = (ROOT / "unity/Assets/Editor/PortraitImport.cs").read_text(encoding="utf-8")
+ assert 'p.Portrait.License != "CC BY-SA 4.0"' in importer
+ tests = (ROOT / "unity/Assets/Tests/EditMode/PortraitImportTests.cs").read_text(encoding="utf-8")
+ assert 'p.Portrait.License == "CC BY-SA 4.0"' in tests
+
+
+def test_notice_share_alike_block_gives_the_by_sa_licence_link_and_the_share_alike_statement():
+ # The header and sentence give the licence and URI for the adapted crops, which the per-file lines do not.
+ notice = (ROOT / "NOTICE").read_text(encoding="utf-8")
+ header = "CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)"
+ first = min(notice.index("\n- maimon.jpg:"), notice.index("\n- bentov.jpg:"))
+ start = notice.rindex("\nCC BY", 0, first) + 1 # the licence header that governs these entries
+ end = notice.find("\n\n", first)
+ block = notice[start:end if end != -1 else len(notice)]
+ assert "- maimon.jpg:" in block and "- bentov.jpg:" in block, "maimon.jpg and bentov.jpg sit under one header"
+ assert block.startswith(header)
+ statement = re.sub(r"\s+", " ", block)
+ assert ("Share-alike: these cropped portraits, and the matching files in promo/ref/people/, are adaptations and are "
+ "released under CC BY-SA 4.0") in statement
diff --git a/unity/Assets/Editor/PortraitImport.cs b/unity/Assets/Editor/PortraitImport.cs
index fbf828c9e..cce9d615e 100644
--- a/unity/Assets/Editor/PortraitImport.cs
+++ b/unity/Assets/Editor/PortraitImport.cs
@@ -32,8 +32,9 @@ namespace Statecraft.Game.EditorTools
// Validate everything first, so a bad record leaves nothing half-imported.
foreach (var p in people)
{
- if (p.Portrait!.License != "Public domain" && p.Portrait.License != "CC0" && p.Portrait.License != "CC BY 4.0")
- throw new System.InvalidOperationException($"people.yaml: {p.Id} portrait licence '{p.Portrait.License}' is not public domain, CC0 or CC BY 4.0");
+ if (p.Portrait!.License != "Public domain" && p.Portrait.License != "CC0" && p.Portrait.License != "CC BY 4.0"
+ && p.Portrait.License != "CC BY-SA 4.0")
+ throw new System.InvalidOperationException($"people.yaml: {p.Id} portrait licence '{p.Portrait.License}' is not public domain, CC0, CC BY 4.0 or CC BY-SA 4.0");
var source = Path.Combine(Paths.RepoRoot, p.Portrait.File);
if (!File.Exists(source)) throw new FileNotFoundException($"people.yaml: {p.Id} portrait file missing", source);
}
@@ -53,7 +54,7 @@ namespace Statecraft.Game.EditorTools
foreach (var stale in Directory.GetFiles(Folder, "*.jpg").Select(f => f.Replace('\\', '/')).Where(f => !wanted.Contains(f)).ToList())
AssetDatabase.DeleteAsset(stale);
- var credits = new StringBuilder("# Portraits shipped in the build (copied from people.yaml portrait records; public domain, CC0 and CC BY 4.0 (attribution in NOTICE)).\n");
+ var credits = new StringBuilder("# Portraits shipped in the build (copied from people.yaml portrait records; public domain, CC0, CC BY 4.0 and CC BY-SA 4.0 (attribution in NOTICE)).\n");
var catalog = AssetDatabase.LoadAssetAtPath<PortraitCatalog>(CatalogPath);
if (catalog == null) { catalog = ScriptableObject.CreateInstance<PortraitCatalog>(); AssetDatabase.CreateAsset(catalog, CatalogPath); }
catalog.entries.Clear();
diff --git a/unity/Assets/Scripts/UI/PortraitCatalog.cs b/unity/Assets/Scripts/UI/PortraitCatalog.cs
index 75d716704..566947032 100644
--- a/unity/Assets/Scripts/UI/PortraitCatalog.cs
+++ b/unity/Assets/Scripts/UI/PortraitCatalog.cs
@@ -7,7 +7,8 @@ namespace Statecraft.Game.UI
{
/// <summary>Person id -> portrait texture (tech notes section 7): imported assets referenced from a scene object, so
/// they ship in the build's data file and need no runtime loading. Built by the editor tool PortraitImport from the
- /// public-domain, CC0 and CC BY 4.0 files people.yaml names (portrait.file, licence and source recorded there).</summary>
+ /// public-domain, CC0, CC BY 4.0 and CC BY-SA 4.0 files people.yaml names (portrait.file, licence and source
+ /// recorded there).</summary>
[CreateAssetMenu(menuName = "Statecraft/Portrait Catalog")]
public sealed class PortraitCatalog : ScriptableObject
{
diff --git a/unity/Assets/Tests/EditMode/PortraitImportTests.cs b/unity/Assets/Tests/EditMode/PortraitImportTests.cs
index be33e88c0..fd2d13c28 100644
--- a/unity/Assets/Tests/EditMode/PortraitImportTests.cs
+++ b/unity/Assets/Tests/EditMode/PortraitImportTests.cs
@@ -15,7 +15,8 @@ public class PortraitImportTests
const string Folder = "Assets/UI/Portraits";
static int ExpectedCount() => ContentLoader.Load(Paths.Content).People.Count(p => p.Portrait != null && p.Portrait.File != ""
- && (p.Portrait.License == "Public domain" || p.Portrait.License == "CC0" || p.Portrait.License == "CC BY 4.0"));
+ && (p.Portrait.License == "Public domain" || p.Portrait.License == "CC0" || p.Portrait.License == "CC BY 4.0"
+ || p.Portrait.License == "CC BY-SA 4.0"));
static void RunImport()
{
diff --git a/unity/Assets/UI/Portraits/PORTRAITS.txt b/unity/Assets/UI/Portraits/PORTRAITS.txt
index cad777e04..2ac1ba9c9 100644
--- a/unity/Assets/UI/Portraits/PORTRAITS.txt
+++ b/unity/Assets/UI/Portraits/PORTRAITS.txt
@@ -1,14 +1,14 @@
-# Portraits shipped in the build (copied from people.yaml portrait records; public domain, CC0 and CC BY 4.0 (attribution in NOTICE)).
+# Portraits shipped in the build (copied from people.yaml portrait records; public domain, CC0, CC BY 4.0 and CC BY-SA 4.0 (attribution in NOTICE)).
ben_gurion | Public domain | https://commons.wikimedia.org/wiki/File:Photograph_of_President_Truman_in_the_Oval_Office%2C_evidently_receiving_a_Menorah_as_a_gift_from_the_Prime_Minister_of..._-_NARA_-_200318.jpg
zisling | Public domain | https://commons.wikimedia.org/wiki/File:Aharon_Zisling.jpg
kaplan | Public domain | https://commons.wikimedia.org/wiki/File:Eliezer_Kaplan.jpg
sharett | CC0 | https://commons.wikimedia.org/wiki/File:Moshe_Sharett,_de_eerste_minister_van_buitenlandse_zaken_van_de_staat_Israel,_tu,_Bestanddeelnr_255-1438.jpg
-shapira | Public domain | https://commons.wikimedia.org/wiki/File:Moshe_Shapira.jpg
+shapira | CC BY 4.0 | https://commons.wikimedia.org/wiki/File:Haim-Moshe_Shapira_(997008137213005171).jpg
gruenbaum | Public domain | https://commons.wikimedia.org/wiki/File:Yitzhak_Gruenbaum_1948.jpg
rosen | Public domain | https://commons.wikimedia.org/wiki/File:Pinchas_Rosen.jpg
-bentov | Public domain | https://commons.wikimedia.org/wiki/File:MordechaiBentov.jpg
+bentov | CC BY-SA 4.0 | https://commons.wikimedia.org/wiki/File:Mordechai_Bentov_(00330019).jpg
sheetrit | Public domain | https://commons.wikimedia.org/wiki/File:Bechor-Shalom_Shitreet.jpg
-maimon | Public domain | https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon.jpg
+maimon | CC BY-SA 4.0 | https://commons.wikimedia.org/wiki/File:Yehuda_Leib_Maimon_(00320507).jpg
bernstein | Public domain | https://commons.wikimedia.org/wiki/File:Peretz_Bernstein.jpg
remez | CC BY 4.0 | https://commons.wikimedia.org/wiki/File:David_Remez_(997009452176205171).jpg
levin | CC BY 4.0 | https://commons.wikimedia.org/wiki/File:Yitzhak-Meir_Levin_(997008137163805171).jpg
diff --git a/unity/Assets/UI/Portraits/PortraitCatalog.asset b/unity/Assets/UI/Portraits/PortraitCatalog.asset
index 0b29b6d0c..48025e2f6 100644
--- a/unity/Assets/UI/Portraits/PortraitCatalog.asset
+++ b/unity/Assets/UI/Portraits/PortraitCatalog.asset
@@ -27,7 +27,7 @@ MonoBehaviour:
focusY: 0.3
- personId: shapira
image: {fileID: 2800000, guid: 01b0755a76e4d4a23843d26ac45b200f, type: 3}
- focusY: 0.42
+ focusY: 0.37
- personId: gruenbaum
image: {fileID: 2800000, guid: d570b912751fc4c1cb3fd166a568ee10, type: 3}
focusY: 0.3
@@ -36,13 +36,13 @@ MonoBehaviour:
focusY: 0.36
- personId: bentov
image: {fileID: 2800000, guid: 8a07543ce92e7451c9496ba142d9ddad, type: 3}
- focusY: 0.28
+ focusY: 0.5
- personId: sheetrit
image: {fileID: 2800000, guid: ac4fafd5b03774d24a8771d87b31f392, type: 3}
focusY: 0.18
- personId: maimon
image: {fileID: 2800000, guid: 485b4273ede0249908e89cc3b2945bb7, type: 3}
- focusY: 0.26
+ focusY: 0.6
- personId: bernstein
image: {fileID: 2800000, guid: 0a41c67eb7f774a0f896da33c391417a, type: 3}
focusY: 0.28
diff --git a/unity/Assets/UI/Portraits/bentov.jpg b/unity/Assets/UI/Portraits/bentov.jpg
index 8289870c9..47c96477c 100644
Binary files a/unity/Assets/UI/Portraits/bentov.jpg and b/unity/Assets/UI/Portraits/bentov.jpg differ
diff --git a/unity/Assets/UI/Portraits/maimon.jpg b/unity/Assets/UI/Portraits/maimon.jpg
index 1635876fc..33d0cb730 100644
Binary files a/unity/Assets/UI/Portraits/maimon.jpg and b/unity/Assets/UI/Portraits/maimon.jpg differ
diff --git a/unity/Assets/UI/Portraits/shapira.jpg b/unity/Assets/UI/Portraits/shapira.jpg
index 04f79372b..403f63d21 100644
Binary files a/unity/Assets/UI/Portraits/shapira.jpg and b/unity/Assets/UI/Portraits/shapira.jpg differ