Same fix as the ticket CLI — uses git rev-parse --git-common-dir to resolve DB path to the main worktree. Prevents WAL/journal pollution when sqlite-query or sqlite-exec are called from feature branches. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>