You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
checkout_provenance Passes an Absolute Path as a Git Pathspec, Unverified on Windows, Where a Failure Reports a Tracked Clean Copy as unknown #1419
checkout_provenance passes an absolute path as a git pathspec, and on Windows that path uses backslashes, which are the pathspec escape character. Whether git normalizes it there is unverified, because the change shipped from a Linux host with no Windows host available to settle it.
.github/actions/prose-gate/prose_lint.py:353, reached from line 295:
On Windows Path(__file__).resolve() yields a backslash-separated absolute path. Git for Windows is believed to normalize this through is_dir_sep during prefix_path, which would make it work, but nothing proves it here and this is the first place in the file that uses an absolute path as a pathspec, so there is no existing precedent in the tree to lean on. The test suite exercises POSIX paths only.
What happens if the belief is wrong
ls-files --error-unmatch fails, checkout_provenance returns unknown, and every run of this repository's own .husky/pre-commit on a Windows host reports gate unknown for a copy that is tracked and clean.
That is worse than an absent answer rather than merely less useful. GOVERNANCE.md "Running the Linters Locally (Known-Working Invocations)" defines gate unknown as "a copy no commit describes", so the verdict would assert something false about a copy a commit does describe precisely. The whole point of naming the copy is to keep an investigator from chasing the wrong thing, and a Windows developer comparing a downstream CI verdict against their own run would be doing exactly that.
The degradation is graceful in the sense that no verdict about the prose itself changes. Only the attribution does.
Settling it
Run on a Windows host, from a checkout of this repository:
The scope line ends in gate local <sha> if the pathspec resolves and gate unknown if it does not.
If it does not resolve, the fix is to pass the path relative to the directory git is invoked in rather than absolute, since git already runs with -C script.parent and the file is that directory's own child. str(script.name) would sidestep pathspec separator handling entirely. Worth confirming the same for the status --porcelain call two lines below it, which takes the same argument.
Either way a case pinning the behavior would be better than the belief, and Path.as_posix() is the other candidate if a relative name turns out to be unsuitable.
Provenance
Raised by the local review pass on #1417 and reported there as PLAUSIBLE rather than CONFIRMED, explicitly because it could not be verified from the host the work was done on. Carried out of that pull request rather than left in its body. Merged as 0b4657d.
Related to #1412, which the provenance mechanism settles.
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.
Activity
ptr727 commentedon Oct 23, 2026
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.