Dashboardopencode-loreresolveNativeOrtBindingPath ownership

resolveNativeOrtBindingPath ownership

Category: gotcha
Confidence: 1.00
ID: 01a0ad05-9a2d-7ff2-9163-d26766766676
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 1JmtIdaVnn5PTPdxS
Created: 2026-09-15 14:53:06
Updated: 2026-09-17 01:40:20

Content

Trap: createRequire(...).resolve() ancestor walking looks necessary for npm hoisting, but it can select a matching undeclared or injected workspace installation and contradict strict worker-package ownership. Fix: root native lookup in the selected embedding-worker package’s declared dependency boundary, prefer @loreai/onnxruntime-<target>, and return null on any resolution, ownership, libc, metadata, containment, or validation failure so WASM fallback is never interrupted.

Move to: