Repository navigation
Description
Running cluster-only --no-label once writes the Community N placeholders into graphify-out/.graphify_labels.json as if they were real labels. Every later run then preserves them, so the free hub labeler never gets a chance to run and the graph reads Community 0 permanently.
The same command produces different output depending on whether that cache file exists, and nothing tells you it's there.
Reproduction
A four-file package, graphify 0.9.22, no API key set in the environment.
mypkg/
__init__.py from mypkg.core import Engine
core.py class Engine: run(), stop()
app.py from mypkg.core import Engine; import mypkg.helpers
helpers.py from mypkg.core import Engine
$ graphify . --code-only --no-label
-> 11 nodes, 19 edges, 4 communities
$ graphify cluster-only . --no-label
names: ['Community 0', 'Community 1', 'Community 2', 'Community 3']
.graphify_labels.json now contains those four strings
$ graphify cluster-only . # no --no-label, still no API key
names: ['Community 0', 'Community 1', 'Community 2', 'Community 3'] # <-- expected hub names
("Labeling communities..." never prints)
$ rm graphify-out/.graphify_labels.json graphify-out/.graphify_labels.json.sig
$ graphify cluster-only . # byte-identical command to the one above
Labeling communities...
names: ['Engine', 'app.py', 'core.py', 'helpers.py'] # <-- correct
The last two invocations are the same command. The only difference is a dotfile the user never asked for and is unlikely to know about.
Why I think this is a bug rather than intended caching
label_communities_by_hub in cluster.py describes itself as "Used as the default (no-backend) labeler", and it works exactly as documented once the cache is out of the way. The caching logic is also clearly deliberate and well-reasoned. The docstring on community_member_sigs explains that it exists to avoid reusing a stale LLM label on a community whose membership changed, which is a real problem worth solving.
The gap is that a placeholder is stored in the same place as an earned label and is then treated as one. A placeholder is precisely the thing that should always be recomputed.
I hit this on a 927-node project. 40 of 42 communities stayed as Community N through repeated runs, and I had assumed naming simply required an API key I did not want to configure. It does not. It was one stale dotfile.
Suggestions
Any one of these fixes it:
- Don't persist labels at all when
--no-labelis passed. The placeholders carry no information, so there is nothing worth caching. - Or treat a label matching
^Community \d+$as absent when deciding what to re-label. - Or have
--no-labelskip only the LLM naming pass and still apply the free hub labeler, which is what the flag's help text ("skip LLM community naming") already implies it does.
The third reads closest to the documented intent. --no-label is described as skipping LLM naming, and a user passing it to avoid a network call is unlikely to intend giving up the local labeler too.
Environment: graphifyy 0.9.22, Python 3.14, macOS.
Activity
fix(label): --no-label placeholders no longer permanently suppress re…
chore: bump to 0.9.23; changelog for #2062/#2074/#2073/#2068/#2072; d…
safishamsi commentedon Jul 21, 2026
Fixed in v0.9.23:
cluster-only --no-labelno longer persistsCommunity Nplaceholders (nor a matching .sig), a stored placeholder is treated as absent so already-polluted graphs self-heal via the hub labeler, and the watch/update rebuild got the same treatment. Genuine labels are still reused. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.23Merge upstream/v8 into v8-custom (0.9.20 -> 0.9.24)
Squashed commit of the following:
fix(label): --no-label placeholders no longer permanently suppress re…
chore: bump to 0.9.23; changelog for Graphify-Labs#2062/Graphify-Labs…