Skip to content

Markdown frontmatter-only edits replay stale AST metadata and wikilinks #5480

Done

Description

@sdivyanshu90

A Markdown frontmatter edit can replay stale metadata and wikilink edges even when Graphify detects the file changed.

Reproduction

On Graphify 0.9.119 with Python 3.14, create old.md and new.md with different headings. Give doc.md the following content:

---
consulted: "[[old]]"
---
# Notes

Run graphify update .. Change only [[old]] to [[new]] in the frontmatter and update again. The warm AST extraction keeps consulted: "[[old]]" and the old references edge. A fresh extraction reads the new metadata and reference.

The AST cache uses the body-only Markdown digest shared with semantic caching. Use the complete Markdown source for AST lookups and writes. Keep the body-only semantic key so frontmatter edits do not invalidate semantic cache entries.

Activity

  1. github-actions commented on Nov 25, 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 28, 2026
    9c0e7f2
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