Skip to content

Semantic cache replay loses same-source edges without an explicit source path #5616

Done

Description

@sdivyanshu90

An unattributed semantic edge can survive graph assembly and disappear on the next cache-backed build.

Reproduction

On Graphify 0.9.123 with Python 3.14, create a.md, then save a semantic extraction using save_semantic_cache. Include nodes one and two with source_file: "a.md", and a references edge between them with confidence: "EXTRACTED" and no source_file. Read the entry back via check_semantic_cache.

A graph built directly from the extraction keeps the edge and fills its source path from the endpoints. Cache replay returns both nodes and no edge. The cache groups edges only by explicit source path.

Recover the owner when both attached nodes identify the same unambiguous source file. Keep the existing allowlist and dangling-reference checks in force, and leave edges with ambiguous ownership uncached.

Activity

  1. github-actions commented on Nov 29, 2026

    @github-actions

    Thanks for opening this issue, @sdivyanshu90. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. added a commit that references this issue on Nov 30, 2026
    5c8bfee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions