23 KiB
Ghostlight Fresh Workspace Handoff
Do not trust this file for the exact live HEAD. Use git for volatile truth.
Do not continue implementation automatically from a rehydrate-only request.
Immediate Re-entry Instruction
- Read
state/map.yaml. - Read
notes/ghostlight-current-system-map.md. - Read
notes/ghostlight-implementation-plan.md. - Run
npm run state:status. - Restate the persisted next action before touching code or docs.
Current Shape
Ghostlight now has the persistence spine plus the first architecture payload:
- canonical map
- scratch
- evidence ledger
- branch ledger
- compact re-entry note
- system map
- implementation plan
- Python helpers for state summary and compaction audits
- architecture notes for:
- personality structure
- signal classification
- state distributions and prompt projection
- Aetheria content generation targets
- population scaling for socially dense authored slices
- first schema seam:
schemas/agent-state.schema.jsonschemas/agent-state.required-fields.jsonexamples/agent-state.call-of-the-void.jsontools/validate_agent_state.py
- prompt projection and distillation docs:
docs/architecture/prompt-projection-contract.mddocs/architecture/projection-distillation-plan.mddocs/architecture/sequential-agent-runtime.mddocs/architecture/ink-branching-scenes.md
- evaluation follow-up docs:
docs/architecture/schema-future-mechanisms.md
- Aetheria lore grounding docs:
docs/architecture/aetheria-lore-grounding-architecture.mddocs/architecture/lore-grounding-digest-format.mddocs/architecture/qwen-invocation-notes.mddocs/architecture/projected-local-context.mddocs/architecture/soft-model-training-artifacts.mddocs/architecture/training-plan.mddocs/architecture/technology-item-manifest-plan.md
- lore grounding seam:
schemas/lore-grounding-digest.schema.jsonexamples/lore-grounding/historical-flashpoint.template.jsonexamples/lore-grounding/cold-wake-panic.ganymede-corridor.jsontools/validate_lore_grounding.py
- Cold Wake story-lab seam:
docs/experiments/cold-wake-story-lab.mdexamples/agent-state.cold-wake-story-lab.jsonexamples/projections/cold-wake-story-lab.jsonlexamples/projections/cold-wake-story-lab.pretty.jsonexperiments/cold-wake-story-lab/the-narrowest-possible-margin.mdexperiments/cold-wake-story-lab/scene-03-maer-veyr.qwen3-5-9b.capture.jsonexperiments/cold-wake-story-lab/scene-03-maer-veyr.qwen3-5-9b.v2.capture.jsonexperiments/cold-wake-story-lab/scene-03-maer-veyr.qwen3-5-9b.v3.capture.json- additional scene 1, 2, 3, and 4 Qwen captures under
experiments/cold-wake-story-lab/ tools/build_cold_wake_story_lab_fixture.pytools/run_qwen_projection.pytools/validate_qwen_captures.py
- Ink branching seam:
examples/ink/cold-wake-sanctuary-intake.inkexamples/ink/cold-wake-sanctuary-intake.training.jsonexamples/ink/cold-wake-sanctuary-intake.qwen-draft.inkexamples/ink/cold-wake-sanctuary-intake.qwen-draft.training.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-branch-candidates-v1.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-branch-candidates-v1.prompt.mdexperiments/ink/cold-wake-sanctuary-intake-qwen-branch-candidates-v1.response.mdtools/run_qwen_ink_branch_generation.pytools/materialize_qwen_ink_draft.pytools/validate_ink_examples.pytools/run_qwen_ink_sequential_generation.pytools/materialize_sequential_capture.pytools/apply_sequential_ink_branch_mutation.pyinkjsdev dependency andnpm run ink:validate
- sequential branch mutation seam:
experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v2.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v3.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v5.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v6-projector.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v8-projector-tightened.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v9-projector-tightened.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10-no-think.capture.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.jsonexperiments/ink/qwen-chat-tools-smoke.jsonexamples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json
- projector-routed sequential materialization seam:
examples/ink/cold-wake-sanctuary-intake.qwen-sequential-v10.inkexamples/ink/cold-wake-sanctuary-intake.qwen-sequential-v10.training.jsonexamples/agent-state.cold-wake-story-lab.after-v10-packet-assessment.jsonexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10.mutation.json
- projected local context seam:
schemas/projected-local-context.schema.jsonexamples/projected-contexts/scene-02-sanctuary-intake.maer_tidecall.projected-context.jsonexamples/projected-contexts/scene-02-sanctuary-intake.sella_ren.projected-context.jsontools/project_local_context.pytools/validate_projected_contexts.py- includes an embodiment/interface section so Navigator action is projected from checked Aetheria lore instead of default human body assumptions; current source supports fluid architecture, acoustic signaling, communal orientation chambers, mixed-species translation/coexistence, and specialized cetacean environments; AetheriaLore has now been patched with mixed wet/dry habitat and interface ergonomics
- Cold Wake fixture note:
docs/architecture/aetheria-cold-wake-training-fixture.md
- first projection example seam:
schemas/projection-example.schema.jsonexamples/projections/call-of-the-void.scene-broken-taxi-oz.jsonlexamples/projections/call-of-the-void.scene-broken-taxi-oz.pretty.jsontools/validate_projection_examples.py
- 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, a
documented projection path, the first Ink-backed playable branching scene, the
first Qwen-generated Ink draft with reviewed training annotations, and the
first reviewed mutation receipt showing how a selected generated branch changes
both involved characters. The soft-model training doctrine is now explicit:
deterministic gates stay code, while fuzzy judgments become reviewed artifacts
for future coordinator/story-runtime, projector, character-agent, appraiser,
mutator, relationship/perception, Aetheria responder, and
institution/faction/consumer decision models.
The coordinator is currently the authoring agent: it glues scenes together,
maintains continuity, chooses which machinery runs, emits connective prose, and
proposes world-state changes. Keep those outputs structured enough for future
game-engine integration instead of letting them rot as chat-only intuition.
Gold responder data must be sandboxed. The coordinator may be omniscient, but a
responder example is only valid if the acting worker saw exactly the projected
local packet, visible event, allowed action space, and explicitly included source
excerpts. Do not let responder workers inherit full chat/coordinator context when
generating training data. Preserve exact responder-visible input, raw output,
reviewed output, hidden-context refs, leakage audit, isolation method, and
coordinator intervention labels. Coordinator repairs are allowed, but they must
be labeled as repairs rather than treated as raw responder behavior.
The concrete training plan now enumerates the trainable stages, their inputs,
outputs, likely model families, artifact families, and pilot corpus gates. The
listed pilot counts are schema shakedown thresholds, not robust training
targets. They exist to expose missing fields, bad boundaries, leakage risks, and
validator gaps before large data generation. Robust organs will need roughly an
order of magnitude more examples, with separate review-assistant and runtime
targets.
It now uses three timeline lanes: historical_grounded,
transition_grounded, and future_branch. Future branches are required
training/evaluation material for post-Rupture Elysium concepts, but generated
branch assumptions are branch-local canon indexed by lineage, not global facts
shared by every Elysium history.
Current Direction
Use Ghostlight first for:
- content generation inside the Call of the Void slice described in
AetheriaLore - dialogue scaffolding and procedural drama for narrated Aetheria timeline stories
Cold Wake is now selected as the first historical grounding fixture because it is authored pre-Elysium lore. It is not the current game target. Treat it as training feedstock for projection and dialogue scaffolding.
Aetheria Grounding Doctrine
Before writing or generating Aetheria scenes, check AetheriaLore for the factions, movements, institutions, species or body types, location, and time period involved. If a blocking detail is missing, patch the lore source with a narrow elaboration before treating the detail as available to Ghostlight.
Current Next Action
Define the coordinator artifact schema so future story passes capture next-beat choice, glue prose, world-state refs, branch flags, unresolved hooks, and machinery invocations as trainable data, then return to the Sella prompt/rendering fix.
Cat/Oz remains useful as an Elysium procedural mechanics fixture, but
single-history grounding should start from authored historical lore rather than
gameplay-era Elysium outcomes.
Post-Rupture future branches should be generated too, under explicit branch
labels, so the models learn Aetheria concepts that only exist after the
Rupture: Aether, pseudospace, temporal nonlinearity, spirits, necrotech,
mutable bodies, altered substrates, and the fresh little institutional crimes
that grow around them.
Future branches now also need event constraint labels:
branch_attractor, fated_event, tech_order_constraint, quest_injection,
or branch_local_event. This supports likely Elysium faction births, authored
rails, baked-in technology order, and quest injection into active timelines.
Future and historical exploration should also emit technology/item manifest
data: item families, variants, assemblies, subassemblies, components, materials,
faction tech-base access, prerequisites, bottlenecks, compatibility rules,
upgrade surfaces, economic consequences, and quest hooks. Pre-Elysium starting
tech is part of this because factions enter Elysium with asymmetric industrial
bases and supply chains.
Existing named but nebulous technologies should be elaborated into blueprint
candidates during the same process. Separate source facts, inferred
engineering, and open lore gaps so item database candidates do not pretend the
timeline already answered every manufacturing question.
The concrete schema target already exists in Aetheria-Economy: CultCache-backed
ItemData subclasses are technological blueprint records. SimpleCommodityData
defines fungible resources, CompoundCommodityData defines assemblies,
subassemblies, components, processed materials, and crafted economic units,
ConsumableItemData defines usable consumables, and GearData plus other
EquippableItemData subclasses define top-level usable gear. Runtime
ItemInstance objects carry realized quality, provenance, manufacturer
branding, assembly history, and world-state placement. Ghostlight should attach
recipes, assembly trees, compatibility, tooling, facilities, process
requirements, and supply-chain dependencies to the relevant blueprint as
manifest metadata or engine-schema gaps until Aetheria-Economy exposes explicit
storage for those details.
The player-facing fantasy is provenance hunting. An ultimate laser is not only a
high-stat blueprint; it is a realized artifact assembled from rare or excellent
subsystems, manufacturer processes, repair history, counterfeit substitutions,
salvage scars, ownership chains, and operating conditions. Players should be
able to follow those threads through trade, salvage, espionage, faction access,
obsolete factories, and miserable little wars over parts like a beam-control
wafer some dead manufacturer only made for nine months before regulators ate the
board.
Ghostlight's job is to make that content scalable without turning it into
sludge. Treat the technology pipeline as a content refinery: ground the concept
in lore, decompose it into parts and supply chains, map it to the economy
blueprint classes, define performance and instance variation, preserve review
labels and source gaps, then emit database-shaped candidates instead of another
spreadsheet swamp.
The evaluation follow-up fixed the immediate v0 schema issues:
behavioral_dimensions.warmthbecameinterpersonal_warmthvoice_style.warmthbecameverbal_warmth- Cat now has a perceived-state overlay for Oz
- Cat and Oz now have relationship summary memories
event-drone-lienow includes observed exchange, private interpretations, and event effects
Completed projection path items:
- define
schemas/projection-example.schema.json - create reviewed Cat/Oz projection examples
- choose Cold Wake Panic as the first authored historical flashpoint
- fill the first draft lore grounding digest:
examples/lore-grounding/cold-wake-panic.ganymede-corridor.json - define the Cold Wake story lab as a four-scene arc with Maer Tidecall as protagonist
- add the first Cold Wake projection example and first Qwen response capture
- widen projection from dialogue-only turns to response turns that can include action, silence, withdrawal, violence, or mixed beats
- revise the first Maer/Veyr projection through v3 so unresolved personhood/claimant suspicion stays unresolved in Qwen output
- save both useful failed captures and the accepted v3 response as training material
- complete the first readable Cold Wake story,
experiments/cold-wake-story-lab/the-narrowest-possible-margin.md, with a receipts table tying accepted story beats to projection and capture artifacts - promote projection controls into the projection artifact shape:
frame_controls,authority_boundaries,object_custody,required_semantics, andforbidden_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 - add the first local-awareness-to-Qwen-to-Ink pass:
tools/run_qwen_ink_branch_generation.pyproduced a reviewed capture, andtools/materialize_qwen_ink_draft.pymaterializedexamples/ink/cold-wake-sanctuary-intake.qwen-draft.ink - add the first sequential Qwen branch capture:
experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.capture.jsonis useful-needs-revision because it separated actor and responder context but lacked the per-turn participant appraisal boundary and returned non-canonical action labels - add the first reviewed state mutation replay:
tools/apply_sequential_ink_branch_mutation.pywritesexperiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.jsonandexamples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json, updating Maer and Sella state, relationship stance, memories, perceived overlays, and the event log after the selected event - add the second sequential Qwen capture:
experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v2.capture.jsonuses the symmetrical turn framing and produces better action behavior (show_objectfollowed by Sella'swithhold_object), but remains useful-needs-revision because prose prompting did not force array-typed JSON fields - verify Qwen invocation:
tools/check_qwen_chat_tools.pyproves localqwen3.5:9breturns bothmessage.thinkingand nativetool_callsthrough Ollama/api/chat - update the sequential runner to use
/api/chatwith native tools and strict tool calls - add v3 and v5 thinking-plus-tools captures: v3 preserved a useful failure where old prompt text still caused plain JSON content in later passes; v5 is accepted as draft and produced valid tool-shaped Maer choice, Sella appraisal, and Sella next action
- identify the projector gap:
the sequential runner is still scaffolding because it sends selected raw
numeric state variables into prompts. The next real organ is a projector or
state interpreter that turns canonical variables, memories, relationship
stance, culture, and scene pressure into readable character-local operating
context and action affordances. Character agents should not need to interpret
current_activation,plasticity, or numeric dimension scores. - add the first projector seam:
tools/project_local_context.pycreatesghostlight.projected_local_context.v0artifacts and rendered prompt prose from canonical state, scene, relationship, memories, projection controls, and event context while hiding raw state variables from the prompt text - add projected-context validation:
tools/validate_projected_contexts.pyrejects projected prompt text that leaks raw state markers such ascurrent_activation,plasticity, means, or decimal state values - route the sequential Qwen runner through projected local context:
tools/run_qwen_ink_sequential_generation.pynow sends projected operating prose instead of selected activation dictionaries - add v6 projector-routed Qwen capture:
experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v6-projector.capture.jsonvalidates the architecture boundary and produces usable Maer/Sella behavior, but remains useful-needs-revision because Qwen stringified a nestedresponse_constraintsfield in Sella appraisal - tighten the sequential runner: repair notes are separated from fatal validation notes, obvious truncated stringified tool arrays can be repaired, failed Maer choice generation writes a reviewed capture instead of exiting, and Sella's next-action prompt receives appraisal context as prose constraints rather than raw numeric deltas
- add v8 and v9 projector-routed failure receipts:
v8 shows malformed stringified
choices; v9 shows a no-tool-call dropout. These are Qwen tool reliability failures, so no projector-routed branch was materialized into Ink in this pass. - disable thinking by default for strict sequential generation:
the v9 thinking trace showed Qwen looping on schema self-checks for minutes
before returning no tool call, so
tools/run_qwen_ink_sequential_generation.pynow defaults tothink: false; use--thinkonly for diagnostics - add v10 no-thinking projector-routed capture:
experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10-no-think.capture.jsonvalidates as accepted-as-draft with no repair notes or failure notes - materialize v10:
tools/materialize_sequential_capture.pywrote a playable Ink branch, sidecar training annotation, reviewed mutation receipt, and mutated Cold Wake fixture from the accepted projector-routed capture - update v10 capture provenance:
accepted_into_ink_refnow points atexamples/ink/cold-wake-sanctuary-intake.qwen-sequential-v10.ink
Remaining projection path:
- build a deterministic speaker-local input slicer
- build a renderer that emits projection controls before prompt prose
- review the embodiment-aware materialized v10 Ink and mutation receipt for narrative quality and state-change plausibility
- run another Qwen pass through the source-checked projector to test whether patched Navigator habitat/interface lore improves Maer's generated action proposals
- v11-v17 did improve Maer's source-grounded embodiment, but no capture was materialized because Sella appraisal/response still exposed object-custody drift, invented mutation paths, Qwen tool dropout, or prompt-constraint leakage
- next pass should focus on separating response constraints from in-world prose before chasing another materialized Ink branch
- decide whether to polish this Ink text by hand or generalize the sequential materializer for future accepted captures
- preserve the no-thinking default for strict tool-call generation unless a
diagnostic run explicitly needs
--think - improve the local-awareness-to-Ink prompt so semantic
training_hooksdo not drift into future branch ids, object custody remains branch-local, and action labels come from the exact canonical enum - materialize a validated sequential branch into 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 decisions, psychologically grounded consumer choices, scarcity/reputation pressure, and major faction or institution decision-making
- defer implementing world-scale simulation loops, autonomous offscreen factions, economy loops, and long-horizon plot machinery until the scene-local machine works
- use a frontier teacher model to generate/audit projection artifacts
- train a smaller student projector only after the artifact schema, input slicer, and evaluator stabilize
- treat the character agent/responder as a training target too: an Aetheria-tuned local model can eventually learn lore, tone, factional preconceptions, species affordances, and institutional pressure from a corpus of strong responses spread throughout the timeline plus reviewed Ghostlight receipts, while still acting only inside character-local context and deterministic mutation gates
- require responder sandboxing before gold data generation: exact responder-visible input, raw output, reviewed output, hidden-context refs, leakage audit, isolation method, and coordinator repair labels must be saved
Warnings
- Do not let this repo become a mirror maze of notes that say the same thing in slightly different outfits.
- Keep canonical state small. If evidence starts turning into an activity feed, cut it back.
- Keep the prompt-projection doctrine intact: prompt text is projection, not truth storage.
- Do not accidentally re-promote the older corridor-crisis idea into a game MVP because an old doc had a strong chin and good lighting.
notes/evaluation.mdmay exist as an untracked user-supplied file for the next session. It was intentionally left unread and uncommitted during the compaction prep.