Preserve matched history for removed fields

This commit is contained in:
2026-11-02 17:24:45 +00:00
parent 95495ae7fc
commit 25382a112b
3 changed files with 51 additions and 2 deletions

View File

@@ -24,7 +24,14 @@ is not duplicated below.
## Finding 1 — Metadata history rejects a valid matched historical field
**Priority:** P2. **Status:** Open.
**Priority:** P2. **Status:** Complete.
Completion: metadata history now delegates correspondence-aware eligibility to
the shared selector. A regression verifies agreement with explanation for a
removed field absent from the previous final-slot occupant, while effective
lookup, unknown paths, and explicit key/index distinctions remain correct.
The regression failed before the fix; focused tests and `./scripts/check.sh`
passed after it.
**Code:** [engine metadata](../../internal/engine/metadata.go),
`Metadata.History` at lines 50–55; compare