Skip to content

[Bug/Perf] Node-centric coupling in collectSeeds causes unnecessary I/O overhead on non-Node projects #155

Description

@Tanmay-008

Currently, the collectSeeds orchestrator unconditionally executes discoverNodeProjects(root) and turboTaskGraph(root) before invoking any feature mappers.

This design assumes a Node.js-centric environment and passes the eager results to all 17 language mappers (Go, Python, Rust, C++, etc.) via the MapperContext. While Node-ecosystem mappers require this context, non-Node mappers completely ignore it. This means that for pure Go or Python repositories, the CLI pays a heavy, unnecessary I/O penalty (recursively scanning for package.json, project.json, lockfiles, etc.) blocking the non-Node mappers from starting their execution.

Expected Behavior

Non-Node mappers should not wait for Node.js workspace discovery. The MapperContext should be evaluated lazily so that Node workspace discovery only runs when a mapper actually requests it, avoiding redundant disk I/O in polyglot or non-JS/TS repositories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions