Repository navigation
Fix/cache dir sibling leak - #56
Merged
Merged
Conversation
…one app's subdirectory With the cache inside the project (-c ./cache), each application writes its analysis_cache.json beneath identity-v2-<hash>/. New() replaced the cache directory with that per-application subdirectory, and the repository layer was given only the subdirectory. So each run excluded its own cache and nothing else: run B recorded run A's identity-v2-<hash>/analysis_cache.json as a project artifact. With --artifact-text its full source, another application's analysis, was written into B's analysis.json. The Analyzer now keeps the cache root as the user gave it, and the repository layer excludes all of it. Every application's subdirectory is covered, including ones written by applications not yet analyzed. The cache root is the tool's own location, so nothing under it is project source. A root equal to the project directory is still not excluded (the walk never skips its own root). Test: TestAnalyze_CacheRootInsideProjectIsNotAnArtifact runs two applications against one in-project cache and fails on the old code (appB records cache/identity-v2-<hash>/analysis_cache.json as an artifact). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
rahlk
force-pushed
the
fix/cache-dir-sibling-leak
branch
from
November 29, 2026 20:09
265eb02 to
1f8bb6d
Compare
rahlk
changed the base branch from
main
to
fix/artifact-discovery-robustness
November 29, 2026 20:09
rahlk
pushed a commit
that referenced
this pull request
Nov 29, 2026
rahlk
changed the base branch from
fix/artifact-discovery-robustness
to
main
November 29, 2026 21:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context