Migrate enemy events to native correction with fixed multi-artifact grounding

This commit is contained in:
2026-11-22 01:20:46 +00:00
parent bb3153c1ad
commit 3fa593362d
14 changed files with 742 additions and 490 deletions

View File

@@ -992,6 +992,29 @@ invocations, not by obsolete completion-interface mocks.
## Stage 22: Migrate Enemy-Event Extraction
**Status:** Complete. Enemy extraction now uses fixed source/reference projections,
native initial/correction requests, and the shared typed producer helper. Added
same-schema/default-profile correction assets and static dependencies; removed
private completion, schema/asset registration, and manifest/fingerprint metadata.
NPC, scene, combat-turn, and combat-opponent reference compatibility, source-free
grounding, contextual subject names, engagement checks, and source-order mapping
remain unchanged. Ineligible scenes produce directly assessed empty results
without native requests, preserving existing unavailable-classification warnings.
Permissive terminal output is an explicit codec-valid empty event list; accepted
work consuming fallback references retains incoming reuse ineligibility.
Retained grounding/domain regressions with native provider fakes and added
full-chain engagement/source correction, fixed multi-artifact context/history,
run selections, empty predecessor handoffs, strict/permissive exhaustion,
failed continuation, structural failure, and cancellation cases. Added a
leaf-assembled native pipeline test retaining the intrinsic codec boundary even
with explicit empty validator chains, and migrated the existing CLI codec
contract's typed request. Native prompt-pair, required-input, and unchanged-schema
checks run in assets. Asset tests/vet/race checks, focused pipeline tests, and
`git diff --check` pass. Extractor, validator, codec, and assembled CLI package
checks remain blocked at setup by shared legacy helpers importing old ConfigKit's
removed YAML `plugin/limit`; their new runtime tests are not claimed passing.
Scheduled dependency cleanup and final verification must execute those tests.
**Goal:** preserve multi-artifact grounding while changing execution ownership.
**Inspect/change:** `internal/modules/dnd/extract/enemyevents`, grounding/mapping