union-clone-override-width.ts:8:18 - error SC2011: values of type '{ kind: "left"; left: number; payload: WiderPayload; } | { kind: "right"; right: number; payload: WiderPayload; }' have no static representation but run in the embedded dynamic engine, which this build does not include

  7 |   // copy its record. The inferred spread result keeps the wider payload.
  8 |   const result = { ...source, payload };
    |                  ^~~~~~~~~~~~~~~~~~~~~~
  9 |   return result.payload.extra;

  hint: build with --dynamic to run these values in the embedded engine (adds ~620KB to the binary), or restate the type inside the static surface (https://scriptc.dev/limitations describes the boundary)