JGET-003 CRIT: jab get ? (switch to trunk) records the WRONG branch — a later be post rewrites that branch's history

jab get ? (the explicit "switch to trunk" form: present-but-empty query) writes a wtlog get row pinned to the CURRENT branch instead of trunk, because the empty query string collapses to curBranch. The worktree gets trunk's bytes but the anchor pins e.g. feat at a trunk commit; a following be post then advances feat to a commit rooted on the trunk tip — silently force-moving feat off its own history (committed-history corruption). Native distinguishes ? (switch to trunk) from a bare be get (FF the current branch). Part of JGET-001; method Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome