CODE-051: the TRI mark survives its lane — lost tri runs are never rebuilt

Now
OPEN
Sev
HIGH
Rep
///bee
Ask
gritzko
Rev
///bee#8cb69a0
See
BEE-071
See
BEE-061

Input

Context

index/lindex.js:229:PS-233,295: the TRI round's watermark lives in the lite3 lane while its postings live in *.tri.idx, and nothing cross-checks them. Confirmed on a clone of git.git carrying its real be/: rm .git/be/*.tri.idx then bee index prints "up to date", bee grep reftable_stack_destroy answers nothing, and every later run repeats it; only rm -rf <gitdir>/be (a full 81k-commit re-derive) recovers. BEE-061 gave bringUp the same treatment for the lite3 mark. Found in the 2026-09-18 index review.

Goals

Read a cheap liveness probe of the tri lane beside the mark — any *.tri.idx present, or tix.count > 0 — and treat the mark as absent when the lane is empty, the way index/index.js:1113:Wt checks the tip's CPAR row beside its mark.

WIP

TODOs

Design decisions

Outcome