From 8cccfd38a3f7bcc919be6a16ac93e023437c214a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 3 May 2026 10:37:21 +0100 Subject: [PATCH] Correct image prompt assembly rules --- AGENTS.md | 6 ++++++ docs/architecture/ink-branching-scenes.md | 11 +++++++++-- ...s-species-strikes.branch-and-fold.v0.training.json | 10 ++++++---- notes/ghostlight-current-system-map.md | 8 +++++--- notes/ghostlight-implementation-plan.md | 5 ++++- prompts/README.md | 6 +++++- prompts/visual-scene-continuity-reviewer.md | 11 +++++++++++ state/evidence.jsonl | 1 + state/map.yaml | 2 +- 9 files changed, 48 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7a37323..7a95c38 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -157,6 +157,12 @@ When the user says to prepare for imminent compaction: need stable character visual refs for every recurring named character, and scene prompts should either include those refs during prompt assembly or carry enough appearance detail to stand alone. +- Include visual character refs only for characters actually visible in the + rendered frame. Do not feed imagegen refs for absent, off-frame, merely + mentioned, or object-represented characters. +- Treat visual continuity notes as tool/reviewer constraints, not prompt text. + If imagegen needs the fact, rewrite it as concrete visible description in the + base prompt, character ref, or branch/state modifier. - Ground scene writing in the source's material details: habitat form, infrastructure, law, class pressure, money, route access, surveillance, communication channels, body affordances, and local failure costs. diff --git a/docs/architecture/ink-branching-scenes.md b/docs/architecture/ink-branching-scenes.md index 4f21269..830d2b9 100644 --- a/docs/architecture/ink-branching-scenes.md +++ b/docs/architecture/ink-branching-scenes.md @@ -436,8 +436,7 @@ Prompt assembly for illustrated replay should combine: ```text global style cue - + global visual continuity - + visual_character_refs for visible named characters + + visual_character_refs for named characters actually visible in this rendered frame + visual section base_image_prompt + triggered state or branch image modifiers ``` @@ -449,6 +448,14 @@ itself. The same applies to visual style: if a fixture depends on a specific look, the assembled prompt must carry that style cue every time. Names are handles, not faces. +Do not include `visual_continuity_notes` verbatim in the image prompt. They are +tooling and review constraints for keeping repeated generations coherent. If a +continuity fact needs to reach the image model, rewrite it as concrete visible +prompt text in the base prompt, a character ref, or a branch/state modifier. +The image generator only sees the prompt you send it. It does not remember the +previous scene unless a real image-editing workflow supplies that image as +input. + The coordinator owns this surface for now. The responder should not receive omniscient visual art direction unless the character can observe it. Character packets may receive the local visible subset: what this actor can see, hear, diff --git a/examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json b/examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json index 259bc6b..61c4257 100644 --- a/examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json +++ b/examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json @@ -1289,7 +1289,8 @@ { "agent_id": "orrin_dax", "default_stance": "absent or off-frame, represented by cracked mug", - "visual_ref": "visual_character_refs.characters.orrin_dax" + "visual_ref": "visual_character_refs.characters.orrin_dax", + "prompt_ref_policy": "omit_visual_ref_unless_rendered_in_frame" } ], "state_image_modifiers": [], @@ -1343,11 +1344,11 @@ } ], "global_style_cue": "Style: Media Molecule Dreams-style 3D volumetric brushstroke painting; visible sculpted fleck strokes; painterly VR-made geometry; every detail is made of brush matter that feels partly solid, partly liquid, partly gas. Extremely detailed but soft, handmade, and non-photoreal. Tiny brushstrokes are allowed and encouraged, but the broad composition must remain readable.", - "prompt_assembly_rule": "Assemble each image prompt from visual_scene_plan.global_style_cue, global location continuity, visible character visual refs, the scene base_image_prompt, and any triggered state_image_modifiers or global_branch_image_modifiers." + "prompt_assembly_rule": "Assemble each image prompt from visual_scene_plan.global_style_cue, visual refs only for characters actually visible in the rendered frame, the scene base_image_prompt, and any triggered state_image_modifiers or global_branch_image_modifiers. Do not include visual_continuity_notes verbatim; use them only as tooling/review constraints unless rewritten as concrete visible prompt text." }, "visual_character_refs": { "purpose": "Stable named-character visual identities for prompt assembly. Image prompts must include these refs for every named visible character; scene prompts alone are not expected to teach imagegen what Lio, Nara, Orrin, Teth, or Ilya look like.", - "prompt_assembly_rule": "For each visual_scene_plan scene, assemble the image prompt from visual_scene_plan.global_style_cue, global location continuity, each visible character visual_ref, the scene base_image_prompt, and any triggered state_image_modifiers or global_branch_image_modifiers.", + "prompt_assembly_rule": "For each visual_scene_plan scene, include only the visual_character_refs for named characters actually visible in that rendered frame. Do not include refs for absent, off-frame, merely mentioned, or object-represented characters.", "characters": { "lio_vale": { "display_name": "Lio Vale", @@ -1418,7 +1419,8 @@ }, "branch_compiler_notes": { "review_notes": [ - "Added a global Media Molecule Dreams-style volumetric brushstroke cue so image prompt assembly carries the intended non-photoreal handmade visual language without repeating it in every scene." + "Added a global Media Molecule Dreams-style volumetric brushstroke cue so image prompt assembly carries the intended non-photoreal handmade visual language without repeating it in every scene.", + "Corrected image prompt assembly: visual_continuity_notes are non-prompt tooling constraints, and assembled prompts include only character refs for characters actually visible in the frame." ] } } diff --git a/notes/ghostlight-current-system-map.md b/notes/ghostlight-current-system-map.md index 0eaebce..ac78834 100644 --- a/notes/ghostlight-current-system-map.md +++ b/notes/ghostlight-current-system-map.md @@ -56,9 +56,11 @@ Visual replay is a live seam too. Illustrated IF fixtures need click-through sections with stable `visual_scene_id` anchors, stable visual character refs for recurring named characters, a global style cue when the visual language matters, imagegen-ready base prompts, character visibility and stance controls, -and branch/state modifiers. One whole-fixture image prompt is not enough when -the prose moves through several places, focal objects, alarms, standoffs, and -aftermath states. Names are handles, not faces. +and branch/state modifiers. Prompt assembly includes only refs for characters +actually visible in the frame, and continuity notes are not prompt text unless +rewritten as concrete visible description. One whole-fixture image prompt is +not enough when the prose moves through several places, focal objects, alarms, +standoffs, and aftermath states. Names are handles, not faces. ## Important Contracts diff --git a/notes/ghostlight-implementation-plan.md b/notes/ghostlight-implementation-plan.md index a8fd397..9e1d35f 100644 --- a/notes/ghostlight-implementation-plan.md +++ b/notes/ghostlight-implementation-plan.md @@ -60,7 +60,10 @@ not carry live next-action lists. fictional equipment and body affordances in visible terms. Named recurring characters need stable visual character refs; names are handles, not faces. When a fixture targets a specific image language, store one - global style cue and include it in every assembled image prompt. + global style cue and include it in every assembled image prompt. Include + character refs only for characters actually visible in the rendered frame; + keep continuity notes as tooling constraints unless rewritten as visible + prompt text. - IF review correction: run an independent artifact reviewer after branch/Ink generation and before acceptance. The reviewer audits fake variables, cosmetic choices, missing state reads, fake folds, unearned convergence, state-named-instead-of-checked prose, visual callback gaps, and endings that ignore major state. The first Cold Wake user review is a seed failure taxonomy for this evaluator path. - Visual review correction: run a visual scene continuity reviewer for illustrated fixtures. It audits oversized Ink screens, missing visual diff --git a/prompts/README.md b/prompts/README.md index 86cad28..ecbba2b 100644 --- a/prompts/README.md +++ b/prompts/README.md @@ -41,6 +41,10 @@ should be authored here first and referenced from artifacts or tools. assembly for every generated image. - Treat named characters as handles, not visual descriptions. Illustrated IF sidecars need stable visual character refs for recurring named characters, and - prompt assembly must include those refs when the character is visible. + prompt assembly must include those refs only when the character is actually + visible in the rendered frame. +- Treat continuity notes as tooling constraints, not prompt text. If the image + model needs a continuity fact, put it in visible terms inside the base prompt, + character ref, or modifier. - If a prompt is used for a capture, preserve the exact rendered prompt in the capture and include the prompt file path when the capture schema allows it. diff --git a/prompts/visual-scene-continuity-reviewer.md b/prompts/visual-scene-continuity-reviewer.md index b5426fd..da8fe9d 100644 --- a/prompts/visual-scene-continuity-reviewer.md +++ b/prompts/visual-scene-continuity-reviewer.md @@ -63,6 +63,9 @@ intent, but they do not excuse missing reader/player-facing structure. - Does each named visible character point to a stable visual identity ref, or does the scene prompt itself include enough description to render the person consistently? +- Are character refs limited to characters actually visible in that frame, + excluding absent, off-frame, merely mentioned, or object-represented + characters? - Are character positions and stances controlled by branch state where needed? - Are nonhuman or altered bodies represented through visible affordances: harnesses, supports, water/mist interfaces, manipulators, suit geometry, @@ -150,6 +153,12 @@ Each finding must include: - Do not accept named characters as visual descriptions. "Lio Vale stands by the manifold" is not enough unless the sidecar provides a stable visual reference for Lio and the prompt assembly path says to include it. +- Do not accept assembled prompts that include refs for characters not actually + visible in the frame. The model will draw the bodies it is told about, + because of course it will. Little beast has no stage manager. +- Do not accept `visual_continuity_notes` as prompt text. They are tooling + constraints; prompt-visible continuity must be rewritten as visible scene, + character, or modifier description. - Do not require every sentence to have a unique image. Require every distinct place, focal area, pivotal visual beat, and branch-visible state to have a durable visual anchor or modifier. @@ -180,6 +189,8 @@ Use these labels when applicable: - `missing_character_visibility` - `missing_character_design_ref` - `named_character_as_lore_password` +- `off_frame_character_ref_in_prompt` +- `continuity_note_used_as_prompt_text` - `missing_branch_visual_modifier` - `missing_state_trigger` - `branch_delta_not_visual` diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 1d59405..53ac739 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -46,3 +46,4 @@ {"ts": "2026-05-03T09:08:30+00:00", "type": "review", "status": "ok", "note": "Added visual scene continuity reviewer prompt and revised Pallas IF fixture for illustrated replay: click-through visual scene anchors, imagegen-ready per-section prompts, character visibility/stance controls, branch/state visual modifiers, and acceptance after visual review cleanup."} {"ts": "2026-05-03T09:25:38+00:00", "type": "review", "status": "ok", "note": "Added stable visual character refs for the Pallas illustrated IF fixture and updated visual review doctrine so named characters cannot rely on imagegen knowing their appearance from names alone."} {"ts": "2026-05-03T09:30:46+00:00", "type": "design", "status": "ok", "note": "Illustrated IF fixtures with a target look should store a global visual style cue and include it in every assembled image prompt; the Pallas fixture now carries the Dreams-style volumetric brushstroke cue."} +{"ts": "2026-05-03T09:37:16+00:00", "type": "design", "status": "ok", "note": "Corrected illustrated prompt assembly: prompts should include only in-frame character refs, while continuity notes remain tooling constraints unless rewritten as concrete visible prompt text."} diff --git a/state/map.yaml b/state/map.yaml index 59f1598..e15f8a4 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -42,7 +42,7 @@ hard_boundaries: - Technology exploration must emit game-usable item, component, assembly, supply-chain, compatibility, and provenance data mapped toward Aetheria-Economy. - Interactive-fiction fixtures should branch and fold: normalize most consequences into compact state variables and shared-scene conditionals, reserving isolated route splits for major world-changing divergence. - Interactive-fiction fixtures require independent artifact review before acceptance; tracked variables must materially affect later affordances, risk, appraisal, callbacks, visual state, or outcomes, unless explicitly marked telemetry-only. - - Complete interactive-fiction fixtures must emit visual art direction for website imagery, with click-through visual scene segmentation, stable visual character refs for recurring named characters, a global style cue when the visual language matters, one durable base image prompt per distinct section, character visibility and stance controls, and additive modification prompts for branch-visible consequences and scene-state changes. + - Complete interactive-fiction fixtures must emit visual art direction for website imagery, with click-through visual scene segmentation, stable visual character refs for recurring named characters, a global style cue when the visual language matters, one durable base image prompt per distinct section, character visibility and stance controls, and additive modification prompts for branch-visible consequences and scene-state changes; assembled prompts include only actually visible character refs and do not use continuity notes as prompt text unless rewritten as concrete visible description. - Archived local-model prototype runners are receipts and plumbing tests, not the gold-data path. live_architecture: