ABC-007: HIGH LSM/Y merge stack: overflow, silent data loss, comparator UB

The run-merge stack (LSM.h/LSM.c/Y.h/Yx.h) has a room-check bypassed by a raw memcpy, a sort that can return OK having moved the data OUT of the caller's slice, and a qsort driven by a b8 less-than through an int comparator cast (UB + inconsistent order). Found 2026-07-07, all verified by inspection against the quoted lines.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome