mapWithConcurrency's callback return was inferred as a union of two object literal types rather than one type with deep: TDeep | undefined, so the 'entry is Pair' predicate was rejected: a type predicate's type must be assignable to its parameter's type. Added an explicit EnrichedCandidate annotation on the call. Tests passed but tsc did not, so this was only visible via typecheck. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>