Define typed operation preparation and evaluation contracts

This commit is contained in:
2026-11-25 15:01:06 +00:00
parent c9624c40e4
commit adb198e19f
3 changed files with 312 additions and 0 deletions

View File

@@ -150,8 +150,28 @@ or are renamed; a filter matching no tests does not verify the stage.
## Stage 1 — Define The Typed Preparation And Evaluation API
**Status:** Complete.
**Goal:** Establish the authoring contract using representative integrations.
### Migration checklist
- Native producer callers: D&D scene planning; spell, combat-turn, enemy-event,
scene-description, registry, and occurrence extractors; and NPC, item, and
location registry normalizers. Combat-turn and enemy-event extraction also
have deterministic no-model branches.
- Registry normalizers additionally call the deterministic assessment helper
for insufficient candidates and the terminal-failure helper for preparation
limits. Pipeline completion also calls the assessment helper.
- Migrate chunker registration and typed extractor, merger, and normalizer
registries, including generic unit chunking, append-order merge, and noop
normalization, plus deterministic D&D normalizers.
- Adapt direct producer, cache, capture, cancellation, operation, typed-registry,
CLI, integration, and module tests as their entry points move. Combat semantic
validation remains a separate one-shot native caller.
The inventory is a migration aid; confirm additional callers as interfaces move.
**Inspect:** `contracts/{contracts,typed_pipeline,producer}.go`,
`pipeline/{typed_execution,construction}.go`, spell extraction, scene planning,
the three registry normalizers, and current source types.