Adopt Ink for branching scenes

This commit is contained in:
Meta Vens 2026-05-01 23:52:15 +01:00
commit 909d9be119
12 changed files with 732 additions and 29 deletions

View file

@ -39,6 +39,7 @@ Ghostlight now has the persistence spine plus the first architecture payload:
- `docs/architecture/prompt-projection-contract.md`
- `docs/architecture/projection-distillation-plan.md`
- `docs/architecture/sequential-agent-runtime.md`
- `docs/architecture/ink-branching-scenes.md`
- evaluation follow-up docs:
- `docs/architecture/schema-future-mechanisms.md`
- Aetheria lore grounding docs:
@ -63,6 +64,11 @@ Ghostlight now has the persistence spine plus the first architecture payload:
- `tools/build_cold_wake_story_lab_fixture.py`
- `tools/run_qwen_projection.py`
- `tools/validate_qwen_captures.py`
- Ink branching seam:
- `examples/ink/cold-wake-sanctuary-intake.ink`
- `examples/ink/cold-wake-sanctuary-intake.training.json`
- `tools/validate_ink_examples.py`
- `inkjs` dev dependency and `npm run ink:validate`
- Cold Wake fixture note:
- `docs/architecture/aetheria-cold-wake-training-fixture.md`
- first projection example seam:
@ -73,8 +79,9 @@ Ghostlight now has the persistence spine plus the first architecture payload:
- visitor-facing README refreshed to explain Ghostlight's goals
There is still no full runtime yet. The live machine is design, state
discipline, a cleaner repo boundary, the first executable state contract, and a
documented projection path.
discipline, a cleaner repo boundary, the first executable state contract, a
documented projection path, and the first Ink-backed playable branching scene
with reviewed training annotations.
## Current Direction
@ -91,9 +98,10 @@ training feedstock for projection and dialogue scaffolding.
## Current Next Action
Build the first deterministic scene-local dialogue prototype: local awareness,
projection controls, action/dialogue prompt, Qwen event proposal, conservative
state mutation, and validation on one Cold Wake story-lab beat.
Build the next Ink-backed scene prototype pass: generate or project branch
choices from local awareness, compile Ink, validate sidecar training
annotations, and test one selected branch's reviewed state/memory/relationship
mutation.
Cat/Oz remains useful as an Elysium procedural mechanics fixture, but grounded
training data should start from authored historical lore rather than gameplay
@ -132,14 +140,20 @@ Completed projection path items:
`required_semantics`, and `forbidden_resolutions`
- add a Qwen projection runner and capture validator so response artifacts are
reviewed training receipts, not loose logs
- adopt Ink as the standard playable branching scene format rather than
inventing a parallel Ghostlight dialogue-tree format
- add the first Cold Wake Ink scene,
`examples/ink/cold-wake-sanctuary-intake.ink`, with a reviewed sidecar
annotation tying branches to Ghostlight state, projection controls,
consequence surfaces, and manual mutation policy
Remaining projection path:
- build a deterministic speaker-local input slicer
- build a renderer that emits projection controls before prompt prose
- build the first scene-local branching tick so an agent can act from local
awareness, produce branchable speech or non-speech action, trigger NPC
responses, and mutate only the state it has authority to affect
- build the first local-awareness-to-Ink generation pass so an agent can act
from local awareness, produce branchable speech or non-speech choices, trigger
NPC responses, and annotate mutations without replacing Ink
- keep the near-term product target to interactive dialogue trees and
scene-local consequences
- preserve training-data hooks for future open-world behavior, iterated

View file

