Skip to content

fix(cache): scope semantic cache writes to extracted files#1835

Open
TPAteeq wants to merge 1 commit into
Graphify-Labs:v8from
TPAteeq:fix/1757-semantic-cache-source-scope
Open

fix(cache): scope semantic cache writes to extracted files#1835
TPAteeq wants to merge 1 commit into
Graphify-Labs:v8from
TPAteeq:fix/1757-semantic-cache-source-scope

Conversation

@TPAteeq

@TPAteeq TPAteeq commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an allowed_source_files boundary to save_semantic_cache.
  • Prevent semantic results from replacing cache entries for files outside the dispatched extraction batch.
  • Apply the boundary to both native CLI extraction and every generated agent workflow.
  • Preserve out-of-scope nodes in the graph while skipping and warning about unsafe cache writes.
  • Preserve backward compatibility for callers without an allowlist.

Validation

  • 3117 passed, 30 skipped
  • ruff check passed
  • tools.skillgen --check passed
  • Monolith round-trip validation passed
  • graphify update . completed successfully

Closes #1757

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.

save_semantic_cache silently overwrites another file's legitimate cache when a subagent mis-attributes source_file to a file outside the current chunk

1 participant