CODE-049: REV-PARS edges resolve through the newest blob, not the parent commit

Now
OPEN
Sev
HIGH
Rep
///bee
Ask
gritzko
Rev
///bee#8cb69a0
See
BEE-005
See
LITE-006

Input

Context

index/index.js:1197:Wt resolves a parent rev through st.byPB, a (path, blob) -> NEWEST rev map, regardless of ancestry. A content revert on one branch makes the other branch's rev the "parent": on a 4-commit fixture, rev 3 (commit c3 off c0, whose only parent is rev 0) recorded pars=[2], a rev on the sibling branch. index/dag.js:131:~c floorRev walks these edges, so a bee diff over such a path folds from the wrong floor and shows spurious hunks. Found in the 2026-09-18 index review.

Goals

Repro: the revert fixture, assert PARS names rev 0. Take the parent's rev off the parent COMMIT — the walk has just sealed it — via a (path_hl, commit) -> rev memo for the frontier, falling back to byPB only for an unindexed parent.

Constraints

No format change; PARS rows already sealed stay (suspect edges are tolerated).

WIP

Design decisions

TODOs

Blockers and bummers

Outcome