Skip to content

sem diff: overload stubs (@overload defs) report spurious [modified] entries #455

Description

@rs545837

Found live during an agent benchmark run on the xarray repo: after editing only where in xarray/core/computation.py, sem diff reported 4 spurious polyval [modified] entries.

polyval has multiple @overload stub definitions adjacent to the real implementation; a pure line-shift edit above them apparently makes the entity matcher see the stubs as modified (likely same-name entities disambiguated by position, so a shift reassigns identity).

Expected: line-shift-only changes to overload stubs produce no entity-level diff entries — same-name same-parent entities should match by structural hash / order, not absolute position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions