feat(impact): blast radius — reverse-dependency traversal (5.3)#36
Merged
officialCodeWork merged 1 commit intoJul 15, 2026
Merged
Conversation
blastRadius(graph, target) in core: a dependency-direction-aware reverse BFS. dependencyOf() maps each edge kind to resource↔dependent so a change propagates the correct way regardless of edge direction (fetches-from and provides-data both reach a data source's consumers); journey edges don't propagate impact. Resolves a target by node id, component name, endpoint, state name, or route path; returns ImpactNode[] (node, relation, distance) nearest-first, always high-confidence. Wired into the context bundle's blastRadius section and a new CLI `impact <node>` command (--depth cap). c1 golden gains a `blast` block: both DataTable instances (d1) + both pages (d2) for the shared definition, and every /api/users consumer with an over-reach guard forbidding the invoices side. New GoldenBlast type + `blast` check kind in the harness. 5 core unit tests; eval 258/0/0, gate OK. Co-Authored-By: Claude Opus 4.8 <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.
What
TRACKER step 5.3 — Blast radius (reverse traversal) (failure mode F2).
blastRadius(graph, target)in@coderadar/core: everything that depends on a node, so a change can be reviewed for impact. It's a dependency-direction-aware reverse BFS —dependencyOf()maps each edge kind to which endpoint is the resource and which depends on it, so impact propagates the correct way regardless of edge direction (a data source's consumers are reached through both incomingfetches-fromand outgoingprovides-data). Journey edges (handles/triggers/navigates-to/exits-app/enters-at) are behaviour, not data/render dependencies, so they don't propagate.ImpactNode[]—{ node, relation, distance }, nearest-first — always high-confidence (deterministic traversal).blastRadiussection (compactName@file:linelabels).impact <node>command,-d/--depthcap, indented by distance.Accept
c1-shared-datatablegolden gains ablastblock:DataTabledefinition → both page instances (d1) + both pages that render them (d2);/api/users→ every consumer (the fetching page + the table instance it feeds), with an over-reach guard forbiddingInvoicesPage//api/invoices.New
GoldenBlasttype +blastcheck kind in the eval harness.Verification
🤖 Generated with Claude Code