Repository navigation
Description
Version: graphifyy 0.9.46 · Windows 11 · Python 3.12 (uv tool install)
Summary
On unchanged code, graph.json is byte-identical across runs and graphify correctly reports No code-graph topology changes detected; outputs left untouched. But manifest.json is rewritten anyway, and the only thing that differs is the per-file seen timestamp.
Because the git hooks commit graphify-out/ wholesale, graphify-out/ is never clean, and every git push leaves one trailing graph commit behind — permanently.
Reproduction
On a clean working tree, with no source change between runs:
graphify update . && sha256sum graphify-out/graph.json
graphify update . && sha256sum graphify-out/graph.json
graphify update . && sha256sum graphify-out/graph.jsongraph.json is identical all three times (same sha256), and runs 2 and 3 print No code-graph topology changes detected; outputs left untouched.
Now diff two consecutive graph commits made by the hooks:
graphify-out/manifest.json | 772 ++++++++++++++++--------------
1 file changed, 386 insertions(+), 386 deletions(-)
graph.json, GRAPH_REPORT.md and .graphify_labels.json do not appear in the diff. Every changed line is a seen field — verified, zero changed lines are anything else:
"app/admin-ui/src/App.tsx": {
"mtime": 1785366505.196617,
- "seen": 1787000934.3112164,
+ "seen": 1787001063.5783465,
"ast_hash": "f8f7775881b973daf0c485283570a6c1",
"semantic_hash": "f8f7775881b973daf0c485283570a6c1"
}386 entries, one line changed each.
Impact
The pre-push hook sees graphify-out/ as dirty, commits, and reports:
[graphify] Il grafo cambia a ogni run: committato, push lasciato passare.
Da guardare: 'graphify update .' non converge su questo repo.
Two problems with that:
- It never converges. Observed three pushes in a row: the hook commits, the push transfers up to the pre-hook HEAD, and the newly created commit stays local. Re-running
git pushjust produces another one. The repo sits permanently one graph commit ahead of origin. - The message points at the wrong thing. It says the graph changes, which sends you looking for nondeterminism in extraction or clustering. The graph is fine — it's cache bookkeeping. I spent a while bisecting node/edge sets and reading
_rewire_unique_stub_nodesandcluster()before diffing the manifest.
Suggested fix
Any of these would do:
- Don't rewrite
seenwhen no other field in the entry changed — or skip writingmanifest.jsonentirely on theoutputs left untouchedpath. - Or exclude
manifest.jsonfrom the hook's change detection, since it's cache bookkeeping rather than graph content. - Or drop
!graphify-out/manifest.jsonfrom the.gitignoretemplate thatgraphify installwrites, so it isn't versioned in the first place.
Workaround
Untracking it fixes it immediately, and the hook converges on the first try:
git rm --cached graphify-out/manifest.json
# remove the "!graphify-out/manifest.json" allowlist line from .gitignoreVerified on two repos: after this, git push completes with zero trailing commits and a clean working tree.
Activity
fix(detect): prevent manifest timestamp churn on unchanged updates (#…
test(detect): cover ast-kind no-op churn and corrupt-manifest write (#…
chore: bump to 0.9.47
safishamsi commentedon Aug 19, 2026
Fixed in v0.9.47: https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.47 (save_manifest no longer rewrites timestamps on a no-op run). Closing as resolved.