Skip to content

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

Closed

Description

@ajianaz

What

Removing the blanket #[allow(dead_code, unused)] showed code that is complete but never called by the product, and that is tied to something users can see or that looks like a half-finished feature:

  • The file bundling engine (src/engine/bundling/, about 1,100 lines: grouping by directory and language, FileGroup, GroupingKey, LanguageFamily, GroupingStats). bundling: is a documented .cora.yaml section (docs/configuration.md) and BundlingConfig is parsed, but review does not group files with it. The roadmap lists it as done (feat: File bundling — parallel per-bundle review for large changesets #115).
  • ContextOutput fields line, raw and stats (src/engine/context/types.rs): set, never read ("consumed in v0.5 when bundling wired").
  • diff_parser::extract_added_lines ("used by bundling in v0.5").
  • AstNode.parent (src/index/ast.rs): the parent scope of a method or field is computed at 64 sites and then dropped, so the index does not keep it.

Until this is decided these items keep a narrow #[allow(dead_code)] that points here.

Why

Either the feature should exist (then wire it in and test it: smart grouping for large reviews, parent scope in the index) or the code and the config key should go (and the docs and roadmap say so). Leaving it half-way costs reading time and promises something the product does not do.

Testing

  • Decision recorded here by the owner. If wired in: tests that show the behavior (grouping changes the review batches, parent scope is searchable). If removed: cargo check stays warning-free, the config key is rejected or ignored with a clear message, and the docs and roadmap are corrected.

Activity

  1. added 2 commits that reference this issue on Nov 17, 2026
    17a5e31
    e4ebe72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions