Currently, $linearFill only validates that sortBy contains a single element; it doesn't reject expression-based sort parts (e.g. {x: {$meta: "randVal"}}).
Expression-based sortBy is incompatible with $linearFill's linear interpolation, which requires a stable numeric/date field value the executor reads via a field path. The fix should match the precedent set by $derivative and $integral.