CODE-053: mint rewrites refs inside URLs and string literals — the hook ships them

Now
OPEN
Sev
HIGH
Rep
///bee
Ask
gritzko
Rev
///bee#8cb69a0
See
BEE-070
See
DOG-034

Input

Context

index/mint.js:23:PA with index/hook.js:163:bn mints any F token the lexer fuses, with no look at what precedes it. Confirmed: https://example.com/target.c:12:ZF becomes https://example.com/target.c:12:RW both under bee mint and under the pre-commit hook, where the STAGED BLOB is rewritten, so a commit silently ships a broken URL; "target.c:12:ZF" inside a string literal is rewritten too. meta/link.mkd separates a link from a URI on purpose. Also index/mint.js:156:PA keys the dry-run report on ref text, so a repeated ref reports once per occurrence, and :72 whyLeft claims "answers no line N" for any foreign target without checking. Found in the 2026-09-18 index review.

Goals

Refuse a token whose preceding bytes form a scheme or authority, and one inside a string literal the lexer already tagged. Repro through the hook, not only bee mint.

WIP

Design decisions

TODOs

Blockers and bummers

Outcome