Skip to content

Harden private writes and database diagnostics - #3851

Merged
Widthdom merged 5 commits into
mainfrom
fix-issue3833-3688-3725
Jun 20, 2026
Merged

Harden private writes and database diagnostics#3851
Widthdom merged 5 commits into
mainfrom
fix-issue3833-3688-3725

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add sensitive atomic-write profiles for local index metadata and document the public/sensitive write contract.
  • Bound and redact exception-chain diagnostics for logs and database debug output.
  • Harden database checkpoint/restore handling, add restore-backup list/prune maintenance, and sanitize restore diagnostics.

Validation

  • dotnet build --no-restore
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~Run_RestoreBackups" --no-restore
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~AtomicFileWriterTests|FullyQualifiedName~GlobalToolLogTests|FullyQualifiedName~DbDebugTests|FullyQualifiedName~DbCommandRunnerTests" --no-restore
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • git diff --check
  • dotnet format CodeIndex.sln --verify-no-changes --no-restore
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • Codex adversarial review: No blocking/actionable issues found.

Fixes #3833
Fixes #3688
Fixes #3725

@Widthdom
Widthdom marked this pull request as ready for review June 20, 2026 16:07
@Widthdom
Widthdom merged commit 1adf196 into main Jun 20, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3833-3688-3725 branch June 20, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant