JAB-006 MED: buf.cpp violates the documented API.md buffer contract — silent truncation + missing unmap primitives

Two jab-runtime (src/jab) binding gaps surfaced by the 2026-07-07 be/ review (BE/REVIEW), where be/ JS relies on a contract buf.cpp does not honor:

Method Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome