# Gemini Banana Start Frame Prompt Registry Specification Analysis (EP01 - 188 Shots)

> **Document Type**: Specification Mining & Registry Architecture Blueprint  
> **Author**: teamwork_preview_spec_miner (M2 Gemini Banana Start Frame Registry Spec Miner 2)  
> **Working Directory**: `c:\Projects\KieuStory\.agents\teamwork\spec_miner_m2_2`  
> **Scope**: Full 188-shot prompt registry for Episode 01 (`ep01_scene01_shot01` to `ep01_scene15_shot06`)  
> **Timestamp**: 2026-10-08T06:05:00Z  

---

## 1. Executive Summary & Authoritative Specification Sources

This investigation analyzed the authoritative screenplay in `FilmMaker/TAP_01_XUAN_SAC_THE_NGUYEN_VA_GIONG_BAO_DOAN_TRUONG.md` (all 188 shots, 15 scenes), the project bible directives in `00_Project_Bible/` (`CHARACTER_BIBLE.md`, `ENVIRONMENT_BIBLE.md`, `MASTER_BIBLE.md`), user directives in `ORIGINAL_REQUEST.md`, and existing prompt assets in `02_AI_Prompts/gemini_banana_prompts.json`.

We have formulated and validated the complete 188-shot Gemini Banana Start Frame Prompt Registry. Every single shot strictly adheres to the required contract schema:
```json
{
  "character_anchor": "<string>",
  "environment_anchor": "<string>",
  "prompt": "<string>",
  "resolution": "1280x720"
}
```

The registry is compiled into `.agents/teamwork/spec_miner_m2_2/gemini_banana_ep01_registry.json` and validated by automated tests (`validate_registry.py`).

---

## 2. Features Discovered

| # | Category | Feature | Description | Inputs | Outputs | Error Behavior | Discovered Via |
|---|----------|---------|-------------|--------|---------|----------------|----------------|
| 1 | Prompt Architecture | 4-Field Contract Schema | Universal JSON object per shot: `character_anchor`, `environment_anchor`, `prompt`, `resolution` | Shot ID & screenplay beats | Structured JSON dictionary entry | Missing field triggers validation failure | PROJECT.md §Interface Contracts |
| 2 | Start Frame Visuals | Contextual Start Frame Synthesis | Eliminates raw indoor white/grey studio portraits in outdoor scenes; embeds characters into precise physical environments (brook, meadow, crowd, sunset grave, tea room, study, ransacked hall) | Character anchor + Environment anchor | 720p contextual scene image prompt | Isolated portrait leads to jarring visual discontinuity | ORIGINAL_REQUEST §R3 |
| 3 | Motion Physics | Zero Reverse Physics Protocol | Eliminates reversed bird flights, backwards walking, and unnatural physical motions by embedding explicit directional forward vectors (e.g. "walking forward along path towards camera right", "riding white stallion steadily forward into frame", "branches swaying gently forward from west to east") | Screenplay action descriptions | Prompt with forward directional verbs | Ambiguous vectors cause Muse.ai reverse motion hallucinations | ORIGINAL_REQUEST §R3 |
| 4 | Character Identity | Kiều-Vân Twin Aesthetics | Codifies identical 16yo East Asian twin bone structure & porcelain skin, while sharply contrasting aura (sharp/melancholic vs round/serene), dress (celadon jade vs pure white), and accessories (pear blossom jade pin vs round pearl pin) | Character Bible §1, §3 | Twin-differentiated prompts in Scene 03 and subsequent scenes | Conflation of sisters causes identity drift | ORIGINAL_REQUEST §Directive 2026-10-08T05:21:27Z |
| 5 | Feudal Realism | 100% East Asian Sai Nha Guards | Codifies authentic 16th century Mac/Ming bailiffs: rough weathered Asian features, conical peaked helmets ("nón dấu sơn son chóp nhọn"), red-trimmed coarse grey linen tunics with "Dũng" insignia, leg wraps ("xà cạp"), wooden cudgels ("gậy son"), and iron chains. Zero western/modern elements | Character Bible §4 | Photorealistic medieval Asian bailiff prompts in Scenes 12-13 | Modern/western police attire violates historical realism | ORIGINAL_REQUEST §Directive 2026-10-08T05:21:27Z |
| 6 | Directing Protocol | Anti-Male-Tears Directive | Feudal males (Kim Trọng, Vương Quan, Vương Ông) express grief through clenched jaws, heavy deep gaze, compressed breathing, rock-hard stoicism; zero tears or weeping. Embedded `--no crying men, tears on male faces` | Character Bible & Screenplay notes | Stoic masculine facial prompts | Male crying violates period decorum | ORIGINAL_REQUEST §R4 |
| 7 | Audio/Visual Sync | Lip-Sync & Off-Screen Guard | Distinguishes on-screen speech from off-screen voice/distant calls. Kim Trọng listening to distant voice in Scene 08 keeps lips firmly closed | Screenplay audio stem notes | Closed-mouth prompt instructions | Mouth moving without voice causes sync mismatch | ORIGINAL_REQUEST §R5 |
| 8 | YouTube Monetization | 100% Green Dollar Chiaroscuro | Replaces graphic violence and beating in Scene 13 with dramatic Chiaroscuro silhouettes on rice paper screens, and Dam Tien's spirit with poetic ethereal apparition; zero gore or jump-scare horror | Safety Bible & Screenplay Scene 13 | Stylized high-contrast silhouette prompts | Blood/gore leads to demonetization | AGENTS.md §7, SAFETY_GUIDELINES.md |

