Split Ink visual plans from training sidecars

This commit is contained in:
Meta Vens 2026-05-03 11:21:41 +01:00
commit 8e275f770b
15 changed files with 1278 additions and 1174 deletions

View file

@ -118,6 +118,13 @@ This sidecar is intentionally not a new branching format. It is a receipt. Ink
remains the scene tree; the sidecar says why the tree grew that way and which
state changes a reviewer accepted.
Visual planning should live beside the sidecar, not inside it. Use a separate
`.visual.json` artifact for illustrated replay data: style cue, visual scene
anchors, image prompts, character refs, prompt assembly rules, and visual
modifiers. The training annotation may reference that file with
`visual_plan_ref`, but it should remain focused on branch semantics and
mutation surfaces.
## Mutation Policy
Ink variables can record local playthrough outcomes. They should not silently
@ -371,9 +378,9 @@ training seed, not in a shame drawer. Shame drawers have terrible indexing.
## Scene Imagery
Ghostlight scenes are also website content. A complete fixture should emit
vivid visual direction alongside prose and training receipts so story branches
can be illustrated without a later model guessing what the room looked like.
Ghostlight scenes are also website content. A complete fixture should emit a
visual plan artifact alongside prose and training receipts so story branches can
be illustrated without a later model guessing what the room looked like.
Interactive fiction replay also needs screen rhythm. A narrative scene may move
through several visual sections: establishing shot, workstation, break table,

View file

@ -298,7 +298,8 @@ priors, not omniscience.
### Branch Compiler
Turns scene intent, reviewed branch candidates, consequence packets, fold plans,
and visual continuity requirements into playable Ink plus sidecar receipts.
and visual continuity requirements into playable Ink plus sidecar receipts and,
when illustrated replay is in scope, a separate visual plan artifact.
The Branch Compiler is trainable because good branching structure is not just
syntax. It needs to decide where choices belong, which consequences can fold
@ -316,6 +317,7 @@ Training artifacts:
- fold plan
- generated Ink
- generated sidecar
- generated visual plan
- compiler notes
- variable set/read map
- route split or fold rationale

View file

@ -880,21 +880,22 @@ Outputs:
- Ink variables, choices, knots, gathers, and conditionals
- `.training.json` sidecar tying branches to state basis, action intent,
consequences, callbacks, and review status
- `.visual.json` visual plan tying visual scene ids, image prompts, character
refs, style cues, and branch/state modifiers to Ink anchors
- compiler notes for fold decisions, route-split decisions, and known review
risks
- base image prompt handles and branch/state modification handles
Training architecture:
- start as reviewed structured authoring
- generative decoder LLM for fixture drafting once sidecar shape stabilizes
- deterministic validators for Ink syntax, branch ids, sidecar refs, and schema
shape
- deterministic validators for Ink syntax, branch ids, sidecar refs, visual
plan refs, and schema shape
Training artifacts:
- accepted and rejected compiled fixtures
- Ink/sidecar pairs
- Ink/sidecar/visual-plan sets
- compiler notes
- fold and route-split decisions
- state-variable read/write maps
@ -905,8 +906,8 @@ Pilot schema shakedown gate:
- 25 accepted fixtures across multiple story shapes
- 25 rejected or needs-revision fixtures with labeled compiler failures
- every accepted fixture has an Ink file, sidecar, compiler notes, and review
status
- every accepted fixture has an Ink file, sidecar, visual plan, compiler notes,
and review status when illustrated replay is in scope
- every material variable is read later or marked telemetry-only before
acceptance
- branch compiler output is reviewed by the IF artifact reviewer before it
@ -926,6 +927,7 @@ Inputs:
- Ink file
- `.training.json` sidecar
- `.visual.json` visual plan, when illustrated replay is in scope
- coordinator artifact
- branch compiler notes
- declared variables, resources, risks, relationship bands, and visual

View file

