Skip to content

feat(graph): index GLSL files in the breadth tier (#293) - #358

Closed
Frankie-Xu wants to merge 1 commit into
trailhq:mainfrom
Frankie-Xu:feat/293-glsl-generic
Closed

Frankie-Xu wants to merge 1 commit into
trailhq:mainfrom
Frankie-Xu:feat/293-glsl-generic

Conversation

@Frankie-Xu

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • genericLangOf routes .glsl
  • Fixture shader: Probe / march / main symbols; skeleton lists them
  • node --import tsx --test test/generic-extract.test.ts test/supported-extensions.test.ts

Made with Cursor

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🌱 graft blast radius

1 area changed → 6 areas can be affected. 15 dependent symbols, depth 2.
Tag: @anirudhkumar-nanonets — 3 of 7 areas · @shhdwi — 3 of 7 areas · @tpoignonec — Graph Processing, Build Context

flowchart TB
  A0(("Graph Processing<br/>8 symbols"))
  A1(("App Review<br/>2 symbols"))
  A2(("Command Line Interface<br/>2 symbols"))
  A3(("Build Context<br/>1 symbol"))
  A4(("LSP Enrichment<br/>1 symbol"))
  AX(("1 smaller area<br/>1 symbol"))
  classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
  class A0,A1,A2,A3,A4 reached;
  classDef tail fill:#EEF2F3,stroke:#9AA4A9,stroke-width:1px,color:#3A4247;
  class AX tail;
Loading
Can be affected Symbols Nearest hop Reached from
Graph Processing 8 src/graph/build.ts:L1-L411 build.ts — imports, depth 1 generic.ts
App Review 2 src/app/brain-build.ts:L1-L428 brain-build.ts — imports, depth 2 generic.ts
Command Line Interface 2 src/cli.ts:L1-L1407 cli.ts — imports, depth 2 generic.ts
Build Context 1 src/context/build.ts:L1-L468 build.ts — imports, depth 2 generic.ts
LSP Enrichment 1 src/graph/lsp/enrich.ts:L1-L141 enrich.ts — imports, depth 1 generic.ts
MCP Tools 1 src/mcp/tools.ts:L1-L330 tools.ts — imports, depth 2 generic.ts
Who knows this code — 6 people across 7 areas
Area Who knows it
generic.ts · changed @Mult1Hunter — 1 commit, last 11d ago · @shhdwi — 1 commit, last 15d ago
Graph Processing · affected Buseong Kim — 1 commit, last 11d ago · @tpoignonec — 1 commit, last 15d ago
App Review · affected @anirudhkumar-nanonets — 8 commits, last yesterday
Command Line Interface · affected @anirudhkumar-nanonets — 5 commits, last yesterday
Build Context · affected @tpoignonec — 1 commit, last 15d ago · @shhdwi — 1 commit, last 15d ago
LSP Enrichment · affected @shhdwi — 1 commit, last 15d ago
MCP Tools · affected @anirudhkumar-nanonets — 1 commit, last 9d ago · @afeddersen — 1 commit, last 11d ago

Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no @ has no GitHub handle in its commit email — tag them by hand, or add a .mailmap entry. A suggestion from history, not a CODEOWNERS rule.

All 15 dependent symbols, grouped by area

Graph Processing — 8 symbols in 8 files

  • src/graph/build.ts:L1-L411 — build.ts (imports, depth 1)
  • src/graph/check.ts:L1-L221 — check.ts (imports, depth 1)
  • src/graph/container.ts:L1-L209 — container.ts (imports, depth 1)
  • src/graph/resolve.ts:L1-L658 — resolve.ts (imports, depth 1)
  • src/graph/source-files.ts:L1-L121 — source-files.ts (imports, depth 1)
  • src/graph/fingerprint.ts:L1-L197 — fingerprint.ts (imports, depth 2)
  • src/graph/refresh.ts:L1-L274 — refresh.ts (imports, depth 2)
  • src/graph/workspace.ts:L1-L725 — workspace.ts (imports, depth 2)

App Review — 2 symbols in 2 files

  • src/app/brain-build.ts:L1-L428 — brain-build.ts (imports, depth 2)
  • src/app/review.ts:L1-L174 — review.ts (imports, depth 2)

Command Line Interface — 2 symbols in 2 files

  • src/cli.ts:L1-L1407 — cli.ts (imports, depth 2)
  • src/engine.ts:L1-L161 — engine.ts (imports, depth 2)

Build Context — 1 symbol in 1 file

  • src/context/build.ts:L1-L468 — build.ts (imports, depth 2)

LSP Enrichment — 1 symbol in 1 file

  • src/graph/lsp/enrich.ts:L1-L141 — enrich.ts (imports, depth 1)

MCP Tools — 1 symbol in 1 file

  • src/mcp/tools.ts:L1-L330 — tools.ts (imports, depth 2)
Test signal per changed area — 1 –

Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.

  • – generic.ts — 1 test file changed here: test/generic-extract.test.ts
37 test suites also reference this code

37 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.

  • test/ask-index.test.ts
  • test/ask.test.ts
  • test/container-extract.test.ts
  • test/context-only-dir.test.ts
  • test/context.test.ts
  • test/covers.test.ts
  • test/generic-node24-probe.ts
  • test/graph-cross-language.test.ts
  • test/graph-enrich-pending.test.ts
  • test/graph-go.test.ts
  • test/graph-incremental.test.ts
  • test/graph-invariants.test.ts
  • test/graph-java.test.ts
  • test/graph-languages.test.ts
  • test/graph-php.test.ts
  • test/graph-posix-paths.test.ts
  • test/graph-python.test.ts
  • test/graph-r-classes.test.ts
  • test/graph-r-phase3.test.ts
  • test/graph-r-phase4.test.ts
  • …17 more

⚠️ 1 changed file not in the graph (README.md) — no parser claims the extension, or the index predates the file.

graft blast · refs/graft/base...HEAD · depth 2 · 4 changed files

Open the interactive graph → — click an area to see the code that changed, and the line that reaches it.

github-actions Bot added a commit that referenced this pull request Sep 11, 2026
@Frankie-Xu
Frankie-Xu marked this pull request as ready for review September 11, 2026 13:27
shhdwi pushed a commit that referenced this pull request Nov 9, 2026
Re-landed from #358 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit.

Co-Authored-By: Shrish Dwivedi <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
shhdwi pushed a commit that referenced this pull request Nov 9, 2026
Re-landed from #358 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit.

Co-Authored-By: Shrish Dwivedi <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@shhdwi shhdwi closed this in #795 Nov 9, 2026
shhdwi pushed a commit that referenced this pull request Nov 9, 2026
Re-landed from #358 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit.

Co-Authored-By: Shrish Dwivedi <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graft does not index Godot .gd or GLSL .glsl files

1 participant