Migrate item normalization to native correction and explicit fallback handling

This commit is contained in:
2026-11-22 00:17:58 +00:00
parent 2348730820
commit 772b8619c1
11 changed files with 704 additions and 337 deletions

View File

@@ -625,6 +625,29 @@ as a request to restart the core.
## Stage 14: Migrate Item Registry Normalization
**Status:** Complete. Item normalization now uses one fixed preprocessing and
reconciliation preparation, native initial/correction requests, and the shared
producer helper. Each response applies its own safe proposal to original records
before operation-scoped assessment. Currency compatibility, identity derivation,
evidence ordering, and domain diagnostics remain. Added the same-schema/default-
profile correction declaration and static dependencies; removed module retries,
completion/asset registration, and manifest/fingerprint metadata.
Permissive output uses only the final safe candidate or the supplied merged
artifact after a result-less failure. Fallback construction checks codec, registry
identity, and source usability without ordinary revalidation. Preparation limits
honor resolved mode; insufficient candidates use the existing assessment path
without native requests. Exposed/factored the existing terminal/no-model assessment
functions for these real callers rather than duplicating acceptance policy.
Retained domain regressions and added native-fake correction, final safe partial,
unchanged-candidate, failed-continuation/no-earlier-recovery, structural-failure,
mode/limit, no-model, fallback-usability, override, and cancellation tests.
Focused pipeline tests/vet/race, terminal tests, complete reconciliation/asset and
item-shape tests/vet/race, production framework builds, and `git diff --check`
pass. Item-normalizer/codec/identity/source-validator tests remain blocked at
setup by shared legacy asset helpers importing old ConfigKit's removed YAML
`plugin/limit`; the new module tests are not claimed passing. Their full execution
remains required after scheduled dependency cleanup and in final verification.
**Goal:** prove a complete native normalization operation and safe fallback.
**Inspect/change:** `internal/modules/dnd/normalize/itemregistry`, its validators/