@ -50,6 +50,10 @@ state and re-entry discipline.
generated actions become event proposals, and bounded state mutation drives
branchable speech or non-speech scene consequences while preserving
training hooks for later open-world, economic, and faction decision models
- `docs/architecture/ink-branching-scenes.md`
- integration contract that makes Ink the standard playable branch format
while Ghostlight owns local awareness, projection rationale, consequence
review, and state mutation around Ink scenes
- `docs/experiments/cold-wake-story-lab.md`
- four-scene Cold Wake writing experiment using Ghostlight projection as a
story-generation crutch and training-data source
@ -99,6 +103,13 @@ state and re-entry discipline.
- `examples/lore-grounding/cold-wake-panic.ganymede-corridor.json`
- first draft historical grounding digest, centered on Cold Wake Panic in the
Ganymede/Jovian corridor
- `examples/ink/cold-wake-sanctuary-intake.ink`
- first playable Ink-backed Cold Wake branching scene, using speech, gesture,
object revelation, and moral-pressure branches
- `examples/ink/cold-wake-sanctuary-intake.training.json`
- reviewed sidecar annotation tying Ink branches to Ghostlight local
awareness, projection controls, branch rationale, consequence surfaces, and
manual mutation policy
- `tools/ghostlight_state.py`
- compact state inspection and evidence or branch updates
- `tools/ghostlight_prepare_compaction.py`
@ -114,6 +125,9 @@ state and re-entry discipline.
- validates reviewed Qwen response capture receipts
- `tools/validate_lore_grounding.py`
- dependency-free validator for lore grounding digest examples
- `tools/validate_ink_examples.py`
- compiles Ink examples with `inkjs` and validates sidecar training
annotations
- `tools/build_cold_wake_story_lab_fixture.py`
- generator for the verbose Cold Wake story-lab state fixture
@ -127,12 +141,14 @@ state and re-entry discipline.
- a simulation/event loop implementation
- a relationship engine
- a culture prior engine
- an automatic Ink branch generator from local awareness
- automatic promotion of Ink branch outcomes into canonical state
The canonical agent-state schema, projection example schema, lore grounding
digest schema, first draft Cold Wake grounding digest, and first Cold Wake
story-lab Qwen captures now exist as v0 seams. The first complete Cold Wake
story pass exists with receipts, and projection controls have been promoted as
the architectural answer to repeated prompt leaks. The next implementation
target is the first deterministic scene-local dialogue tick: local awareness,
action/dialogue prompt, event proposal, conservative state mutation, and
validation.
the architectural answer to repeated prompt leaks. Ink is now the standard
branching scene format; the next implementation target is projecting or
generating Ink branches from local awareness and testing selected branch
mutation through reviewed state, memory, and relationship updates.

View file

@ -38,6 +38,9 @@
4. Build the scene-local sequential dialogue loop. New target.
- Use `docs/architecture/sequential-agent-runtime.md` as the first runtime
contract.
- Use `docs/architecture/ink-branching-scenes.md` as the branch-format
contract. Ink owns playable branching scenes; Ghostlight owns local
awareness, projection rationale, consequences, and reviewed state mutation.
- Keep the product target narrow: procedural branching scene trees for games
first. "Dialogue tree" means speech and non-speech actions, not only
spoken lines.
@ -62,8 +65,8 @@
appraiser training data.
- Keep author control at stage-setting and high-level constraints; do not
require the author to script every beat.
- Emit game-useful artifacts: scene transcript, candidate player choices,
including non-speech actions, NPC response branches,
- Emit game-useful artifacts: Ink scene source, compiled Ink JSON, scene
transcript, candidate player choices, including non-speech actions, NPC response branches,
state/memory/social-perception deltas, and unresolved hooks.
- For protagonist scenes, generate several plausible things the protagonist
could do from state and affordances, then generate NPC responses and branch
@ -76,9 +79,10 @@
- Still record why agents buy, refuse, trade, hoard, comply, defect, conceal,
punish, or help when those decisions appear in scenes; those reviewed
decisions are seed data for later consumer-behavior and faction models.
- First prototype: rerun one Cold Wake story-lab beat through a deterministic
local-awareness/projection-control renderer, then apply one conservative
state mutation and validate the resulting fixture.
- First prototype: express one Cold Wake story-lab beat as Ink, compile it,
and validate a sidecar training annotation that maps branches to
Ghostlight state basis, action intent, consequence surfaces, and manual
mutation policy.
5. Build the projection distillation loop. Started.
- Use `docs/architecture/projection-distillation-plan.md` as the teacher to