A same-relation collision keeps the higher-confidence edge (#3711), and the
other copy was discarded, so an AMBIGUOUS or INFERRED duplicate (typically a
semantic-pass edge over an AST edge) left no trace in graph.json. The winner
now lists each other copy's confidence, confidence_score, source_file and
source_location in `also_seen`, weakest first, deduplicated against the
winner and each other so re-feeding graph.json through an update is
idempotent. A malformed `also_seen` read back from disk is sanitized.
When the incoming edge wins, fields only the loser carried are removed from
the stored edge: add_edge merges attribute dicts, so the displaced edge's
confidence_score used to stay on an EXTRACTED winner that had none.
`graphify path` (CLI and MCP shortest_path) unions the also_seen tags into the
hop label, as it already does for parallel edges: [AMBIGUOUS/INFERRED].
Fixes#4881
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Syed Fahad <sfahad2904@gmail.com>