Use keyed lookups for reference collisions

This commit is contained in:
2026-11-26 05:14:00 +00:00
parent d66cfe3986
commit b0210db974
3 changed files with 53 additions and 6 deletions

View File

@@ -240,6 +240,13 @@ new public contracts.
### ALG-002 — Reference Collision Checks Compare Every Pair Of Keys
**Status:** Completed. The predicate indexes trimmed slot/source-kind pairs and
probes for the opposite kind in expected `O(P + Q)` time, preserving mixed-kind
raw keys that trim to the same slot. Literal cases pass in both argument orders;
a temporary offline oracle matched the old predicate on all 6,561 pairs of maps
over four raw keys and absent/external/generated states. Pipeline, config,
preflight, CLI reference/example tests, package vet, and whitespace checks passed.
**Priority:** Low; configuration-resolution cost, not per-model-call work.
**Evidence:** [referenceSourceMapsConflict](../../internal/framework/pipeline/reference_resolution.go#L34)