Repository navigation
openspec: bunch-real-projects — make Bunch work on real repositories - #252
Merged
Merged
Conversation
The merged Bunch stage needed four external workarounds on solario-core, the 57 dataset-discovery repositories and five Solario builds: - the community-size cap (5 % of nodes) splits Bunch modules into single files on small graphs (nestjs-realworld: 29 modules of 1 file, MQ 0) - Step 5 re-clusters a graph enriched with depends_on/inferred edges derived from the Step-4 partition; the MDG also folds documents edges - above ~600 files a search is intractable (> 28 min at 1,778 files) while the Leiden fallback only triggers at 5,000 - resolveImport is syntactic: extension-less paths, @/ ~/ $lib/ aliases, tsconfig paths and JVM FQNs stay unresolved (taxonomy: 0 file imports) Proposes: no size cap for Bunch; a relation allowlist for the MDG and Step-5 reuse of the Step-4 partition; partitioned search over directory sub-trees plus a global refinement pass (Bunch single-file moves over the whole MDG, MQ strictly increasing; pc26: 1,579 -> 1 singleton, MQ 149 -> 376); corpus-aware import resolution with a uniqueness rule.
This was referenced Nov 12, 2026
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.
Why
Running
--cluster-algorithm bunchon solario-core, the 57dataset-discoveryrepositories and five Solario builds (2026-11-12) needed four workarounds outside Graphos. Each one hides a defect:src/cli: MQ 16.66 instead of 18.37depends_on/inferrededges derived from Step 4, and the MDG also foldsdocumentsedgessrc/infrastructure: 1,490 inferred edges against 316 real importsresolveImportnever sees the corpus@/~/$lib/aliases, tsconfigpathsand JVM FQNs stay unresolved. taxonomy: 0 file-to-file imports; jhipster: −224 internal importsWhat
openspec/changes/bunch-real-projects/contains the proposal, the design (D1–D4, with a Mermaid flow), the tasks, and spec deltas forbunch-clustering,pipeline-clusteringandimport-resolution.imports, calls, references, extends, implements.--edge-density sparseis left to the opencli-enum-flag-vocabularychange.Verification
openspec validate bunch-real-projects --strict: valid.tasks.md§1–5.design.mdreproduce the numbers measured with the external workarounds.