Skip to content

Fix/cache dir sibling leak - #56

Merged
rahlk merged 1 commit into
mainfrom
fix/cache-dir-sibling-leak
Nov 29, 2026
Merged

rahlk merged 1 commit into
mainfrom
fix/cache-dir-sibling-leak

Conversation

@lamwassi

Copy link
Copy Markdown
Contributor

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@lamwassi
lamwassi requested a review from rahlk November 23, 2026 16:14
…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
rahlk force-pushed the fix/cache-dir-sibling-leak branch from 265eb02 to 1f8bb6d Compare November 29, 2026 20:09
@rahlk
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
A stacked PR targets another PR's branch, not main, so the pull_request
filter skipped it: #55, #56 and #57 got no CI run after they were
retargeted onto #64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rahlk
rahlk changed the base branch from fix/artifact-discovery-robustness to main November 29, 2026 21:25
@rahlk
rahlk merged commit e25225d into main Nov 29, 2026
3 checks passed
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.

2 participants