Skip to content

Add ESM named fallback reason samples to Rust profile #363

@jununfly

Description

@jununfly

This was generated by AI during triage.

Parent

What to build

Extend Rust-hybrid profile diagnostics so ESM named import/export fallback is no longer exposed only as an aggregate count. The profile should include bounded reason counts and bounded privacy-safe samples that explain why named binding resolution fell back.

This is diagnostics-only. Do not change resolver behavior, graph edges, package/default/namespace semantics, or public user-facing surfaces.

Acceptance criteria

  • Rust profile includes bounded ESM named fallback reason counts.
  • Rust profile includes bounded ESM named fallback samples and a sample cap/truncation contract.
  • Samples distinguish missing/ambiguous import edge, type-only boundary, direct export candidate failures, one-hop re-export candidate failures, and package/runtime or unsupported boundaries.
  • Samples use only privacy-safe fields and do not include source snippets, source lines, export-list text, or candidate name arrays.
  • Existing ESM named import/export success behavior still passes.

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions