mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-15 03:47:05 +00:00
73710d33ce
The graph_has_legacy_ids nudge flagged fresh v9 graphs that contain Go code, because the Go extractor scopes a type node by package directory (_make_id(pkg_dir, name) -> "sub_thing"), which coincides with the OLD one-parent file-stem form of pkg/sub/thing.go even though it's a current, by-design package-scoped id (methods on a type across files in a package share one node). The detector now inspects only file-level nodes (source_location "L1"), whose id is unambiguously the file stem and which the migration actually re-keys. This still catches a genuine pre-#1504 graph (its file nodes carry the old stem) while leaving package/dir-scoped symbol ids alone. Verified end-to-end: a fresh Go graph no longer triggers the rebuild nudge; a real legacy graph still does. The migration itself was already correct — file nodes and Python/AST symbols migrate to full-path ids; Go's package-scoped type ids are intentional and unaffected. This only fixes the over-eager warning. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>