Add sequential turn mutation receipts

This commit is contained in:
Meta Vens 2026-05-02 03:05:47 +01:00
commit aa11564cd0
23 changed files with 6061 additions and 28 deletions

View file

@ -75,7 +75,14 @@ Ghostlight now has the persistence spine plus the first architecture payload:
- `tools/run_qwen_ink_branch_generation.py`
- `tools/materialize_qwen_ink_draft.py`
- `tools/validate_ink_examples.py`
- `tools/run_qwen_ink_sequential_generation.py`
- `tools/apply_sequential_ink_branch_mutation.py`
- `inkjs` dev dependency and `npm run ink:validate`
- sequential branch mutation seam:
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.capture.json`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v2.capture.json`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.json`
- `examples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json`
- Cold Wake fixture note:
- `docs/architecture/aetheria-cold-wake-training-fixture.md`
- first projection example seam:
@ -87,8 +94,10 @@ Ghostlight now has the persistence spine plus the first architecture payload:
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, and
the first Qwen-generated Ink draft with reviewed training annotations.
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.
## Current Direction
@ -105,9 +114,9 @@ training feedstock for projection and dialogue scaffolding.
## Current Next Action
Test one selected Qwen-generated Ink branch's reviewed
state/memory/relationship mutation without letting Ink variables silently become
canonical Ghostlight state.
Replace prose-only sequential Qwen JSON generation with a stricter
tool-shaped schema or post-generation repair pass for array fields, then
materialize only a fully validated sequential branch into Ink.
Cat/Oz remains useful as an Elysium procedural mechanics fixture, but grounded
training data should start from authored historical lore rather than gameplay
@ -156,14 +165,35 @@ Completed projection path items:
`tools/run_qwen_ink_branch_generation.py` produced a reviewed capture, and
`tools/materialize_qwen_ink_draft.py` materialized
`examples/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.json`
is 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.py` writes
`experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.json`
and
`examples/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.json`
uses the symmetrical turn framing and produces better action behavior
(`show_object` followed by Sella's `withhold_object`), but remains
useful-needs-revision because prose prompting did not force array-typed JSON
fields
Remaining projection path:
- build a deterministic speaker-local input slicer
- build a renderer that emits projection controls before prompt prose
- replace prose-only sequential Qwen JSON generation with stricter tool-shaped
schema enforcement or an explicit post-generation repair/review pass
- improve the local-awareness-to-Ink prompt so semantic `training_hooks` do not
drift into future branch ids and object custody remains branch-local
- test one selected generated branch through reviewed event/state mutation
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

View file

@ -119,6 +119,24 @@ state and re-entry discipline.
- `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
- `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
- `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
- `tools/ghostlight_state.py`
- compact state inspection and evidence or branch updates
- `tools/ghostlight_prepare_compaction.py`
@ -143,6 +161,13 @@ state and re-entry discipline.
- `tools/materialize_qwen_ink_draft.py`
- turns a reviewed Qwen branch capture into a playable Ink draft and sidecar
annotation
- `tools/run_qwen_ink_sequential_generation.py`
- builds a sequential Qwen prototype: actor-local choices, participant
appraisal/consolidation, then next-actor action from updated state
- `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
- `tools/build_cold_wake_story_lab_fixture.py`
- generator for the verbose Cold Wake story-lab state fixture
@ -164,6 +189,8 @@ 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, 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 next implementation target is
testing selected branch mutation through reviewed state, memory, and
relationship updates.
draft now exists with a reviewed capture, the first selected branch now has a
reviewed mutation replay that updates both involved characters, and v2 shows
the symmetrical turn model improves action behavior. The next implementation
target is stricter sequential capture schema enforcement before Ink
materialization.

View file

@ -49,6 +49,10 @@
scarcity, reputation, faction pressure, and institution decision-making.
- Build local awareness from scene state, agent state, relationships,
memories, resources, affordances, and known constraints.
- Consolidate participant appraisals and state mutation after every
resolved action before selecting the next actor; hurt, threat,
reassurance, obligation, overload, and misread should alter the state any
affected participant acts from.
- Keep action primitives concrete: speech, silence, movement, gesture,
object use, object transfer, object blocking, resource spending, waiting,
and attack. Treat ask/refuse/offer/reveal/conceal/request as intended
@ -86,9 +90,24 @@
- First generated draft: use `tools/run_qwen_ink_branch_generation.py` to
ask Qwen for branch candidates from local awareness, then materialize the
reviewed result with `tools/materialize_qwen_ink_draft.py`.
- Next prototype: pick one generated branch and apply only reviewed
state/memory/relationship mutation, keeping Ink variables as local
playthrough state rather than canonical truth.
- First sequential draft: use `tools/run_qwen_ink_sequential_generation.py`
to separate actor-local choice, participant appraisal/consolidation, and
the next actor's move from updated state. The first saved capture is
useful-needs-revision because it exposed the missing per-turn appraisal
boundary and weak action enum discipline.
- First reviewed branch mutation: use
`tools/apply_sequential_ink_branch_mutation.py` to apply one selected
generated branch into
`examples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json`
and a mutation receipt, updating both Maer and Sella without treating Ink
variables as canonical truth.
- Second sequential draft: the symmetrical turn framing produced canonical
action labels and a concrete Sella `withhold_object` next action, but
still needs stricter schema or tool-call enforcement because array fields
drifted into strings and objects.
- Next prototype: replace prose-only JSON compliance with a stricter
tool-shaped schema or repair/review pass before materializing the branch
into Ink.
5. Build the projection distillation loop. Started.
- Use `docs/architecture/projection-distillation-plan.md` as the teacher to