Skip to content

Strengthen traversal and cleanup policies - #4199

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue4131
Jun 28, 2026
Merged

Strengthen traversal and cleanup policies#4199
Widthdom merged 2 commits into
mainfrom
fix-issue4131

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add opt-in cancellation and entry-budget support plus shared failure taxonomy to FileSystemTraversalPolicy.
  • Revalidate case-sensitivity probe cleanup targets against safe roots, expected names, and symlink/reparse/device status before deletion.
  • Document the traversal/destructive cleanup contracts and add an unreleased changelog fragment.

Validation

  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false -m:1 --no-restore
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --no-build --no-restore --filter "FullyQualifiedName~FileSystemTraversalPolicyTests|FullyQualifiedName~CaseSensitivityProbeDirectory_Cleanup"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • destructive-operation and Directory.Enumerate audits with local cdidx search
  • Adversarial review: No blocking/actionable issues found.

Fixes #4131

@Widthdom
Widthdom marked this pull request as ready for review June 28, 2026 16:06
@Widthdom
Widthdom merged commit eaf3b17 into main Jun 28, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue4131 branch June 28, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strengthen filesystem traversal and destructive directory operation policy

1 participant