feat(context): named-flow subgraph — call-edges among members (closes #311)#312
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…311) `context --check flow --name X` now includes `edges: [{from, to}]` among the flow's members, so a chain reads in call order (checkout_route -> validate_cart -> charge) rather than as a flat set — completing Wolfvin's "rantai function". Read-only: resolves each member (symbol, file) to a graph node, runs query_callees, and keeps only edges whose target is also in the flow. Graceful by design — a workspace with no graph DB (never scanned) yields the flat member list unchanged, so nothing new is required and there is no regression. Touches no scan/parser pipeline. markdown renders a "Call chain" section; json/compact expose `edges` for agents. Member resolution keys on (symbol, file) so same-named functions in different files don't collide. Verified: PAYMENT chain resolves in order on the scanned demo; fresh workspace degrades to flat list; edges leaving the flow are excluded (tests). Full suite 19 failures = 19 on main. 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.



Closes #311. Builds on #309.
Yang dibangun
context --check flow --name Xkini menyertakanedgesantar-anggota, jadi rantai terbaca terurut — bukan cuma kumpulan:Melengkapi framing Wolfvin: "1 flow dari sebuah rantai function".
Read-only + graceful
Resolve tiap member (symbol, file) → node graph,
query_callees, simpan hanya edge yang target-nya juga di flow. Graceful: workspace tanpa graph DB (belum di-scan) → flat list #309, tak ada requirement baru, tak ada regresi. Tak menyentuh scan/parser pipeline. Resolusi keyed (symbol, file) → fungsi senama beda file tak tabrakan.Verifikasi (dijalankan)
checkout_route → validate_cart → charge).edges.Pasangan berikutnya (fase 2): subgraph + edge-diff #297 = "bentuk flow pembayaran berubah di PR ini". Persist tag ke node graph tetap terpisah (backend delegate).
🤖 Generated with Claude Code