BE-011 HIGH: wtdir SRC_ROOT confinement is a lexical prefix check — .. escapes the root

be.wtdir (core/discover.js:232) confines a nav authority to SRC_ROOT with a LEXICAL prefix compare (repo.wt.indexOf(top+"/")===0), but the URI parser does not normalize ..: a host of .. passes authorityRepo's dotless-typo gate (it contains a dot) and u.path may carry ../. io.stat then resolves the dots PHYSICALLY while the confinement compare stays lexical, so //../name and //name/../../.. adopt any anchored tree OUTSIDE SRC_ROOT. shared/util/path.js safeRel (JS-065's "ONE worktree-confinement guard") is never applied to host/path — the JS twin of native DOG-009. From the 2026-07-07 be/ review (BE/REVIEW), CONFIRMED with a probe. Method Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome