Index collection prefixes for path correspondence

This commit is contained in:
2026-11-02 17:36:55 +00:00
parent ebf98ffc62
commit e878ce51ff
4 changed files with 108 additions and 50 deletions

View File

@@ -176,7 +176,15 @@ change was added to provide.
## Finding 4 — Correspondence lookup repeatedly serializes growing path prefixes
**Priority:** P2. **Status:** Open.
**Priority:** P2. **Status:** Complete.
Completion: eligible collection prefixes now use the existing prefix index.
Translation formats the requested pointer once, retains concrete path-kind
checks, and copies the resulting path independently. No-eligible cases return
positionally without formatting prefixes; no-registration loads skip matching
construction entirely. Cloning rebuilds an independently owned index. Existing
matching/history/ownership coverage and a numeric-key/escaped-key regression
passed, along with `./scripts/check.sh`.
**Code:** [correspondence translations](../../internal/engine/resolution_correspondence.go),
`entryPath` at lines 96–125 and `finalPath` at lines 129–156; consumers include