mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
Stage N2 of the localized-failure design (canonical type normalization). At localized failure's commit points, before a failing type degrades to its pushed-down or whole-slot dynamic form, its canonical form maps through mapCanonical under the current bindings. When that gives a static IR type, the type maps exactly: no dynamic slot, no SC6104. Opaque and unbound forms, and forms that map only to the checked dynamic, degrade as before. The coverage remainder re-derives canonical forms in its own tables. Because it runs only at commit points, a program that compiles today never consults it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>