A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
fix(oss): D-H pending and covers every concept image, release steps in order with full expect values, stale zip removed, mktemp, notices and audit updates
eyalgolan85433003b260
diff --git a/LICENSING.md b/LICENSING.mdindex aaa9d15dd..f5e22617a 100644--- a/LICENSING.md+++ b/LICENSING.md@@ -9,7 +9,7 @@ Different parts of this repository are under different licences. Where a file is| Original docs, art and UI assets | `docs/`, the root `*.md` files (except `LICENSE`), `ASSETS.yaml`, `ASSETS.portraits.yaml`, `promo/shots.json`, `promo/CREDITS.md`, `tools/README.md`, `reports/` (our own text), `research_notes/` (our own text), `unity/Assets/UI/*.uxml`, `*.uss`, `strings.en.yaml`, `unity/Assets/Materials/`, `unity/Assets/Shaders/`, `unity/Assets/UI/*.asset`, `promo/ref/geo-reference.png` | [CC BY 4.0](LICENSES/CC-BY-4.0.txt), credit "Statecraft: Israel contributors" || Unity template-derived files | `unity/Assets/Settings/` (URP assets, renderers, volume profiles), `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/`, and any Shader Graph generated from a Unity template (for example `unity/Assets/Shaders/StatecraftTerrain.shadergraph`, from "Terrain Simple") | Created from Unity's project or graph templates and edited; under the [Unity Companion License](https://unity.com/legal/licenses/unity-companion-license) (use with Unity), not MIT || AI-generated images | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.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`). |-| In-engine captures | `promo/final/09`, `10`, `docs/images/build-*.jpg`, `docs/images/social-preview.jpg`, `spikes/m0/evidence/*.jpg` | CC BY 4.0. They show the Copernicus-derived terrain; see below. |+| 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, plus one CC0 file (Moshe Dayan, 1962). Per-file sources are in `content/people.yaml` and `promo/CREDITS.md`. || Fonts | `unity/Assets/UI/Fonts/` | EB Garamond, [SIL Open Font License 1.1](unity/Assets/UI/Fonts/OFL.txt) || Terrain heightmap | `unity/Assets/StreamingAssets/map/heightmap.*`, `content/map/hexes.json` (elevations) | Derived from Copernicus GLO-30 under the Copernicus DEM licence. Required notice: "produced using Copernicus WorldDEM-30 (c) DLR e.V. 2010-2014 and (c) Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved" |diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.mdindex 7ceca508b..a85a986d6 100644--- a/THIRD-PARTY-NOTICES.md+++ b/THIRD-PARTY-NOTICES.md@@ -17,7 +17,7 @@ required attribution texts are in [`NOTICE`](NOTICE).| Wikipedia text and coordinates | cited throughout `content/` | CC BY-SA 4.0 | Attribution (source URL per entry); share-alike, which is why `content/` is CC BY-SA 4.0 || Portraits (Wikimedia Commons) | `promo/ref/people/`, `unity/Assets/UI/Portraits/` | Public domain or CC0, per file | None legally; the per-file record in `ASSETS.portraits.yaml` is kept as provenance || EB Garamond | `unity/Assets/UI/Fonts/` | SIL Open Font License 1.1 | Keep `OFL.txt` with the fonts; do not sell the fonts on their own |-| Unity template-derived settings | `unity/Assets/Settings/`, `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/` | Unity Companion License | Use with Unity; see `LICENSING.md` |+| Unity template-derived files | `unity/Assets/Settings/`, `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/`, and Shader Graphs generated from a Unity template (`unity/Assets/Shaders/StatecraftTerrain.shadergraph`) | Unity Companion License | Use with Unity; see `LICENSING.md` || AI-generated concept art | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg` | CC0 / no rights claimed (`LICENSING.md`); generator terms under owner review (D5) | Disclose as AI-generated (Steam and itch.io require it) |Code dependencies are fetched at build or run time under their own licences and are not vendored: NuGet packages indiff --git a/TRADEMARK.md b/TRADEMARK.mdindex 6845c3138..63fb58f7c 100644--- a/TRADEMARK.md+++ b/TRADEMARK.md@@ -37,9 +37,8 @@ Other companies' names that appear in this repository, and their owners, are lis`THIRD-PARTY-NOTICES.md` under "Third-party trademarks". They are used only to say truthfully what the project uses oris compared with. This repository ships none of their logos. The research notes and the image prompts name*Civilization VII* as a style reference. The game uses no Civilization assets or names. The AI concept art in-`promo/final/` and `docs/images/hero-concept-1936.jpg` was prompted in that style; it is not game art, it carries no-Civilization logo or wordmark (checked by the owner, decision D-H), and it is captioned as concept art wherever it-appears.+`promo/final/` and `docs/images/hero-concept-1936.jpg` was prompted in that style; it is not game art, and it is captioned as concept art wherever it+appears. The owner is still checking that none of it carries a Civilization logo or wordmark (decision D-H, open).## Askingdiff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 62bbbbc87..6e30d958e 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -1,24 +1,27 @@# ReleasingA release is a tagged commit on `main` with a CHANGELOG section and, from the first shared build on, a WebGL zip on the-GitHub Releases page (and, from M4, on itch.io). Steps 1–4 are a normal pull request. Steps 5–7 are owner steps.+GitHub Releases page (and, from M4, on itch.io). Steps 1–3 are a normal pull request. Steps 4–7 happen on the merged `main`, and steps 5–7 are owner steps.1. **Choose the version** (Semantic Versioning, pre-1.0 while the game is pre-release).2. **Bump every version site in one pull request:** `sim/Statecraft.Sim/SimInfo.cs` (`Version`) and`unity/ProjectSettings/ProjectSettings.asset` (`bundleVersion`). Then move the `## [Unreleased]` entries in`CHANGELOG.md` under `## [X.Y.Z] - YYYY-MM-DD` and leave an empty `## [Unreleased]` above it.`scripts/oss/tests/test_release.py::test_versions_agree` fails if the three disagree.-3. **Run the release gate** on the merged `main`: `bash scripts/oss/release_gate.sh`. It must print+3. **Merge** the pull request (squash).+4. **Run the release gate** on the merged `main` (it refuses to run elsewhere): `bash scripts/oss/release_gate.sh`. It must print`RELEASE GATE OK`. It refuses while an owner decision is open (including D10, history acknowledgement, and D11, thesensitivity review), while an asset row is `owner-verify`, while the sim's sensitivity gate refuses `content/`, orwhile the history scan shows an open secret-shape row.-4. **Merge** the pull request (squash).5. **Build and package** on the owner's machine, from the merged `main`:```bash"$UNITY" -batchmode -quit -projectPath unity -buildTarget WebGL -executeMethod Statecraft.Game.EditorTools.Build.Web -compression brotli -shareable -logFile "$PWD/unity-build-web-br.log"git checkout -- unity/Assets/Settings unity/ProjectSettings/ProjectSettings.asset- uv run tools/web_check.py unity/Builds/Web-brotli --query "golden&smoke=5" --expect "GOLDEN OK 1950" --expect "GOLDEN OK 1952" --expect "SMOKE OK 5 turns"+ uv run tools/web_check.py unity/Builds/Web-brotli --query "golden&smoke=5" \+ --expect "GOLDEN OK 1950 71e9904d0ee48083db9bbba281f3f046136482ba83ee056e48d57b62e76a5b07" \+ --expect "GOLDEN OK 1952 73590e324f19e9959a455a4da79e93d7089dfcf283c13aac02af6b0a624b9767" \+ --expect "SMOKE OK 5 turns 1948-06-19 d3fdd459ddb876bd8d775c20edd1202cf56ca7134a8ad06f873d4d92034aa5b6"bash scripts/oss/package_web.sh unity/Builds/Web-brotli unity/Builds/statecraft-israel-vX.Y.Z-web.zip```@@ -51,7 +54,7 @@ The README's screenshots are claims about the current build. Re-take them whenevand update the README to the new names). Each must show a non-sensitive moment: no unreviewed sensitive event card.3. Update the visible caption "Real screenshots from build X.Y.Z (Mn), YYYY-MM-DD." in `README.md`, and the"Is this any good?" and "Roadmap" text the change made stale.-4. Re-crop `docs/images/social-preview.jpg` (1280×640) from the new map shot. The owner re-uploads it under Settings →+4. Rebuild `docs/images/social-preview.jpg` (1280×640) from the new map shot: `sips --resampleWidth 1280 <shot> --out /tmp/sp.jpg` then `sips --padToHeightWidth 640 1280 --padColor 0B1220 /tmp/sp.jpg --out docs/images/social-preview.jpg` (padded, not cropped, so no text is cut off). The owner re-uploads it under Settings →General → Social preview. Never use concept art for the social preview.## Replacing the concept-art hero (planned)diff --git a/docs/oss/AUDIT.md b/docs/oss/AUDIT.mdindex 216c24df6..7f40534e5 100644--- a/docs/oss/AUDIT.md+++ b/docs/oss/AUDIT.md@@ -85,3 +85,7 @@ Platform evidence for why this matters is in `research_notes/Israel nation sim g|---|---|---|---|| 2026-10-11 | `scripts/oss/scan_history.py --ref main` | 248 commits, every added line (merges included), every message and identity | 8 findings, **0 open secret-shape findings**. The 8 are 7 fake or template home paths and the owner's own email in `promo/fetch_portraits.py` (commit `d42bd6ba6c`, decision D10). All 8 are listed in `docs/oss/history-accepted.tsv`. || 2026-10-11 | `scripts/oss/check_repo.py` (secrets, emails, home paths, sizes, symlinks) | the tip of `main` | OK |++## 6. Since the snapshot++Snapshot as of 2026-10-10 (sections 1 to 4). Since then: the repository is public on GitHub (it had no remote when the audit ran); the owner's email was removed from the tip of `promo/fetch_portraits.py` (it stays in history, decision D10); the `.gitignore` gaps listed in section 4 are closed (5411f02); and `promo/gen.py` reads its key from the environment only. Sections 1 to 4 above are left as they were written.diff --git a/docs/oss/DECISIONS.md b/docs/oss/DECISIONS.mdindex 73dc8f2df..6aaaa2ebe 100644--- a/docs/oss/DECISIONS.md+++ b/docs/oss/DECISIONS.md@@ -23,4 +23,4 @@ are already public. If a check fails, the file is removed from the tip with the- [ ] 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:- [ ] 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:- [ ] 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. Decided:-- [ ] D-H The hero (`docs/images/hero-concept-1936.jpg`) reproduces no Civilization VII icon, logo or wordmark (it was prompted "in the style of Civilization VII"). Owner looks. Decided:+- [ ] D-H The AI concept art reproduces no Civilization VII icon, logo or wordmark: every image in `promo/final/` (`01` to `08`) and the hero (`docs/images/hero-concept-1936.jpg`), all prompted "in the style of Civilization VII". Owner looks at each. Decided:diff --git a/scripts/oss/package_web.sh b/scripts/oss/package_web.shindex 71af7d6be..a55a383cd 100755--- a/scripts/oss/package_web.sh+++ b/scripts/oss/package_web.sh@@ -18,6 +18,7 @@ cp "$root/LICENSE" "$root/NOTICE" "$root/THIRD-PARTY-NOTICES.md" "$build/"cp "$root/LICENSES/"*.txt "$build/LICENSES/"cp "$root/unity/Assets/UI/Fonts/OFL.txt" "$build/OFL.txt"+rm -f "$zip_path" # a refusal must not leave an earlier zip behindpython3 "$packager" --build "$build" --zip "$zip_path"listing="$(unzip -Z1 "$zip_path")"diff --git a/scripts/oss/release_gate.sh b/scripts/oss/release_gate.shindex 68681a548..0e4e033f1 100755--- a/scripts/oss/release_gate.sh+++ b/scripts/oss/release_gate.sh@@ -4,6 +4,8 @@set -uo pipefailcd "$(dirname "$0")/../.."fail=0+scan_out="$(mktemp)"+trap 'rm -f "$scan_out"' EXITstep() { echo; echo "== $1"; }step "on main, clean tree"@@ -26,8 +28,8 @@ step "tools tests"uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 pytest tools/tests -q || fail=1step "history scan of main (information; rows in docs/oss/history-accepted.tsv are accepted)"-uv run scripts/oss/scan_history.py --ref main | tee /tmp/oss-release-scan.txt-if ! grep -q ' 0 open secret-shape findings' /tmp/oss-release-scan.txt; then+uv run scripts/oss/scan_history.py --ref main | tee "$scan_out"+if ! grep -q ' 0 open secret-shape findings' "$scan_out"; thenecho "OPEN SECRET-SHAPE FINDING: rotate it at its provider (owner), then add the row to docs/oss/history-accepted.tsv"fail=1fidiff --git a/scripts/oss/tests/test_policies.py b/scripts/oss/tests/test_policies.pyindex 3884f010e..1f1efe6df 100644--- a/scripts/oss/tests/test_policies.py+++ b/scripts/oss/tests/test_policies.py@@ -161,3 +161,30 @@ def test_gitignore_covers_editor_licence_and_local_files():for rule in (".env.*", "*.alf", "Unity_v*.alf", ".claude/settings.local.json", ".pytest_cache/", ".vs/",".idea/", "unity/obj/", "unity/MemoryCaptures/"):assert rule in lines, rule+++# Batch 2 fix round 1.+def test_trademark_says_the_logo_check_is_pending_and_d_h_covers_every_promo_image():+ tm = " ".join(read("TRADEMARK.md").split())+ assert "checked by the owner" not in tm and "decision D-H, open" in tm+ d_h = next(l for l in read("docs/oss/DECISIONS.md").splitlines() if "D-H" in l)+ assert d_h.startswith("- [ ] D-H") and "promo/final/" in d_h and "hero-concept-1936.jpg" in d_h+++def test_releasing_merges_before_the_gate_and_pins_the_full_expect_values():+ text = read("docs/RELEASING.md")+ assert text.index("**Merge**") < text.index("**Run the release gate**")+ det = read("docs/determinism.md")+ import re+ for expect in re.findall(r'--expect "((?:GOLDEN|SMOKE) OK [^"]* [0-9a-f]{64})"', det):+ assert f'--expect "{expect}"' in text, expect+++def test_notices_cover_shader_graph_and_spike_evidence_logs():+ assert "StatecraftTerrain.shadergraph" in read("THIRD-PARTY-NOTICES.md")+ assert "spikes/m0/evidence/" in read("LICENSING.md").replace("spikes/m0/evidence/*.jpg", "")+++def test_audit_says_what_changed_since_the_snapshot():+ text = read("docs/oss/AUDIT.md")+ assert "Snapshot as of 2026-10-10" in text and "Since then" in text and "5411f02" in textdiff --git a/scripts/oss/tests/test_release.py b/scripts/oss/tests/test_release.pyindex 540b6aa68..5d3cc77d2 100644--- a/scripts/oss/tests/test_release.py+++ b/scripts/oss/tests/test_release.py@@ -62,3 +62,15 @@ def test_versions_agree():released = re.findall(r"^## \[(\d+\.\d+\.\d+)\]", (ROOT / "CHANGELOG.md").read_text(), re.M)if released:assert released[0] == sim+++def test_a_stale_zip_does_not_survive_a_refusal(tmp_path):+ out = tmp_path / "game.zip"+ out.write_bytes(b"stale")+ r = run(tmp_path, fake_build(tmp_path), out, stub="import sys\nprint('PACKAGE REFUSED: review')\nsys.exit(1)\n")+ assert r.returncode != 0 and not out.exists()+++def test_release_gate_uses_a_temp_file_not_a_fixed_path():+ text = (ROOT / "scripts/oss/release_gate.sh").read_text()+ assert "mktemp" in text and "/tmp/oss-release-scan.txt" not in text