dsh-grantwrite-patch: Fix Windows Sandbox grantWrite failure and silent retry

When using dsh's workspace-write sandbox on Windows, if the ACL chain lacks WRITE_DAC/WRITE_OWNER, grantWrite fails with Win32 error 5 on SetNamedSecurityInfoW, preventing all managed commands in that workspace from spawning. The dsh-grantwrite-patch plugin intercepts this error and, based on workspace scale, applies an in-memory patch, performs a one-time permission grant for large directories, or falls back to diagnose/icacls to repair permissions, then retries the command within maxRetries. Only effective on Windows NTFS; requires dsh >= 0.1.7-rc.1. Installation: dsh plugin --profile web add dsh-grantwrite-patch.

Read More