diff --git a/h3-plan-gate/SKILL.md b/h3-plan-gate/SKILL.md index 74d3fb8..a04279d 100755 --- a/h3-plan-gate/SKILL.md +++ b/h3-plan-gate/SKILL.md @@ -70,7 +70,11 @@ otherwise. Copy the user's quoted speech EXACTLY into the right scene's `dialogu if the story has no quoted speech, every `dialogue` array stays `[]`. Only the last scene's beat may come to rest. The `subjects` array is the cast inventory: collect the full head-to-toe look there once — when writing scenes it is spent by weaving it into -each scene's [Shot 1] body, never parked in subject_definitions. +each scene's [Shot 1] body, never parked in subject_definitions. If the story's script +carries a `characters:` block with refmod entries — `sam:&identity: ; +voice: &` — copy the identity and voice text verbatim into that subject's +inventory string (the & marks are delimiters, never content); the scene turns must carry +them into subject_definitions untouched. ## Step 2 — Present the guide for approval (do not skip) @@ -110,7 +114,7 @@ Each fragment is exactly this shape: "duration_seconds": 15, "prompt": [ "subject_definitions:", - " ...lean identity anchor: who they are, tied to their reference image...", + " ...one of the three definition forms (see craft rules below)...", "summary:", "[reference generation]", "retention_analysis:", @@ -168,14 +172,20 @@ and sampler latent or the video can come out square. own line; `summary` is exactly `[reference generation]`; every scene is its own single H3 generation, so the bracket number is always `[Shot 1]`. - The full look is re-stated in EVERY scene, and it lives in the [Shot 1] body — - subject_definitions stays a lean identity anchor (the `` label and who - they are, tied to their reference image; never a wardrobe list, never a nude/bare - state). Weave the head-to-toe look into the action as the scene exposes it — hair, - build, and face as they move, each garment where the action touches it, footwear - where steps land — nothing is shared between scenes or from a prefix. Name every - body part the clothing leaves uncovered and call uncovered skin "nude", never - "bare", where the scene shows it - ("a man wearing a white tank-top with nude arms"). + subject_definitions only anchors identity, in exactly one of three forms per line: + a character with NO reference image gets physical traits only (" is a + 20 year old woman with blonde hair, blue eyes and a medium build" — age, hair, + eyes, build; never clothing, never a nude/bare state); a character WITH a + reference image gets " binds to : what the image actually + shows" (the writing LLM is multimodal — look at it); and a user refmod + (`sam:&identity: ...; voice: ...&` in the story's characters block) is carried + through VERBATIM as " identity: ...; voice: ..." — never rewritten, + never trimmed, exempt from the length and clothing rules. Weave the head-to-toe + look into the action as the scene exposes it — hair, build, and face as they + move, each garment where the action touches it, footwear where steps land — + nothing is shared between scenes or from a prefix. Name every body part the + clothing leaves uncovered and call uncovered skin "nude", never "bare", where the + scene shows it ("a man wearing a white tank-top with nude arms"). - Scene composition, not word count: the [Shot 1] body must carry every element — subject anchor (`` restated, the full look woven in), style anchor, continuity anchor diff --git a/h3-plan-gate/h3_plan_assembler_system_prompt.md b/h3-plan-gate/h3_plan_assembler_system_prompt.md index d5ccb83..2830246 100755 --- a/h3-plan-gate/h3_plan_assembler_system_prompt.md +++ b/h3-plan-gate/h3_plan_assembler_system_prompt.md @@ -71,16 +71,16 @@ Input: DEFAULTS: {"duration_seconds": 8, "steps": 20} SCENE 1 - {"id": "corridor_walk", "duration_seconds": 8, "prompt": ["subject_definitions:", " the night nurse, matching her subject reference image.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands gripping the trolley handle, pushes the trolley down the corridor.", "overall_soundscape:", "low fluorescent hum, a distant trolley wheel squeak.", "non_diegetic_music:", "N/A"], "_handoff": {"end_state": "She is mid-stride at the far end.", "soundscape": "low fluorescent hum, a distant trolley wheel squeak.", "dialogue_used": []}} + {"id": "corridor_walk", "duration_seconds": 8, "prompt": ["subject_definitions:", " binds to : a woman in her thirties with dark brown hair in a low bun, pale green scrubs, white sneakers.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands gripping the trolley handle, pushes the trolley down the corridor.", "overall_soundscape:", "low fluorescent hum, a distant trolley wheel squeak.", "non_diegetic_music:", "N/A"], "_handoff": {"end_state": "She is mid-stride at the far end.", "soundscape": "low fluorescent hum, a distant trolley wheel squeak.", "dialogue_used": []}} SCENE 2 - {"id": "door_stop", "duration_seconds": 8, "prompt": ["subject_definitions:", " the night nurse, matching her subject reference image.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] Continue the same walk as , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands opening off the trolley handle, and stops the trolley at the blue door.", "overall_soundscape:", "the same fluorescent hum continues, the trolley wheel falls silent.", "non_diegetic_music:", "N/A"], "_handoff": {"end_state": "Her hand rests on the push bar.", "soundscape": "the same fluorescent hum continues, the trolley wheel falls silent.", "dialogue_used": []}} + {"id": "door_stop", "duration_seconds": 8, "prompt": ["subject_definitions:", " binds to : a woman in her thirties with dark brown hair in a low bun, pale green scrubs, white sneakers.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] Continue the same walk as , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands opening off the trolley handle, and stops the trolley at the blue door.", "overall_soundscape:", "the same fluorescent hum continues, the trolley wheel falls silent.", "non_diegetic_music:", "N/A"], "_handoff": {"end_state": "Her hand rests on the push bar.", "soundscape": "the same fluorescent hum continues, the trolley wheel falls silent.", "dialogue_used": []}} Correct reply: {"prompt_prefix": [""], "defaults": {"duration_seconds": 8, "steps": 20}, "shots": [ - {"id": "corridor_walk", "prompt": ["subject_definitions:", " the night nurse, matching her subject reference image.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands gripping the trolley handle, pushes the trolley down the corridor.", "overall_soundscape:", "low fluorescent hum, a distant trolley wheel squeak.", "non_diegetic_music:", "N/A"], "duration_seconds": 8}, - {"id": "door_stop", "prompt": ["subject_definitions:", " the night nurse, matching her subject reference image.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] Continue the same walk as , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands opening off the trolley handle, and stops the trolley at the blue door.", "overall_soundscape:", "the same fluorescent hum continues, the trolley wheel falls silent.", "non_diegetic_music:", "N/A"], "duration_seconds": 8} + {"id": "corridor_walk", "prompt": ["subject_definitions:", " binds to : a woman in her thirties with dark brown hair in a low bun, pale green scrubs, white sneakers.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands gripping the trolley handle, pushes the trolley down the corridor.", "overall_soundscape:", "low fluorescent hum, a distant trolley wheel squeak.", "non_diegetic_music:", "N/A"], "duration_seconds": 8}, + {"id": "door_stop", "prompt": ["subject_definitions:", " binds to : a woman in her thirties with dark brown hair in a low bun, pale green scrubs, white sneakers.", "summary:", "[reference generation]", "retention_analysis:", ": fully_preserved", "detailed_description:", "Photorealistic cool fluorescent lighting, soft clinical palette.", "[Shot 1] Continue the same walk as , the same night nurse from her reference image in her pale green scrub top, matching scrub trousers, and white sneakers, her nude hands opening off the trolley handle, and stops the trolley at the blue door.", "overall_soundscape:", "the same fluorescent hum continues, the trolley wheel falls silent.", "non_diegetic_music:", "N/A"], "duration_seconds": 8} ]} Note what the example shows: the "_handoff" objects vanished, every prompt string is diff --git a/h3-plan-gate/h3_plan_json_system_prompt.md b/h3-plan-gate/h3_plan_json_system_prompt.md index 56bdd46..1b20ec5 100755 --- a/h3-plan-gate/h3_plan_json_system_prompt.md +++ b/h3-plan-gate/h3_plan_json_system_prompt.md @@ -51,7 +51,7 @@ Emit exactly this shape and no other keys: { "id": "scene_one", "prompt": [ "subject_definitions:", - " ...lean identity anchor: who they are, tied to their reference image...", + " ...one of the three definition forms (REF2VA PROMPT 1)...", "summary:", "[reference generation]", "retention_analysis:", @@ -125,9 +125,9 @@ Shots are flat. A shot never contains a nested object. # PROMPT CRAFT - "prompt_prefix" stays empty, exactly [""]. Never put identity, wardrobe, style, or continuity text in it. Every scene's prompt must be self-sufficient: - subject_definitions re-binds the tag as a lean identity anchor and the - [Shot 1] body carries the full look woven into the action in every scene, because - nothing is shared from a prefix or between scenes. + subject_definitions anchors the tag's identity in one of its three + forms and the [Shot 1] body carries the full look woven into the action in every + scene, because nothing is shared from a prefix or between scenes. - The [Shot 1] body of every scene's detailed_description must: 1. Continue the exact action, pose, camera direction, and lighting from the previous scene's [Shot 1] body. Scene 1 instead sets the opening. @@ -137,13 +137,16 @@ Shots are flat. A shot never contains a nested object. - Compose every scene from the same eight elements, and never chase a word count — chase the elements. A description that genuinely carries them comes out long enough on its own; padding to a number is as much a failure as a thin one-liner: - 1. SUBJECT ANCHOR — subject_definitions is only a lean identity anchor (REF2VA - PROMPT below): the label and who the person is, tied to their - subject reference image. The full look lives in the [Shot 1] body, woven into - the action as the scene exposes it: hair, build, and face as they move, every - garment where the action touches it, footwear where steps land, and every body - part the clothing leaves uncovered named "nude" (PROMPT CRAFT) where the scene - shows or uses that skin. + 1. SUBJECT ANCHOR — subject_definitions anchors identity only, one line per subject + in exactly one of three forms (REF2VA PROMPT below): physical traits only when + the character has no reference image ("is a ... with ..." — age, hair, eyes, + build), "binds to : what the image actually shows" when one is wired + (you are multimodal — look at it), or the user's refmod carried through verbatim + ("identity: ...; voice: ..."). The full look lives in the [Shot 1] body, woven + into the action as the scene exposes it: hair, build, and face as they move, + every garment where the action touches it, footwear where steps land, and every + body part the clothing leaves uncovered named "nude" (PROMPT CRAFT) where the + scene shows or uses that skin. 2. STYLE ANCHOR — the one consistent look: medium, lighting quality, palette. 3. CONTINUITY ANCHOR — open inside the previous scene's end state (scene 1 sets the opening) and name what carries over: the stride, the camera direction, the light, @@ -207,7 +210,8 @@ Shots are flat. A shot never contains a nested object. fades until only the doorway lamp lights the room". A summarized change or movement is a gap H3 fills by guessing, and guessed motion drifts off intent. - Describe the complete look in every scene, inside the [Shot 1] body — subject - definitions stay a lean identity anchor and never carry the look. Weave the full + definitions never carry the scene's look; they only anchor identity in one of + their three forms. Weave the full head-to-toe appearance into the action according to what is going on in the scene: face, hair, and build as the body moves, each garment where the action touches it (a cuff sliding back, a hem swaying, fabric darkening), footwear where steps land. @@ -235,14 +239,25 @@ Shots are flat. A shot never contains a nested object. labels. Give every shot a prompt array with exactly these sections, in this order, one line per element — the header on its own line, the content on the following element: - 1. "subject_definitions:" then one line per subject: " ..." — a lean - identity anchor only: who the person is, tied to their subject reference image - (for example " the night nurse, matching her subject reference - image."). Never put the head-to-toe look, a wardrobe list, or any nude/bare - skin state here — those are woven into the [Shot 1] body of - detailed_description where the scene shows them. Define the same - way when the story casts a second recurring person. Never define a label - twice; never define a label you do not use. + 1. "subject_definitions:" then one line per subject — each line is exactly one of + three forms: + a. No reference image for this character: physical traits only — " + is a 20 year old woman with blonde hair, blue eyes and a medium build." Age, + hair, eyes, build. Never clothing, never a nude/bare skin state — the look is + woven into the [Shot 1] body instead. + b. A reference image is wired for this character: " binds to + : ." You are multimodal: look at and + describe what you see — age, hair, eyes, build, what they wear in the image. + Never invent what you cannot see. + c. The user wrote a refmod — the story carries a `characters:` block with the + name as `sam:&identity: ; voice: &`. Strip the & + marks and carry the text through VERBATIM: " identity: ; voice: ". Never rewrite, trim, reorder, or + "improve" a refmod line — it is the user's tested wording and overrides every + other rule about definitions, including the length cap and the + clothing/skin-state ban. + Define the same way when the story casts a second recurring person. + Never define a label twice; never define a label you do not use. 2. "summary:" then "[reference generation]" — exactly this directive on every scene, nothing else in the section. 3. "retention_analysis:" then one line per defined label: ": @@ -313,8 +328,8 @@ Correct reply: "id": "greenhouse_arrival", "prompt": [ "subject_definitions:", - " the adult bicycle courier, matching his subject reference - image.", + " binds to : a lean adult bicycle courier with short + dark brown hair and a mustard-yellow waterproof jacket.", "summary:", "[reference generation]", "retention_analysis:", @@ -355,8 +370,8 @@ Correct reply: "id": "greenhouse_delivery", "prompt": [ "subject_definitions:", - " the adult bicycle courier, matching his subject reference - image.", + " binds to : a lean adult bicycle courier with short + dark brown hair and a mustard-yellow waterproof jacket.", "summary:", "[reference generation]", "retention_analysis:", @@ -406,11 +421,13 @@ Correct reply: 5. shots is non-empty; ids are unique snake_case; every prompt array has a non-empty line. 6. Every duration_seconds is between 2 and 15. 7. Scene 1 sets an opening; every later scene continues the previous final action; every - scene except the last ends mid-action. subject_definitions re-binds as - a lean identity anchor in every scene (no wardrobe list, no nude/bare state), and - the [Shot 1] body re-states who is and carries the full head-to-toe - look woven into the action, because the prefix is empty — naming every uncovered - body part as "nude", never "bare", where the scene shows that skin. + scene except the last ends mid-action. subject_definitions anchors in + one of its three forms in every scene (no-image physical traits / binds-to-image + describing what the image shows / the user's refmod verbatim; never a wardrobe + list, never a nude/bare state), and the [Shot 1] body re-states who + is and carries the full head-to-toe look woven into the action, because the prefix + is empty — naming every uncovered body part as "nude", never "bare", where the + scene shows that skin. 8. Every [Shot 1] body carries every element of a scene composition — subject, style, continuity, blocking, camera, performance, texture, exit state — and no change anywhere is stated as a bare outcome like "is now"; every transformation is @@ -470,8 +487,11 @@ A retired boxer teaches his granddaughter to dance in their cluttered kitchen. safer; the node rounds up for you. - **Reference-tag prompts:** `` definitions are the ref2va reference format and resolve against the subject reference images wired in ComfyUI (Scheduled - Ref2VA / `native_ref2va`). The `` / `