| Generics across modules | 0, 2 | Calling a generic function with a new type from another module means generating code there, and changing a type can force dependent modules to rebuild. Decide the strategy in the spec before writing the compiler. |
| MoonBit got there first | all | Don't compete on the language core alone. Lead with typed AI calls, declared permissions and C#-familiar syntax. |
| "No runtime" is only half true | 3 | The standard library, JS glue and the compiler itself still ship. Enforce the size budget in CI. |
| Browser support gaps | 0, 4 | Safari support for JS String Builtins is disputed, and for JSPI (WebAssembly that can wait on JS promises) it's unconfirmed. Detect features at load time and keep fallbacks. |
| TypeScript types don't map cleanly | 4 | Unions, overloads and structural types will defeat a naive .d.ts importer. Hand-written bindings come first, and the importer handles a subset. |
| Compromised dependencies | 8 | The lockfile records every dependency's permissions, and new permissions need your approval. Packages come from git, so there's no registry of our own to secure. |
| Model providers keep changing | 6 | Keep provider adapters thin and behind one interface; test them against recorded replies. |
| Slower than native | 1, 3 | WebAssembly is somewhat slower than native code, most on heavy allocation. wasm-opt runs on every build, and benchmarks against TypeScript, Kotlin/Wasm and Rust catch regressions (decision 0011). |
| Wasm GC outside browsers | 4, 13 | Standalone and embeddable runtimes are still adding Wasm GC, and iOS forbids generating machine code at run time. Check before Phase 13 starts; the fallback is a hidden web view. |
| Scope creep | all | The language server, package manager and AI library can each take months. Ship v0.1 with the five pillars, and keep phases 9–13 after the release. |