Ghostlight/notes/ghostlight-current-system-map.md

288 lines
16 KiB
Markdown
Raw Normal View History

2026-05-01 18:06:51 +01:00
# Ghostlight Current System Map
Ghostlight does not have a runtime yet. The live system right now is the repo's
state and re-entry discipline.
## Current Control Flow
1. A user or agent enters the repo with a bounded question or implementation
goal.
2. The session rehydrates from:
- `state/map.yaml`
- `notes/fresh-workspace-handoff.md`
- this file
- `notes/ghostlight-implementation-plan.md`
3. The session runs `npm run state:status` to recover the current summary, next
action, and active subgoals.
4. Work happens in one bounded slice.
5. If understanding changes, the map is updated.
6. If future belief changes, distilled evidence is appended.
7. If compaction pressure rises, the helper audits state hygiene before the
session banks the fire.
## Live Surfaces
- `state/map.yaml`
- canonical experiment, objective, constraints, invariants, active subgoals,
accepted design, and current status
- `state/scratch.md`
- temporary working memory for one bounded organ
- `state/evidence.jsonl`
- durable belief-changing records only
- `state/branches.json`
- explicit hypothesis or branch tracking
- `notes/fresh-workspace-handoff.md`
- re-entry packet
- `notes/ghostlight-implementation-plan.md`
- larger-organ sequence
- `docs/research/`
- research backlog and social-model notes
- `docs/architecture/`
- world, state, and prompt-system architecture notes
2026-05-01 20:18:51 +01:00
- `docs/architecture/prompt-projection-contract.md`
- contract for turning durable state into speaker-local pressure prose and
prompt sections
2026-05-01 20:26:48 +01:00
- `docs/architecture/projection-distillation-plan.md`
- plan for using a frontier teacher model to generate reviewed projection
artifacts before training a smaller student projector
2026-05-01 23:00:05 +01:00
- `docs/architecture/sequential-agent-runtime.md`
- scene-local dialogue/runtime loop where agents act from local awareness,
generated actions become event proposals, and bounded state mutation drives
2026-05-01 23:40:32 +01:00
branchable speech or non-speech scene consequences while preserving
training hooks for later open-world, economic, and faction decision models
2026-05-01 23:52:15 +01:00
- `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
2026-05-01 22:17:15 +01:00
- `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
- `docs/architecture/schema-future-mechanisms.md`
- parking lot for appraisal, transition, belief, action, conversation,
resource, dyad, institution, memory, and embodiment mechanisms not yet
promoted into the v0 schema
- `docs/architecture/aetheria-lore-grounding-architecture.md`
- boundary and plan for grounding training data in authored Aetheria history
while treating Elysium gameplay-era outcomes as procedural branch space;
includes the source-first doctrine for checking AetheriaLore and patching
blocking lore gaps before generation
2026-05-01 21:39:00 +01:00
- `docs/architecture/lore-grounding-digest-format.md`
- human-facing format guide for cultural, factional, institutional, role, and
speaker-boundary lore digests
2026-05-02 03:26:13 +01:00
- `docs/architecture/qwen-invocation-notes.md`
- verified local Qwen invocation policy: Ollama `/api/chat`, native tools,
thinking enabled, repair for known nested-argument double-stringify cases
2026-05-02 03:47:03 +01:00
- `docs/architecture/projected-local-context.md`
- contract for the projector seam that turns canonical state into
character-local operating context before a response model sees it,
including source-checked embodiment and interface affordances
2026-05-02 08:56:08 +01:00
- `docs/architecture/soft-model-training-artifacts.md`
- doctrine for treating every non-deterministic judgment as reviewed
training material for future specialized models, including projector,
character agent/responder, appraiser, state mutator, relationship/perception
2026-05-02 08:58:16 +01:00
classifier, Aetheria responder, and institution/faction/consumer decision
2026-05-02 08:56:08 +01:00
models
2026-05-01 21:51:13 +01:00
- `docs/architecture/aetheria-cold-wake-training-fixture.md`
- human-facing note that reframes the recovered Cold Wake scenario as
historical projection feedstock rather than the active product target
2026-05-01 18:52:27 +01:00
- `schemas/agent-state.schema.json`
- v0 canonical agent-state contract for agents, relationships, events,
scenes, perceived overlays, and dialogue context packs
2026-05-01 21:02:57 +01:00
- `schemas/projection-example.schema.json`
- v0 reviewed projection artifact contract for speaker-local prompt
2026-05-01 22:32:51 +01:00
projection examples, including projection controls for frame, authority,
object custody, required semantics, and forbidden resolutions
2026-05-01 21:39:00 +01:00
- `schemas/lore-grounding-digest.schema.json`
- v0 contract for grounding historical fixtures in source-backed cultural and
factional pressure fields
2026-05-02 03:47:03 +01:00
- `schemas/projected-local-context.schema.json`
- v0 contract for projected character-local operating context artifacts
2026-05-01 18:52:27 +01:00
- `schemas/agent-state.required-fields.json`
- required first-class variable names for canonical state and relationship
stance
- `examples/agent-state.call-of-the-void.json`
- first Call of the Void-flavored fixture for schema and projection work
2026-05-01 22:17:15 +01:00
- `examples/agent-state.cold-wake-story-lab.json`
- first story-shaped historical fixture for Cold Wake projection work
2026-05-01 21:02:57 +01:00
- `examples/projections/call-of-the-void.scene-broken-taxi-oz.jsonl`
- first reviewed Cat and Oz projection examples
2026-05-01 21:06:31 +01:00
- `examples/projections/call-of-the-void.scene-broken-taxi-oz.pretty.json`
- pretty-printed mirror for inspecting the first projection examples
2026-05-01 22:17:15 +01:00
- `examples/projections/cold-wake-story-lab.jsonl`
2026-05-01 22:22:54 +01:00
- response-turn projection examples for the Cold Wake story lab, including
rejected and accepted Maer/Veyr prompt revisions
2026-05-01 22:17:15 +01:00
- `experiments/cold-wake-story-lab/`
- Qwen response captures and reviews from the writing experiment
2026-05-01 22:32:51 +01:00
- `the-narrowest-possible-margin.md`, the first readable short story
assembled from accepted projection outputs
2026-05-01 21:39:00 +01:00
- `examples/lore-grounding/historical-flashpoint.template.json`
- fillable template for the first historical Aetheria grounding digest
2026-05-01 21:51:13 +01:00
- `examples/lore-grounding/cold-wake-panic.ganymede-corridor.json`
- first draft historical grounding digest, centered on Cold Wake Panic in the
Ganymede/Jovian corridor
2026-05-01 23:52:15 +01:00
- `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
2026-05-02 02:37:36 +01:00
- `examples/ink/cold-wake-sanctuary-intake.qwen-draft.ink`
- first Qwen-generated playable Ink draft materialized from a Ghostlight
local-awareness prompt
- `examples/ink/cold-wake-sanctuary-intake.qwen-draft.training.json`
- sidecar annotation for the generated draft, accepted as training material
rather than final polished prose
2026-05-02 04:04:18 +01:00
- `examples/ink/cold-wake-sanctuary-intake.qwen-sequential-v10.ink`
- first playable Ink branch materialized from an accepted projector-routed
sequential Qwen capture
- `examples/ink/cold-wake-sanctuary-intake.qwen-sequential-v10.training.json`
- sidecar annotation for the v10 materialized sequential branch
2026-05-02 02:37:36 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-branch-candidates-v1.capture.json`
- reviewed Qwen branch-generation receipt, including prompt, parsed response,
strengths, failure notes, and pipeline lessons
2026-05-02 03:05:47 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.capture.json`
- useful-needs-revision sequential Qwen receipt that separates Maer-local
choice generation from Sella-local next-action generation, while preserving
the discovered failure around missing per-turn appraisal/consolidation and
invalid action labels
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v2.capture.json`
- useful-needs-revision sequential Qwen receipt using the symmetrical turn
model; it produced canonical action labels and a concrete Sella
`withhold_object` next action, but still needs stricter schema enforcement
because some array fields came back as strings or objects
2026-05-02 03:26:13 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v3.capture.json`
- useful-needs-revision thinking-plus-tools receipt that proved Maer could
call the tool while later passes still fell back to plain JSON content
because old prompt text conflicted with the tool path
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v5.capture.json`
- accepted-as-draft thinking-plus-tools receipt using Ollama `/api/chat`,
native tools, and `think: true` for Maer choice, Sella appraisal, and Sella
next action
2026-05-02 03:47:03 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v6-projector.capture.json`
- useful-needs-revision projector-routed receipt proving Qwen prompts can use
character-local operating prose instead of raw state variables; still
exposed nested `response_constraints` stringification in appraisal output
2026-05-02 03:55:51 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v8-projector-tightened.capture.json`
- useful-needs-revision receipt proving failed Maer choice generation is now
captured instead of crashing the runner; exposed malformed stringified
`choices`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v9-projector-tightened.capture.json`
- useful-needs-revision receipt showing Qwen can still drop tool calls
entirely under projector-routed prompting
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10-no-think.capture.json`
- accepted-as-draft receipt showing projector-routed sequential generation
works cleanly when strict tool calls run with thinking disabled
2026-05-02 03:47:03 +01:00
- `examples/projected-contexts/`
- current rendered projected local context artifacts for Maer and Sella in
the sanctuary intake scene
2026-05-02 03:26:13 +01:00
- `experiments/ink/qwen-chat-tools-smoke.json`
- smoke receipt proving local `qwen3.5:9b` returns both `message.thinking`
and native `tool_calls`
2026-05-02 03:05:47 +01:00
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.json`
- first reviewed branch mutation receipt, including manual participant
appraisal/consolidation, normalized action labels, applied state deltas, and
deferred unresolved facts
- `examples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json`
- mutated Cold Wake fixture after the selected sanctuary ledger branch,
updating Maer and Sella state, relationship stance, memories, perceived
overlays, event log, and active scene memories
2026-05-02 04:04:18 +01:00
- `examples/agent-state.cold-wake-story-lab.after-v10-packet-assessment.json`
- mutated Cold Wake fixture after the v10 packet-assessment branch,
preserving unresolved packet personhood while updating state, relationship
stance, memories, perceived overlays, event log, and active scene memories
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10.mutation.json`
- reviewed mutation receipt for v10 materialization, keeping fuzzy appraisal
and relationship movement manual and auditable
2026-05-01 18:06:51 +01:00
- `tools/ghostlight_state.py`
- compact state inspection and evidence or branch updates
- `tools/ghostlight_prepare_compaction.py`
- pre-compaction audit of required files, handoff content, and git hygiene
2026-05-01 18:52:27 +01:00
- `tools/validate_agent_state.py`
- dependency-free validator for the current schema fixture invariants
2026-05-01 21:02:57 +01:00
- `tools/validate_projection_examples.py`
- dependency-free validator for projection example JSONL records
2026-05-01 22:32:51 +01:00
- `tools/run_qwen_projection.py`
- sends a projection prompt to the LAN Qwen box and saves response/capture
artifacts without PowerShell encoding footguns
- `tools/validate_qwen_captures.py`
- validates reviewed Qwen response capture receipts
2026-05-01 21:39:00 +01:00
- `tools/validate_lore_grounding.py`
- dependency-free validator for lore grounding digest examples
2026-05-01 23:52:15 +01:00
- `tools/validate_ink_examples.py`
- compiles Ink examples with `inkjs` and validates sidecar training
2026-05-02 02:37:36 +01:00
annotations plus reviewed Qwen Ink-generation captures
- `tools/run_qwen_ink_branch_generation.py`
- builds a local-awareness prompt from the Cold Wake fixture and asks Qwen
for Ink branch candidates
- `tools/materialize_qwen_ink_draft.py`
- turns a reviewed Qwen branch capture into a playable Ink draft and sidecar
annotation
2026-05-02 04:04:18 +01:00
- `tools/materialize_sequential_capture.py`
- turns an accepted sequential capture into playable Ink, sidecar annotation,
reviewed mutation receipt, and a mutated fixture
2026-05-02 03:05:47 +01:00
- `tools/run_qwen_ink_sequential_generation.py`
2026-05-02 03:26:13 +01:00
- builds a sequential Qwen prototype through Ollama `/api/chat` with native
tools and thinking disabled by default: actor-local choices, participant
2026-05-02 03:47:03 +01:00
appraisal/consolidation, then next-actor action from updated state; now
2026-05-02 03:55:51 +01:00
routes character context through the projected-local-context seam, captures
failed Maer choice calls, separates repair notes from fatal validation
notes, and keeps numeric appraisal deltas out of next-action prompt context
2026-05-02 03:26:13 +01:00
- `tools/check_qwen_chat_tools.py`
- fast smoke test for local Qwen thinking plus native tool calling
2026-05-02 03:47:03 +01:00
- `tools/project_local_context.py`
- deterministic first projector that compiles canonical state, scene facts,
relationships, memories, projection controls, and optional observed event
into character-local operating prose; for cetacean Navigators it projects
source-checked habitat affordances from AetheriaLore instead of generic
human body defaults
2026-05-02 03:47:03 +01:00
- `tools/validate_projected_contexts.py`
- validates projected context artifacts and rejects prompt text that leaks raw
canonical state internals
2026-05-02 03:05:47 +01:00
- `tools/apply_sequential_ink_branch_mutation.py`
- applies a reviewed replay of one selected branch into a mutated agent-state
fixture and mutation receipt without letting Ink variables become
canonical truth
2026-05-01 22:17:15 +01:00
- `tools/build_cold_wake_story_lab_fixture.py`
- generator for the verbose Cold Wake story-lab state fixture
2026-05-01 18:06:51 +01:00
## What Does Not Exist Yet
- a classifier pipeline
- a prompt renderer
2026-05-01 21:02:57 +01:00
- a full projection training corpus
- a deterministic projection input slicer
2026-05-01 20:26:48 +01:00
- a student projection model
2026-05-01 23:00:05 +01:00
- a simulation/event loop implementation
2026-05-01 18:06:51 +01:00
- a relationship engine
- a culture prior engine
2026-05-01 23:52:15 +01:00
- an automatic Ink branch generator from local awareness
- automatic promotion of Ink branch outcomes into canonical state
2026-05-01 18:06:51 +01:00
2026-05-01 22:17:15 +01:00
The canonical agent-state schema, projection example schema, lore grounding
2026-05-02 03:47:03 +01:00
digest schema, projected-local-context 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, projection controls
have been promoted, and Ink is now the standard branching scene format. The
first Qwen-generated Ink draft now exists with a reviewed capture, the first
selected branch now has a reviewed mutation replay that updates both involved
characters, v2 shows the symmetrical turn model improves action behavior, v5
proves local thinking-plus-tools invocation works for the scene runner, and v6
2026-05-02 03:55:51 +01:00
routes that runner through projected character-local operating context. v8 and
v9 show that Qwen tool-call reliability, not the projector seam, is now the
immediate blocker. The v9 thinking trace also showed schema self-check looping
instead of tool-call completion, so strict sequential generation now disables
thinking by default. v10 validated that correction with an accepted-as-draft
2026-05-02 04:04:18 +01:00
projector-routed no-thinking capture, which has now been materialized into Ink
plus reviewed mutation training data. The next implementation target is
fixing the Sella next-action prompt/rendering path after source-checked v11-v17
retries improved Maer's Navigator embodiment but exposed object-custody drift,
invalid appraisal paths, Qwen tool dropout, and prompt-constraint leakage into
2026-05-02 08:56:08 +01:00
responder prose. The soft-model artifact doctrine now makes the broader
training boundary explicit: deterministic gates stay code, while fuzzy
2026-05-02 08:58:16 +01:00
projection, action choice, appraisal, mutation, relationship movement,
Aetheria responder training, and economic/faction decision judgments become
reviewed artifacts for later fine-tuning or distillation. The lore/tone goal is
not a separate adapter; it is a responder trained on strong timeline-spread
Aetheria responses until the setting's assumptions become native priors. Do not
materialize another capture until it has no failure or repair notes.