Migrate combat turns to native correction and retain deterministic scene gating

This commit is contained in:
2026-11-22 01:13:57 +00:00
parent 1fe231b6fb
commit bb3153c1ad
13 changed files with 825 additions and 708 deletions

View File

@@ -946,6 +946,31 @@ correction acceptance, empty fallback, and final semantic rejection.
## Stage 21: Migrate Combat-Turn Extraction
**Status:** Complete. Combat extraction now uses one fixed source/NPC projection,
native initial/correction requests, and the shared typed producer helper. Added
the same-schema/default-profile correction pair and static prompt dependencies;
removed private completion, schema/asset registration, and manifest/fingerprint
metadata. Actor/turn-kind semantics, unmatched actors, document-order endpoint
normalization, evidence canonicalization, and exact scene eligibility remain.
Noncombat and unavailable/mismatched scene paths assess their deterministic empty
result directly, retaining the existing warning where applicable, without native
preparation, a model call, or a synthetic cache entry. Explicit outcomes inherit
incoming reuse eligibility. Permissive model failures emit only a qualified,
codec-valid empty combat list; cancellation emits no fallback.
Retained domain/gating regressions with native provider fakes and added complete
ordered-chain correction, fixed eligibility/context/history, override, zero-turn
reversed-endpoint, strict/permissive, failed-continuation, structural-failure, and
cancellation cases. Added a leaf-assembled generic-chunker combat pipeline test
for combat, narrative, recap, meta, and mismatched scenes using provider invocation
counts. Native prompt-pair and unchanged structural-schema checks run in assets.
Asset/shape tests and vet/race checks, independent response-model tests/vet/race,
and `git diff --check` pass. Full combat extractor, source/invariant validator,
and integration package checks remain blocked at setup by shared legacy helpers
importing old ConfigKit's removed YAML `plugin/limit`; native module and assembled
runtime tests are not claimed passing. Scheduled dependency cleanup and final
verification must execute them; remaining old integration fixtures retain their
assigned migration scope.
**Goal:** native combat production preserves scene eligibility and evidence rules.
**Inspect/change:** `internal/modules/dnd/extract/combatturns`, combat validators,