/**
 * Resolve the autopilot flag for POST /api/jobs.
 * Omitted → config default; explicit false stays supervised; true → autopilot.
 */
export function resolveJobAutopilot(
  bodyAutopilot: unknown,
  autopilotDefault: boolean,
): boolean {
  if (bodyAutopilot == null) return autopilotDefault;
  return Boolean(bodyAutopilot);
}
