f5cfc7edd3
improvise-53zz. The scratch-repo shape tests inherited the caller's git environment. A hook in a linked worktree exports GIT_DIR (and GIT_INDEX_FILE), which override -C, so `git -C <scratch> add` staged the scratch files into the outer checkout's index. The user's global excludesFile applied too, so a `*.gz` line there broke the gzip test. One helper, git(root), now removes every name that `git rev-parse --local-env-vars` prints. run_git also sets GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1. Two new tests re-run a shape test in a child process of this binary with the variables set. Both were red before the fix. Five rivals are recorded in context/test-evidence/tui.md. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VdfEGXA7aJ6ftMsCc9PJze