no length caps and no lean doctrine in subject_definitions - node-author compactness rules removed (different H3 model)

This commit is contained in:
Z User 2026-10-30 20:41:57 +00:00
parent 962c667418
commit de19ecee44
4 changed files with 12 additions and 20 deletions

View File

@ -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, 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 eyes, build; never clothing, never a nude/bare state); a character WITH a
reference image gets "<Subject 1> binds to <Image 1> : what the image actually reference image gets "<Subject 1> binds to <Image 1> : 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 refmod (`sam:&identity: ...; voice: ...&` in the story's characters block) is
carried through VERBATIM as "<Subject 1> identity: ...; voice: ..." — never carried through VERBATIM as "<Subject 1> identity: ...; voice: ..." — never
rewritten, never trimmed, exempt from every defs limit. Weave the head-to-toe rewritten, never trimmed, exempt from every defs limit. Weave the head-to-toe

View File

@ -254,8 +254,8 @@ Shots are flat. A shot never contains a nested object.
marks and carry the text through VERBATIM: "<Subject 1> identity: <their marks and carry the text through VERBATIM: "<Subject 1> identity: <their
identity text>; voice: <their voice text>". Never rewrite, trim, reorder, or identity text>; voice: <their voice text>". Never rewrite, trim, reorder, or
"improve" a refmod line — it is the user's tested wording and overrides every "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 other rule about definitions (the no-image clothing and skin-state bans
form's limits ever apply to a refmod line). never apply to a refmod line).
Define <Subject 2> the same way when the story casts a second recurring person. Define <Subject 2> the same way when the story casts a second recurring person.
Never define a label twice; never define a label you do not use. Never define a label twice; never define a label you do not use.
2. "summary:" then "[reference generation]" — exactly this directive on every scene, 2. "summary:" then "[reference generation]" — exactly this directive on every scene,

View File

@ -368,8 +368,8 @@ The sound picture is its own element and lives in the overall_soundscape section
carry the text through VERBATIM: "<Subject 1> identity: <their identity text>; carry the text through VERBATIM: "<Subject 1> identity: <their identity text>;
voice: <their voice text>". Never rewrite, trim, reorder, or "improve" a voice: <their voice text>". Never rewrite, trim, reorder, or "improve" a
refmod line — it is the user's tested wording and overrides every other rule 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 about definitions (the no-image clothing and skin-state bans never apply to
limits ever apply to a refmod line). a refmod line).
Define <Subject 2> the same way when the outline casts a second person. Never Define <Subject 2> the same way when the outline casts a second person. Never
define a label twice; never define a label you do not use. define a label twice; never define a label you do not use.
2. "summary:" then "[reference generation]" — exactly this directive on every scene 2. "summary:" then "[reference generation]" — exactly this directive on every scene

View File

@ -32,16 +32,15 @@ REF2VA_RETENTION_MARKERS = {"fully_preserved", "partially_preserved",
"attribute_transfer", "weak_reference"} "attribute_transfer", "weak_reference"}
# Rule 7 - a subject_definitions line comes in exactly one of three forms: # Rule 7 - a subject_definitions line comes in exactly one of three forms:
# 1. no reference image -> "<Subject N> is a <age> ... with <hair>, <eyes> and # 1. no reference image -> "<Subject N> is a <age> ... with <hair>, <eyes> and
# <build>" - lean physical traits only (25-word cap): never clothing, never a # <build>" - physical traits only: never clothing, never a nude/bare skin
# nude/bare skin state # state
# 2. reference image -> "<Subject N> binds to <Image N> : <what the image # 2. reference image -> "<Subject N> binds to <Image N> : <what the image
# actually shows>" - faithful to the image, NO length cap; the writer is # actually shows>" - faithful to the image; the writer is multimodal
# multimodal
# 3. user refmod -> "<Subject N> identity: <verbatim>; voice: <verbatim>" # 3. user refmod -> "<Subject N> identity: <verbatim>; voice: <verbatim>"
# - the user's own tested wording, carried through untouched (exempt from # - 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. # 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_REFMOD_RE = re.compile(r"^identity\s*:", re.I)
REF2VA_BINDS_RE = re.compile(r"^binds to <Image\s+\d+>\s*:\s*", re.I) REF2VA_BINDS_RE = re.compile(r"^binds to <Image\s+\d+>\s*:\s*", re.I)
REF2VA_DEF_SKINSTATE_RE = re.compile( 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"definition - physical traits only (age, hair, eyes, "
f"build); weave every garment into the [Shot 1] body " f"build); weave every garment into the [Shot 1] body "
f"where the action touches it: {line[:60]!r}") 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)) defined.append(m.group(1))
if "<Subject 1>" not in defined: if "<Subject 1>" not in defined:
raise ValueError(f"{where}: <Subject 1> must be defined in subject_definitions") raise ValueError(f"{where}: <Subject 1> 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)") f"texture, sound, exit state)")
if "<Subject 1>" not in body: if "<Subject 1>" not in body:
raise ValueError(f"{where}: the [Shot 1] body must re-state <Subject 1> and " raise ValueError(f"{where}: the [Shot 1] body must re-state <Subject 1> and "
f"carry the head-to-toe look woven into the action (lean " f"carry the head-to-toe look woven into the action")
f"definitions do not render)")
if " is now " in dd.lower(): if " is now " in dd.lower():
raise ValueError(f"{where}: change stated as bare outcome instead of shown progression") raise ValueError(f"{where}: change stated as bare outcome instead of shown progression")
if re.search(r"\bbare\b", dd, re.I): 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 # 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 = { REF2VA_DOOR = {
"id": "door_stop", "id": "door_stop",
"duration_seconds": 8, "duration_seconds": 8,