Accept domain sharing and normalization cleanup decisions

This commit is contained in:
2026-11-25 17:27:42 +00:00
parent 09729159cd
commit 05c0acb1b0

View File

@@ -252,24 +252,33 @@ verification; the catalog findings remain outstanding until implemented.
## 7. Shared Domain Rules And Exact-Duplicate Bookkeeping
**Findings:** CAT-020 and CAT-021; coordinate CAT-019 where normalization changes overlap.
**Status:** Open technical scope review.
**Status:** Accepted direction and scope; implementation pending.
Share genuinely identical rules and mechanics, with domain behavior remaining
family-owned. For scenes, separate reusable pure predicates from selectable
validator assessment and corrective prose. Codec acceptance and optional shape
validation differ; sharing the whole validator would strengthen the codec contract.
Place reusable scene checks with a small scene-family domain owner, allowing tiny
predicates alongside domain types where that is clearer. Normalizers and validators
reuse these checks; selectable validator assessment, extraction-specific
cardinality, and corrective prose remain adapter-owned. Codec acceptance and
optional shape validation differ, so the codec shares only primitives that already
match its contract. Preserve existing acceptance and validator-override behavior.
For exact duplicates, start with the families whose bookkeeping demonstrably
matches. Keep eligibility, identity keys, ordering, cloning, and diagnostics local.
Item occurrences' bucket-plus-equality check must remain intact; keeping that
variant separate is preferable to weakening equality or complicating all callers.
Introduce a small pure duplicate-grouping helper returning retained positions and
duplicate groups. Start with NPC occurrences, location occurrences, and combat
turns. Families supply eligibility and identity keys and retain ownership of
ordering, cloning, original-input-index mapping, and diagnostic messages. Include
spells if its existing nil/allocation behavior fits cleanly. Leave item occurrences
separate initially, preserving its bucket-plus-exact-equality check; accommodating
that variant is not a prerequisite for sharing the straightforward cases.
Review representative callers and independent expected outputs before expanding
the shared surface. No universal normalizer or repository-wide movement of every
shape check is proposed. CAT-019's invariant sort-key preparation can proceed
locally while preserving tie and invalid-reference ordering.
shape check is selected. Calculate invariant sort keys once per normalized record,
following the existing combat normalizer's approach. This local CAT-019 improvement
can proceed independently of duplicate grouping. Preserve existing ordering, ties,
and invalid-reference behavior without introducing a general sorting framework.
**Decision:** Pending.
**Decision:** All three recommendations accepted as above. Remaining work is
implementation and verification; the catalog findings remain outstanding until
implemented.
## 8. Extension And Capture Concurrency Obligations