Repository navigation
Description
Summary
When an extractor hard-fails because its optional extra is not installed, the affected files are stamped into the incremental manifest as processed. Installing the extra and re-running does not repair the graph — the incremental gate reports the files as unchanged and skips them forever. The only recovery is deleting graphify-out/ entirely.
This is not specific to one language: it applies to every extra whose extractor returns a "not installed" error — [sql], [terraform], [dm], and any future one.
Reproduction
On a repo with 227 .sql files, graphifyy installed without the [sql] extra:
$ graphify extract . --code-only --out .
warning: 227 .sql file(s) contributed nothing to the graph because a dependency is
missing: tree_sitter_sql not installed. Install it with: pip install "graphifyy[sql]" (#1745)
[graphify extract] wrote graph.json: 7912 nodes, 19212 edges
Install the missing extra, then re-run:
$ uv tool install --force "graphifyy[sql] @ ..."
$ graphify extract . --code-only --out .
[graphify extract] 0 code, 0 docs, 0 papers, 0 images changed; 1228 unchanged; 0 deleted
[graphify extract] wrote graph.json: 7912 nodes, 19212 edges
[graphify extract] incremental summary: 1228 files cached/unchanged, 0 re-extracted, 0 deleted
Nothing is re-extracted and the warning is gone, so the run looks clean. The 227 SQL files are still absent from the graph.
Only after rm -rf graphify-out does the graph repair:
[graphify extract] wrote graph.json: 8675 nodes, 19820 edges
7912 → 8675 nodes. The intermediate state is the dangerous one: the second run gives every signal of success while the graph stays silently incomplete.
Why it happens
_manifest_files is derived from files_by_type — the full detect output — so a file gets its hash stamped regardless of whether its AST extraction returned an error. The next run's incremental gate compares hashes, sees no change, and skips.
Precedent for the fix
The codebase already applies this principle in the two neighbouring layers, just not here:
- Ruby: stable subset of files yields zero nodes in full-repo runs (0.9.6) — each extracts fine in isolation #1666, AST cache: "Never cache a zero-node result for an extractable file … Caching it makes the empty byte-stable across runs and silently blinds affected/explain to and through the file."
- save_manifest seeds stale semantic_hash from prior manifest, masking LLM-omitted docs — the re-run promised by #1890 never happens #1948, semantic manifest: files dispatched but dropped have their stale
semantic_hashexplicitly cleared, becausesave_manifest's seed loop "would otherwise copy it verbatim and mask the omission."
The AST side has no equivalent. A file whose extraction result carries an error (or that returned zero nodes while having a registered extractor) should not be stamped as up to date, so the next run retries it — exactly the shape #1948 already implements one pass over.
Note
The #1745 warning that surfaces the original failure goes to stderr, so in a piped or CI context it is easy to miss the one signal that something went wrong. Not a bug, but it compounds this one.
Happy to send a PR if you agree with the approach.
Activity
fix(update,llm): retry failed extractions; surface claude-cli envelop…
safishamsi commentedon Aug 8, 2026
Fixed in v0.9.37 (
graphifyy==0.9.37). A failed extraction is no longer stamped in the incremental manifest as up-to-date, sographify updateretries it instead of skipping it forever; a manifest already poisoned by the old behavior is healed on the next run, and genuinely-unchanged files are not re-processed. Thanks @michaelxer for the fix (PR #2546).Merge upstream/v8 (v0.9.37) into chore/sync-upstream-0937
fix(update,llm): retry failed extractions; surface claude-cli envelop…
fix(watch): keep extract()'s run-only keys out of --no-cluster graph.…
perf(cli): decide Graphify-Labs#2543 data-JSON decline without a tree…
Stop re-queuing declined-by-design code files every incremental (#2879)
fix(security): [HIMMEL-7187] sync to upstream 0.9.94 and floor the pa…
chore: [HIMMEL-7394] sync to upstream 0.9.95 and carry the himmel del…
build: устойчивая повторная сборка и конец бесконечной очереди Graphi…