CODE-076: mounts() memo keyed on a fresh negative token never hits

Now
OPEN
Sev
LOW
Rep
///bee
Ask
gritzko
Rev
///bee#8cb69a0
See
CODE-044
See
BEE-048

Input

Context

index/mount.js:182:pN-197 keys subsOf's memo on cache.rev(root) (the CODE-044 fix), but rev() returns a FRESH negative token whenever the tree is big or blind, so on such a tree the memo can never hit and every mounts() pays a full openRepo + readCommit + tree walk per root (measured 147 ms cold vs 0 ms memoized with no watcher). Needs a >32768-dir tree or a failed arm (CODE-058). Found in the 2026-09-18 index review.

Goals

Treat a token as "don't cache and don't invalidate", or key on (rev, tokenCount).

WIP

TODOs

Design decisions

Blockers and bummers

Outcome