fix(agentsetup): honour GIT_CEILING_DIRECTORIES in the repository walks
Commit
Context and OuterRepo find repositories by walking up for .git without invoking git, and neither respected GIT_CEILING_DIRECTORIES. Git honours it, so they disagreed exactly where it matters: on a machine whose home folder is a git repository, Context answered a directory git reports as outside any repository with the home folder, and OuterRepo named the home folder as the "outer repository" of every top-level clone.
The walk now stops before stepping up into a ceiling, matching git's rule: the starting directory is still examined, and empty and relative entries are ignored. Entries are compared lexically -- cleaned, and case-folded on Windows -- and never resolved on disk: a ceiling entry is caller-controlled, and resolving one can reach a UNC path and perform network I/O. An entry spelled differently from the walk (an 8.3 short name against the long one) therefore does not match, which leaves the walk as unfenced as it was. That is the same hazard resolveRepo's in-process ceiling handling avoids; this keeps agentsetup free of filesystem resolution rather than importing the provider's resolver into it.
TestCoordinationOutsideRepository, TestOuterRepoIsEmptyForATopLevelRepo and
TestOuterRepoRequiresAnInnerRepository failed on any such machine because
"no repository above" is a property of every ancestor of the temp dir;
they now fence their own walk (the last one is no longer parallel, since
t.Setenv is unavailable to parallel tests).
TestContextHonoursGitCeilingDirectories and
TestOuterRepoHonoursGitCeilingDirectories pin the rule on any machine; the
first also checks each case against git rev-parse --show-toplevel.