plan: incremental graph rebuild (3-PR sequence)#283
Merged
Conversation
Adds PLAN-INCREMENTAL-GRAPH.md implementing the INCREMENTAL-GRAPH-PROPOSE proposal. Three-PR sequence: G1 (edge source_file schema + hash tracker), G2 (incremental orchestrator with scoped rebuild + dependent expansion), G3 (CLI integration with --vectors-only flag). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11 fixes from code review: - C1: correct source_file derivation for EXPOSES/DECLARES_CLIENT/DECLARES_PRODUCER (must be source Symbol's filename, not target node's) - C2: add note acknowledging 3-PR divergence from proposal's "Single PR" - I1: replace source_file_schema BOOLEAN with ontology_version >= 17 check - I2: add _load_existing_members() before pass 3 for call resolution - I3: clarify pass 5-6 edge tables are always globally rebuilt, not scope-deleted - I4: clarify _find_dependents() excludes non-Symbol-to-Symbol edges - I5: fix "read-only" to "read-write" in incremental_rebuild() step 1 - M1: remove empty _drop_all section - M2: correct _write_unresolved reference (inlined in _write_edges) - M3: fix first-column justification (convention, not functional) - M4: add _populate_declares_rows/_populate_overrides_rows to scoped write Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Summary
PLAN-INCREMENTAL-GRAPH.mdimplementing the approvedINCREMENTAL-GRAPH-PROPOSEproposal as a 3-PR landing sequencesource_fileon all edge tables +FileHashTrackerclass + ontology bump 16→17incrementnow updates both Lance and graph;--vectors-onlypreserves old Lance-only behaviorHighlights
.graph_increment_in_progressmarker + full-reprocess fallbackTest plan
Plan-only PR. Baseline tests should be unaffected.
🤖 Generated with Claude Code