Incremental code graphs can report completion while missing cross-file links
Two code-indexing issue reports show incremental updates omitting import or call edges that a full index finds, even when the incremental run appears complete.
What someone actually noticed
An Understand Anything issue reports that an incremental run re-analyzes changed files but reuses an older import map. A newly added import between existing files then has no graph edge, despite a successful exit. The reporter supplies a reproduction and notes that a full scan refreshes the map. The issue was closed after the report; the public issue alone does not establish whether all installations have the correction.
In a separate CodeGraph issue, a changed file gained an export that satisfied a reference in an unchanged file. Incremental sync reported a complete index with no pending work, but a full index of the same source added import and call edges. A maintainer later confirmed the mechanism, reported a merged fix, and advised a one-time full re-index for indexes created by the older version. These are different products and causes, not proof of a general defect in code graphs.
Read the original signal: GitHub issue · Understand Anything incremental import-map reportWays to solve it
Without new software, update the affected indexer, run a full re-index after upgrading, and manually inspect a small changed-file fixture against the graph's import and call edges. Keep a regression test for the exact failure in the indexer's own test suite.
If teams still encounter silent drift across revisions, prototype a format-specific parity check on a tiny fixture before considering a general adapter. Compare identical source snapshots and distinguish genuinely unresolved references from edges lost during incremental indexing.
A small app you could build
Graph Parity Check
A local diagnostic that compares an incremental code graph with a fresh full index for a small reproducible fixture, showing missing edges before a team trusts impact analysis.
Who might use it: Developers maintaining code-indexing tools or relying on graph-backed impact analysis
- Accept two graph exports from the same source snapshot and normalize file, import and call identifiers
- List edges found only in the full index, grouped by changed and unchanged source files
- Check that both exports cover the same revision before reporting a parity result
- Emit a concise CI report without uploading repository contents
What to verify before building
- Ask maintainers whether the closed issues recur on supported versions, using a minimal reproduction rather than assuming an unfixed bug.
- Measure the cost of a periodic full-index comparison and whether a targeted fixture catches failures sooner.
- Test a new import in a changed file and a new export referenced by an unchanged file; require the parity report to identify the exact missing edge.
- Check whether existing graph-export formats allow meaningful comparison without exposing proprietary source code.
Reality check
These two reports document specific historical bugs, not the frequency of graph drift or demand for a separate tool. CodeGraph's maintainer says its fix was merged and a full re-index repairs older indexes; the other issue is also closed. Full indexing may be expensive, graph formats may not be comparable, and existing regression tests or a version upgrade may solve the practical need more cheaply.
An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.