process_roboflow_result appended a mask only for predictions carrying one (RLE or polygon), while xyxy/confidence/class_id were appended for every prediction. A result mixing masked and box-only predictions (e.g. a segmentation batch where one polygon is empty) produced a mask array shorter than the boxes, so Detections.from_inference raised a shape-mismatch error. Append None for box-only predictions and build the mask array only when every prediction has a mask, otherwise drop masks to preserve alignment, mirroring the tracker_id handling. Fully-masked and mask-free results are unchanged. - Update `masks` Returns clause to document partial-drop case and corrupt-RLE blast radius (D1+C1) - Remove stale "known limitation" note from from_inference docstring; describe actual behavior (D2) - Extract _all_present_or_none() helper; eliminate duplicated partial-drop-warn pattern (S1) --------- Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>