In PR #1465, sort_targets_by_confidence is called in the native build_edges.rs path after resolve_call_targets, but the TS buildFileCallEdges in build-edges.ts does not sort before emitting. For multi-target calls, the stored confidence value could differ between engines.
The dedup key is (source_id, target_id) so the edge set is unaffected, but the stored confidence for duplicate multi-target calls may differ. Aligning both paths (either add sorting to TS or remove from native) would eliminate this latent difference.
Related: PR #1465 review.
In PR #1465,
sort_targets_by_confidenceis called in the nativebuild_edges.rspath afterresolve_call_targets, but the TSbuildFileCallEdgesinbuild-edges.tsdoes not sort before emitting. For multi-target calls, the stored confidence value could differ between engines.The dedup key is
(source_id, target_id)so the edge set is unaffected, but the stored confidence for duplicate multi-target calls may differ. Aligning both paths (either add sorting to TS or remove from native) would eliminate this latent difference.Related: PR #1465 review.