URI-005 MED: be get file:/…/.be?/proj fails — trailing-slash store-path detection

be get file:/home/…/.be?/proj errors cannot restore … — no baseline in .be/wtlog instead of attaching a worktree, while file:///… works. Root cause (pinned by the v1/v2 workers): store-path detection in beagle/BE.cli.c:813 runs PATHu8sBase(base, prim_s) on a path ending in /.be/ (trailing slash); PATHu8sBase (abc/PATH.c:39-48) stops AT the trailing slash and returns EMPTY, so u8csEq(base, ".be") is false → path_is_store stays NO → BEGetWorktree no-ops → falls through to BEActSingleFileGet → sniff restore → "no baseline". Narrow detection fix; the broader file:/be: transport redesign is URI-006. Method: Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers

Outcome