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
Windows projection wedge persists on managed projection-history paths (resolve-evidence, history append, tree ops) #3192
Follow-up to #3177 / PR #3176. #3176 degraded the atomicWrite channel only; the native projection-root paths used by /gsd doctor resolve-evidence, the history-log append (recordManagedProjectionPath/File), tree shelter/restore (auto-worktree-milestone-shelter), exact-tree removal (milestone-actions), and legacy/orphan cleanup (/gsd doctor) still wedge deterministically on ERROR_SHARING_VIOLATION (os error 32).
Root cause: Defender opens freshly created staging nodes inside the managed root without FILE_SHARE_DELETE, so the engine's rename primitives exhaust their Windows retry budget (~75 ms) and the same failure returns on every retry — stable staging/destination names across fresh processes, no visible control artifact to move. FILE_SHARE_DELETE cannot be added for external holders, so the degradation (close the native handle, re-run through a fresh-name tmp+rename / unlink) is the only convergence path short of excluding .gsd from Defender.
Traced shape:
/gsd doctor resolve-evidence … discard → resolveUnboundProjectionEvidence → withManagedProjectionRoot → handle.writeFile (journal/evidence control files) and handle.exchangePaths (content publication) → native rename → os error 32 exhausted → rethrown from the JS catch, exactly the pattern fix(projection): degrade exhausted Windows projection sharing violations to plain-fs writes #3176 described for atomicWrite.
Fix: extend the exhausted-sharing degradation to all of these paths (see PR linked below). Structural rejections (#2648) and non-exhausted failures stay fail-closed; loadUnboundProjectionEvidence stays fail-loud so the doctor still emits "could not be assessed" and lists rows via the lock-free preview (#2883); resolveUnboundProjectionEvidence degrades using the caller's lock-free-listed consent, re-validated against the on-disk evidence.
Activity