Skip to content

Rust repo-local package ownership and condition taxonomy hardening #603

Description

@jununfly

This was generated by AI during triage.

What to build

Harden Rust core diagnostics for repo-local Cargo package ownership and condition-source taxonomy, without attempting active cfg evaluation or full Cargo resolution.

The implementation should keep package/crate ownership as diagnostic and guard input only. It should classify condition sources such as feature-gated, target-gated, test-only, and cfg_attr-affected Rust source so later graph writes can fail closed with precise reasons.

Acceptance criteria

  • Rust result JSON/profile diagnostics expose or harden repo-local package ownership and crate-root ownership counts for indexed .rs files.
  • Condition-source taxonomy distinguishes feature-gated, target-gated, test-only, and cfg_attr-affected source when detectable from parsed source.
  • The implementation does not evaluate active cfg, feature unification, target triples, Cargo resolver v1/v2, or external dependency source.
  • Existing Cargo workspace and Rust macro/cfg diagnostics remain backward-compatible unless the baseline issue explicitly justifies a taxonomy rename.
  • Targeted Rust core tests pass.

Blocked by

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