Repository navigation
fix: stabilize update determinism - #824
Merged
safishamsi merged 3 commits intoMay 13, 2026
Merged
Conversation
Make `graphify update` idempotent by skipping output rewrites when graph/report content is unchanged, add `update --no-cluster`, and preserve community IDs across runs via overlap-based remapping with deterministic partition inputs. Co-authored-by: Cursor <[email protected]>
Use safe JSON serialization fallbacks for deterministic sort keys in clustering and graph canonicalization, and skip invalid community IDs with a stderr warning instead of raising during update rebuilds. Co-authored-by: Cursor <[email protected]>
FatahChan
force-pushed
the
fix/update-idempotency-churn-v2
branch
from
May 12, 2026 00:26
937e817 to
c9f201d
Compare
Add a pre-cluster topology comparison fast path in update rebuilds so unchanged graphs short-circuit before clustering and report generation, preventing residual run-to-run community-count drift. Co-authored-by: Cursor <[email protected]>
FatahChan
force-pushed
the
fix/update-idempotency-churn-v2
branch
from
May 12, 2026 00:36
c9f201d to
28fc71e
Compare
Member
|
Thanks for the topology short-circuit approach! The non-determinism in |
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
…aph, --no-cluster for update (PR Graphify-Labs#824, FatahChan) Co-Authored-By: FatahChan <[email protected]>
zeekay
pushed a commit
to Dream-AI-4444/graphify
that referenced
this pull request
Sep 10, 2026
…aph, --no-cluster for update (PR Graphify-Labs#824, FatahChan) Co-Authored-By: FatahChan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
watch._rebuild_codecluster()/report/json/html regenerationCloses #741
Test plan
uv run --with pytest pytest tests/test_watch.py tests/test_cluster.py tests/test_cli_export.pyuv run python -m graphify update \"/Users/ahmadfathallah/dev/raven-monorepo-copy\"(run twice)graph.jsonandGRAPH_REPORT.mdMade with Cursor