Repository navigation
fix(manifest): do not stamp failed-extra AST files as up to date - #2546
Closed
michaelxer wants to merge 1 commit into
Closed
michaelxer wants to merge 1 commit into
michaelxer wants to merge 1 commit into
Conversation
When an optional language extra is missing, the extractor returns an error but the incremental manifest still marked those files processed. Installing the extra later left them forever unchanged. Surface failed_sources from extract(), drop them from the stamped manifest set, and clear both hashes so the next run retries them.
safishamsi
added a commit
that referenced
this pull request
Aug 8, 2026
…e errors; bump to 0.9.37 (#2543, #2554) #2543 (adopts PR #2546, thanks @michaelxer): a failed extraction is no longer stamped in the incremental manifest as up-to-date, so graphify update retries it instead of skipping it forever; a manifest already poisoned by the old behavior is healed on the next run; genuinely unchanged files are not re-processed. Extended to the watch save_manifest paths too. #2554 (adopts PR #2555, thanks @annieyii): the claude-cli backend now inspects the stdout envelope for an is_error result (e.g. a rate limit returned with exit code 0) and raises it on both the zero and non-zero exit paths, instead of parsing it as an empty success and bisecting against a live rate limit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Member
|
Shipped in v0.9.37. Your fix (do not stamp failed-extra AST files as up-to-date) is what landed for #2543, plus a one-time heal for manifests poisoned by the old behavior and the same treatment on the watch save_manifest paths. Credited in the release notes. Thanks @michaelxer! |
PerryLin-0420
pushed a commit
to PerryLin-0420/graphify-decouple
that referenced
this pull request
Aug 13, 2026
…e errors; bump to 0.9.37 (Graphify-Labs#2543, Graphify-Labs#2554) Graphify-Labs#2543 (adopts PR Graphify-Labs#2546, thanks @michaelxer): a failed extraction is no longer stamped in the incremental manifest as up-to-date, so graphify update retries it instead of skipping it forever; a manifest already poisoned by the old behavior is healed on the next run; genuinely unchanged files are not re-processed. Extended to the watch save_manifest paths too. Graphify-Labs#2554 (adopts PR Graphify-Labs#2555, thanks @annieyii): the claude-cli backend now inspects the stdout envelope for an is_error result (e.g. a rate limit returned with exit code 0) and raises it on both the zero and non-zero exit paths, instead of parsing it as an empty success and bisecting against a live rate limit. Co-Authored-By: Claude Opus 4.8 (1M context) <[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.
Problem
When an AST extractor hard-fails because its optional extra is not installed (for example
tree-sitter-sqlfor.sql), the affected files were still stamped into the incremental manifest as processed. After installing the extra, re-running extract reported them as unchanged and skipped them forever. The only recovery was deletinggraphify-out/.This matches #2543. The semantic side already had the same principle via #933 / #1948; the AST side did not.
Solution
extract()now returnsfailed_sourcesfor results that carry an error (including missing extras) and for extractor-present zero-node anomalies._stamped_manifest_files()drops those sources so they are not written as up to date.save_manifest(..., clear_ast=...)blanks bothast_hashandsemantic_hashon any prior seed row for those sources, so the next incremental run re-queues them.Verification
Result: 5 passed, 1 skipped (
tree_sitter_sqlnot installed in this environment for the success-path skip).Local repro without the sql extra:
failed_sourcesfor.sqldetect_incrementalstill re-queues the.sqlfileNotes / limitations
graphifyy[sql]in this environment (optional extra not present here). The missing-extra failure path and manifest re-queue behavior are covered by unit/integration tests and a local repro script.Fixes #2543