---

## 3. Edge Cases & Boundary Conditions

| # | Feature | Input | Observed Behavior | Handling / Resolution |
|---|---------|-------|-------------------|------------------------|
| 1 | Pure Environmental Shots | Shots with no human characters (e.g., `ep01_scene01_shot03`, `ep01_scene01_shot10`-`21`, `ep01_scene05_shot02`, `ep01_scene12_shot01`-`03`) | Shot describes landscape, river, sky, or architectural details | Set `character_anchor: "none"`, focus prompt on environmental volumetric lighting, forward motion vectors (wind, river, birds) |
| 2 | Time-Warp Dissolve Transition | `ep01_scene01_shot09` (Bridge from 1980s frame story to 16th century Jiajing era) | Visual dissolve where tobacco smoke swirls and transforms into ancient morning mist | Set `character_anchor: "none"`, `environment_anchor: "vong_xoay_suong_khoi_xuyen_khong"`, prompt models organic smoke-to-fog morphing |
| 3 | Composite Character Presence | Multi-character shots (e.g., `ep01_scene02_shot01` Vuong Ong + Ba; `ep01_scene03_shot01` Kieu + Van; `ep01_scene05_shot01` Kieu + Van + Quan; `ep01_scene12_shot04` Sai Nha + Thang Ban To) | Multiple characters must maintain distinct costume and facial attributes within a single frame | Structured composite anchor (e.g. `thuy_kieu_maiden + thuy_van`), explicit visual positioning and distinct color palettes in prompt |
| 4 | Off-Screen Dialogue Listener | `ep01_scene08_shot07` (Kim Trọng hears Kiều calling from beyond flower wall) | Audio stem has distant Kiều dialogue; Kim Trọng is sole character on screen | Explicit prompt constraint: `Kim Trong's lips remain firmly, naturally closed without any movement; his head tilts alertly as he listens intently` |
| 5 | Supernatural Footprints on Moss | `ep01_scene05_shot25` (Dam Tien's ghostly slipper marks appearing in sequence) | Ethereal footprints pressing into moss without physical person visible | Set `character_anchor: "none"`, prompt details low tracking shot of elegant feminine slipper impressions miraculously sinking into green moss |
| 6 | Extreme Close-Up Macro Shots | `ep01_scene01_shot08` (pupil reflecting twilight), `ep01_scene10_shot08` (calligraphy scroll), `ep01_scene15_shot03` (tear on jade fan) | Macro detail requiring high resolution focus | Specify 100mm macro cinema lens, tactile surface textures (jade, bronze, tear droplet, ink on silk) |
| 7 | Climax Split-Screen Freeze Frame | `ep01_scene15_shot06` (Final cliffhanger: Kiều turning toward door vs Matchmaker with silver bag at threshold) | Split-composition hook for episode ending | Explicit dual-panel prompt: left half lit by lightning showing Kiều's tearful resolute face; right half showing ominous silhouette of broker with purse |

---

## 4. Scene-by-Scene Prompt Registry Structure Breakdown

### Scene 01: Khung Truyện 198x & Bầu Trời Xuân Gia Tĩnh (21 Shots: `ep01_scene01_shot01` to `ep01_scene01_shot21`)
- **Setting & Progression**: Shots 01-08 depict the frame story in a 1980s Northern Vietnamese village at dusk (grandfather fanning grandchild, areca palm trees, tobacco pipe, nostalgic reflection). Shot 09 executes the time-warp dissolve. Shots 10-21 open the Jiajing era at dawn (city gate, river glide, swallows in flight, endless emerald meadow, white pear blossoms).
- **Directional Vectors**: Swallows fly forward through the sky; river flows forward towards camera; morning breeze blows willow branches from west to east; grandfather fans steadily forward.
- **Anchors**: `cu_ong_198x`, `dua_chau_198x`, `none`, `khung_truyen_198x_hien_nha`, `vong_xoay_suong_khoi_xuyen_khong`, `ngoai_o_kinh_thanh_trieu_minh_sang_som`.

### Scene 02: Gia Trang Họ Vương - Phòng Khách & Sân Gạch (15 Shots: `ep01_scene02_shot01` to `ep01_scene02_shot15`)
- **Setting & Progression**: Interior guest hall and brick courtyard of the middle-class Vuong manor in morning light. Vuong Ong and Vuong Ba drink tea and converse; loyal steward sweeps courtyard; maidservant carries bamboo basket; Vuong Quan arrives in indigo robes, asks permission to attend the Qingming festival with his sisters; father grants approval.
- **Directional Vectors**: Quan walks forward along the corridor and enters the threshold; steward sweeps fallen petals forward across brick pavers; maidservant walks forward toward annex.
- **Anchors**: `vuong_ong`, `vuong_ba`, `quan_gia_vuong`, `thi_nu_nu_vuong`, `vuong_quan`, `phong_khach_ho_vuong_sang`.

### Scene 03: Khuê Phòng Thúy Kiều & Thúy Vân (15 Shots: `ep01_scene03_shot01` to `ep01_scene03_shot15`)
- **Setting & Progression**: Maiden bedchamber with morning light. Establishes the twin resemblance and subtle contrast between Thúy Kiều (celadon jade green Giao Linh robe, pear blossom hairpin, sharp melancholic aura, playing the 36-string hammered dulcimer) and Thúy Vân (pure ivory white robe, pearl hairpin, rounded face, serene blissful smile). Vuong Quan knocks to announce departure; three siblings walk through courtyard.
- **Twin Aesthetics**: Identical facial bone structure, delicate noses, porcelain skin; differentiated by aura, eye expression, and robe colors.
- **Anchors**: `thuy_kieu_maiden`, `thuy_van`, `vuong_quan`, `khue_phong_kieu_van_sang`, `phong_khach_ho_vuong_sang`.

### Scene 04: Ngoại Ô Kinh Thành - Hội Thanh Minh (12 Shots: `ep01_scene04_shot01` to `ep01_scene04_shot12`)
- **Setting & Progression**: Bustling festival crowd along the willow-lined river highway. Scholars in pastel silks, maidens with parasols, horse carriages, tomb sweeping, burning joss paper drifting upward. The three siblings stroll forward amidst the joyous throng.
- **Directional Vectors**: Crowd and carriages move forward along the road; paper ashes drift forward and upward on thermal drafts; siblings walk forward toward camera right.
- **Anchors**: `quan_chung_thanh_minh`, `thuy_kieu_maiden + thuy_van + vuong_quan`, `duong_ngoai_o_hoi_thanh_minh_trua`.

### Scene 05: Bờ Suối & Mộ Đạm Tiên (27 Shots: `ep01_scene05_shot01` to `ep01_scene05_shot27`)
- **3-Beat Structure**:
  * *Beat 1 (C05-A: Shots 01-08)*: Stroll along the brook ("tiểu khê"). Tranquil brook, weeping willows, afternoon sun, leisurely forward walking.
  * *Beat 2 (C05-B: Shots 09-15)*: Encounter with the lonely mound. Kiều stops, perplexed; questions Quan; Quan recounts Dam Tien's sorrowful fate.
  * *Beat 3 (C05-C: Shots 16-27)*: Emotional shift & spiritual revelation. Kiều weeps for the courtesan, lights incense, sheds tears; cold supernatural wind whips mist; Dam Tien's ghostly apparition appears; faint slipper prints impress into moss; Kiều rises awakened to her fate.
- **Anchors**: `thuy_kieu_maiden`, `thuy_van`, `vuong_quan`, `dam_tien`, `bo_suoi_tieu_khe_mo_dam_tien`.

### Scene 06: Bờ Suối Rặng Liễu - Tương Ngộ Kim Trọng (14 Shots: `ep01_scene06_shot01` to `ep01_scene06_shot14`)
- **Setting & Progression**: Willow bank at sunset. Arrival of Kim Trọng riding a white stallion, escorted by young squire. Kim Trọng dismounts, greets Vuong Quan. Kiều and Vân shyly step behind willows. First romantic glance between Kim and Kiều. Anti-Male-Tears strictly enforced. Parting as twilight falls.
- **Directional Vectors**: White stallion gallops steadily forward into frame; Kim Trọng dismounts forward; siblings walk away while casting backward glances.
- **Anchors**: `kim_trong`, `tieu_dong_kim_trong`, `vuong_quan`, `thuy_kieu_maiden + thuy_van`, `bo_suoi_rang_lieu_tuong_ngo_hoang_hon`.

### Scene 07: Thư Phòng Kim Trọng Ban Đêm (8 Shots: `ep01_scene07_shot01` to `ep01_scene07_shot08`)
- **Setting & Progression**: Candlelit study chamber at night. Kim Trọng writing poetry, restless with lovesickness. Wax dripping like tears. Gことにazing out the lattice window at the moonlit wall separating the properties. Stoic masculine longing.
- **Anchors**: `kim_trong`, `thu_phong_kim_trong_dem`.

### Scene 08: Bức Tường Hoa & Kim Thoa (8 Shots: `ep01_scene08_shot01` to `ep01_scene08_shot08`)
- **Setting & Progression**: Sunlit flower wall in summer midday. Kim Trọng spots the golden hairpin caught on a blooming peach branch, retrieves it, hears Kiều's footsteps and voice on the opposite side. Lip-sync guard enforced: mouth closed, listening intently.
- **Anchors**: `kim_trong`, `buc_tuong_hoa_hai_vuon_trua_he`.

### Scene 09: Bờ Tường Hoa - Kim Kiều Trao Thoa & Thề Nguyện (6 Shots: `ep01_scene09_shot01` to `ep01_scene09_shot06`)
- **Setting & Progression**: Midday exchange over the flower wall. Kiều appears looking for her hairpin; Kim Trọng returns the hairpin and offers his silk handkerchief and jade pendant; their fingers touch in mutual vow of love.
- **Anchors**: `thuy_kieu_maiden`, `kim_trong`, `bo_tuong_hoa_trao_thoa_trua_he`.

### Scene 10: Vườn Thúy & Thư Phòng - Đêm Rằm Tháng Tư (14 Shots: `ep01_scene10_shot01` to `ep01_scene10_shot14`)
- **Setting & Progression**: Full moon night. Kiều slips across the garden gate to Kim's study. Twin candles lit, burning incense, writing marriage oaths on silk, drinking nuptial wine, Kiều playing the Pipa lute, Kim Trọng listening spellbound.
- **Anchors**: `thuy_kieu_maiden`, `kim_trong`, `vuon_thuy_dem_trang_the_nguyen`.

### Scene 11: Gốc Liễu Vườn Thúy - Biệt Ly Liêu Dương (10 Shots: `ep01_scene11_shot01` to `ep01_scene11_shot10`)
- **Setting & Progression**: Early morning fog in the willow grove. News of uncle's death in Lieu Duong. Farewell scene: Kim Trọng grasps Kiều's hands, Kiều gives jade fan token; Kim mounts white stallion and rides away into the fog. Anti-Male-Tears strictly observed: clenched jaw, steely dry eyes, zero crying.
- **Anchors**: `kim_trong`, `thuy_kieu_maiden`, `goc_lieu_biet_ly_lieu_duong_sang_som`.

### Scene 12: Cổng Chính Gia Trang Họ Vương - Giông Bão & Sai Nha (8 Shots: `ep01_scene12_shot01` to `ep01_scene12_shot08`)
- **Setting & Progression**: Violent storm clouds, lightning and thunder. Ferocious squad of 16th century East Asian imperial bailiffs (Sai Nha) with peaked helmets ("nón dấu"), red-trimmed grey tunics, cudgels, chains, and traitorous silk peddler Thằng Bán Tơ. Gate kicked open, raid begins.
- **Anchors**: `sai_nha`, `thang_ban_to`, `cong_chinh_gia_trang_giong_bao`.

### Scene 13: Phòng Khách Họ Vương - Đại Biến Chiaroscuro (12 Shots: `ep01_scene13_shot01` to `ep01_scene13_shot12`)
- **Setting & Progression**: 100% YouTube Green Dollar compliance. Beating and brutality depicted via Chiaroscuro silhouettes on rice paper partitions. Teapot smashed, incense burner overturned, Vuong Quan placed in wooden cangue, Vuong Ong bound in chains (both males stoic, clenched jaws, dry eyes). Corrupt officer demands 300 gold pieces.
- **Anchors**: `sai_nha`, `vuong_ong`, `vuong_quan`, `vuong_ba`, `phong_khach_dai_bien_chiaroscuro`.

### Scene 14: Phòng Khách Tan Hoang - Đêm Mưa (12 Shots: `ep01_scene14_shot01` to `ep01_scene14_shot12`)
- **Setting & Progression**: Devastated guest hall in torrential rain. Vuong Ba weeps, Vuong Ong attempts suicide in chains; Kiều rushes forward to stop her father, resolves to sacrifice herself and sell her body to save her family. Family reactions: Vuong Ong and Quan clench jaws in agonizing stoicism; Kiều steps toward ancestral hall.
- **Anchors**: `thuy_kieu_maiden`, `vuong_ong`, `vuong_ba`, `thuy_van`, `vuong_quan`, `phong_khach_tan_hoang_dem_mua`.

### Scene 15: Gian Thờ Tổ Tiên - Đêm Khuya Cliffhanger (6 Shots: `ep01_scene15_shot01` to `ep01_scene15_shot06`)
- **Setting & Progression**: Midnight in the ancestral shrine. Kiều kneels alone by single red candle, places Kim Trọng's jade fan on the altar, single tear drops on the fan rib. Wooden gate creaks; sinister Matchmaker Mu Moi arrives in the rain with a purse of silver. Freeze-frame split-screen cliffhanger hook: Kiều's resolute face vs broker silhouette. Cut to black!
- **Anchors**: `thuy_kieu_maiden`, `mu_moi`, `gian_tho_to_tien_dem_khuya`.

---

## 5. Implementation Blueprint for `02_AI_Prompts/gemini_banana_prompts.json`

The compiled registry can be cleanly integrated into `02_AI_Prompts/gemini_banana_prompts.json` either by:
1. Adding a dedicated top-level key: `"ep01_prompt_registry": { ... 188 shots ... }` which preserves the existing `characters`, `environments`, and `critical_keyframes` structures untouched.
2. Or flattening the 188 shot keys directly into the root JSON object alongside metadata keys, matching the contract in `PROJECT.md` line 65:
   `{"ep01_sceneXX_shotYY": {"character_anchor": "...", "environment_anchor": "...", "prompt": "...", "resolution": "1280x720"}}`.

Both integration options are supported by the output file generated at:
`c:\Projects\KieuStory\.agents\teamwork\spec_miner_m2_2\gemini_banana_ep01_registry.json`.

---

## 6. Verification & Automated Test Results

Validation was executed via `.agents/teamwork/spec_miner_m2_2/validate_registry.py`:
- Total shots verified: **188 / 188 (100%)**
- Schema compliance: **100% (all 4 fields present and non-empty)**
- Resolution compliance: **100% (1280x720 across all 188 shots)**
- Negative prompt & aspect ratio constraints: **100% compliant**
- Anti-Male-Tears & Zero Reverse Physics: **100% compliant**
- Kiều-Vân twin aesthetics & East Asian Sai Nha guards: **100% compliant**
