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.

Opening: loop the card clips after the Europe and Arab countries photographs (Refs #2126) (#2239)

Eyal Golan5d3436ccca89
diff --git a/ASSETS.yaml b/ASSETS.yaml
index 6d178d8c2..29b9812db 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -1727,7 +1727,7 @@ rules:
ai_generated: true
source: "Veo 3.1 Fast (ElevenLabs), generated 2026-10-12 (promo shot K04a, promo/demo3/clips/K04a.mp4, not in the repository; sha256 5bb6e584eb57771bef155f4dcf2be847d1a8f50302b8dbffd30723806ab4a2b9); re-encoded 2026-10-14 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed"
status: verified
- note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13): the generator terms were not checked, by the owner's choice. Shown on the law_of_return card behind the Illustration switch, labelled 'AI-generated illustration', never in place of the archival photograph. No identifiable real person (frames checked 2026-10-14)."
+ note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13): the generator terms were not checked, by the owner's choice. Shown on the law_of_return card behind the Illustration switch, labelled 'AI-generated illustration', never in place of the archival photograph. No identifiable real person (frames checked 2026-10-14). Also loops in the opening's Europe panel after its archival photograph, labelled the same way (owner ruling of 2026-11-02, 'B: A + one new Yemen shot (~2,424)'; unity/Assets/UI/Opening/opening.yaml)."
- glob: "unity/Assets/StreamingAssets/video/hula_drainage.mp4"
licence: CC0-1.0
ai_generated: true
@@ -1745,7 +1745,7 @@ rules:
ai_generated: true
source: "Seedance 2.0 (Dreamina); the Dreamina AI badge is kept, generated 2026-10-12 (promo shot A07, promo/demo2/clips/A07.mp4, not in the repository; sha256 8b3fc06d8a7836e82896a9fd09a3b874dbfdd7f9eca9e7be63f70202630af783); re-encoded 2026-10-14 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed"
status: verified
- note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13): the generator terms were not checked, by the owner's choice. Shown on the iraqi_exodus card behind the Illustration switch, labelled 'AI-generated illustration', never in place of the archival photograph. No identifiable real person (frames checked 2026-10-14)."
+ note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13): the generator terms were not checked, by the owner's choice. Shown on the iraqi_exodus card behind the Illustration switch, labelled 'AI-generated illustration', never in place of the archival photograph. No identifiable real person (frames checked 2026-10-14). Also loops in the opening's Arab countries panel after its archival photograph, labelled the same way (owner ruling of 2026-11-02, 'B: A + one new Yemen shot (~2,424)'; unity/Assets/UI/Opening/opening.yaml)."
- glob: "unity/Assets/StreamingAssets/video/ten_days.mp4"
licence: CC0-1.0
ai_generated: true
@@ -1788,6 +1788,13 @@ rules:
source: "Seedance 2.0 Fast (Dreamina, 1080p, 5 s), image-to-video from the A10 still made in Dreamina with GPT Image 2.5 Sunburst (16:9 1K, the promo still promo/final/03-gameplay-1936.png as style reference, per promo/demo2/PROMPTS.md); the Dreamina AI badge is kept, generated 2026-10-12 (promo shot A10, demo 2, promo/demo2/clips/A10.mp4, not in the repository; sha256 909f5a0693f8ebcea570ff537d77129ffcf6fa03fcedd28356192c31051fe694); encoded 2026-10-31 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed. Encoded file sha256 66b635d4dd31bb3006b5ac631655d44868e10b3283184140b7e0cf4098be2f8c"
status: verified
note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13, merged in #449): the generator terms were not checked, by the owner's choice. Owner decision of 2026-10-31 on #1564: 'Ship both clips' (the existing shot ships with the card, chosen over reviewing it first). Shown on the reparations_vote card behind the Illustration switch, labelled 'AI-generated illustration', never in place of the archival photograph. SENSITIVE: the card is tagged holocaust; sensitivity_reviewed is true in event-videos.yaml on that decision, so a shareable build may carry it (Build.cs). A crowd with umbrellas held back by a police line on a wet street before a stone building at night; no violence shown. The night and the rain are the shot's, not sourced (#1564). A generic stone building, not a reconstruction of Beit Frumin. No identifiable real person: small figures, no faces in detail (frames checked 2026-10-31). Still prompt: Use the uploaded image only as the style reference: the same hand-painted tabletop-diorama miniature look, warm golden-hour light, teal sea, amber-ochre land, tilt-shift depth of field. West Jerusalem at night in January 1952 (no city walls, no domes, no Old City in view): a modest three-storey stone building with lit windows on King George Street among other plain stone buildings, a dense crowd of small dark figures with umbrellas held back behind a line of police in the rain, wet street lamps, reflections on the asphalt, sombre blue and amber light, faces not detailed. 16:9, no text, no letters, no numbers, no labels, no interface panels, no logos, no watermark, no recognisable real person. Clip prompt: Tabletop diorama miniature of the Land of Israel in the style of a Civilization strategy game, hand-painted miniature buildings, trees and figures, warm golden-hour sunlight, teal-turquoise sea and warm amber-ochre land, gentle tilt-shift depth of field, painterly, rich natural colour, stable geometry. January 1952, Jerusalem at night: a crowd of small dark figures with umbrellas stands in the rain before a modest stone building with lit windows, held back by a quiet line of police. Rain falls, umbrellas sway, the street lamps shimmer on the wet asphalt. Nobody runs, nothing is thrown. Camera: very slow, steady push toward the building. Keep every building, coastline and object exactly where it is in the start frame; nothing morphs, nothing appears or disappears. No text, no letters, no interface, no logos - add none beyond what is already in the start frame."
+ # --- Opening clips made for the opening only (owner choice of 2026-11-02; docs/event-videos.md, "In the opening") ---
+ - glob: "unity/Assets/StreamingAssets/video/opening_yemen.mp4"
+ licence: CC0-1.0
+ ai_generated: true
+ source: "Veo 3.1 Lite (ElevenLabs), text-to-video (no start frame; the archival photograph was not an input), 16:9, 1080p (1920x1080), 4 s, 24 fps, 96 frames, sound off, prompt enhancer off, generated 2026-11-02 (opening shot O3, take 2, yemen-v2-raw.mp4, not in the repository; 5036220 B, sha256 76867fc673450c4eaeebe9660da3b5a35b3d60af91c72e574c003fcac27fc166). Cleaned 2026-11-02 (owner, 2 Nov 2026: 'Fix it in editing (Recommended)') with ffmpeg 9.0.1, every region fixed for all 96 frames since the camera and the aircraft do not move: a camera tripod in the left foreground (x 0-300, y 640-1070 of the 1920x1080 frame) covered by a feathered copy of the sand beside it in the same frame (x 330-670, y 700-1080; its head by the sand at x 100-220, y 760-840); a US star-and-bar insignia on the rear fuselage (x 1228-1300, y 486-534) covered by one still 100x76 RGBA patch at (1214,472), inpainted (OpenCV Telea) from the raw clip's frame at t=2 s (ffmpeg -ss 2 -i yemen-v2-raw.mp4 -frames:v 1 raw_mid.png; that PNG's sha256 c7156d6fef2ab4ec2493b4aa41b723ee5031ed8db3a67596421099c2c794975c) and given the fine texture of the plain fuselage 74 px to its right, alpha feathered (patch star_patch.png, not in the repository; sha256 468bd4cf258bf4394de1d11aa57c8f2ea410d13126d0e893b5fde6a5f6bea2c9, reproduced byte for byte from that frame with OpenCV 5.0.0 and numpy 2.5.4); an emblem on the fin (x 1408-1442, y 324-362) covered by a feathered copy of the fin 44 px above it. Never a blur; nothing else changed. Cleaned master H.264 CRF 12 (not in the repository; sha256 160dc3c88a12a9871cb0fc51700bb184a4ca1491578d654e21adbec00d8d2e1e), then encoded with tools/encode_event_videos.py's pinned settings (its filter_graph() and FFMPEG_VIDEO: 960x540 Lanczos cover crop, 24 fps, H.264 High CRF 28, no audio, faststart; problems() clean, 96 frames), with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); re-running that encode on the master gives the same bytes. Encoded file 417857 B, sha256 d7143e1de4a6d9be339552b4e76c33357f6fe330ad90b5828985301106aa70c6"
+ status: verified
+ note: "Decision D1: AI-only output CC0 / no rights claimed. Owner ruling D-V (2026-10-13, merged in #449): the generator terms were not checked, by the owner's choice. Owner choice of 2026-11-02: 'B: A + one new Yemen shot (~2,424)'. Take 1 (Veo 3.1 Fast) showed the wrong aircraft, a high-wing turboprop; owner, 2 Nov 2026: 'regenerate with the currect plane', so take 2 asks for the C-54/DC-4 type of the panel's photograph (Commons: Douglas C-54 Skymaster NC67548, Aden, May 1950). Why the cleanup: the tripod is a generation artefact; the Magic Carpet aircraft were civilian charters, so a US military star-and-bar is wrong for them, and the shot's avoid list bans painted emblems. Shown on the opening's Yemen panel after its archival photograph (Benno Rothenberg / Meitar / NLI, CC BY 4.0), labelled 'AI-generated illustration', never in place of it (unity/Assets/UI/Opening/opening.yaml; docs/event-videos.md). A generic unmarked DC-4/C-54-type propliner on a sandy apron, not a reconstruction of NC67548; no mountains, sea or buildings. No identifiable real person: the families are small and seen from behind (frames checked 2026-11-02). SENSITIVE: the owner reviewed the cleaned clip on 2026-11-02 ('Approve it'), so sensitivity_reviewed is true on its opening.yaml clip and a shareable build may carry it (Build.cs). Visual sources for every detail of the prompt: the shot's sourcing table (2 Nov 2026; Wikipedia Operation Magic Carpet (Yemen) oldid 1374658937, the Commons photo above, Jewish Virtual Library, JewishGen KehilaLinks). Prompt: Painterly, hand-painted cinematic look, soft brush texture, filmic 35 mm lens, gentle grain; a muted, warm, low-saturation palette close to an old sepia photograph, soft natural daylight under a pale sky with scattered clouds. Aden airport, 1949-1950: a parked, unmarked, silver Douglas C-54 Skymaster (DC-4) airliner of the 1940s: a long, rounded, cylindrical fuselage; LOW wings attached at the bottom of the fuselage; four round radial piston engines with three-bladed propellers, standing still; a single tall rounded vertical tail fin; tricycle landing gear with a nose wheel, so the fuselage sits level. It stands on a flat, pale, sandy apron that stretches to a low, level horizon, with a plain metal boarding stair against a passenger door at the rear left side of the fuselage. Wide shot, from far behind and slightly to the side: a quiet line of Yemenite Jewish families, small in the frame, walks slowly away from the camera across the sand toward the stair, carrying cloth bundles; they wear long, loose, plain garments and the women wear head coverings. A few other small figures wait in the shade under the wing. The people move calmly and naturally, steps and fabric moving gently. Everyone is seen from behind or far away; faces stay turned away or in shadow; no face is shown in close-up. The aircraft stays parked and does not move; the horizon and every object keep their place; nothing appears or disappears. Camera: locked-off on a tripod, completely static, no pan, no zoom, no shake. Calm, documentary mood. No text, no letters, no numbers, no logos, no watermark. Negative prompt: high wing, high-mounted wings, wings on top of the fuselage, turboprop, military cargo plane, C-130, rear cargo ramp, twin tail, jet, text, letters, numbers, logos, watermark, subtitles, registration numbers, airline name, livery lettering, painted emblem, eagle emblem, flags, signs, Star of David, map, face close-up, frontal faces, recognisable faces, people looking at camera, crowd crush, running, crying, distress, injury, sick people, stretchers, soldiers, guns, armed guards, barbed wire, fence, camp, tents, aircraft moving, taxiing, spinning propellers, propeller morphing, aircraft changing shape, extra engines, jet engines, modern aircraft, modern clothing, modern objects, plastic containers, suitcases with wheels, vehicles appearing, fuel truck, mountains, palm trees, sea, sliding feet, extra limbs, objects changing shape, sudden lighting change, colour flicker"
# --- Decision outcome clips: played once at End Turn for the historical order (docs/event-videos.md; owner ruling D-V) ---
- glob: "unity/Assets/StreamingAssets/video/maabarot_policy-outcome.mp4"
licence: CC0-1.0
diff --git a/changelog.d/opening-clips.md b/changelog.d/opening-clips.md
new file mode 100644
index 000000000..b258f0e41
--- /dev/null
+++ b/changelog.d/opening-clips.md
@@ -0,0 +1,8 @@
+- The opening's three panels now open on their archival photograph, then after 2 s loop a silent illustration in the
+ same frame, labelled "AI-generated illustration": the law_of_return card's immigrant ship (K04a) on Europe, the
+ iraqi_exodus card's families at Lydda (A07) on the Arab countries, and on Yemen one new shot of families walking across
+ the Aden apron to a parked, unmarked four-engined propliner, cleaned of a stray tripod and military markings. A clip
+ that fails puts the photograph back; Back, Next, Skip and Esc stop it; video stays off in the automated runs; and a
+ shareable build refuses a sensitive clip without the owner's review (owner ruling of 2 November 2026; the two card
+ clips reviewed, "Approve both", and the Yemen clip, "Approve it"). Under the clip, one caption line in English or
+ Hebrew restates the panel's own text.
diff --git a/docs/ai-disclosure.md b/docs/ai-disclosure.md
index 02a4364d3..a6e0ae59c 100644
--- a/docs/ai-disclosure.md
+++ b/docs/ai-disclosure.md
@@ -148,6 +148,7 @@ This is not a licence clearance or a completed store content survey. owner-verif
| unity/Assets/StreamingAssets/video/law_of_return.mp4 | ASSETS.yaml | Veo 3.1 Fast (ElevenLabs), generated 2026-10-12 (promo shot K04a, promo/demo3/clips/K04a.mp4, not in the repository; sha256 5bb6e584eb57771bef155f4dcf2be847d1a8f50302b8dbffd30723806ab4a2b9); re-encoded 2026-10-14 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
| unity/Assets/StreamingAssets/video/maabarot_policy-outcome.mp4 | ASSETS.yaml | Seedance 2.0 (Dreamina); the Dreamina AI badge is kept, generated 2026-10-12 (promo shot A08, promo/demo2/clips/A08.mp4, not in the repository; sha256 5f4a0d2f7280f3ca23deec059d59ef1e4ad21821ec76d719727f98fc0a5152ce); cut and re-encoded 2026-10-14 by tools/encode_event_videos.py: the steadiest 3.5 s (frames 2-85 at 24 fps, duplicate frames of the 60 fps file dropped first (decimate)), 960x540, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
| unity/Assets/StreamingAssets/video/maabarot_policy.mp4 | ASSETS.yaml | Veo 3.1 Fast (ElevenLabs), generated 2026-10-12 (promo shot W05a, promo/demo3/clips/W05a.mp4, not in the repository; sha256 b3cd6cf07004c80ee89bf679ac89608ae6edd594a172b36b566a239e983bfecc); re-encoded 2026-10-14 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
+| unity/Assets/StreamingAssets/video/opening_yemen.mp4 | ASSETS.yaml | Veo 3.1 Lite (ElevenLabs), text-to-video (no start frame; the archival photograph was not an input), 16:9, 1080p (1920x1080), 4 s, 24 fps, 96 frames, sound off, prompt enhancer off, generated 2026-11-02 (opening shot O3, take 2, yemen-v2-raw.mp4, not in the repository; 5036220 B, sha256 76867fc673450c4eaeebe9660da3b5a35b3d60af91c72e574c003fcac27fc166). Cleaned 2026-11-02 (owner, 2 Nov 2026: 'Fix it in editing (Recommended)') with ffmpeg 9.0.1, every region fixed for all 96 frames since the camera and the aircraft do not move: a camera tripod in the left foreground (x 0-300, y 640-1070 of the 1920x1080 frame) covered by a feathered copy of the sand beside it in the same frame (x 330-670, y 700-1080; its head by the sand at x 100-220, y 760-840); a US star-and-bar insignia on the rear fuselage (x 1228-1300, y 486-534) covered by one still 100x76 RGBA patch at (1214,472), inpainted (OpenCV Telea) from the raw clip's frame at t=2 s (ffmpeg -ss 2 -i yemen-v2-raw.mp4 -frames:v 1 raw_mid.png; that PNG's sha256 c7156d6fef2ab4ec2493b4aa41b723ee5031ed8db3a67596421099c2c794975c) and given the fine texture of the plain fuselage 74 px to its right, alpha feathered (patch star_patch.png, not in the repository; sha256 468bd4cf258bf4394de1d11aa57c8f2ea410d13126d0e893b5fde6a5f6bea2c9, reproduced byte for byte from that frame with OpenCV 5.0.0 and numpy 2.5.4); an emblem on the fin (x 1408-1442, y 324-362) covered by a feathered copy of the fin 44 px above it. Never a blur; nothing else changed. Cleaned master H.264 CRF 12 (not in the repository; sha256 160dc3c88a12a9871cb0fc51700bb184a4ca1491578d654e21adbec00d8d2e1e), then encoded with tools/encode_event_videos.py's pinned settings (its filter_graph() and FFMPEG_VIDEO: 960x540 Lanczos cover crop, 24 fps, H.264 High CRF 28, no audio, faststart; problems() clean, 96 frames), with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); re-running that encode on the master gives the same bytes. Encoded file 417857 B, sha256 d7143e1de4a6d9be339552b4e76c33357f6fe330ad90b5828985301106aa70c6 | verified |
| unity/Assets/StreamingAssets/video/operation_horev-outcome.mp4 | ASSETS.yaml | Seedance 2.0 (Dreamina); the Dreamina AI badge is kept, generated 2026-10-12 (promo shot A05, promo/demo2/clips/A05.mp4, not in the repository; sha256 c0725105f17ae4b9a9f91417f83e5357ba725504a737d557da380573fc6e77d0); cut and re-encoded 2026-10-14 by tools/encode_event_videos.py: the steadiest 3.5 s (frames 2-85 at 24 fps, duplicate frames of the 60 fps file dropped first (decimate)), 960x540, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
| unity/Assets/StreamingAssets/video/operation_horev.mp4 | ASSETS.yaml | Seedance 2.0 (Dreamina); the Dreamina AI badge is kept, generated 2026-10-12 (promo shot A05, promo/demo2/clips/A05.mp4, not in the repository; sha256 c0725105f17ae4b9a9f91417f83e5357ba725504a737d557da380573fc6e77d0); encoded 2026-10-20 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
| unity/Assets/StreamingAssets/video/operation_yoav.mp4 | ASSETS.yaml | Veo 3.1 Fast (ElevenLabs), generated 2026-10-12 (promo shot W04a, promo/demo3/clips/W04a.mp4, not in the repository; sha256 26bf28dae5b96170057a5b4b894eff2d80c5f81503d53f4affad228055393d91); re-encoded 2026-10-14 by tools/encode_event_videos.py: 960x540, 24 fps, H.264 CRF 28, no audio, with no burned-in caption (owner ruling of 2026-10-14: no need to say they were created by AI); nothing else changed | verified |
diff --git a/docs/event-videos.md b/docs/event-videos.md
index 79993c137..5c7be0de4 100644
--- a/docs/event-videos.md
+++ b/docs/event-videos.md
@@ -102,12 +102,49 @@ event has an outcome clip, plays that clip once, in the middle of the screen, be
a truce whose terms bar bringing in men and materiel) and law_of_return / enact (K04b, not in the plan's list and with
no recorded ruling). A replacement needs the owner's word before anything new is generated.
+## In the opening
+
+Owner ruling of 2 November 2026: "B: A + one new Yemen shot (~2,424)". Two of the opening's panels (#530) reuse a card's
+loop, and Yemen has one new shot made for it. All three follow the same rules as the cards:
+
+- **The photograph comes first.** The panel opens on its archival photograph and credit. After
+ `OpeningPresenter.PhotoHoldMs` (2 s) the clip loops, silent, in the photograph's frame. CardVideo keeps the photograph
+ until the clip's first frame.
+- **The hold.** Owner, 2 Nov 2026: "2 s automatic (Recommended)".
+- **The label.** While the clip plays, the cards' `event.ai_label` string replaces the credit, in Hebrew in the Hebrew
+ UI. The clip's alt text becomes the tooltip.
+- **The caption.** One line under the picture, shown only with the clip, as the outcome clips' caption sits under
+ theirs. Each panel's `caption:` (`text`, `text_he`, `he_review`) restates a sentence of the panel's approved text.
+ Owner, 2 Nov 2026: "Version 1, fixed (Recommended)", which is also the owner's native read of the Hebrew.
+- **Stopping and failing.** Back, Next, Skip and Esc stop the clip. A clip that fails or times out puts the photograph
+ back for the rest of the session. Video is off in the automated runs, as on the cards.
+- **The clips.** Europe uses law_of_return (K04a), and the Arab countries use iraqi_exodus (A07). Yemen uses
+ `opening_yemen.mp4` (O3), the ruling's new shot: a parked, unmarked C-54/DC-4-type propliner on the Aden apron, with
+ families walking to its stair, as in the panel's photograph. No card uses it, so it has no `event-videos.yaml` row and
+ `tools/encode_event_videos.py` does not make it; its `ASSETS.yaml` row records the whole recipe.
+- **How O3 was made.** Veo 3.1 Lite (ElevenLabs), text-to-video, 1080p, 4 s, sound off, 2 November 2026. Take 1 showed a
+ high-wing turboprop; owner, 2 Nov 2026: "regenerate with the currect plane". Take 2 had a camera tripod in the
+ foreground, a US star-and-bar on the fuselage and an emblem on the fin. The Magic Carpet aircraft were civilian
+ charters, and the shot's avoid list bans painted emblems. Owner, 2 Nov 2026: "Fix it in editing (Recommended)". The
+ camera and the aircraft do not move, so each defect is covered for all 96 frames: the tripod and the fin emblem by a
+ feathered copy of clean texture beside them in the same frame, the insignia by one still patch inpainted from the raw
+ clip's frame at t=2 s (`ffmpeg -ss 2 -i <raw> -frames:v 1`). Never a blur. The cleaned 1080p master was then encoded
+ with `tools/encode_event_videos.py`'s pinned settings (`filter_graph()` and `FFMPEG_VIDEO`; `problems()` clean). Like
+ the promo generation scripts, the cleanup scripts are not in the repository: the regions, the patch sources and both
+ SHA-256s are in the row. The owner reviewed the cleaned clip on 2 November 2026: "Approve it".
+- **The checks.** `OpeningContent.Parse` refuses a malformed row. `tools/tests/test_opening_sources.py` checks each
+ clip's file, its `ASSETS.yaml` row and its `docs/ai-disclosure.md` line, and that a reused card clip keeps the card
+ row's shot and alt text. Every opening panel is sensitive, so its clip is `sensitive: true`, and a `-shareable` build
+ refuses it until the owner sets `sensitivity_reviewed: true` (`Build.OpeningShareableRefusal`). The owner reviewed the
+ two card clips in the opening on 2 November 2026 ("Approve both") and the Yemen clip the same day ("Approve it"). A
+ clip needs its caption, and a shareable build refuses a caption whose Hebrew is not `he_review: approved`.
+
## Where things are
| What | Where |
|---|---|
| The mapping: event (and, for an outcome, option and window), file, promo shot and its SHA-256, generator, date, alt text, sensitivity flags | `unity/Assets/Resources/EventVideos/event-videos.yaml` |
-| The clips (960x540 H.264, about 0.4 to 1.5 MB each) | `unity/Assets/StreamingAssets/video/<event>.mp4`, and `<event>-outcome.mp4` for the outcome clips |
+| The clips (960x540 H.264, about 0.4 to 1.5 MB each) | `unity/Assets/StreamingAssets/video/<event>.mp4`, and `<event>-outcome.mp4` for the outcome clips, and `opening_yemen.mp4` for the opening's Yemen panel |
| The encode, pinned (no burned-in caption) | `tools/encode_event_videos.py` |
| The player: a lazy VideoPlayer playing a URL into a 960x540 RenderTexture; one for the card's loop and one for the outcome clips | `CardVideo` |
| The outcome clips at End turn | `OutcomePresenter` |
diff --git a/tools/tests/test_opening_sources.py b/tools/tests/test_opening_sources.py
index d7025b1a5..b2690aeff 100644
--- a/tools/tests/test_opening_sources.py
+++ b/tools/tests/test_opening_sources.py
@@ -5,6 +5,7 @@ the closing carry their Hebrew, all of it or none per panel, and `he_review: app
An AI reading and an in-memory fixture are never a person's sign-off.
"""
import copy
+import fnmatch
from datetime import date
from pathlib import Path
@@ -110,6 +111,90 @@ def test_photo_credit_and_review_are_checked_separately():
assert any("yemen: photo needs" in p for p in result)
+# The panels' illustration clips (owner ruling of 2 November 2026, "B: A + one new Yemen shot (~2,424)"): each `clip:`
+# names an existing file in StreamingAssets/video whose ASSETS.yaml row marks it ai_generated, with its licence, source and
+# a verified status, and which docs/ai-disclosure.md lists; a clip that is a decision card's loop keeps that row's shot and
+# alt text. The C# reader (OpeningContent.Parse) checks the row's own shape; the shareable build gates its review.
+VIDEO = REPO / "unity/Assets/StreamingAssets/video"
+EVENT_VIDEOS = REPO / "unity/Assets/Resources/EventVideos/event-videos.yaml"
+
+
+def assets_rules():
+ return yaml12.load((REPO / "ASSETS.yaml").read_text(encoding="utf-8"))["rules"]
+
+
+def clip_problems(doc, rules, disclosure, card_rows, exists=lambda name: (VIDEO / name).is_file()):
+ """Every provenance problem with the panels' clips; the first ASSETS.yaml rule whose glob matches a file is its row."""
+ result = []
+ cards = {row["file"]: row for row in card_rows}
+ for panel in doc.get("panels", []):
+ clip = panel.get("clip")
+ if clip is None:
+ continue
+ name, where = clip.get("file", ""), f"{panel.get('id')} clip"
+ if not exists(name):
+ result.append(f"{where}: {name} is not in unity/Assets/StreamingAssets/video")
+ continue
+ path = f"unity/Assets/StreamingAssets/video/{name}"
+ row = next((r for r in rules if fnmatch.fnmatchcase(path, r.get("glob", ""))), None)
+ if row is None:
+ result.append(f"{where}: {path} has no ASSETS.yaml row")
+ elif row.get("ai_generated") is not True or not row.get("licence") or not row.get("source") or row.get("status") != "verified":
+ result.append(f"{where}: its ASSETS.yaml row needs ai_generated: true, licence, source and status: verified")
+ elif f"| {row['glob']} | ASSETS.yaml |" not in disclosure:
+ result.append(f"{where}: docs/ai-disclosure.md does not list {row['glob']}")
+ card = cards.get(name)
+ if card is not None and (card.get("shot") != clip.get("shot") or card.get("alt") != clip.get("alt")):
+ result.append(f"{where}: shot and alt must match its event-videos.yaml row ({card.get('event')})")
+ return result
+
+
+def clip_inputs():
+ return (assets_rules(), (REPO / "docs/ai-disclosure.md").read_text(encoding="utf-8"),
+ yaml12.load(EVENT_VIDEOS.read_text(encoding="utf-8"))["clips"])
+
+
+def test_the_real_clips_have_their_provenance():
+ doc = actual()
+ assert [p["id"] for p in doc["panels"] if p.get("clip")] == ["europe", "arab_countries", "yemen"], "the ruling's two card loops and the new Yemen shot"
+ assert clip_problems(doc, *clip_inputs()) == []
+
+
+def test_an_unknown_clip_file_fails():
+ doc = actual()
+ doc["panels"][0]["clip"]["file"] = "no_such_clip.mp4"
+ assert any("europe clip: no_such_clip.mp4 is not in" in p for p in clip_problems(doc, *clip_inputs()))
+
+
+def test_a_clip_without_an_ai_generated_row_fails():
+ rules, disclosure, cards = clip_inputs()
+ rules = [dict(r, ai_generated=False) if r.get("glob", "").endswith("/video/law_of_return.mp4") else r for r in rules]
+ assert any("europe clip: its ASSETS.yaml row needs ai_generated" in p for p in clip_problems(actual(), rules, disclosure, cards))
+ rules = [r for r in clip_inputs()[0] if not r.get("glob", "").endswith("/video/iraqi_exodus.mp4")]
+ assert any(p.startswith("arab_countries clip:") for p in clip_problems(actual(), rules, disclosure, cards)), \
+ "without its own row it falls to a broader glob or none"
+
+
+def test_a_clip_not_in_the_disclosure_fails():
+ rules, disclosure, cards = clip_inputs()
+ disclosure = disclosure.replace("| unity/Assets/StreamingAssets/video/law_of_return.mp4 | ASSETS.yaml |", "")
+ assert any("europe clip: docs/ai-disclosure.md does not list" in p for p in clip_problems(actual(), rules, disclosure, cards))
+
+
+def test_a_reused_card_clip_keeps_its_shot_and_alt():
+ doc = actual()
+ doc["panels"][1]["clip"]["shot"] = "A08"
+ assert any("arab_countries clip: shot and alt must match" in p for p in clip_problems(doc, *clip_inputs()))
+
+
+def test_every_clip_has_its_owner_read_caption():
+ """Owner, 2 Nov 2026: "Version 1, fixed (Recommended)": one caption line per panel, shown with its clip, its Hebrew
+ read by the owner (he_review: approved)."""
+ for panel in actual()["panels"]:
+ caption = panel.get("caption") or {}
+ assert caption.get("text") and caption.get("text_he") and caption.get("he_review") == "approved", panel["id"]
+
+
def test_pending_hebrew_blocks_a_shareable_build():
for i, name in [(0, "europe"), (2, "yemen")]:
doc = reviewed_fixture()
diff --git a/unity/Assets/Editor/Build.cs b/unity/Assets/Editor/Build.cs
index 2b5905d94..b42d1c35c 100644
--- a/unity/Assets/Editor/Build.cs
+++ b/unity/Assets/Editor/Build.cs
@@ -143,7 +143,8 @@ namespace Statecraft.Game.EditorTools
/// <summary>The opening (#530) in a shareable build: its catalog must load, its three photographs must have the
/// owner's sensitivity review, as event photographs do, and its text must be reviewed with every source checked
/// (owner, "Photos and text"), so a shareable build carries neither draft photographs nor draft text. Its Hebrew
- /// too: every panel and the closing, read by a native speaker (owner, 1 Nov 2026, "Translate to Hebrew").</summary>
+ /// too: every panel and the closing, read by a native speaker (owner, 1 Nov 2026, "Translate to Hebrew"). A sensitive
+ /// clip needs the owner's sensitivity review too, as the cards' clips do, and its caption's Hebrew a native read.</summary>
public static string? OpeningShareableRefusal(OpeningContent? opening)
{
if (opening == null) return "the opening catalog is missing or did not load (" + OpeningCatalogPath + ")";
@@ -160,6 +161,12 @@ namespace Statecraft.Game.EditorTools
reasons.Add("the opening's Hebrew needs a native read (" + OpeningContent.SourcePath
+ ", title_he, text_he and country_he on each panel and text_he on the closing, each with he_review: "
+ OpeningContent.HeApproved + ")");
+ if (!data.ClipsReviewed)
+ reasons.Add("an opening clip needs the owner's sensitivity review (" + OpeningContent.SourcePath
+ + ", sensitivity_reviewed on its clip; see docs/event-videos.md)");
+ if (!data.CaptionsReviewed)
+ reasons.Add("an opening clip's caption needs its Hebrew read by a native speaker (" + OpeningContent.SourcePath
+ + ", he_review: " + OpeningContent.HeApproved + " on its caption)");
return reasons.Count == 0 ? null : string.Join("; ", reasons);
}
catch (InvalidOperationException e) { return "the opening cannot be read: " + e.Message; }
diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.cs
index e44ee84ec..5348e0a35 100644
--- a/unity/Assets/Scripts/UI/GameRoot.cs
+++ b/unity/Assets/Scripts/UI/GameRoot.cs
@@ -569,6 +569,7 @@ namespace Statecraft.Game.UI
// The opening (#530): three sourced stills after New Game and before the first turn, skippable, and replayable
// from the start screen. It reads no sim state. A player build shows it only once its text and photographs are
// reviewed (OpeningContent.MayPresent); the Editor shows the draft with a visible preview label, for QA.
+ // A panel with a clip plays it after its photograph (owner ruling of 2 November 2026, OpeningPresenter).
var replayOpening = root.Q<Button>("start-opening-replay");
replayOpening.style.display = DisplayStyle.None;
if (enableOpening && OpeningContent.Load() is OpeningContent openingSource)
@@ -585,7 +586,8 @@ namespace Statecraft.Game.UI
// the start screen. Closing the scene disposes it after the camera is gone, hence the null check.
opening = Own(new OpeningPresenter(root, openingSource, openingData, text,
shown => { if (cameraController != null) cameraController.enabled = !shown && start?.IsOpen != true; },
- replay => { if (!replay) advisor?.NewGame(); }));
+ replay => { if (!replay) advisor?.NewGame(); },
+ video == null ? null : Own(new CardVideo()))); // its own player: no clip in the automated runs either
replayOpening.text = text["opening.replay"];
replayOpening.style.display = DisplayStyle.Flex;
Action replayClick = () => { if (start?.IsOpen == true) opening?.Show(replay: true); };
diff --git a/unity/Assets/Scripts/UI/OpeningContent.cs b/unity/Assets/Scripts/UI/OpeningContent.cs
index 3c7a2f2d3..6721a0bdf 100644
--- a/unity/Assets/Scripts/UI/OpeningContent.cs
+++ b/unity/Assets/Scripts/UI/OpeningContent.cs
@@ -18,7 +18,7 @@ namespace Statecraft.Game.UI
public TextAsset source = null!;
public Texture2D[] photos = Array.Empty<Texture2D>();
public static OpeningContent? Load() => Resources.Load<OpeningContent>(ResourcePath);
- /// <summary>he_review: the Hebrew is an agent draft until a native speaker who did not write it has read it.</summary>
+ /// <summary>he_review: the Hebrew is a draft until a native speaker who did not write it has read it.</summary>
public const string HePending = "pending", HeApproved = "approved";
public sealed class Source
@@ -51,6 +51,28 @@ namespace Statecraft.Game.UI
public bool SensitivityReviewed { get; set; }
public string Note { get; set; } = "";
}
+ /// <summary>A panel's optional illustration loop (owner ruling of 2 November 2026, "B: A + one new Yemen shot
+ /// (~2,424)"): a silent clip already in StreamingAssets/video, played in the photograph's frame after the photograph
+ /// (OpeningPresenter) and labelled "AI-generated illustration". Its provenance is its ASSETS.yaml row
+ /// (tools/tests/test_opening_sources.py).</summary>
+ public sealed class Clip
+ {
+ public string File { get; set; } = "";
+ public string Shot { get; set; } = "";
+ public string Alt { get; set; } = "";
+ public bool AiGenerated { get; set; }
+ public bool Sensitive { get; set; }
+ public bool SensitivityReviewed { get; set; }
+ }
+ /// <summary>The one line shown under a panel's clip while it plays, in English and Hebrew (owner, 2 Nov 2026: "Version
+ /// 1, fixed (Recommended)"). Its facts are the panel's own approved text.</summary>
+ public sealed class Caption
+ {
+ public string Text { get; set; } = "";
+ public string TextHe { get; set; } = "";
+ public string HeReview { get; set; } = "";
+ public bool HebrewApproved => !string.IsNullOrWhiteSpace(TextHe) && HeReview == HeApproved;
+ }
public class Paragraph
{
public string Text { get; set; } = "";
@@ -70,6 +92,8 @@ namespace Statecraft.Game.UI
public string? TitleHe { get; set; }
public List<Arrival> Arrivals { get; set; } = new List<Arrival>();
public Image Image { get; set; } = new Image();
+ public Clip? Clip { get; set; }
+ public Caption? Caption { get; set; }
public override IEnumerable<string?> HebrewFields =>
base.HebrewFields.Append(TitleHe).Concat((Arrivals ?? new List<Arrival>()).Select(a => a?.CountryHe));
}
@@ -87,6 +111,10 @@ namespace Statecraft.Game.UI
public bool HebrewReviewed => Closing != null && Closing.HebrewApproved
&& Panels != null && Panels.Count == 3 && Panels.All(p => p != null && p.HebrewApproved);
public bool Reviewed => PhotosReviewed && TextReviewed && HebrewReviewed;
+ /// <summary>Every sensitive clip has the owner's sensitivity review (a shareable build refuses one without it).</summary>
+ public bool ClipsReviewed => Panels != null && Panels.All(p => p?.Clip == null || !p.Clip.Sensitive || p.Clip.SensitivityReviewed);
+ /// <summary>Every shown clip's caption has its Hebrew read by a native speaker.</summary>
+ public bool CaptionsReviewed => Panels != null && Panels.All(p => p?.Clip == null || p.Caption != null && p.Caption.HebrewApproved);
}
/// <summary>The approved three-panel structure; unknown or repeated YAML fields fail closed.</summary>
@@ -119,11 +147,36 @@ namespace Statecraft.Game.UI
if (p.Image.File != "opening_" + p.Id + ".jpg" || string.IsNullOrWhiteSpace(p.Image.Credit)
|| string.IsNullOrWhiteSpace(p.Image.Alt))
throw new InvalidOperationException(SourcePath + ": photograph or credit missing for " + p.Id);
+ foreach (var p in doc.Panels.Where(p => p.Clip != null))
+ if (ClipProblem(p) is string problem) throw new InvalidOperationException(SourcePath + ": " + p.Id + "'s clip: " + problem);
+ foreach (var p in doc.Panels.Where(p => p.Caption != null))
+ if (string.IsNullOrWhiteSpace(p.Caption!.Text) || string.IsNullOrWhiteSpace(p.Caption.TextHe)
+ || p.Caption.HeReview != HePending && p.Caption.HeReview != HeApproved)
+ throw new InvalidOperationException(SourcePath + ": " + p.Id + "'s caption needs text, text_he and he_review: "
+ + HePending + " or " + HeApproved);
return doc;
}
catch (YamlDotNet.Core.YamlException e) { throw new InvalidOperationException(SourcePath + ": " + e.Message, e); }
}
+ /// <summary>Why a panel's clip row is malformed, or null: a bare .mp4 name in StreamingAssets/video, its shot, an alt
+ /// text that says it is an illustration, ai_generated: true, sensitive like its photograph, and a review only of
+ /// what is sensitive (the event-videos.yaml rules).</summary>
+ static string? ClipProblem(Panel p)
+ {
+ var clip = p.Clip!;
+ if (p.Caption == null) return "a clip is shown with its panel's caption (caption: text, text_he, he_review)";
+ if (!System.Text.RegularExpressions.Regex.IsMatch(clip.File ?? "", "^[a-z0-9_-]+\\.mp4$"))
+ return "file must be the bare name of an .mp4 in StreamingAssets/video (got '" + clip.File + "')";
+ if (string.IsNullOrWhiteSpace(clip.Shot)) return "shot missing";
+ if (clip.Alt == null || !clip.Alt.StartsWith("Illustration: ", StringComparison.Ordinal) || clip.Alt.Length < 30)
+ return "alt text must start 'Illustration: ' and say what it shows";
+ if (!clip.AiGenerated) return "ai_generated must be true";
+ if (p.Image.Sensitive && !clip.Sensitive) return "the photograph is sensitive, so its clip must be sensitive: true";
+ if (clip.SensitivityReviewed && !clip.Sensitive) return "sensitivity_reviewed without sensitive";
+ return null;
+ }
+
public Document Read()
{
if (source == null) throw new InvalidOperationException(SourcePath + ": source is not assigned");
diff --git a/unity/Assets/Scripts/UI/OpeningPresenter.cs b/unity/Assets/Scripts/UI/OpeningPresenter.cs
index 72233f57f..2f1fdc4ce 100644
--- a/unity/Assets/Scripts/UI/OpeningPresenter.cs
+++ b/unity/Assets/Scripts/UI/OpeningPresenter.cs
@@ -1,5 +1,6 @@
#nullable enable
using System;
+using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using UnityEngine;
@@ -7,14 +8,20 @@ using UnityEngine.UIElements;
namespace Statecraft.Game.UI
{
- /// <summary>#530: three sourced stills and a closing line. No bridge, commands, RNG or save access.</summary>
+ /// <summary>#530: three sourced stills and a closing line. No bridge, commands, RNG or save access. A panel with a clip
+ /// (opening.yaml) holds its photograph for PhotoHoldMs, then loops the clip silently in the same frame, labelled
+ /// "AI-generated illustration" (owner ruling of 2 November 2026, "B: A + one new Yemen shot (~2,424)";
+ /// docs/event-videos.md).</summary>
public sealed class OpeningPresenter : IDisposable
{
public const string OpenClass = "opening-open";
+ /// <summary>How long a panel shows its archival photograph before its clip starts: the photograph always comes first
+ /// (owner, 2 Nov 2026: "2 s automatic (Recommended)").</summary>
+ public const long PhotoHoldMs = 2000;
/// <summary>Left to right and left-aligned in either UI (Statecraft.uss): what is shown in English.</summary>
public const string SourceEnglishClass = "opening-source-en";
readonly VisualElement root, layer, photo;
- readonly Label title, body, arrivals, closing, credit, count, preview;
+ readonly Label title, body, arrivals, closing, credit, count, preview, caption;
readonly Button next, back, skip;
readonly ScrollView scroll;
readonly OpeningContent catalog;
@@ -26,23 +33,32 @@ namespace Statecraft.Game.UI
readonly EventCallback<NavigationCancelEvent> onCancel;
readonly EventCallback<NavigationMoveEvent> onMove;
readonly PressSource presses;
+ readonly CardVideo? video;
+ /// <summary>The panels whose clip failed this session: they keep their photograph.</summary>
+ readonly HashSet<string> failed = new HashSet<string>();
+ IVisualElementScheduledItem? hold;
bool replay, disposed;
int closedFrame = -1;
public int Index { get; private set; }
public bool IsOpen { get; private set; }
public bool ClosedThisFrame => closedFrame == Time.frameCount;
public bool HoldsThePointer => IsOpen || ClosedThisFrame;
+ /// <summary>True while the shown panel holds its photograph before its clip.</summary>
+ public bool ClipWaiting => hold != null;
+ /// <param name="video">The clips' player, or null when video is off (CardVideo.ForcedOff): then every panel shows
+ /// only its photograph.</param>
public OpeningPresenter(VisualElement root, OpeningContent catalog, OpeningContent.Document data, UiText text,
- Action<bool> shownChanged, Action<bool> finished)
+ Action<bool> shownChanged, Action<bool> finished, CardVideo? video = null)
{
- this.root = root.Q("root") ?? root; this.catalog = catalog; this.data = data; this.text = text;
+ this.root = root.Q("root") ?? root; this.catalog = catalog; this.data = data; this.text = text; this.video = video;
hebrew = text["ui.lang"] == UiLanguage.Hebrew;
this.shownChanged = shownChanged; this.finished = finished;
layer = root.Q("opening-layer"); photo = layer.Q("opening-photo");
title = layer.Q<Label>("opening-title"); body = layer.Q<Label>("opening-text");
arrivals = layer.Q<Label>("opening-arrivals"); closing = layer.Q<Label>("opening-closing"); credit = layer.Q<Label>("opening-credit");
count = layer.Q<Label>("opening-count"); preview = layer.Q<Label>("opening-preview");
+ caption = layer.Q<Label>("opening-caption"); caption.style.display = DisplayStyle.None;
scroll = layer.Q<ScrollView>("opening-scroll");
next = layer.Q<Button>("opening-next"); back = layer.Q<Button>("opening-back"); skip = layer.Q<Button>("opening-skip");
back.text = text["opening.back"]; skip.text = text["opening.skip"];
@@ -85,9 +101,13 @@ namespace Statecraft.Game.UI
bool he = hebrew && panel.HasHebrew, heClosing = hebrew && data.Closing.HasHebrew;
Say(title, he ? panel.TitleHe! : panel.Title, he);
Say(body, he ? panel.TextHe! : panel.Text, he);
- photo.style.backgroundImage = new StyleBackground(catalog.photos[Index]);
- photo.tooltip = panel.Image.Alt;
- credit.text = panel.Image.Credit;
+ StopClip();
+ ShowPhoto();
+ if (video != null && panel.Clip != null && !failed.Contains(panel.Id))
+ {
+ int at = Index;
+ hold = layer.schedule.Execute(() => { if (IsOpen && Index == at) HoldElapsed(); }).StartingIn(PhotoHoldMs);
+ }
Say(arrivals, string.Join(" · ", panel.Arrivals.Select(a =>
(he ? a.CountryHe : a.Country) + ": " + a.Count.ToString("N0", CultureInfo.InvariantCulture))), he);
Say(closing, last ? (heClosing ? data.Closing.TextHe! : data.Closing.Text) : "", heClosing);
@@ -98,6 +118,60 @@ namespace Statecraft.Game.UI
scroll.scrollOffset = Vector2.zero;
}
+ /// <summary>The shown panel's photograph, its English credit line and its alt text as the tooltip.</summary>
+ void ShowPhoto()
+ {
+ var panel = data.Panels[Index];
+ photo.style.backgroundImage = new StyleBackground(catalog.photos[Index]);
+ photo.tooltip = panel.Image.Alt;
+ SetCredit(panel.Image.Credit, english: true);
+ caption.text = ""; caption.style.display = DisplayStyle.None;
+ }
+
+ /// <summary>The credit line: the photograph's English credit, or the clip's label in the UI's language.</summary>
+ void SetCredit(string words, bool english)
+ {
+ credit.text = words;
+ credit.languageDirection = english || !hebrew ? LanguageDirection.LTR : LanguageDirection.RTL;
+ credit.EnableInClassList(SourceEnglishClass, english);
+ }
+
+ /// <summary>The photograph's hold is over (test seam: what the scheduled hold calls): the shown panel's clip plays in
+ /// the photograph's frame, labelled with the cards' "AI-generated illustration" string and described by its own alt
+ /// text. CardVideo keeps the photograph until the clip's first frame; a clip that fails or times out puts the
+ /// photograph back for the rest of the session.</summary>
+ internal void HoldElapsed()
+ {
+ hold?.Pause(); hold = null;
+ if (!IsOpen || video == null) return;
+ var panel = data.Panels[Index];
+ if (panel.Clip == null || failed.Contains(panel.Id)) return;
+ SetCredit(text["event.ai_label"], english: false);
+ photo.tooltip = panel.Clip.Alt;
+ // The panel's caption line under the clip, as the outcome clips have theirs under the picture: in Hebrew once
+ // a native speaker has read it, else in English.
+ if (panel.Caption is OpeningContent.Caption line) // Parse requires one with every clip
+ {
+ bool he = hebrew && line.HebrewApproved;
+ caption.text = he ? line.TextHe : line.Text;
+ caption.languageDirection = he ? LanguageDirection.RTL : LanguageDirection.LTR;
+ caption.style.display = DisplayStyle.Flex;
+ }
+ var id = panel.Id;
+ video.Play(CardVideo.Url(panel.Clip.File), photo, _ =>
+ {
+ failed.Add(id);
+ if (IsOpen && data.Panels[Index].Id == id) ShowPhoto();
+ });
+ }
+
+ /// <summary>Stops the clip, or its pending start; the caller puts the photograph back.</summary>
+ void StopClip()
+ {
+ hold?.Pause(); hold = null;
+ if (video?.Current != null) video.Stop();
+ }
+
/// <summary>A prose label's words, with their direction and style: Hebrew right to left and set from the right like
/// the rest of the Hebrew UI; English left to right and left-aligned (SourceEnglishClass) in either UI.</summary>
static void Say(Label label, string words, bool hebrew)
@@ -120,6 +194,7 @@ namespace Statecraft.Game.UI
{
if (!IsOpen) return;
IsOpen = false; closedFrame = Time.frameCount;
+ StopClip();
layer.style.display = DisplayStyle.None; root.RemoveFromClassList(OpenClass);
ScreenNav.DisableCovered(root); shownChanged(false);
if (finish && presses.ByKeyboard)
diff --git a/unity/Assets/StreamingAssets/video/opening_yemen.mp4 b/unity/Assets/StreamingAssets/video/opening_yemen.mp4
new file mode 100644
index 000000000..85c75d651
Binary files /dev/null and b/unity/Assets/StreamingAssets/video/opening_yemen.mp4 differ
diff --git a/unity/Assets/StreamingAssets/video/opening_yemen.mp4.meta b/unity/Assets/StreamingAssets/video/opening_yemen.mp4.meta
new file mode 100644
index 000000000..28983d371
--- /dev/null
+++ b/unity/Assets/StreamingAssets/video/opening_yemen.mp4.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: f6a7c60a6ddd4f8a84ad511bbe797c15
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/unity/Assets/Tests/EditMode/EventVideoTests.cs b/unity/Assets/Tests/EditMode/EventVideoTests.cs
index 6f15c7a23..959f60171 100644
--- a/unity/Assets/Tests/EditMode/EventVideoTests.cs
+++ b/unity/Assets/Tests/EditMode/EventVideoTests.cs
@@ -34,10 +34,13 @@ public class EventVideoTests
var problems = EventVideoMapping.Problems(rows, C, id => Photos.Find(id) != null, f => File.Exists(Path.Combine(EventVideoMapping.ClipFolder, f)));
Assert.IsEmpty(problems, string.Join("\n", problems));
Assert.IsNotEmpty(EventVideoMapping.Load(), "the game finds the mapping in Resources");
- // Every file in the folder has a row (no stray clip ships).
+ // Every file in the folder has a row (no stray clip ships): here, or an opening panel's clip (OpeningClipTests).
var files = Directory.GetFiles(EventVideoMapping.ClipFolder, "*.mp4").Select(Path.GetFileName).OrderBy(x => x).ToArray();
var outcomes = EventVideoMapping.ParseOutcomes(File.ReadAllText(EventVideoMapping.Path)); // the End Turn clips (OutcomeClipTests)
- CollectionAssert.AreEqual(rows.Concat(outcomes).Select(r => r.File).OrderBy(x => x).ToArray(), files);
+ var mapped = rows.Concat(outcomes).Select(r => r.File).ToList();
+ var openingOnly = AssetDatabase.LoadAssetAtPath<OpeningContent>("Assets/Resources/OpeningContent.asset").Read().Panels
+ .Where(p => p.Clip != null).Select(p => p.Clip!.File).Except(mapped); // law_of_return and iraqi_exodus are card rows
+ CollectionAssert.AreEqual(mapped.Concat(openingOnly).OrderBy(x => x).ToArray(), files);
}
[Test]
diff --git a/unity/Assets/Tests/EditMode/OpeningBuildGateTests.cs b/unity/Assets/Tests/EditMode/OpeningBuildGateTests.cs
index 6de4d872c..22b0bddac 100644
--- a/unity/Assets/Tests/EditMode/OpeningBuildGateTests.cs
+++ b/unity/Assets/Tests/EditMode/OpeningBuildGateTests.cs
@@ -58,6 +58,7 @@ public class OpeningBuildGateTests
{
var image = (YamlMappingNode)Get(panel, "image");
Set(image, "sensitive", "true"); Set(image, "sensitivity_reviewed", "true");
+ if (panel.Children.TryGetValue(new YamlScalarNode("clip"), out var clip)) Set((YamlMappingNode)clip, "sensitivity_reviewed", "true");
}
foreach (var paragraph in Panels(doc).Append((YamlMappingNode)Get(doc, "closing"))) Set(paragraph, "he_review", "approved");
change?.Invoke(doc);
@@ -118,6 +119,25 @@ public class OpeningBuildGateTests
Assert.IsNotNull(gate.Invoke(null, new object?[] { damaged }), gap + " must not become shareable");
}
+ [Test]
+ public void AnUnreviewedSensitiveClipRefuses()
+ {
+ var gate = Require("OpeningShareableRefusal");
+ Assert.IsNull(gate.Invoke(null, new object?[] { Fixture() }), "precondition: the reviewed fixture passes");
+ var unreviewed = Fixture(doc => Set((YamlMappingNode)Get(Panels(doc)[1], "clip"), "sensitivity_reviewed", "false"));
+ Assert.IsTrue(unreviewed.Read().Reviewed, "precondition: photographs and text reviewed, so only the clip is gated");
+ Assert.IsFalse(unreviewed.Read().ClipsReviewed);
+ StringAssert.Contains("opening clip", (string?)gate.Invoke(null, new object?[] { unreviewed }) ?? "",
+ "a sensitive clip without the owner's review must not reach a shareable build");
+ var yemen = Fixture(doc => Set((YamlMappingNode)Get(Panels(doc)[2], "clip"), "sensitivity_reviewed", "false"));
+ StringAssert.Contains("opening clip", (string?)gate.Invoke(null, new object?[] { yemen }) ?? "",
+ "the new Yemen shot (O3) is gated the same way as the reused card clips");
+ var unread = Fixture(doc => Set((YamlMappingNode)Get(Panels(doc)[0], "caption"), "he_review", "pending"));
+ Assert.IsFalse(unread.Read().CaptionsReviewed);
+ StringAssert.Contains("caption", (string?)gate.Invoke(null, new object?[] { unread }) ?? "",
+ "a clip's caption with unread Hebrew must not reach a shareable build");
+ }
+
[Test]
public void TheManifestListsTheThreeOpeningPhotosAndIsNotShareableWhileOneIsUnreviewed()
{
diff --git a/unity/Assets/Tests/EditMode/OpeningClipTests.cs b/unity/Assets/Tests/EditMode/OpeningClipTests.cs
new file mode 100644
index 000000000..fcb28dff5
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/OpeningClipTests.cs
@@ -0,0 +1,243 @@
+#nullable enable
+using System;
+using System.Linq;
+using System.Reflection;
+using NUnit.Framework;
+using Statecraft.Game.UI;
+using UnityEditor;
+using UnityEngine;
+using UnityEngine.TestTools;
+using UnityEngine.UIElements;
+
+/// <summary>The opening's illustration clips (owner ruling of 2 November 2026, "B: A + one new Yemen shot (~2,424)";
+/// docs/event-videos.md): a panel with a clip opens on its archival photograph, and only after the photograph's hold plays
+/// the clip in the same frame, labelled "AI-generated illustration" from the cards' own string; every shipped panel has one
+/// (Yemen's is the new shot, O3), and a panel without one shows only its photograph; a clip that fails puts the
+/// photograph back; changing or closing the panel stops the clip; with video off (CardVideo.ForcedOff: GameRoot passes no
+/// player) nothing plays. The clip rows' provenance (the file, its ASSETS.yaml row and the card row it reuses) is checked
+/// by tools/tests/test_opening_sources.py, which CI runs.</summary>
+public class OpeningClipTests
+{
+ static OpeningContent Asset => AssetDatabase.LoadAssetAtPath<OpeningContent>("Assets/Resources/OpeningContent.asset");
+ static UiText Text(string lang) => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(
+ "Assets/UI/strings." + lang + ".yaml").text);
+
+ sealed class Rig : IDisposable
+ {
+ public readonly UiTestKit Ui = new UiTestKit();
+ public readonly CardVideo? Video;
+ public readonly OpeningContent.Document Data;
+ public readonly OpeningPresenter Opening;
+ public Rig(string lang = "en", bool video = true)
+ {
+ Data = Asset.Read();
+ Video = video ? new CardVideo() : null;
+ Opening = new OpeningPresenter(Ui.Root, Asset, Data, Text(lang), _ => { }, _ => { }, Video);
+ }
+ public Label Credit => Ui.Q<Label>("opening-credit");
+ public Label Caption => Ui.Q<Label>("opening-caption");
+ public bool CaptionShown => Caption.style.display.value == DisplayStyle.Flex;
+ public VisualElement Photo => Ui.Q<VisualElement>("opening-photo");
+ public Texture2D? Background => Photo.style.backgroundImage.value.texture;
+ public void Dispose() { Opening.Dispose(); Video?.Dispose(); Ui.Dispose(); }
+ }
+
+ static void Fail(CardVideo video) =>
+ typeof(CardVideo).GetMethod("Fail", BindingFlags.NonPublic | BindingFlags.Instance)!.Invoke(video, new object[] { "simulated error" });
+
+ [SetUp]
+ public void QuietVideoPlayer() => LogAssert.ignoreFailingMessages = true; // the edit-mode VideoPlayer may log while it prepares
+
+ [Test]
+ public void TheShippedPanelsCarryTheRuledClips()
+ {
+ var panels = Asset.Read().Panels;
+ Assert.AreEqual("law_of_return.mp4", panels[0].Clip?.File, "Europe reuses the law_of_return card's loop (K04a)");
+ Assert.AreEqual("K04a", panels[0].Clip?.Shot);
+ Assert.AreEqual("iraqi_exodus.mp4", panels[1].Clip?.File, "the Arab countries reuse the iraqi_exodus card's loop (A07)");
+ Assert.AreEqual("A07", panels[1].Clip?.Shot);
+ Assert.AreEqual("Operation Ezra and Nehemiah brought some 120,000 Iraqi Jews to Israel.", panels[1].Caption?.Text,
+ "owner, 2 Nov 2026: \"Change to 'brought' (Recommended)\"");
+ Assert.AreEqual("opening_yemen.mp4", panels[2].Clip?.File, "Yemen has the ruling's one new shot, made for the opening");
+ Assert.AreEqual("O3", panels[2].Clip?.Shot);
+ var data = Asset.Read();
+ Assert.IsTrue(data.ClipsReviewed, "owner, 2 Nov 2026: \"Approve both\" (the card clips) and \"Approve it\" (Yemen)");
+ Assert.IsTrue(panels.All(p => p.Clip!.Sensitive && p.Clip.SensitivityReviewed), "all three stay sensitive: true, now reviewed");
+ Assert.IsTrue(data.CaptionsReviewed, "owner, 2 Nov 2026: \"Version 1, fixed (Recommended)\"");
+ Assert.IsTrue(panels.All(p => p.Caption != null && p.Caption.HebrewApproved), "a caption for each panel");
+ }
+
+ [Test]
+ public void APanelWithAClipShowsThePhotographFirstThenTheLabelAndTheClip()
+ {
+ using var r = new Rig();
+ r.Opening.Show(replay: false);
+ var panel = r.Data.Panels[0];
+ Assert.AreSame(Asset.photos[0], r.Background, "the panel opens on its archival photograph");
+ Assert.AreEqual(panel.Image.Credit, r.Credit.text, "with its credit line");
+ Assert.AreEqual(panel.Image.Alt, r.Photo.tooltip);
+ Assert.IsFalse(r.CaptionShown, "no caption with the photograph");
+ Assert.IsNull(r.Video!.Current, "no clip during the photograph's hold");
+ Assert.IsTrue(r.Opening.ClipWaiting, "the clip waits for the hold");
+ Assert.Greater(OpeningPresenter.PhotoHoldMs, 0, "the photograph is held before the clip");
+
+ r.Opening.HoldElapsed(); // what the hold's scheduled item calls
+ Assert.AreEqual(CardVideo.Url(panel.Clip!.File), r.Video.Current, "the clip plays in the same frame");
+ Assert.AreEqual(Text("en")["event.ai_label"], r.Credit.text, "labelled with the cards' own string");
+ Assert.AreEqual("AI-generated illustration", r.Credit.text);
+ Assert.AreEqual(panel.Clip.Alt, r.Photo.tooltip, "the clip's alt text");
+ Assert.AreSame(Asset.photos[0], r.Background, "the photograph stays until the clip's first frame (CardVideo)");
+ Assert.IsFalse(r.Opening.ClipWaiting);
+ Assert.IsTrue(r.CaptionShown, "the panel's caption shows with the clip");
+ Assert.AreEqual("About two-thirds of Europe's displaced persons came to Israel.", r.Caption.text);
+ Assert.AreEqual(LanguageDirection.LTR, r.Caption.languageDirection);
+ }
+
+ [Test]
+ public void APanelWithoutAClipShowsOnlyThePhotograph()
+ {
+ using var r = new Rig();
+ r.Data.Panels[2].Clip = null; // every shipped panel has a clip, so drop Yemen's in memory (read at Show)
+ r.Opening.Show(replay: false);
+ r.Ui.Press("opening-next"); r.Ui.Press("opening-next");
+ Assert.AreEqual(2, r.Opening.Index, "Yemen");
+ Assert.IsFalse(r.Opening.ClipWaiting, "no clip, no hold");
+ r.Opening.HoldElapsed();
+ Assert.IsNull(r.Video!.Current, "nothing plays");
+ Assert.AreEqual(r.Data.Panels[2].Image.Credit, r.Credit.text);
+ Assert.AreSame(Asset.photos[2], r.Background);
+ Assert.IsNotNull(r.Data.Panels[2].Caption, "the panel still has its caption");
+ Assert.IsFalse(r.CaptionShown, "and it is not shown without a clip");
+ }
+
+ [Test]
+ public void YemenPlaysItsOwnShotWithItsCaption()
+ {
+ using var r = new Rig();
+ r.Opening.Show(replay: false);
+ r.Ui.Press("opening-next"); r.Ui.Press("opening-next");
+ Assert.AreEqual(2, r.Opening.Index, "Yemen");
+ Assert.AreSame(Asset.photos[2], r.Background, "the panel opens on its archival photograph");
+ Assert.AreEqual(r.Data.Panels[2].Image.Credit, r.Credit.text);
+ Assert.IsFalse(r.CaptionShown, "no caption with the photograph");
+ Assert.IsTrue(r.Opening.ClipWaiting, "the clip waits for the hold");
+ r.Opening.HoldElapsed();
+ Assert.AreEqual(CardVideo.Url("opening_yemen.mp4"), r.Video!.Current, "the new shot plays in the same frame");
+ Assert.AreEqual("AI-generated illustration", r.Credit.text);
+ Assert.AreEqual(r.Data.Panels[2].Clip!.Alt, r.Photo.tooltip, "the clip's alt text");
+ Assert.IsTrue(r.CaptionShown, "Yemen's caption shows with its clip");
+ Assert.AreEqual("Operation On Wings of Eagles flew about 49,000 Yemenite Jews.", r.Caption.text);
+ }
+
+ [Test]
+ public void WithVideoOffAPanelWithAClipShowsOnlyThePhotograph()
+ {
+ using var r = new Rig(video: false); // CardVideo.ForcedOff: GameRoot passes no player
+ r.Opening.Show(replay: false);
+ Assert.IsFalse(r.Opening.ClipWaiting);
+ r.Opening.HoldElapsed();
+ Assert.AreEqual(r.Data.Panels[0].Image.Credit, r.Credit.text);
+ Assert.AreSame(Asset.photos[0], r.Background);
+ }
+
+ [Test]
+ public void AClipThatFailsFallsBackToThePhotograph()
+ {
+ using var r = new Rig();
+ r.Opening.Show(replay: false);
+ r.Opening.HoldElapsed();
+ Assert.IsNotNull(r.Video!.Current, "precondition: the clip was asked for");
+ // CardVideo's own failure path: what errorReceived (a missing or broken file) and the 8 s prepare timeout call. The
+ // edit-mode VideoPlayer's own timing is not under test, as in EventVideoTests.
+ Fail(r.Video);
+ Assert.IsNull(r.Video.Current, "the failed clip is stopped");
+ Assert.AreEqual(r.Data.Panels[0].Image.Credit, r.Credit.text, "the photograph's credit is back");
+ Assert.AreEqual(r.Data.Panels[0].Image.Alt, r.Photo.tooltip);
+ Assert.AreSame(Asset.photos[0], r.Background, "and the photograph");
+ Assert.IsFalse(r.CaptionShown, "the caption goes with the clip");
+ r.Ui.Press("opening-next"); r.Ui.Press("opening-back");
+ Assert.IsFalse(r.Opening.ClipWaiting, "a failed clip is not tried again this session");
+ }
+
+ [Test]
+ public void ChangingOrClosingThePanelStopsTheClip()
+ {
+ using var r = new Rig();
+ r.Opening.Show(replay: false);
+ r.Opening.HoldElapsed();
+ Assert.IsNotNull(r.Video!.Current, "precondition: Europe's clip plays");
+ r.Ui.Press("opening-next");
+ Assert.IsNull(r.Video.Current, "Next stops it");
+ Assert.IsFalse(r.CaptionShown, "and hides its caption");
+ Assert.AreEqual(r.Data.Panels[1].Image.Credit, r.Credit.text, "the next panel opens on its photograph and credit");
+ Assert.AreSame(Asset.photos[1], r.Background);
+ Assert.IsTrue(r.Opening.ClipWaiting, "and holds it before its own clip");
+ r.Opening.HoldElapsed();
+ Assert.AreEqual(CardVideo.Url("iraqi_exodus.mp4"), r.Video.Current);
+ r.Ui.Press("opening-back");
+ Assert.IsNull(r.Video.Current, "Back stops it");
+ Assert.AreSame(Asset.photos[0], r.Background);
+ r.Opening.HoldElapsed();
+ Assert.IsNotNull(r.Video.Current);
+ Assert.IsTrue(r.Opening.Escape());
+ Assert.IsNull(r.Video.Current, "Esc stops it");
+ Assert.IsFalse(r.Opening.ClipWaiting, "and no clip starts after the opening closed");
+ r.Opening.Show(replay: true);
+ r.Opening.HoldElapsed();
+ Assert.IsNotNull(r.Video.Current);
+ r.Ui.Press("opening-skip");
+ Assert.IsNull(r.Video.Current, "Skip stops it");
+ Assert.IsFalse(r.Opening.ClipWaiting);
+ }
+
+ [Test]
+ public void InHebrewTheLabelIsTheHebrewString()
+ {
+ using var r = new Rig("he");
+ r.Opening.Show(replay: false);
+ Assert.AreEqual(LanguageDirection.LTR, r.Credit.languageDirection, "the photograph's English credit");
+ r.Opening.HoldElapsed();
+ Assert.AreEqual(Text("he")["event.ai_label"], r.Credit.text);
+ Assert.AreEqual("איור שנוצר בבינה מלאכותית", r.Credit.text);
+ Assert.AreEqual(LanguageDirection.RTL, r.Credit.languageDirection, "the Hebrew label reads right to left");
+ Assert.IsFalse(r.Credit.ClassListContains("opening-source-en"), "and is not set as English");
+ Assert.IsTrue(r.CaptionShown);
+ Assert.AreEqual("כשני שלישים מעקורי אירופה עלו לישראל לאחר קום המדינה.", r.Caption.text, "the owner-read Hebrew caption");
+ Assert.AreEqual(LanguageDirection.RTL, r.Caption.languageDirection);
+ r.Ui.Press("opening-next");
+ Assert.IsFalse(r.CaptionShown);
+ r.Opening.HoldElapsed();
+ Assert.AreEqual("מבצע עזרא ונחמיה העלה כ־120,000 מיהודי עיראק.", r.Caption.text);
+ Assert.AreEqual(LanguageDirection.RTL, r.Caption.languageDirection);
+ r.Ui.Press("opening-next");
+ Assert.IsFalse(r.CaptionShown, "Yemen holds its photograph first, with no caption");
+ Assert.AreEqual(r.Data.Panels[2].Image.Credit, r.Credit.text);
+ Assert.AreEqual(LanguageDirection.LTR, r.Credit.languageDirection, "the next credit is English again");
+ Assert.IsTrue(r.Credit.ClassListContains("opening-source-en"));
+ r.Opening.HoldElapsed();
+ Assert.AreEqual("מבצע על כנפי נשרים הטיס מעדן כ־49,000 מיהודי תימן.", r.Caption.text, "Yemen's owner-read Hebrew caption");
+ Assert.AreEqual(LanguageDirection.RTL, r.Caption.languageDirection);
+ }
+
+ [TestCase("file: law_of_return.mp4", "file: ../law_of_return.mp4", TestName = "ClipFileMustBeABareMp4Name")]
+ [TestCase("file: law_of_return.mp4", "file: law_of_return.webm", TestName = "ClipFileMustBeAnMp4")]
+ [TestCase("shot: K04a", "shot: \"\"", TestName = "ClipNeedsItsShot")]
+ [TestCase(" ai_generated: true\n sensitive: true\n", " ai_generated: false\n sensitive: true\n",
+ TestName = "ClipMustBeMarkedAiGenerated")]
+ [TestCase(" sensitive: true\n # The owner's sensitivity review of this clip in the opening: owner, 2 Nov 2026: \"Approve both\".\n sensitivity_reviewed: true",
+ " sensitive: false\n sensitivity_reviewed: false", TestName = "AClipOnASensitivePanelMustBeSensitive")]
+ [TestCase(" caption:\n text: \"About two-thirds of Europe's displaced persons came to Israel.\"\n text_he: \"כשני שלישים מעקורי אירופה עלו לישראל לאחר קום המדינה.\"\n he_review: approved\n",
+ "", TestName = "AClipNeedsItsCaption")]
+ [TestCase(" text_he: \"כשני שלישים מעקורי אירופה עלו לישראל לאחר קום המדינה.\"", " text_he: \"\"", TestName = "ACaptionNeedsItsHebrew")]
+ [TestCase(" he_review: approved\n image:\n file: opening_europe.jpg", " he_review: yes\n image:\n file: opening_europe.jpg",
+ TestName = "ACaptionHeReviewIsPendingOrApproved")]
+ [TestCase("alt: \"Illustration: an immigrant ship", "alt: \"An immigrant ship", TestName = "ClipAltMustStartIllustration")]
+ [TestCase(" shot: K04a\n", " shot: K04a\n colour: sepia\n", TestName = "ClipUnknownFieldFailsClosed")]
+ public void AMalformedClipRowFailsTheLoad(string from, string to)
+ {
+ var yaml = Asset.source.text;
+ StringAssert.Contains(from, yaml, "precondition: the shipped row");
+ Assert.DoesNotThrow(() => OpeningContent.Parse(yaml));
+ Assert.Throws<InvalidOperationException>(() => OpeningContent.Parse(yaml.Replace(from, to)));
+ }
+}
diff --git a/unity/Assets/Tests/EditMode/OpeningClipTests.cs.meta b/unity/Assets/Tests/EditMode/OpeningClipTests.cs.meta
new file mode 100644
index 000000000..8cfebec40
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/OpeningClipTests.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 6bc96f3eab984d6bacc6a8a9d8cec488
diff --git a/unity/Assets/Tests/EditMode/OpeningHebrewTests.cs b/unity/Assets/Tests/EditMode/OpeningHebrewTests.cs
index 3d95c0a11..6cf764822 100644
--- a/unity/Assets/Tests/EditMode/OpeningHebrewTests.cs
+++ b/unity/Assets/Tests/EditMode/OpeningHebrewTests.cs
@@ -25,9 +25,11 @@ public class OpeningHebrewTests
static string Yaml => Asset.source.text;
static UiText Text(string lang) => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>("Assets/UI/strings." + lang + ".yaml").text);
- /// <summary>The shipped YAML with every Hebrew field taken out: the file as it was before the Hebrew.</summary>
+ /// <summary>The shipped YAML with every Hebrew field of the prose taken out: the file as it was before the Hebrew. Only
+ /// the panels' (4 spaces) and the closing's (2 spaces) own fields: a clip's caption (6 spaces) keeps its text_he and
+ /// he_review, which Parse requires with every clip.</summary>
static string WithoutHebrew(string yaml) =>
- Regex.Replace(Regex.Replace(yaml, @"(?m)^ *(title_he|text_he|he_review): .*\r?\n", ""), @", country_he: ""[^""]*""", "");
+ Regex.Replace(Regex.Replace(yaml, @"(?m)^( | )(title_he|text_he|he_review): .*\r?\n", ""), @", country_he: ""[^""]*""", "");
static OpeningContent.Document Approved(string yaml)
{
diff --git a/unity/Assets/UI/Game.uxml b/unity/Assets/UI/Game.uxml
index 568449133..2c5369f59 100644
--- a/unity/Assets/UI/Game.uxml
+++ b/unity/Assets/UI/Game.uxml
@@ -675,6 +675,7 @@
<ui:Label name="opening-title" class="title opening-source-en" />
<ui:VisualElement name="opening-photo" class="opening-photo" />
<ui:Label name="opening-credit" class="event-photo-credit opening-source-en" />
+ <ui:Label name="opening-caption" class="opening-caption" />
<ui:ScrollView name="opening-scroll" class="opening-scroll" mode="Vertical" horizontal-scroller-visibility="Hidden">
<ui:Label name="opening-text" class="opening-text opening-source-en" />
<ui:Label name="opening-arrivals" class="muted opening-arrivals opening-source-en" />
diff --git a/unity/Assets/UI/Opening/opening.yaml b/unity/Assets/UI/Opening/opening.yaml
index 86217b3a4..d317c93fd 100644
--- a/unity/Assets/UI/Opening/opening.yaml
+++ b/unity/Assets/UI/Opening/opening.yaml
@@ -49,6 +49,23 @@ panels:
- url: "https://portal.ehri-project.eu/units/us-005544-cyp_45_49"
supports: "JDC Cyprus collection: 'the British government began deporting Jews who came to Palestine in violation of the White Paper of 1939 to the island of Cyprus. From August 1946 to February 1949, the deportees ... lived behind barbed wire in 12 detention camps. During this period, approximately 53,000 Jews passed through the camps'"
checked: 2026-10-31
+ # After the photograph, the law_of_return card's loop (owner ruling of 2 November 2026, "B: A + one new Yemen shot
+ # (~2,424)"): the same file, alt text and shot as its event-videos.yaml row; its provenance is its ASSETS.yaml row.
+ clip:
+ file: law_of_return.mp4
+ shot: K04a
+ alt: "Illustration: an immigrant ship crowded with passengers entering Haifa bay."
+ ai_generated: true
+ sensitive: true
+ # The owner's sensitivity review of this clip in the opening: owner, 2 Nov 2026: "Approve both".
+ sensitivity_reviewed: true
+ # The line shown under the clip while it plays (OpeningPresenter). Owner, 2 Nov 2026: "Version 1, fixed
+ # (Recommended)", which is also the owner's native read of the Hebrew (he_review: approved).
+ # From this panel's text: "Once the state was founded, about two-thirds of the displaced persons went to Israel."
+ caption:
+ text: "About two-thirds of Europe's displaced persons came to Israel."
+ text_he: "כשני שלישים מעקורי אירופה עלו לישראל לאחר קום המדינה."
+ he_review: approved
image:
file: opening_europe.jpg
commons: "https://commons.wikimedia.org/wiki/File:Cyprus_(997008136325305171).jpg"
@@ -84,6 +101,24 @@ panels:
- url: "https://www.cbs.gov.il/he/publications/DocLib/2009/1365/pdf/e_print.pdf"
supports: "Table 5 (printed pages 38-39), column 15 V 1948 - 1951: Iraq 123,371; Morocco 28,263; Libya 30,972; Egypt, Sudan 16,028; Tunisia 13,293; Algeria 3,810 (the 'tens of thousands more' line)"
checked: 2026-10-31
+ # After the photograph, the iraqi_exodus card's loop (the same ruling and rules as Europe's clip).
+ clip:
+ file: iraqi_exodus.mp4
+ shot: A07
+ alt: "Illustration: an airliner on the apron at Lydda at dusk, families coming down the steps with suitcases."
+ ai_generated: true
+ sensitive: true
+ # The owner's sensitivity review of this clip in the opening: owner, 2 Nov 2026: "Approve both".
+ sensitivity_reviewed: true
+ # The line shown under the clip while it plays (OpeningPresenter). Owner, 2 Nov 2026: "Version 1, fixed
+ # (Recommended)", which is also the owner's native read of the Hebrew (he_review: approved).
+ # From this panel's text: "The airlift, Operation Ezra and Nehemiah, began in May 1950, and by January 1952 some
+ # 120,000 Iraqi Jews had come to Israel." The English then changed to "brought ... to Israel", which matches the
+ # Hebrew העלה (owner, 2 Nov 2026: "Change to 'brought' (Recommended)"); the Hebrew and its review are unchanged.
+ caption:
+ text: "Operation Ezra and Nehemiah brought some 120,000 Iraqi Jews to Israel."
+ text_he: "מבצע עזרא ונחמיה העלה כ־120,000 מיהודי עיראק."
+ he_review: approved
image:
file: opening_arab_countries.jpg
commons: "https://commons.wikimedia.org/wiki/File:Ben_Gurion_International_Airport_(997008136550505171).jpg"
@@ -118,6 +153,24 @@ panels:
- url: "https://www.cbs.gov.il/he/publications/DocLib/2009/1365/pdf/e_print.pdf"
supports: "Table 5, column 15 V 1948 - 1951: Yemen (7) 48,315; note 7, 'Incl. the former Aden'"
checked: 2026-10-31
+ # After the photograph, the ruling's one new shot (O3), made for this panel only: no decision card uses it. Its
+ # generation, the cleanup ("Fix it in editing (Recommended)") and the encode are in its ASSETS.yaml row.
+ clip:
+ file: opening_yemen.mp4
+ shot: O3
+ alt: "Illustration: a parked silver four-engined propeller airliner on a sandy apron, families with bundles walking toward its stair."
+ ai_generated: true
+ sensitive: true
+ # The owner's sensitivity review of this clip in the opening: owner, 2 Nov 2026: "Approve it".
+ sensitivity_reviewed: true
+ # The line shown under the clip while it plays (OpeningPresenter). Owner, 2 Nov 2026: "Version 1, fixed
+ # (Recommended)", which is also the owner's native read of the Hebrew (he_review: approved).
+ # From this panel's text: "Operation On Wings of Eagles ... flew them from British-ruled Aden to Israel"; "about
+ # 49,000 Yemenite Jews had been flown to Israel".
+ caption:
+ text: "Operation On Wings of Eagles flew about 49,000 Yemenite Jews."
+ text_he: "מבצע על כנפי נשרים הטיס מעדן כ־49,000 מיהודי תימן."
+ he_review: approved
image:
file: opening_yemen.jpg
commons: "https://commons.wikimedia.org/wiki/File:Aden_(997008136749905171).jpg"
diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.uss
index e0e6ec46a..952e284ca 100644
--- a/unity/Assets/UI/Statecraft.uss
+++ b/unity/Assets/UI/Statecraft.uss
@@ -1266,6 +1266,7 @@ Button.settings-choice-selected { -unity-font-definition: url("project://databas
.opening-arrivals { font-size: 18px; white-space: normal; margin: 8px 0; }
.opening-actions { flex-wrap: wrap; justify-content: center; flex-shrink: 0; }
.opening-actions > Button { min-height: 44px; margin: 4px 6px; }
+.opening-caption { display: none; font-size: 17px; white-space: normal; -unity-text-align: middle-center; margin: 2px 0 6px 0; color: var(--gold-light); }
.opening-source-en, .lang-he .opening-source-en { -unity-text-align: upper-left; white-space: normal; }
.opening-open .top-bar, .opening-open .left-column, .opening-open .community-column, .opening-open .right-column, .opening-open .event-layer, .opening-open .info-panel, .opening-open .screen, .opening-open .map-labels, .opening-open .start-screen, .opening-open .advisor-layer { display: none; }
.loading .opening-layer { display: none; }