feat(slice): SqlObjectGraph — unified object-graph IR with cascade safety and ownership-based change pruning - #1536
Merged
devin-ai-integration[bot] merged 1 commit intoJul 30, 2026
Conversation
…fety and ownership-based change pruning
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
devin-ai-integration
Bot
merged commit Jul 30, 2026
fe75a40
into
feat/pgpm-program-ast
3 checks passed
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
Stage 4 foundation (constructive-planning #1322/#1323), stacked on #1535: the semantic object-graph IR over parsed
SqlPrograms. This is the single graph that exclusion, routing, and plan pruning are meant to share — replacing survivor-counting and flattened whole-module classification with graph queries.New
pgpm/slice/src/object-graph.ts:Semantics worth noting:
auth.uid()'s body reference toauth.usersdoes not dangle when both are dropped (its source statement creates a dropped object), while a surviving FK / policy accessor into the same table does — tested with exactly this shape.dropped>0 && survivors==0counting heuristic in the apply path (rewiringmaterializeonto these queries is the follow-up).{program, statement}against the sharedSqlProgramfrom feat(transform): SqlProgram — statement-level program AST with dirty-aware verbatim/deparse emission #1535, so the graph, exclusion analysis, and emission all reference the same single parse.Pure/I-O-free; 6 new tests (54 total in slice green).
Link to Devin session: https://app.devin.ai/sessions/025fb88043964fdbb335ac5e39df2478
Requested by: @pyramation