@ -209,6 +209,11 @@
"ref_type": "ink_training_sidecar",
"path": "examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json"
},
{
"ref_id": "ink-visual-pallas-v0",
"ref_type": "ink_visual_plan",
"path": "examples/visual/pallas-species-strikes.branch-and-fold.v0.visual.json"
},
{
"ref_id": "clean-run-pallas-v0",
"ref_type": "readable_clean_run",

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"reviewer_id": "ghostlight_visual_scene_continuity_reviewer",
"artifact_ref": "examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json",
"artifact_ref": "examples/visual/pallas-species-strikes.branch-and-fold.v0.visual.json",
"review_prompt_ref": "prompts/visual-scene-continuity-reviewer.md",
"overall_status": "accepted",
"segmentation_score": 5,

View file

@ -95,6 +95,7 @@ path is a source-grounded branching-scene data loop:
- Pallas Species Strikes coordinator artifact: `examples/coordinator/pallas-species-strikes.branch-and-fold.v0.json`
- Pallas Species Strikes Ink scaffold: `examples/ink/pallas-species-strikes.branch-and-fold.v0.ink`
- Pallas Species Strikes Ink sidecar: `examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json`
- Pallas Species Strikes visual plan: `examples/visual/pallas-species-strikes.branch-and-fold.v0.visual.json`
- Pallas Species Strikes readable run: `experiments/pallas-species-strikes/pallas-species-strikes.branch-and-fold-clean-run.v0.md`
- Branch compiler and IF reviewer contract: `docs/architecture/ink-branching-scenes.md`
@ -148,6 +149,7 @@ interactive-fiction scaffold:
- `examples/coordinator/pallas-species-strikes.branch-and-fold.v0.json`
- `examples/ink/pallas-species-strikes.branch-and-fold.v0.ink`
- `examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json`
- `examples/visual/pallas-species-strikes.branch-and-fold.v0.visual.json`
- `experiments/pallas-species-strikes/pallas-species-strikes.branch-and-fold-clean-run.v0.md`
It starts in ordinary AU cavity-yard maintenance texture, introduces the major
@ -156,13 +158,13 @@ coordinated hazard refusal, baseline rigger solidarity pressure, BioElevate
liability framing, AU dry-operation cephalopod crawl leverage, and a folded
recognition/safety climax. The Ink now gates Nara's marked path and Teth's
bypass, gives `evidence_of_sentience`, `nara_centered`, and
`formal_stoppage` later reads, and gives visual sidecar states explicit
trigger mappings. It now segments the introduction, branch locations, Kappa red
alert, climax decision, and aftermath into click-through visual sections with
`visual_scene_id` anchors, stable `visual_character_refs`, a global
Media Molecule Dreams-style volumetric brushstroke cue, and imagegen-ready
prompts that explain fictional equipment in visible terms. Treat it as
coordinator/IF scaffold training data, not raw responder gold.
`formal_stoppage` later reads, and gives visual plan states explicit trigger
mappings. It now segments the introduction, branch locations, Kappa red alert,
climax decision, and aftermath into click-through visual sections with
`visual_scene_id` anchors, stable `visual_character_refs`, a global Media
Molecule Dreams-style volumetric brushstroke cue, and imagegen-ready prompts
that explain fictional equipment in visible terms. Treat it as coordinator/IF
scaffold training data, not raw responder gold.
Next: add the corpus coverage ledger seam or choose the next Aetheria fixture
from the 100-150 broad coverage target.

View file

@ -35,7 +35,7 @@ Aetheria lore/source context
-> mutation receipt
-> updated scene/world/social state
-> coordinator continuity and next-beat plan
-> branch compiler materializes Ink + sidecar + compiler notes
-> branch compiler materializes Ink + sidecar + visual plan + compiler notes
-> IF artifact reviewer audits consequence, fold, and visual continuity
-> visual scene reviewer audits click-through segmentation and imagegen-ready prompts
-> accepted fixture / future training corpus
@ -56,11 +56,13 @@ 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. 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.
and branch/state modifiers. This data belongs in a separate `.visual.json`
artifact referenced by the training sidecar, not inside the training annotation
itself. 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

View file

@ -50,7 +50,7 @@ not carry live next-action lists.
not raw responder gold.
- Interactive-fiction correction: a full-story pass is not just a linear chain of responder receipts. It needs a beginning-to-ending narrative spine, branch points, and cross-scene consequence carryover so decisions visibly matter later. Responder artifacts should be generated at branch/action moments, while coordinator artifacts track branch flags, relationship deltas, resource costs, unresolved hooks, and later scene consequences.
- Branch-and-fold correction: do not let every choice create an isolated subtree. Normalize consequences into compact state bands and flags, fold most branches back into shared later scenes, and reserve major route splits for consequences that change the playable world enough that convergence would lie.
- Branch compiler correction: treat Ink materialization as its own organ. It receives fixture brief, lore digest, scene/world/relationship state, actor-local branch candidates, consequence packets, fold plan, and visual continuity requirements; it emits playable Ink plus a training sidecar and compiler notes. It does not own hidden character truth or social mutation.
- Branch compiler correction: treat Ink materialization as its own organ. It receives fixture brief, lore digest, scene/world/relationship state, actor-local branch candidates, consequence packets, fold plan, and visual continuity requirements; it emits playable Ink plus a training sidecar, a separate visual plan artifact when illustrated replay is in scope, and compiler notes. It does not own hidden character truth or social mutation.
- Website-content correction: each complete scene should include an art-direction block with establishing shot, light/color, bodies/interfaces, material evidence, branch-visible marks, one durable base image prompt, and additive branch/state modification prompts. Visual continuity is part of consequence carryover, not decorative garnish applied after the story escapes containment.
- Illustrated-IF correction: a narrative scene can contain multiple visual
sections. The branch compiler should segment introductions, focal areas,

View file

@ -37,12 +37,12 @@ should be authored here first and referenced from artifacts or tools.
each distinct place, focal area, pivotal moment, and branch-visible state
needs an imagegen-ready prompt or modifier.
- Treat visual style as prompt-relevant state when the fixture needs a specific
look. Store the style cue once in the sidecar and include it during prompt
assembly for every generated image.
look. Store the style cue once in the visual plan artifact and include it
during prompt 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 only when the character is actually
visible in the rendered frame.
visual plans need stable visual character refs for recurring named
characters, and 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.

View file

@ -2,7 +2,7 @@
You are Ghostlight's visual scene and Ink segmentation reviewer.
Your job is to review playable Ink and its training sidecar as illustrated
Your job is to review playable Ink and its visual plan artifact as illustrated
interactive fiction. Assume the prose may be good and the branch variables may
work, while the replay experience still fails because too much text sits on one
screen, the visual plan is too coarse, or image prompts require private lore
@ -17,14 +17,16 @@ see is not an image prompt. It is a lore password.
You may receive:
- the Ink file
- the Ink sidecar
- the Ink training annotation
- the Ink visual plan artifact
- the coordinator artifact
- the clean-run rendering
- the lore grounding digest
- prior reviewer notes
Use the Ink and sidecar as the primary artifacts. Supporting files can clarify
intent, but they do not excuse missing reader/player-facing structure.
Use the Ink and visual plan as the primary artifacts for visual review. The
training annotation can clarify branch semantics, but it does not excuse
missing reader/player-facing structure.
## Required Checks
@ -51,7 +53,7 @@ intent, but they do not excuse missing reader/player-facing structure.
### Visual Scene Anchors
- Does each major section or location have a stable visual scene id?
- Does the sidecar define a global style cue when the fixture depends on a
- Does the visual plan define a global style cue when the fixture depends on a
specific image language?
- Does prompt assembly include the global style cue in every generated image
prompt rather than relying on a reviewer or human to remember it?
@ -71,7 +73,7 @@ intent, but they do not excuse missing reader/player-facing structure.
### Character Visibility And Stance
- Does the sidecar define stable visual identity references for every named
- Does the visual plan define stable visual identity references for every named
recurring character, including body type, face/hair/skin or equivalent
visible identity, clothing/equipment, silhouette, and do-not-change details?
- Does each visual scene declare who may be visible?
@ -169,7 +171,7 @@ Each finding must include:
line" is not enough unless the prompt describes the pipe/cable/panel/valve
structure and surrounding corridor geometry.
- Do not accept named characters as visual descriptions. "Lio Vale stands by
the manifold" is not enough unless the sidecar provides a stable visual
the manifold" is not enough unless the visual plan 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,
@ -183,7 +185,7 @@ Each finding must include:
- Mark missing click-through segmentation when an Ink knot would put multiple
visual scenes on one screen or rush past a key moment.
- Mark missing character visibility when a later image must know who is in the
frame but the sidecar does not say.
frame but the visual plan does not say.
- Mark missing character design refs when an image model would have to invent
a recurring character's appearance from their name alone.
- Mark branch modifiers as weak if they describe emotion without visible

View file

@ -52,3 +52,4 @@
{"ts": "2026-05-03T09:57:42+00:00", "type": "lore", "status": "ok", "note": "Patched Pallas cephalopod grounding: AU dry-operation support rigs are bare-minimum productivity equipment for zero-g crawl and seal work, not Navigator-style or cephalopod-native comfort habitat; revised Pallas story/state/digest/coordinator/visual prompts and patched AetheriaLore source docs accordingly."}
{"ts": "2026-05-03T10:05:39+00:00", "type": "fixture", "status": "ok", "note": "Revised Pallas fixture prose and visual sidecar to make Teth Inkwise carry AU cephalopod dry-operation exploitation through visible discomfort, restrained stoicism, and worn harness details without turning the scene into exposition."}
{"ts": "2026-05-03T10:12:17+00:00", "type": "review", "status": "ok", "note": "Tightened Pallas visual segmentation doctrine and fixture structure: scene-changing arrivals and institutional reframes now require click-through visual transitions; split Nara refusal from Ilya arrival and AU classification from BioElevate legal reframe."}
{"ts": "2026-05-03T10:20:18+00:00", "type": "architecture", "status": "ok", "note": "Split illustrated IF visual planning out of the Pallas Ink training annotation into a separate .visual.json artifact, with validator support for visual_plan_ref so training sidecars stay focused on branch semantics and mutation surfaces."}

View file

@ -65,8 +65,8 @@ live_architecture:
- Glue prose is training signal, not canonical truth.
- Coordinator prose should choose an intentional tonal mode for the scene and protect breathing room when the story needs routine, levity, domestic texture, wonder, or slow dread before consequence.
branch_compiler:
- The branch compiler turns fixture briefs, lore digests, scene/world state, actor-local branch candidates, reviewed consequence packets, fold plans, and visual continuity requirements into playable Ink plus training sidecars and compiler notes.
- The branch compiler owns playable structure, click-through segmentation, conditionals, variables, callbacks, fold materialization, visual scene ids, and image prompt handles; it does not own hidden character truth, participant appraisal, or durable social mutation.
- The branch compiler turns fixture briefs, lore digests, scene/world state, actor-local branch candidates, reviewed consequence packets, fold plans, and visual continuity requirements into playable Ink plus training sidecars, separate visual plan artifacts when illustrated replay is in scope, and compiler notes.
- The branch compiler owns playable structure, click-through segmentation, conditionals, variables, callbacks, fold materialization, visual scene ids, and image prompt handles; it stores visual prompt data in `.visual.json` artifacts rather than bloating training annotations; it does not own hidden character truth, participant appraisal, or durable social mutation.
training_targets:
- Coordinator/story runtime
- Memory and lore retrieval
@ -75,7 +75,7 @@ live_architecture:
- Participant appraiser
- State mutator
- Relationship/perception updater
- Branch compiler for Ink materialization, fold/callback structure, sidecar generation, and visual prompt handles
- Branch compiler for Ink materialization, fold/callback structure, sidecar generation, separate visual plan generation, and visual prompt handles
- Interactive-fiction artifact reviewer for fake variables, cosmetic choices, missing state reads, fake folds, and visual callback gaps
- Visual scene continuity reviewer for click-through segmentation, imagegen-ready prompts, character visibility, stance control, and branch/state visual modifiers
- Human-facing appraisal and opinion model for VoidBot
@ -169,6 +169,7 @@ current_artifacts:
- examples/coordinator/pallas-species-strikes.branch-and-fold.v0.json
- examples/ink/pallas-species-strikes.branch-and-fold.v0.ink
- examples/ink/pallas-species-strikes.branch-and-fold.v0.training.json
- examples/visual/pallas-species-strikes.branch-and-fold.v0.visual.json
- experiments/pallas-species-strikes/pallas-species-strikes.branch-and-fold-clean-run.v0.md
archived_receipts:
- Archived local-model prototype captures remain under experiments/ and examples/ink/ for validation and lessons, not active steering.
@ -183,5 +184,5 @@ data_flow:
- If state grows faster than understanding, cut it back.
current_status:
summary: Pallas Species Strikes now has a reviewer-revised accepted-as-draft branch-and-fold IF fixture grounded in AU cavity-yard labor, Awakened Labor organizing, BioElevate uplift/biodrone systems, baseline displacement fear, cephalopod maintenance leverage, click-through visual segmentation, stable visual character refs, a global Dreams-style image cue, and imagegen-ready scene prompts. Cold Wake remains an archived historical fixture and local-model receipt surface, not the active gold-data path.
summary: Pallas Species Strikes now has a reviewer-revised accepted-as-draft branch-and-fold IF fixture grounded in AU cavity-yard labor, Awakened Labor organizing, BioElevate uplift/biodrone systems, baseline displacement fear, and cephalopod maintenance leverage. Its training annotation now references a separate visual plan artifact for click-through visual segmentation, stable visual character refs, the global Dreams-style image cue, and imagegen-ready scene prompts. Cold Wake remains an archived historical fixture and local-model receipt surface, not the active gold-data path.
next_action: Add the corpus coverage ledger seam or select the next Aetheria fixture from the 100-150 broad coverage target.

View file

@ -32,6 +32,14 @@ VALID_ACTION_TYPES = {
"mixed",
}
VALID_CAPTURE_REVIEW_STATUSES = {"accepted", "accepted_as_draft", "rejected", "needs_revision", "useful_needs_revision"}
VALID_VISUAL_SCENE_KEYS = {
"visual_scene_id",
"ink_anchor",
"base_image_prompt",
"visible_characters",
"state_image_modifiers",
"visual_continuity_notes",
}
class ValidationError(Exception):
@ -166,6 +174,10 @@ def validate_annotation(path: Path, ink_path: Path) -> None:
require(data["schema_version"] == "ghostlight.ink_training_annotation.v0", f"{path}.schema_version is wrong")
require((ROOT / data["ink_ref"]).resolve() == ink_path.resolve(), f"{path}.ink_ref does not match {ink_path}")
require((ROOT / data["source_fixture_ref"]).exists(), f"{path}.source_fixture_ref does not exist")
if "visual_plan_ref" in data:
visual_plan_path = ROOT / data["visual_plan_ref"]
require(visual_plan_path.exists(), f"{path}.visual_plan_ref does not exist")
validate_ink_visual_plan(visual_plan_path, ink_path, path)
validate_text_blocks(data["local_awareness_summary"], f"{path}.local_awareness_summary")
controls = data["projection_controls"]
@ -226,6 +238,60 @@ def validate_annotation(path: Path, ink_path: Path) -> None:
require(isinstance(value, bool), f"{path}.audit.checks.{key} must be boolean")
def validate_ink_visual_plan(path: Path, ink_path: Path, annotation_path: Path) -> None:
data = load_json(path)
require(isinstance(data, dict), f"{path} must be an object")
require_keys(
data,
[
"schema_version",
"visual_plan_id",
"ink_ref",
"source_training_annotation_ref",
"scene_id",
"purpose",
"visual_art_direction",
"visual_scene_plan",
"visual_character_refs",
],
str(path),
)
require(data["schema_version"] == "ghostlight.ink_visual_plan.v0", f"{path}.schema_version is wrong")
require((ROOT / data["ink_ref"]).resolve() == ink_path.resolve(), f"{path}.ink_ref does not match {ink_path}")
require((ROOT / data["source_training_annotation_ref"]).resolve() == annotation_path.resolve(), f"{path}.source_training_annotation_ref does not match {annotation_path}")
art = data["visual_art_direction"]
require_keys(art, ["base_scene_prompt", "modification_prompts"], f"{path}.visual_art_direction")
require(isinstance(art["base_scene_prompt"], str) and art["base_scene_prompt"].strip(), f"{path}.visual_art_direction.base_scene_prompt must be non-empty")
require(isinstance(art["modification_prompts"], list), f"{path}.visual_art_direction.modification_prompts must be an array")
plan = data["visual_scene_plan"]
require_keys(plan, ["global_style_cue", "segmentation_rule", "scenes", "global_branch_image_modifiers", "prompt_assembly_rule"], f"{path}.visual_scene_plan")
require(isinstance(plan["global_style_cue"], str) and plan["global_style_cue"].strip(), f"{path}.visual_scene_plan.global_style_cue must be non-empty")
require(isinstance(plan["scenes"], list) and plan["scenes"], f"{path}.visual_scene_plan.scenes must be non-empty")
seen_scene_ids: set[str] = set()
for index, scene in enumerate(plan["scenes"]):
scene_path = f"{path}.visual_scene_plan.scenes[{index}]"
require(isinstance(scene, dict), f"{scene_path} must be an object")
require(set(scene.keys()).issuperset(VALID_VISUAL_SCENE_KEYS), f"{scene_path} missing visual scene keys")
scene_id = scene["visual_scene_id"]
require(isinstance(scene_id, str) and scene_id.strip(), f"{scene_path}.visual_scene_id must be non-empty")
require(scene_id not in seen_scene_ids, f"{scene_path}.visual_scene_id duplicates {scene_id}")
seen_scene_ids.add(scene_id)
require(isinstance(scene["ink_anchor"], str) and scene["ink_anchor"].strip(), f"{scene_path}.ink_anchor must be non-empty")
require(isinstance(scene["base_image_prompt"], str) and scene["base_image_prompt"].strip(), f"{scene_path}.base_image_prompt must be non-empty")
require(isinstance(scene["visible_characters"], list), f"{scene_path}.visible_characters must be an array")
require(isinstance(scene["state_image_modifiers"], list), f"{scene_path}.state_image_modifiers must be an array")
require(isinstance(scene["visual_continuity_notes"], list), f"{scene_path}.visual_continuity_notes must be an array")
refs = data["visual_character_refs"]
require_keys(refs, ["purpose", "prompt_assembly_rule", "characters"], f"{path}.visual_character_refs")
require(isinstance(refs["characters"], dict) and refs["characters"], f"{path}.visual_character_refs.characters must be non-empty")
for character_id, ref in refs["characters"].items():
ref_path = f"{path}.visual_character_refs.characters.{character_id}"
require_keys(ref, ["display_name", "species_or_body", "stable_visual_description", "silhouette_notes", "do_not_change"], ref_path)
def validate_qwen_ink_capture(path: Path) -> None:
data = load_json(path)
require(isinstance(data, dict), f"{path} must be an object")