Parent: #589
A strict three-file reduction for the remaining Zod nested-array callback gap shows that an imported function returning EnumValue[] transfers correctly until its parameter is Readonly<Record<string, EnumValue>>. The program schema currently rejects the standard utilities, so the imported function falls back to any and its result loses array callback context.
A direct exact encoding of Record<K,V> and Readonly<T> using the schema’s existing mapped/keyof/indexed-access expressions passed the full ts_program suite, but failed the real corpus gate:
- reduction gained a false TS2345 for
values({}) - untouched Zod compiler process crashed with exit 139 before emitting diagnostics
- no result from that crashed run is counted as an improvement
- the experiment was fully reverted and was not committed
Reduction: /Users/chris/Code/Home/lang-ts-perf-416-evidence/nested-array-context
Acceptance criteria:
- isolate the mapped utility instantiation crash with a minimal program regression
- transfer
Record<K,V>andReadonly<T>without unsafe recursion or argument false positives - preserve local shadowing of utility names
- make Home, pinned tsc 6.0.3, and pinned tsgo 7.0.2 agree on the reduction
- require zero added diagnostics and no crash on the untouched 106-file Zod corpus