The snapshot wipe's containment traversal (cypher.ts wipe: TS_HAS_MODULE then TS_DECLARES|TS_HAS_METHOD|TS_HAS_FIELD|TS_HAS_BODY_NODE*1..) never reaches :TSAnonymousCallable nodes — only TS_RESOLVES_TO/TS_CALLS point at them, and neither is in the traversal. So re-importing a regenerated graph.cypher leaves stale anonymous-callable orphans behind.
Fix by wiping on _module instead of the containment walk, or by adding a containment edge to :TSAnonymousCallable that the wipe traverses.
Found in the 1.0.0 final review.
The snapshot wipe's containment traversal (
cypher.tswipe:TS_HAS_MODULEthenTS_DECLARES|TS_HAS_METHOD|TS_HAS_FIELD|TS_HAS_BODY_NODE*1..) never reaches:TSAnonymousCallablenodes — onlyTS_RESOLVES_TO/TS_CALLSpoint at them, and neither is in the traversal. So re-importing a regeneratedgraph.cypherleaves stale anonymous-callable orphans behind.Fix by wiping on
_moduleinstead of the containment walk, or by adding a containment edge to:TSAnonymousCallablethat the wipe traverses.Found in the 1.0.0 final review.