Add projected local context seam
This commit is contained in:
parent
92df5142cb
commit
b3a68416e7
20 changed files with 2405 additions and 87 deletions
|
|
@ -46,6 +46,7 @@ Ghostlight now has the persistence spine plus the first architecture payload:
|
|||
- `docs/architecture/aetheria-lore-grounding-architecture.md`
|
||||
- `docs/architecture/lore-grounding-digest-format.md`
|
||||
- `docs/architecture/qwen-invocation-notes.md`
|
||||
- `docs/architecture/projected-local-context.md`
|
||||
- lore grounding seam:
|
||||
- `schemas/lore-grounding-digest.schema.json`
|
||||
- `examples/lore-grounding/historical-flashpoint.template.json`
|
||||
|
|
@ -84,9 +85,16 @@ Ghostlight now has the persistence spine plus the first architecture payload:
|
|||
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v2.capture.json`
|
||||
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v3.capture.json`
|
||||
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v5.capture.json`
|
||||
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v6-projector.capture.json`
|
||||
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v1.mutation.json`
|
||||
- `experiments/ink/qwen-chat-tools-smoke.json`
|
||||
- `examples/agent-state.cold-wake-story-lab.after-sanctuary-ledger.json`
|
||||
- projected local context seam:
|
||||
- `schemas/projected-local-context.schema.json`
|
||||
- `examples/projected-contexts/scene-02-sanctuary-intake.maer_tidecall.projected-context.json`
|
||||
- `examples/projected-contexts/scene-02-sanctuary-intake.sella_ren.projected-context.json`
|
||||
- `tools/project_local_context.py`
|
||||
- `tools/validate_projected_contexts.py`
|
||||
- Cold Wake fixture note:
|
||||
- `docs/architecture/aetheria-cold-wake-training-fixture.md`
|
||||
- first projection example seam:
|
||||
|
|
@ -118,9 +126,10 @@ training feedstock for projection and dialogue scaffolding.
|
|||
|
||||
## Current Next Action
|
||||
|
||||
Build the projector artifact seam that translates canonical state into compact
|
||||
character-local operating context, then rerun or materialize v5-style
|
||||
sequential generation through that projector rather than raw state soup.
|
||||
Tighten the projector-routed sequential loop by repairing or preventing nested
|
||||
tool-argument stringification, then decide whether the v6-style output should
|
||||
be materialized into Ink and a reviewed mutation receipt or rerun after stricter
|
||||
tool validation.
|
||||
|
||||
Cat/Oz remains useful as an Elysium procedural mechanics fixture, but grounded
|
||||
training data should start from authored historical lore rather than gameplay
|
||||
|
|
@ -203,15 +212,32 @@ Completed projection path items:
|
|||
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.py` creates
|
||||
`ghostlight.projected_local_context.v0` artifacts 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.py` rejects projected prompt text that
|
||||
leaks raw state markers such as `current_activation`, `plasticity`, means, or
|
||||
decimal state values
|
||||
- route the sequential Qwen runner through projected local context:
|
||||
`tools/run_qwen_ink_sequential_generation.py` now 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.json`
|
||||
validates the architecture boundary and produces usable Maer/Sella behavior,
|
||||
but remains useful-needs-revision because Qwen stringified a nested
|
||||
`response_constraints` field in Sella appraisal
|
||||
|
||||
Remaining projection path:
|
||||
|
||||
- build a deterministic speaker-local input slicer
|
||||
- build a renderer that emits projection controls before prompt prose
|
||||
- build the projector artifact seam before materializing more generated
|
||||
branches
|
||||
- rerun or adapt v5-style thinking-plus-tools sequential generation through
|
||||
projected character-local context instead of raw state variables
|
||||
- tighten nested tool-argument repair or schema enforcement so projector-routed
|
||||
sequential captures can become accepted-as-draft without hand-cleaning
|
||||
- decide whether the v6 projector-routed output should be materialized into Ink
|
||||
and mutation training data or rerun after stricter validation
|
||||
- improve the local-awareness-to-Ink prompt so semantic `training_hooks` do not
|
||||
drift into future branch ids, object custody remains branch-local, and action
|
||||
labels come from the exact canonical enum
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@ state and re-entry discipline.
|
|||
- `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
|
||||
- `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
|
||||
- `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
|
||||
|
|
@ -83,6 +86,8 @@ state and re-entry discipline.
|
|||
- `schemas/lore-grounding-digest.schema.json`
|
||||
- v0 contract for grounding historical fixtures in source-backed cultural and
|
||||
factional pressure fields
|
||||
- `schemas/projected-local-context.schema.json`
|
||||
- v0 contract for projected character-local operating context artifacts
|
||||
- `schemas/agent-state.required-fields.json`
|
||||
- required first-class variable names for canonical state and relationship
|
||||
stance
|
||||
|
|
@ -140,6 +145,13 @@ state and re-entry discipline.
|
|||
- 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
|
||||
- `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
|
||||
- `examples/projected-contexts/`
|
||||
- current rendered projected local context artifacts for Maer and Sella in
|
||||
the sanctuary intake scene
|
||||
- `experiments/ink/qwen-chat-tools-smoke.json`
|
||||
- smoke receipt proving local `qwen3.5:9b` returns both `message.thinking`
|
||||
and native `tool_calls`
|
||||
|
|
@ -178,9 +190,17 @@ state and re-entry discipline.
|
|||
- `tools/run_qwen_ink_sequential_generation.py`
|
||||
- builds a sequential Qwen prototype through Ollama `/api/chat` with native
|
||||
tools and thinking enabled: actor-local choices, participant
|
||||
appraisal/consolidation, then next-actor action from updated state
|
||||
appraisal/consolidation, then next-actor action from updated state; now
|
||||
routes character context through the projected-local-context seam
|
||||
- `tools/check_qwen_chat_tools.py`
|
||||
- fast smoke test for local Qwen thinking plus native tool calling
|
||||
- `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
|
||||
- `tools/validate_projected_contexts.py`
|
||||
- validates projected context artifacts and rejects prompt text that leaks raw
|
||||
canonical state internals
|
||||
- `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
|
||||
|
|
@ -202,14 +222,15 @@ state and re-entry discipline.
|
|||
- 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, 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, and v5 proves local
|
||||
thinking-plus-tools invocation works for the scene runner. The runner is still
|
||||
scaffolding because it sends selected raw numeric state variables into the
|
||||
model. The next implementation target is the projector artifact seam: canonical
|
||||
state becomes compact character-local operating context before Qwen sees it.
|
||||
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
|
||||
routes that runner through projected character-local operating context. The
|
||||
next implementation target is tightening nested tool-argument validation and
|
||||
deciding whether to materialize a projector-routed branch into Ink plus mutation
|
||||
training data.
|
||||
|
|
|
|||
|
|
@ -117,12 +117,22 @@
|
|||
- Projector gap: the sequential runner still sends selected raw numeric
|
||||
state variables into prompts. This is acceptable scaffolding for Qwen
|
||||
plumbing tests, not the final Ghostlight architecture.
|
||||
- Next prototype: build the projector artifact seam that turns canonical
|
||||
- Projector prototype: `tools/project_local_context.py` now turns canonical
|
||||
variables, memory, relationship stance, culture, and scene pressure into
|
||||
compact character-local operating context and action affordances.
|
||||
- After projector seam exists, rerun or adapt v5-style thinking-plus-tools
|
||||
sequential generation through projected context, then materialize only a
|
||||
validated branch into Ink and sidecar annotation.
|
||||
- Projected-context artifacts use
|
||||
`ghostlight.projected_local_context.v0` and validate through
|
||||
`tools/validate_projected_contexts.py`; rendered prompt text must not leak
|
||||
raw state internals such as `current_activation`, `plasticity`, means, or
|
||||
decimal state values.
|
||||
- Sixth sequential draft: v6 routed thinking-plus-tools generation through
|
||||
projected local context instead of selected activation dictionaries. It
|
||||
produced usable Maer/Sella behavior but remains useful-needs-revision
|
||||
because Qwen stringified nested `response_constraints` in the appraisal
|
||||
payload.
|
||||
- Next prototype: tighten nested tool-argument repair or schema enforcement,
|
||||
then materialize only a validated projector-routed branch into Ink and
|
||||
sidecar annotation.
|
||||
|
||||
5. Build the projection distillation loop. Started.
|
||||
- Use `docs/architecture/projection-distillation-plan.md` as the teacher to
|
||||
|
|
|
|||
Loading…
Reference in a new issue