diff --git a/h3-plan-gate/SKILL.md b/h3-plan-gate/SKILL.md index fe3ccd8..5ad2ee0 100755 --- a/h3-plan-gate/SKILL.md +++ b/h3-plan-gate/SKILL.md @@ -177,7 +177,7 @@ and sampler latent or the video can come out square. 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, no length cap); and a user + 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 every defs limit. Weave the head-to-toe diff --git a/h3-plan-gate/h3_plan_json_system_prompt.md b/h3-plan-gate/h3_plan_json_system_prompt.md index 83e72ee..0f9795a 100755 --- a/h3-plan-gate/h3_plan_json_system_prompt.md +++ b/h3-plan-gate/h3_plan_json_system_prompt.md @@ -254,8 +254,8 @@ Shots are flat. A shot never contains a nested object. 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 (only the no-image form has a length cap, and no - form's limits ever apply to a refmod line). + other rule about definitions (the no-image clothing and skin-state bans + never apply to a refmod line). 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, diff --git a/h3-plan-gate/h3_scene_agent_system_prompt.md b/h3-plan-gate/h3_scene_agent_system_prompt.md index 657b67c..24e24de 100755 --- a/h3-plan-gate/h3_scene_agent_system_prompt.md +++ b/h3-plan-gate/h3_scene_agent_system_prompt.md @@ -368,8 +368,8 @@ The sound picture is its own element and lives in the overall_soundscape section 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 (only the no-image form has a length cap, and no form's - limits ever apply to a refmod line). + about definitions (the no-image clothing and skin-state bans never apply to + a refmod line). Define the same way when the outline casts a second 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 diff --git a/h3-plan-gate/verify_plan_rules.py b/h3-plan-gate/verify_plan_rules.py index 6111b2a..6faccbe 100755 --- a/h3-plan-gate/verify_plan_rules.py +++ b/h3-plan-gate/verify_plan_rules.py @@ -32,16 +32,15 @@ REF2VA_RETENTION_MARKERS = {"fully_preserved", "partially_preserved", "attribute_transfer", "weak_reference"} # Rule 7 - a subject_definitions line comes in exactly one of three forms: # 1. no reference image -> " is a ... with , and -# " - lean physical traits only (25-word cap): never clothing, never a -# nude/bare skin state +# " - physical traits only: never clothing, never a nude/bare skin +# state # 2. reference image -> " binds to : " - faithful to the image, NO length cap; the writer is -# multimodal +# actually shows>" - faithful to the image; the writer is multimodal # 3. user refmod -> " identity: ; voice: " # - the user's own tested wording, carried through untouched (exempt from -# every no-image trait limit: length, clothing, skin state) +# the no-image content bans: clothing and skin state) +# No form carries a length cap - describe fully what the model needs. # In every form the full look is still woven into the [Shot 1] body. -REF2VA_DEF_MAX_WORDS = 25 REF2VA_REFMOD_RE = re.compile(r"^identity\s*:", re.I) REF2VA_BINDS_RE = re.compile(r"^binds to \s*:\s*", re.I) REF2VA_DEF_SKINSTATE_RE = re.compile( @@ -206,12 +205,6 @@ def check_ref2va_prompt(lines, dur, where, prev_handoff=None): f"definition - physical traits only (age, hair, eyes, " f"build); weave every garment into the [Shot 1] body " f"where the action touches it: {line[:60]!r}") - words = len(anchor.split()) - if words > REF2VA_DEF_MAX_WORDS: - raise ValueError(f"{where}: {m.group(1)} definition is {words} words - " - f"keep it to lean physical traits (age, hair, eyes, " - f"build); the full look is woven into the [Shot 1] body " - f"according to what the scene shows") defined.append(m.group(1)) if "" not in defined: raise ValueError(f"{where}: must be defined in subject_definitions") @@ -245,8 +238,7 @@ def check_ref2va_prompt(lines, dur, where, prev_handoff=None): f"texture, sound, exit state)") if "" not in body: raise ValueError(f"{where}: the [Shot 1] body must re-state and " - f"carry the head-to-toe look woven into the action (lean " - f"definitions do not render)") + f"carry the head-to-toe look woven into the action") if " is now " in dd.lower(): raise ValueError(f"{where}: change stated as bare outcome instead of shown progression") if re.search(r"\bbare\b", dd, re.I): @@ -658,7 +650,7 @@ REF2VA_NURSE = { } # DOOR exercises the third definition form: a user refmod carried through -# verbatim (identity + voice), exempt from the length cap and content bans. +# verbatim (identity + voice), exempt from the no-image content bans. REF2VA_DOOR = { "id": "door_stop", "duration_seconds": 8,