Skip to content

refactor: remove the unused file bundling engine - #808

Merged
ajianaz merged 2 commits into
developfrom
refactor/remove-bundling-engine
Nov 17, 2026
Merged

ajianaz merged 2 commits into
developfrom
refactor/remove-bundling-engine

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • src/engine/bundling/grouping.rs (625 lines) and the data types only it used (FileGroup, GroupingKey, LanguageFamily, GroupingStats) are deleted, together with their 33 tests, and diff_parser::extract_added_lines with its test. About 1,000 lines go.
  • BundlingConfig and GroupingStrategy stay (in src/engine/bundling/types.rs), so a .cora.yaml with a bundling: section keeps loading; the parsing and merge tests are untouched. The keys never had an effect.
  • docs/configuration.md says the section is deprecated with no effect and points to review.max_chunk_chars for large diffs; docs/roadmap.md no longer lists the feature as done.
  • The three small context fields that are set and never read (ExtractedSymbol.line, raw, ContextChain.stats) keep a narrow allow(dead_code) with an honest comment; AstNode.parent keeps one that points to index: keep the parent scope of methods (AstNode.parent is computed and then dropped) #807, which decides whether to store it or drop it.
  • CHANGELOG entry under Unreleased.

Why

The grouping engine was complete and never called by cora review or cora scan, while the roadmap called the feature done and the config documented it. Review already splits a large diff by a character budget (#733), and nothing shows that grouping by directory or language would improve a review (that cannot be measured without a model key), so the dead code goes rather than waiting to be wired in. Closes #792.

Testing

@ajianaz
ajianaz force-pushed the refactor/remove-bundling-engine branch from 5d77ad2 to e4ebe72 Compare November 17, 2026 10:17
@ajianaz
ajianaz merged commit 064991b into develop Nov 17, 2026
13 checks passed
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.

decide: wire in or remove code that is written but not used (bundling engine, AstNode.parent, context stats)

1 participant