Pure functions for copy-first-row attrs and same-box start/end slot pick. Co-authored-by: Cursor <cursoragent@cursor.com>