Disable thinking for sequential Qwen tools

This commit is contained in:
Meta Vens 2026-05-02 04:00:56 +01:00
commit 68166a3d02
14 changed files with 709 additions and 23 deletions

View file

@ -88,6 +88,7 @@ Ghostlight now has the persistence spine plus the first architecture payload:
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v6-projector.capture.json`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v8-projector-tightened.capture.json`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v9-projector-tightened.capture.json`
- `experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10-no-think.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`
@ -128,10 +129,8 @@ training feedstock for projection and dialogue scaffolding.
## Current Next Action
Add a deliberate retry or fallback strategy for projector-routed Qwen tool-call
failures, then rerun until a projector-routed sequential capture is
accepted-as-draft before materializing any branch into Ink or mutation training
data.
Materialize the accepted v10 projector-routed sequential capture into Ink and
reviewed mutation training data, keeping fuzzy state changes manual and audited.
Cat/Oz remains useful as an Elysium procedural mechanics fixture, but grounded
training data should start from authored historical lore rather than gameplay
@ -202,7 +201,7 @@ Completed projection path items:
`tools/check_qwen_chat_tools.py` proves local `qwen3.5:9b` returns both
`message.thinking` and native `tool_calls` through Ollama `/api/chat`
- update the sequential runner to use `/api/chat` with native tools and
`think: true` by default
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
@ -240,15 +239,22 @@ Completed projection path items:
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.py`
now defaults to `think: false`; use `--think` only for diagnostics
- add v10 no-thinking projector-routed capture:
`experiments/ink/cold-wake-sanctuary-intake-qwen-sequential-v10-no-think.capture.json`
validates as accepted-as-draft with no repair notes or failure notes
Remaining projection path:
- build a deterministic speaker-local input slicer
- build a renderer that emits projection controls before prompt prose
- add a deliberate retry or fallback strategy around projector-routed Qwen
tool-call failures
- rerun until a projector-routed capture is accepted-as-draft before
materializing into Ink and mutation training data
- materialize the accepted v10 projector-routed capture into Ink and reviewed
mutation training data
- 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_hooks` do not
drift into future branch ids, object custody remains branch-local, and action
labels come from the exact canonical enum

View file

@ -156,6 +156,9 @@ state and re-entry discipline.
- `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
- `examples/projected-contexts/`
- current rendered projected local context artifacts for Maer and Sella in
the sanctuary intake scene
@ -196,7 +199,7 @@ state and re-entry discipline.
annotation
- `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
tools and thinking disabled by default: actor-local choices, participant
appraisal/consolidation, then next-actor action from updated state; now
routes character context through the projected-local-context seam, captures
failed Maer choice calls, separates repair notes from fatal validation
@ -241,6 +244,8 @@ 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. v8 and
v9 show that Qwen tool-call reliability, not the projector seam, is now the
immediate blocker. The next implementation target is an explicit retry or
fallback strategy before any projector-routed branch is materialized into Ink
plus mutation training data.
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
projector-routed no-thinking capture. The next implementation target is
materializing v10 into Ink plus reviewed mutation training data.

View file

@ -138,9 +138,14 @@
- Eighth and ninth sequential drafts: v8 captured malformed stringified
`choices`; v9 captured a no-tool-call dropout. Both validate the receipt
path and show Qwen tool reliability is now the blocker.
- Next prototype: add deliberate retry or fallback behavior for
projector-routed Qwen tool-call failures, then materialize only an
accepted-as-draft projector-routed branch into Ink and sidecar annotation.
- Thinking policy correction: v9's thinking trace showed minutes of schema
self-check looping followed by no tool call. Strict sequential generation
now defaults to `think: false`; `--think` is reserved for diagnostics.
- Tenth sequential draft: v10 ran projector-routed generation with thinking
disabled and validated as accepted-as-draft with no repair or failure
notes.
- Next prototype: materialize the accepted v10 projector-routed branch into
Ink and sidecar annotation, then produce reviewed mutation training data.
5. Build the projection distillation loop. Started.
- Use `docs/architecture/projection-distillation-plan.md` as the teacher to