The maintainer of jdx/mise reported two issues with entire-graph: Two reproducible cases…
- User
The maintainer of jdx/mise reported two issues with entire-graph: Two reproducible cases on jdx/mise (Rust workspace, ~3k files). (1) Wrong relationship: which_shim in src/shims.rs gets USES_TYPE/PARAM_TYPE edges to crates/vfox/src/config.rs:struct:Config, but the file explicitly imports crate::config::Config and the correct symbol exists in the graph — 981 of 984 edges targeting the vfox Config come from mise's src/ and are all wrong. CALLS already does import resolution; type/TESTS edges don't, so any common name (Config, Settings, Error) poisons the graph cross-crate. Same root cause produces a wrong TESTS edge (test_parse_array in mise-interactive-config → TomlParser.parse_array in a crate it never touches). (2) Silent miss: commit e3f5ddef2 changed 3 files, but graph commit/graph diff report only src/shims.rs. The src/cli/exec.rs changes (+34/−6 inside two cfg-gated same-name exec_program functions) produce zero output, even though body_changed fires fine for other Rust files in the same range and the snapshot disambiguates the overloads with #sig IDs — the diff reconciler loses them. The changed PowerShell file is also omitted with no "skipped" marker, so empty output can't be distinguished from "not analyzed."
Assistant
I'll investigate both reported issues in the entire-graph codebase — first the cross-crate type-edge misresolution, then the silent diff miss. Let me start by exploring the repo structure.
Assistant
The Rust import scanner exists and handles
use crate::config::Config. Let me check how imported module strings get matched to target file paths.Assistant
Rather than guessing, let me reproduce with the actual mise files from commit e3f5ddef2.
Assistant
Both cfg-gated
exec_programfunctions changed. Now let me reproduce the diff bug with a quick test harness inside the repo.Assistant
Compareworks in isolation, so let me run the real end-to-end path: clone mise and rungraph commit e3f5ddef2.Assistant
The Rust import resolver handles
crate::config::Configcorrectly. Now let me look at the remaining helpers before writing the fix.Assistant
I have everything I need. Implementing both fixes now — starting with the import-aware type/TESTS resolution in provider.go.
Assistant
Now the TESTS relation. Let me read the current
testRelationsfully and rewrite the subject lookup with the same ladder.Assistant
Now the analyze.go fix — emit a machine-readable marker for changed files that have no parser support.
Assistant
All existing tests pass. Now verify against the real mise repo.
Assistant
All verified. Now remove my repro test file and add proper regression tests. Let me look at existing test patterns first.
Assistant
All green. Cleaning up the temporary worktree and checking the final diff:
Assistant
Now guard
importedExternalSymbolNameso resolved-path entries (which are by definition local, not external) are skipped explicitly:Assistant
All green. Re-verifying on mise with the generalized mechanism:
Assistant
The sentinel leaked into the snapshot output somewhere. Let me find where:
Assistant
- User
Create a branch and open an entire trail for this change
Assistant
Done. The branch and trail are up:
- Branch:
fix/import-aware-type-and-test-edges, committed asc9c1515and pushed to origin — 4 files, +320/−25 (the resolution-ladder fix, sentinel-tagged resolved import paths, theW_UNSUPPORTED_FILEmarker, and the three regression tests). - Trail: Import-aware type/TESTS edge resolution + unsupported-file diff markers (#7), with a body covering both mise-reported issues, the verification numbers against
e3f5ddef2, and the note that the exec.rs overload half was already fixed by #37 and just needs a release for the maintainer on v0.2.0.
One follow-up worth considering when you reply to the mise maintainer: cutting a v0.2.1/v0.3.0 release, since their silent-miss report is partly resolved by code that's been sitting on main since PR #37.
- Branch: