Skip to content

Fix inherited batch database provenance - #5111

Merged
Widthdom merged 3 commits into
mainfrom
fix-issue5083
Aug 16, 2026
Merged

Fix inherited batch database provenance#5111
Widthdom merged 3 commits into
mainfrom
fix-issue5083

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • keep batch-inherited database paths, project roots, Git provenance, freshness, and JSON metadata on one repository context
  • preserve child-explicit overrides, implicit-default semantics, leading-dash paths, pass-through parsing, and serial/parallel isolation
  • add bilingual developer/testing documentation and a bilingual changelog fragment

Root cause

The batch parent shared only a thread-local reader. Child option, envelope, and status code could therefore re-resolve database, project, and Git metadata from the current working directory and mix two repositories in one response.

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false (0 warnings, 0 errors)
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --no-build -p:UseSharedCompilation=false --filter FullyQualifiedName~CodeIndex.Tests.QueryCommandRunnerTests.RunBatch (45/45 on net8.0 and net9.0)
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --no-build -p:UseSharedCompilation=false --filter FullyQualifiedName~Issue5083 (4/4 on net8.0 and net9.0)
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • canonical cdidx status --check and cdidx workspace status --check
  • two Codex adversarial-review rounds; all four findings were fixed and covered by regression tests

Documentation and changelog

  • DEVELOPER_GUIDE.md
  • TESTING_GUIDE.md
  • changelog.d/unreleased/5083.fixed.md

Follow-up candidates

  • None.

Fixes #5083

@Widthdom
Widthdom marked this pull request as ready for review August 16, 2026 15:45
@Widthdom
Widthdom merged commit b30db14 into main Aug 16, 2026
11 checks passed
@Widthdom
Widthdom deleted the fix-issue5083 branch August 16, 2026 15:45
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.

Keep inherited batch database provenance consistent in status output

1 participant