feat(lab): index-treatment arm - typed out-of-range reads + compact index headings

↗ view on GitHub · Eli Ziff · 2026-08-06 · 8f43790c

Fixes #2/#3 of the no-duh list, both flag-gated to the treatment arm
with frozen-family false-asserts. MIKE_TYPED_RANGE=1: a scoped read
whose offset is at/past the body end returns a typed out_of_range
refusal naming the body length instead of an empty payload with ok:true
(a silent lost round in mined traces). MIKE_INDEX_COMPACT_HEADINGS=1:
SECT-INDEX heading tails cut at the first sentence/clause boundary
capped at 40 chars instead of 64 chars of truncated prose - entries are
labels, not quotable summaries; 37% smaller index on the measured doc
with anchors byte-identical. Ungated render byte-identical (frozen
arms). Probe 5/5, tsc clean, suites 39/39.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pfUVhNFTRvhYGXBwoKNj6
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 018342ff
Stats 4 files changed , +61 , -7
Part of Evaluation harness: Beaver-CAN and LegalBench-RAG adapters

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-8f43790c.md from inside the repo you want the change in.

⬇ Download capture-commit-8f43790c.md