Skip to content

Rust import graph under-resolved: 2,603 use lines -> 336 edges in room4doom; 76% of .rs files show no internal links #4544

Closed

Description

@squid-protocol

Problem

The Rust import graph is badly under-resolved, so dependency, blast-radius and cyclic-density metrics for Rust repos are near zero and wrong.

Evidence

room4doom: 2,603 use lines produce only 336 import edges for 378 files. 267 of 353 .rs files have internal_dependency_links=0 and network_cyclic_density=0.0, and the average path length is 1.31 (metrics.csv). C repos look plausible: chocolate-doom has 3,951 edges for 626 files.

Acceptance criteria

  • use crate::…, use super::…, use self::…, mod x; (file and x/mod.rs), workspace crates (use other_crate::… via Cargo workspace members), grouped use a::{b, c} and re-exports resolve to the right files.
  • room4doom edge count is in line with its use lines (state the expected ratio with evidence); a test fixture pins the forms.
  • Golden masters updated with attributed drift.

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ (gitgalaxy_issues.md; scans at engine a8510fc). Found by the Doom source-port study (2026-10-06): https://claude.ai/code/artifact/bc877518-b326-4889-9d15-d99287f4f3fc

🤖 Generated with Claude Code

Activity

  1. added
    bug
    data-integrity
    core-engine
    priority: high
    on Oct 6, 2026
  2. added
    scope:frontier
    on Oct 16, 2026
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

    bugcore-enginedata-integritypriority: highscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions